| Server IP : 172.67.159.97 / Your IP : 216.73.217.154 Web Server : nginx/1.24.0 System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/rebeccaone.com/wp-content/themes/x/framework/views/global/ |
Upload File : |
<?php
// =============================================================================
// VIEWS/GLOBAL/_SLIDER-BELOW.PHP
// -----------------------------------------------------------------------------
// Slider output below the header.
// =============================================================================
if ( class_exists( 'RevSlider' ) || class_exists( 'RevSliderSlider' ) || class_exists( 'LS_Sliders' ) ) :
if ( !is_search() ):
$id = x_get_the_ID();
$slider_active = get_post_meta( $id, '_x_slider_below', true );
$slider = ( $slider_active == '' ) ? 'Deactivated' : $slider_active;
if ( $slider != 'Deactivated' ) :
$bg_video = get_post_meta( $id, '_x_slider_below_bg_video', true );
$bg_video_poster = get_post_meta( $id, '_x_slider_below_bg_video_poster', true );
$anchor = get_post_meta( $id, '_x_slider_below_scroll_bottom_anchor_enable', true );
$anchor_alignment = get_post_meta( $id, '_x_slider_below_scroll_bottom_anchor_alignment', true );
$anchor_color = get_post_meta( $id, '_x_slider_below_scroll_bottom_anchor_color', true );
$anchor_color_hover = get_post_meta( $id, '_x_slider_below_scroll_bottom_anchor_color_hover', true );
?>
<div class="x-slider-container below<?php if ( $bg_video != '' ) { echo ' bg-video'; } ?>">
<?php if ( $bg_video != '' ) : echo function_exists( 'cs_bg_video' ) ? cs_bg_video( $bg_video, $bg_video_poster ) : ''; endif; ?>
<?php if ( $anchor == 'on' ) :
$anchor_content = apply_filters( 'x_slider_scroll_top_anchor_content', x_icon_get('f107', "x-icon-angle-down"), 'below' );
?>
<style scoped>
.x-slider-scroll-bottom.below { color: <?php echo $anchor_color; ?>; }
.x-slider-scroll-bottom.below:hover { color: <?php echo $anchor_color_hover; ?>; }
</style>
<a href="#" class="x-slider-scroll-bottom below <?php echo $anchor_alignment; ?>">
<?php echo $anchor_content; ?>
</a>
<?php endif; ?>
<?php echo do_shortcode( x_get_slider_shortcode( $slider ) ); ?>
</div>
<?php endif;
endif;
endif;