function widget($args, $instance) { extract($args, EXTR_SKIP); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } echo slider_pro($instance['slider_id']); echo $after_widget; }
/** * Display Slider PRO slider on the frontend */ function gch_display_sliderpro_sliders($gch_sliderpro_slider) { if ($gch_sliderpro_slider != '' && $gch_sliderpro_slider != 'none') { echo '<div class="gch-sliderpro-slider">'; echo slider_pro($gch_sliderpro_slider); echo '</div>'; } }
/** * Shortcode used to create the slider */ function slider_pro_shortcode($atts, $content = null) { extract(shortcode_atts(array('id' => '-1'), $atts)); return slider_pro($id, $atts, $content); }
<li>|</li> <li><a href="<?php echo get_option('home'); ?> /free-estimate">Free Estimate</a></li> </ul> --> </div> <div id="splash-home"> <?php if (is_home()) { ?> <?php echo slider_pro(1, array('width' => 982, 'height' => 281, 'effect_type' => 'minimalLight')); ?> <?php } elseif (is_page('about-us')) { ?> <div id="splash"> <img src="<?php bloginfo('home'); ?> /wp-content/themes/procare/images/kirkland-gutter-cleaning.jpg" title="<?php bloginfo('name'); ?> About Us" />