$num_of_slides, 'cat' => $slider_cat ) );?>
have_posts() ): $andorra_slider_query->the_post(); ?> ID ), 'single-post-thumbnail' ); ?> <?php esc_html(the_excerpt()); ?> <?php esc_attr_e('Slide','andorra');?> <?php esc_attr_e('Slide','andorra');?> <?php esc_attr_e('Slide','andorra');?>
$num_of_slides, 'cat' => $slider_cat ) );?>
$slideshow_speed, 'animationSpeed' => $animation_speed, 'sliderHeight' => $slider_height, 'sliderEffect' => $slider_effect, ); if ($andorra_theme_options['captions_on'] == '1') { if (is_home() && ! is_paged()) { wp_enqueue_script( 'andorra-slides-captions', get_template_directory_uri() .'/js/andorra-slides-captions.js' , array( 'jquery' ), '', true ); wp_localize_script( 'andorra-slides-captions', 'php_vars', $datatoBePassed ); } }else{ wp_enqueue_script( 'andorra-ideal-slides', get_template_directory_uri() .'/js/andorra-ideal-slides.js' , array( 'jquery' ), '', true ); wp_localize_script( 'andorra-ideal-slides', 'php_vars', $datatoBePassed ); } } function andorra_localize_scripts_unslider(){ wp_enqueue_script( 'andorra-slides', get_template_directory_uri() .'/js/andorra-slides.js' , array( 'jquery' ), '', true ); $andorra_theme_options = andorra_get_options( 'andorra_theme_options' ); $animation_speed = $andorra_theme_options['animation_speed']; $slideshow_speed = $andorra_theme_options['slideshow_speed']; $datatoBePassed = array( 'slideshowSpeed' => $slideshow_speed, 'animationSpeed' => $animation_speed, ); wp_localize_script( 'andorra-slides', 'php_vars', $datatoBePassed ); } add_action( 'wp_enqueue_scripts', 'andorra_localize_scripts_unslider' ); add_action( 'wp_enqueue_scripts', 'andorra_localize_scripts_ideal' );