Пример #1
0
function indonez_add_javascripts()
{
    wp_enqueue_scripts('jquery');
    wp_enqueue_script('jquery.modernizr', get_template_directory_uri() . '/js/modernizr.js', array('jquery'), '', true);
    wp_enqueue_script('jquery.mediaelement', get_template_directory_uri() . '/js/mediaelement-and-player.min.js', array('jquery'), '', true);
    wp_enqueue_script('jquery.retina', get_template_directory_uri() . '/js/jquery.retina.js', array('jquery'), '', true);
    wp_enqueue_script('jquery.superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), '', true);
    wp_enqueue_script('jquery.fancybox', get_template_directory_uri() . '/js/jquery.fancybox.js', array('jquery'), '2.0.6', true);
    wp_enqueue_script('jquery.fancybox.media', get_template_directory_uri() . '/js/jquery.fancybox-media.js', array('jquery'), '1.0.3', true);
    wp_enqueue_script('jquery.ui.totop', get_template_directory_uri() . '/js/jquery.ui.totop.min.js', array('jquery'), '', true);
    wp_enqueue_script('jflickrfeed', get_template_directory_uri() . '/js/jflickrfeed.min.js', array('jquery'), '', true);
    wp_enqueue_script('jquery.isotope', get_template_directory_uri() . '/js/jquery.isotope.js', array('jquery'), '1.4', true);
    wp_enqueue_script('jquery.tinynav', get_template_directory_uri() . '/js/tinynav.min.js', array('jquery'), '1.1', true);
    wp_enqueue_script('jquery.easing', get_template_directory_uri() . '/js/jquery.easing-1.3.min.js', array('jquery'), '1.3', true);
    wp_enqueue_script('jquery.themefunctions', get_template_directory_uri() . '/js/jquery.theme.functions.js', array('jquery'), '', true);
    global $smof_data;
    $show_switcher = $smof_data['show_switcher'];
    if (!in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
        if ($show_switcher == 1) {
            wp_enqueue_script('jquery.cookie', get_template_directory_uri() . '/demo_switcher/jquery.cookie.js', array('jquery'), '', true);
            wp_enqueue_script('jquery.colorpicker', get_template_directory_uri() . '/demo_switcher/colorpicker.js', array('jquery'), '', true);
            wp_enqueue_script('jquery.color', get_template_directory_uri() . '/demo_switcher/jquery.color.js', array('jquery'), '', true);
            wp_enqueue_script('jquery.switcher', get_template_directory_uri() . '/demo_switcher/switcher.js', array('jquery'), '', true);
        }
    }
}
Пример #2
0
function nias_ekko()
{
    wp_register_script('ekko-lightbox-js', plugins_url('/ekko-lightbox.min.js', __FILE__), array('jquery'), '1.0', true);
    wp_register_style('ekko-lightbox-css', plugins_url('/ekko-lightbox.min.css', __FILE__));
    wp_enqueue_scripts('ekko-lightbox-js');
    wp_enqueue_styles('ekko-Lightbox-css');
}
Пример #3
0
function snp_run_camp($POST_META)
{
    global $snp_ignore_cookies, $wp_scripts;
    $snp_ignore_cookies = true;
    snp_run_popup($POST_META['snp_camp_popup'], $POST_META['snp_camp_use']);
    echo '<!DOCTYPE html>';
    echo '<html><head>';
    echo '<style> body, html { height: 100%; width: 100%;} ';
    echo 'body { display: block;margin: 0;padding: 0;} </style>';
    snp_init();
    //wp_head();
    wp_enqueue_scripts();
    foreach ($wp_scripts->registered as $k => $v) {
        //print_r($v);
        if (!in_array($v->handle, array('jquery', 'jquery-core', 'fancybox2', 'jquery-ui-core', 'jquery-migrate', 'js-ninjapopups', 'jquery-np-cookie', 'jquery-np-placeholder'))) {
            wp_deregister_script($v->handle);
        }
    }
    wp_print_styles();
    print_admin_styles();
    wp_print_head_scripts();
    echo '</head><body>';
    echo '<iframe src="' . $POST_META['snp_camp_dest_url'] . '" style="width: 100%; height: 100%; border: 0; padding: 0; margin: 0; line-height: 0; display: block;"></iframe>';
    snp_footer();
    wp_print_footer_scripts();
    echo '</body></html>';
    die('');
}
Пример #4
0
 /**
  * Enqueue javascript.
  */
 public function enqueueJavascript()
 {
     wp_enqueue_scripts('jquery');
     // Allows to load assets without overloading.
     $dispatcher = $this->getEnvironment()->getDispatcher();
     $dispatcher->dispatch('bx_enqueue_javascript');
     wp_enqueue_script('supsysticSlider-bxSliderPlugin', $this->getLocationUrl() . '/assets/js/jquery.bxslider.js', array(), '1.0.0', true);
     wp_enqueue_script('supsysticSlider-bxSlider', $this->getLocationUrl() . '/assets/js/frontend.js', array(), '1.0.0', true);
     wp_enqueue_script('google-font-loader', 'http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js', array(), '1.0.0', true);
 }
Пример #5
0
 /**
  * Initialize.
  *
  * @return bool
  */
 function init()
 {
     $pubid = get_option('dp_addthis_pubid');
     if ($pubid) {
         // enqueue scripts and styles
         if ($this->has_tool()) {
             wp_enqueue_scripts('dp-addthis');
         }
         add_action('wp_head', array($this, 'enqueue_styles'));
         // inline tools
         add_action('wp_head', array($this, 'prepare_inline_tools_filters'));
         add_action('loop_start', array($this, 'handle_inline_tools'));
         // smart layers
         add_action('wp_head', array($this, 'handle_smart_layers'));
     }
 }
Пример #6
0
 function settings_sc()
 {
     wp_enqueue_scripts('jquery');
     wp_enqueue_script('jquery-ui-tabs');
     wp_register_style('pluginCore-style', PM_ASSECTS_URL . 'css/pluginCore.css');
     wp_enqueue_style('pluginCore-style');
     wp_register_style('post-meta-admin-style', PM_ASSECTS_URL . 'css/post_meta_admin.css');
     wp_enqueue_style('post-meta-admin-style');
     wp_register_script('post-meta-admin-script', PM_ASSECTS_URL . '/js/post_meta_admin.js');
     wp_enqueue_script('post-meta-admin-script');
     wp_enqueue_style('jquery-ui-all', 'http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css');
     wp_register_script('post-meta-validationEngine', PM_ASSECTS_URL . 'js/jquery/validationEngine.js');
     wp_enqueue_script('post-meta-validationEngine');
     wp_register_script('post-meta-validationEngine-en', PM_ASSECTS_URL . 'js/jquery/validationEngine-en.js');
     wp_enqueue_script('post-meta-validationEngine-en');
     wp_register_style('post-meta-validationEngine-css', PM_ASSECTS_URL . 'css/jquery/validationEngine.css');
     wp_enqueue_style('post-meta-validationEngine-css');
 }
Пример #7
0
    if (!is_admin()) {
        wp_enqueue_script('newjquery', 'https://code.jquery.com/jquery-2.1.4.min.js');
        wp_enqueue_script('myScript', get_template_directory_uri() . '/js/script.js');
        wp_enqueue_script('bootstup', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js');
        wp_enqueue_style('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css');
        wp_enqueue_style('bootstrapTheme', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css');
        wp_enqueue_style('style1', get_template_directory_uri() . '/css/l2.css');
        wp_enqueue_style('style2', get_template_directory_uri() . '/css/screen960.css');
        wp_enqueue_style('font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
    }
    //не работает подобное подключение
    //    if( is_single()){
    //         wp_enqueue_script('myRaiting', get_template_directory_uri() . '/js/raiting.js');
    //    }
}
add_action(wp_enqueue_scripts(), load_styles_and_scripts());
/* * *
 * подключаем меню  
 * * */
add_theme_support('menus');
register_nav_menus(array("header-menu" => "Самое верхнее меню", "bottom-menu" => "Самое нижнее меню"));
function topMenu()
{
    wp_nav_menu(array('theme_location' => 'header-menu', 'menu' => 'header-menu', 'menu_class' => 'menuList_plusSub'));
}
function bottomMenu()
{
    wp_nav_menu(array('theme_location' => 'bottom-menu', 'menu' => 'bottom-menu', 'menu_class' => 'menuList'));
}
/* * *
 * делаем возможным подключение миниатюр записи   
Пример #8
0
<?php

do_action('init');
wp_enqueue_scripts();
wp_enqueue_script('script-name', '/js/example.js', array(), '1.0.0', true);
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Shopvel</title>
	<base href="{{ url('/') }}/" />
	<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
	<link rel="stylesheet" type="text/css" href="{{ asset('resources/assets/css/bootstrap.min.css') }}">
	<link rel="stylesheet" type="text/css" href="{{ theme_asset('css/style.css') }}">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>

<body ng-app="shopvel" ng-controller="mainController" <?php 
body_class();
?>
>
	<aside id="menu">
		<ul class="menu-main">
			<li class="menu-item"><a href="{{ url('/') }}"><div class="menu-name">Home</div></a></li>
			<li class="menu-item"><a href="shop"><div class="menu-name">Shop</div></a></li>
Пример #9
0
    public function insert_audio()
    {
        $this->post_id = get_the_ID();
        $audio_file_url = $this->get_meta_data('war_soundy_audio_file_url');
        $preview = $_GET['war_soundy_preview'];
        if ($preview) {
            $this->preview = $preview;
        } else {
            $this->preview = 'false';
            $enable_bg_sound = $this->get_meta_data('war_soundy_enable_bg_sound');
            if ($enable_bg_sound != 'yes') {
                return;
            }
            if ($audio_file_url == '') {
                return;
            }
        }
        if ($this->user_agent_is_mobile && $this->disable_soundy_for_mobile) {
            return;
        }
        $audio_type = $this->get_audio_type_from_URL($audio_file_url);
        $audio_volume = $this->get_meta_data('war_soundy_audio_volume') / 100;
        $this->autoplay = $this->get_meta_data('war_soundy_autoplay');
        $auto_play = $this->autoplay == 'yes' ? 'autoplay' : '';
        $repeat_loop = $this->get_meta_data('war_soundy_loop');
        $audio_loop = $repeat_loop == 'yes' ? 'loop' : '';
        $pp_code = $this->get_pp_corner_code();
        $audio_code = '<div style="display: none;">' . '  <audio id="war_soundy_audio_player" preload="auto" ' . $auto_play . ' ' . $audio_loop . '>' . '	   <source id="war_soundy_audio_player_source" src="' . $audio_file_url . '" type="audio/' . $audio_type . '">' . '  </audio>' . '</div>';
        $pp_code = str_replace(array("\n", "\r"), ' ', $pp_code);
        $audio_code = str_replace(array("\n", "\r"), ' ', $audio_code);
        wp_enqueue_scripts('jquery');
        ?>
		<link rel="prefetch" href="<?php 
        echo $audio_file_url;
        ?>
">
		<link rel="prefetch" href="<?php 
        echo $this->button_url_play;
        ?>
">
		<link rel="prefetch" href="<?php 
        echo $this->button_url_pause;
        ?>
">
		<link rel="prefetch" href="<?php 
        echo $this->hover_url_play;
        ?>
">
		<link rel="prefetch" href="<?php 
        echo $this->hover_url_pause;
        ?>
">
		<script>
		var war_soundy_front_end = new war_SoundyFrontEnd(
			'<?php 
        echo $pp_code;
        ?>
',
			'<?php 
        echo $audio_code;
        ?>
',
			<?php 
        echo $audio_volume;
        ?>
,
			'<?php 
        echo $this->preview;
        ?>
',
			'<?php 
        echo $this->button_url_play;
        ?>
',
			'<?php 
        echo $this->button_url_pause;
        ?>
',
			'<?php 
        echo $this->hover_url_play;
        ?>
',
			'<?php 
        echo $this->hover_url_pause;
        ?>
',
			<?php 
        echo $this->user_agent_is_IOS();
        ?>
				);
		</script>
		<?php 
    }
Пример #10
0
		<!-- Mobile Meta -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<!-- Favicon -->
		<link rel="shortcut icon" href="<?php 
get_template_directory_uri();
?>
 ">

		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->

	  <?php 
wp_enqueue_scripts("jquery");
?>
	  <?php 
wp_head();
?>

	</head>

	<?php 
if (is_home()) {
    ?>
	<body <?php 
    body_class('front no-trans');
    ?>
 >
	<?php 
    /**
     * Custom wp_die wrapper. Returns either the standard message for UI
     * or the Ajax message.
     *
     * @since 3.4.0
     *
     * @param mixed $ajax_message Ajax return
     * @param mixed $message UI message
     */
    protected function wp_die($ajax_message, $message = null)
    {
        if ($this->doing_ajax()) {
            wp_die($ajax_message);
        }
        if (!$message) {
            $message = __('Cheatin&#8217; uh?');
        }
        if ($this->messenger_channel) {
            ob_start();
            wp_enqueue_scripts();
            wp_print_scripts(array('customize-base'));
            $settings = array('messengerArgs' => array('channel' => $this->messenger_channel, 'url' => wp_customize_url()), 'error' => $ajax_message);
            ?>
			<script>
			( function( api, settings ) {
				var preview = new api.Messenger( settings.messengerArgs );
				preview.send( 'iframe-loading-error', settings.error );
			} )( wp.customize, <?php 
            echo wp_json_encode($settings);
            ?>
 );
			</script>
			<?php 
            $message .= ob_get_clean();
        }
        wp_die($message);
    }
Пример #12
0
    public function slideshow_script()
    {
        if (!wp_script_is('bootstrap_js')) {
            wp_enqueue_scripts('bootstrap_js');
        }
        ?>
		<script type="text/javascript">
			<!--
			//yaslideshow = {};
			jQuery(document).ready(function($) {
				//console.log(yaSlideshow);
				$.each(yaSlideshow, function(key, value) {
					$('#yaSlideshow-'+key).carousel({
						interval: value['interval']
					});
				});
			});
			//-->
		</script>
		<?php 
    }
Пример #13
0
 function check_field_wysiwyg()
 {
     if (!$this->has_field('wysiwyg')) {
         return;
     }
     wp_enqueue_scripts('jquery');
     //add_action('admin_head-edit-tags.php', array(&$this, 'add_script_wysiwyg'));
     // We don't need to use this anymore because of wp_editor
 }
Пример #14
0
function wedding_style_include_requerid_scripts_for_theme()
{
    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-effects-transfer');
    wp_enqueue_script('conect_js', get_template_directory_uri() . '/scripts/conect_js.js');
    wp_enqueue_style('nivo_slider', get_template_directory_uri() . '/slideshow/style.css');
    wp_enqueue_script('custom_js', get_template_directory_uri() . '/scripts/javascript.js');
    wp_enqueue_script('response', get_template_directory_uri() . '/scripts/responsive.js');
    wp_enqueue_style('webdr-style', get_stylesheet_uri(), array(), '2013-11-18');
    wp_enqueue_style('thickbox');
    wp_print_scripts('thickbox');
    wp_enqueue_script('hover_effect', get_template_directory_uri() . '/scripts/jquery-hover-effect.js');
    wp_enqueue_scripts('comment');
    wp_enqueue_script('comment-reply');
}
Пример #15
0
function btwp_theme_js()
{
    wp_enqueue_scripts('bootstrap_js', get_template_directory_uri() . 'js/bootstrap.min.js');
}
function theme_js()
{
    wp_enqueue_scripts('jquery');
}
function imediapixel_add_javascripts()
{
    wp_enqueue_scripts('jquery');
    wp_enqueue_script('jquery.prettyPhoto', get_template_directory_uri() . '/js/jquery.prettyPhoto.js', array('jquery'));
    wp_enqueue_script('jquery.easing.1.3', get_template_directory_uri() . '/js/jquery.easing.1.3.js', array('jquery'));
    wp_enqueue_script('jquery.nivo.slider.pack.js', get_template_directory_uri() . '/js/jquery.nivo.slider.pack.js', array('jquery'));
    wp_enqueue_script('jquery.skitter.min', get_template_directory_uri() . '/js/jquery.skitter.min.js', array('jquery'));
    wp_enqueue_script('jqueryslidemenu', get_template_directory_uri() . '/js/jqueryslidemenu.js', array('jquery'));
    wp_enqueue_script('jquery.kwicks.min', get_template_directory_uri() . '/js/jquery.kwicks.min.js', array('jquery'));
    wp_enqueue_script('jquery.anythingslider.min', get_template_directory_uri() . '/js/jquery.anythingslider.min.js', array('jquery'));
    wp_enqueue_script('jquery.anythingslider.fx.min', get_template_directory_uri() . '/js/jquery.anythingslider.fx.min.js', array('jquery'));
    wp_enqueue_script('jquery.animate-colors-min', get_template_directory_uri() . '/js/jquery.animate-colors-min.js', array('jquery'));
    wp_enqueue_script('jquery.tools.tabs.min', get_template_directory_uri() . '/js/jquery.tools.tabs.min.js', array('jquery'));
    wp_enqueue_script('jqueryslidemenu', get_template_directory_uri() . '/js/jqueryslidemu.js', array('jquery'));
    wp_enqueue_script('jquery.gmap.min', get_template_directory_uri() . '/js/jquery.gmap.min.js', array('jquery'));
    wp_enqueue_script('filterable.pack', get_template_directory_uri() . '/js/filterable.pack.js', array('jquery'));
    wp_enqueue_script('functions', get_template_directory_uri() . '/js/functions.js', array('jquery'));
}
Пример #18
0
    public function javo_gallery_function($atts = array(), $content = "")
    {
        global $javo_tso;
        javo_get_script("jquery.mixitup.min.js", "mixitup", "2.1.4");
        extract(shortcode_atts(array('title' => '', 'sub_title' => '', 'title_text_color' => '#000', 'sub_title_text_color' => '#000', 'line_color' => '#fff', 'have_terms' => '', 'display_type' => 'parent', 'max_amount' => 0, 'rand_order' => null), $atts));
        $javo_this_gallery_args = array("post_type" => 'item', "post_status" => 'publish', "posts_per_page" => (int) $max_amount > 0 ? (int) $max_amount : -1);
        if ($rand_order == 'use') {
            $javo_this_gallery_args['orderby'] = 'rand';
        }
        $have_terms = @explode(',', $have_terms);
        $javo_have_terms = array();
        if (!empty($have_terms)) {
            foreach ($have_terms as $term) {
                if ((int) $term <= 0) {
                    continue;
                }
                $javo_have_terms[] = get_term($term, 'item_category');
                // IF NOT ONLY PARENTS
                if ($display_type != 'parent') {
                    $javo_sub_cat = get_terms('item_category', array('parent' => $term, 'hide_empty' => false));
                    foreach ($javo_sub_cat as $cat) {
                        $javo_have_terms[] = $cat;
                    }
                }
            }
        }
        $javo_this_get_term_args = array();
        $javo_this_get_term_args['hide_empty'] = false;
        if ($display_type == 'parent' || $display_type == '') {
            $javo_this_get_term_args['parent'] = 0;
        }
        $javo_gallery_terms = !empty($javo_have_terms) ? $javo_have_terms : get_terms("item_category", $javo_this_get_term_args);
        $javo_get_terms_ids = array();
        wp_enqueue_scripts('jQuery-Rating');
        ob_start();
        echo apply_filters('javo_shortcode_title', $title, $sub_title, array('title' => 'color:' . $title_text_color . ';', 'subtitle' => 'color:' . $sub_title_text_color . ';', 'line' => 'border-color:' . $line_color . ';'));
        ?>
		<div id="javo-gall">
			<div class="javo-gallery-navi">
				<button class="javo-gall-filter" data-filter="all"><?php 
        _e('ALL', 'javo_fr');
        ?>
</button>
				<?php 
        foreach ($javo_gallery_terms as $term) {
            printf('<button class="javo-gall-filter gallery-terms-btn" data-filter=".javo-gallery-term-%s">%s</button>', $term->term_id, strtoupper($term->name));
            $javo_get_terms_ids[] = $term->term_id;
        }
        ?>
			</div>
			<div class="javo-gallery">
				<?php 
        $javo_this_gallery_args['tax_query'][] = array('taxonomy' => 'item_category', 'field' => 'term_id', 'terms' => $javo_get_terms_ids);
        $javo_gallery_posts = new WP_Query($javo_this_gallery_args);
        if ($javo_gallery_posts->have_posts()) {
            while ($javo_gallery_posts->have_posts()) {
                $javo_gallery_posts->the_post();
                $javo_pm = new javo_GET_META(get_the_ID());
                $javo_this_include_terms = $javo_pm->cat('item_category', false, false, true);
                $javo_this_terms = '';
                if ($javo_this_include_terms != false) {
                    foreach ($javo_this_include_terms as $terms) {
                        $javo_this_terms .= ' javo-gallery-term-' . $terms->term_id;
                    }
                } else {
                    $javo_this_terms = ' javo-gallery-term-all';
                }
                ?>
						<div class="javo-gall-mix<?php 
                echo $javo_this_terms;
                ?>
">

						<div class="javo-gallery-wrap">
							<a href="<?php 
                the_permalink();
                ?>
">
								<div class="javo-gallery-shadow"></div>
								<?php 
                if (has_post_thumbnail()) {
                    echo get_the_post_thumbnail(get_the_ID(), 'javo-box', array('class' => 'img-responsive'));
                } else {
                    printf('<img src="%s" class="img-responsive wp-post-image" style="width:100%%; height:244px;">', $javo_tso->get('no_image', JAVO_IMG_DIR . '/no-image.png'));
                }
                ?>

								<div class="javo-gallery-term-content-title">
									<?php 
                echo get_the_title(get_the_ID());
                ?>
									<!-- <span class="glyphicon glyphicon-th-list"></span> -->
								</div>
								<div class="javo-gallery-term-content-inform">
									<div class="javo-gallery-term-content-category">
										<?php 
                echo $javo_pm->cat('item_category', __('No Category', 'javo_fr'));
                ?>
									</div><!-- javo-gallery-term-content-category -->
									<div class="javo-gallery-term-content-rating">
										<?php 
                printf('<div class="javo-gallery-on-hover-rating" data-score="%.1f"></div>', (double) get_post_meta(get_the_ID(), 'rating_average', true));
                ?>
									</div> <!-- javo-gallery-term-content-rating -->
								</div> <!-- javo-gallery-trem-content-inform -->
							</a>
						</div><!-- wrap -->
						<div class="javo-left-overlay bg-red">
							<div class="javo-txt-meta-area admin-color-setting"><i class="glyphicon glyphicon-map-marker"></i>&nbsp;<?php 
                echo $javo_pm->cat('item_location', __("No Location", "javo_fr"), true);
                ?>
</div> <!-- javo-txt-meta-area -->
							<div class="corner-wrap">
								<div class="corner admin-color-setting"></div>
								<div class="corner-background admin-color-setting"></div>
							</div> <!-- corner-wrap -->
						</div>
						</div> <!-- javo-gallery-term -->
						<?php 
            }
            // End While
        } else {
            _e('No Items Found.', 'javo_fr');
        }
        // End If
        wp_reset_query();
        ?>
			</div>
		</div>
		<script type="text/javascript">
		jQuery(document).ready(function($){
			"use strict";
			$('.javo-gallery').mixItUp({
				selectors:{
					filter		: '.javo-gall-filter'
					, target	: '.javo-gall-mix'
				}
			});
			jQuery(function($){
				$('.javo-gallery-on-hover-rating').each(function(){
					$(this).raty({
						starOff: '<?php 
        echo JAVO_IMG_DIR;
        ?>
/star-off-s.png'
						, starOn: '<?php 
        echo JAVO_IMG_DIR;
        ?>
/star-on-s.png'
						, starHalf: '<?php 
        echo JAVO_IMG_DIR;
        ?>
/star-half-s.png'
						, half: true
						, readOnly: true
						, score: $(this).data('score')
					}).css('width', '');

				});
				$(document).on('click', 'button.filter', function(){
					$(window).trigger('resize');


				});

			});
		});
		</script>
	<?php 
        return ob_get_clean();
    }
Пример #19
0
 function check_field_wysiwyg()
 {
     if (!$this->has_field('wysiwyg')) {
         return;
     }
     wp_enqueue_scripts('jquery');
     add_action('admin_head-edit-tags.php', array(&$this, 'add_script_wysiwyg'));
 }