1 <?php |
1 <?php |
2 /* to remove notifications for upgrade wordpress */ |
2 /* to remove notifications for upgrade wordpress */ |
3 add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); |
3 // add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); |
|
4 add_filter( 'pre_site_transient_update_core', function($a) { return null; }); |
4 |
5 |
5 load_theme_textdomain('pego_tr',get_template_directory() . '/languages'); |
6 load_theme_textdomain('pego_tr',get_template_directory() . '/languages'); |
6 |
7 |
7 $themedir = get_template_directory_uri(); |
8 $themedir = get_template_directory_uri(); |
8 |
9 |
9 function my_scripts() { |
10 function my_scripts() { |
10 global $themedir; |
11 global $themedir; |
11 wp_enqueue_script('slides-min-jquery', $themedir . '/js/slides.min.jquery.js','','',true); |
12 wp_enqueue_script('slides-min-jquery', $themedir . '/js/slides.min.jquery.js','','',true); |
12 wp_enqueue_script('jquery-ui-min', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.22/jquery-ui.min.js','','',true); |
13 wp_enqueue_script('jquery-ui-min', $themedir . '/jquery-ui/jquery-ui.min.js','','',true); |
13 wp_enqueue_script('jquery-easing', $themedir . '/js/jquery.easing.1.3.js','','',true); |
14 wp_enqueue_script('jquery-easing', $themedir . '/js/jquery.easing.1.3.js','','',true); |
14 wp_enqueue_script('jquery-iconmenu', $themedir . '/js/jquery.iconmenu.js','','',true); |
15 wp_enqueue_script('jquery-iconmenu', $themedir . '/js/jquery.iconmenu.js','','',true); |
15 wp_enqueue_script('jquery-nav-min', $themedir . '/js/jquery.nav.min.js','','',true); |
16 wp_enqueue_script('jquery-nav-min', $themedir . '/js/jquery.nav.min.js','','',true); |
16 wp_enqueue_script('jquery-nav', $themedir . '/js/jquery.nav.js','','',true); |
17 wp_enqueue_script('jquery-nav', $themedir . '/js/jquery.nav.js','','',true); |
17 wp_enqueue_script('plugins', $themedir . '/js/plugins.js','','',true); |
18 wp_enqueue_script('plugins', $themedir . '/js/plugins.js','','',true); |
18 wp_enqueue_script('jquery-quicksand', $themedir . '/js/jquery.quicksand.js','','',true); |
19 wp_enqueue_script('jquery-quicksand', $themedir . '/js/jquery.quicksand.js','','',true); |
19 wp_enqueue_script('main', $themedir . '/js/main.js','','',true); |
20 wp_enqueue_script('main', $themedir . '/js/main.js','','',true); |
20 wp_enqueue_script('script', $themedir . '/js/script.js','','',true); |
21 wp_enqueue_script('script', $themedir . '/js/script.js','','',true); |
21 wp_enqueue_script('jquery-tipsy', $themedir . '/js/jquery.tipsy.js','','',true); |
22 wp_enqueue_script('jquery-tipsy', $themedir . '/js/jquery.tipsy.js','','',true); |
22 wp_enqueue_script('jquery-validate-pack', $themedir . '/js/jquery.validate.pack.js','','',true); |
23 wp_enqueue_script('jquery-validate-pack', $themedir . '/js/jquery.validate.min.js','','',true); |
23 wp_enqueue_script('jquery-mousewheel', $themedir . '/fancybox/jquery.mousewheel-3.0.4.pack.js','','',true); |
24 wp_enqueue_script('jquery-mousewheel', $themedir . '/fancybox/jquery.mousewheel-3.0.4.pack.js','','',true); |
24 wp_enqueue_script('jquery-fancybox-pack', $themedir . '/fancybox/jquery.fancybox-1.3.4.pack.js','','',true); |
25 wp_enqueue_script('jquery-fancybox-pack', $themedir . '/fancybox/jquery.fancybox.min.js','','',true); |
25 } |
26 } |
26 add_action('init', 'my_scripts'); |
27 add_action('init', 'my_scripts'); |
27 |
28 |
28 |
29 |
29 /* specify content width */ |
30 /* specify content width */ |