slider ) || empty( $hoot_theme->slider ) ) return; // Ok, so we have a slider to show. Now, lets display the slider. /* Let developers alter slider via global $hoot_theme */ do_action( 'hoot_slider_start', 'html' ); /* Create Data attributes for javascript settings for this slider */ $atts = $class = $gridstyle = ''; if ( isset( $hoot_theme->sliderSettings ) && is_array( $hoot_theme->sliderSettings ) ) { if ( !empty( $hoot_theme->sliderSettings['class'] ) ) $class .= ' ' . sanitize_html_class( $hoot_theme->sliderSettings['class'] ); if ( !empty( $hoot_theme->sliderSettings['id'] ) ) $atts .= ' id="' . sanitize_html_class( $hoot_theme->sliderSettings['id'] ) . '"'; foreach ( $hoot_theme->sliderSettings as $setting => $value ) $atts .= ' data-' . $setting . '="' . esc_attr( $value ) . '"'; if ( !empty( $hoot_theme->sliderSettings['min_height'] ) ) { // use height instead of min-height (firefox) http://stackoverflow.com/questions/7790222/ $gridstylearray = $hybridextend_style_builder->css_rule_sanitized_array( 'height', $hoot_theme->sliderSettings['min_height'] . 'px' ); if( is_array( $gridstylearray ) ) { foreach ( $gridstylearray as $property => $value ) { $gridstyle .= " $property: " . $value['value'] . ';'; } } } } /* Start Slider Template */ $slide_count = 1; ?>