403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/44/d845879113/htdocs/app750263/wp-content/themes/simplemag/composer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/44/d845879113/htdocs/app750263/wp-content/themes/simplemag/composer/posts-carousel.php
<?php 
/**
 * Homepage Posts Carosuel
 * Page Composer Section
 *
 * @package SimpleMag
 * @since 	SimpleMag 3.0
**/
?>

<section class="home-section full-width-media full-width-section posts-carousel">

    <?php
    /** 
     * Add posts to slider only if the 'Add To Slider' 
     * custom field checkbox was checked on the Post edit page
    **/
    $carousel_slides_num = get_sub_field( 'carousel_slides_to_show' );
    $ti_posts_carousel = new WP_Query(
        array(
            'posts_per_page' => $carousel_slides_num,
            'meta_key' => 'homepage_slider_add',
            'meta_value' => '1',
            'no_found_rows' => true,
        )
    );
    ?>

    <?php if ( $ti_posts_carousel->have_posts() ) : ?>
    
    <div class="gallery-carousel global-sliders content-over-image content-over-image-tint">
        
        <?php while ( $ti_posts_carousel->have_posts() ) : $ti_posts_carousel->the_post(); ?>
        
            <div class="gallery-item">
            	<figure class="entry-image">
                    <?php 
                    if ( has_post_thumbnail() ) {
                        the_post_thumbnail( 'gallery-carousel' );
                    } ?>
                </figure>
				<header class="entry-header">
                    <a class="entry-link" href="<?php the_permalink(); ?>"></a>
                    <div class="inner">
                        <div class="inner-cell">
                            <div class="entry-meta">
                                <span class="entry-category">
                                   <?php the_category(', '); ?>
                                </span>
                            </div>
                            <h2 class="entry-title">
                                <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                            </h2>
                        </div>
                    </div>
                </header>
            </div>
            
        <?php endwhile; ?>
        
        <?php wp_reset_postdata(); ?>

    </div>
    
    <?php else: ?>
        
        <p class="message">
			<?php _e( 'Sorry, there are no posts in the carousel', 'themetext' ); ?>
        </p>
         
    <?php endif; ?>

</section><!-- Posts Carousel -->

Youez - 2016 - github.com/yon3zu
LinuXploit