File manager - Edit - /home/aussies6/public_html/seafoodwarehouse.com.au/wp-content/themes/topshop/templates/slider/homepage-slider.php
Back
<?php if ( get_theme_mod( 'topshop-slider-type', false ) == 'topshop-no-slider' ) : ?> <!-- No Slider --> <?php elseif ( get_theme_mod( 'topshop-slider-type', false ) == 'topshop-meta-slider' ) : ?> <?php $slider_code = ''; if ( get_theme_mod( 'topshop-meta-slider-shortcode', false ) ) { $slider_code = get_theme_mod( 'topshop-meta-slider-shortcode' ); } ?> <?php echo do_shortcode( sanitize_text_field( $slider_code ) ); ?> <?php else : ?> <?php $slider_cats = ''; if ( get_theme_mod( 'topshop-slider-cats' ) ) { $slider_cats = get_theme_mod( 'topshop-slider-cats' ); } ?> <?php if( $slider_cats ) : ?> <?php $slider_query = new WP_Query( 'cat=' . esc_html( $slider_cats ) . '&posts_per_page=-1&orderby=date&order=DESC' ); ?> <?php if ( $slider_query->have_posts() ) : ?> <div class="home-slider-wrap home-slider-remove" data-auto="<?php echo ( get_theme_mod( 'topshop-slider-auto-scroll' ) ) ? 'false' : '5500'; ?>" data-scroll="<?php echo ( get_theme_mod( 'topshop-slider-scroll-effect' ) ) ? esc_attr( get_theme_mod( 'topshop-slider-scroll-effect' ) ) : esc_attr( 'uncover-fade' ); ?>"> <div class="home-slider-prev"><i class="fa fa-angle-left"></i></div> <div class="home-slider-next"><i class="fa fa-angle-right"></i></div> <div class="home-slider"> <?php while ( $slider_query->have_posts() ) : $slider_query->the_post(); $slide_custom_link = get_post_meta( $post->ID, 'topshop-meta-box-slider-link', true ); ?> <?php if ( get_theme_mod( 'topshop-slider-linkto-post' ) ) : ?> <a class="home-slider-block" href="<?php echo ( $slide_custom_link ) ? esc_url( $slide_custom_link ) : the_permalink(); ?>"> <?php else : ?> <div class="home-slider-block"> <?php endif; ?> <?php if ( has_post_thumbnail() ) : ?> <?php the_post_thumbnail( 'full', array( 'class' => '' ) ); ?> <?php endif; ?> <?php if ( !get_theme_mod( 'topshop-slider-remove-title' ) ) : ?> <div class="home-slider-block-inner"> <div class="home-slider-block-bg"> <h3> <?php the_title(); ?> </h3> <?php if ( has_excerpt() ) : ?> <?php the_excerpt(); ?> <?php else : ?> <?php the_content(); ?> <?php endif; ?> </div> </div> <?php endif; ?> <?php if ( get_theme_mod( 'topshop-slider-linkto-post' ) ) : ?> </a> <?php else : ?> </div> <?php endif; ?> <?php endwhile; ?> </div> <div class="clearboth"></div> <?php do_action ( 'topshop_after_default_slider' ); ?> </div> <?php endif; wp_reset_query(); ?> <?php else : ?> <div class="home-slider-wrap home-slider-remove" data-auto="<?php echo ( get_theme_mod( 'topshop-slider-auto-scroll' ) ) ? 'false' : '5500'; ?>" data-scroll="<?php echo ( get_theme_mod( 'topshop-slider-scroll-effect' ) ) ? esc_attr( get_theme_mod( 'topshop-slider-scroll-effect' ) ) : esc_attr( 'uncover-fade' ); ?>"> <div class="home-slider-prev"><i class="fa fa-angle-left"></i></div> <div class="home-slider-next"><i class="fa fa-angle-right"></i></div> <div class="home-slider"> <div class="home-slider-block"> <img src="<?php echo get_stylesheet_directory_uri() ?>/images/demo/slider_default_01.jpg" alt="<?php esc_attr_e('Demo Slide One', 'topshop') ?>" /> <?php if ( !get_theme_mod( 'topshop-slider-remove-title' ) ) : ?> <div class="home-slider-block-inner"> <div class="home-slider-block-bg"> <h3> <?php _e( 'A Little Extra Thought', 'topshop' ); ?> </h3> <p><?php _e( 'It\'s that little extra thought that counts', 'topshop' ); ?></p> </div> </div> <?php endif; ?> </div> </div> <div class="clearboth"></div> <?php do_action ( 'topshop_after_default_slider' ); ?> </div> <?php endif; ?> <?php endif; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings