HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/delstar/wp-content/plugins/easymega/templates/nav-post.php
<?php
if (! defined('ABSPATH')) exit; // Exit if accessed directly


/**
 * @param $query WP_Query
 */

?>
<?php if ($query->have_posts()) { ?>
    <?php while ($query->have_posts()) { ?>
        <?php $query->the_post(); ?>
        <div class="nav-post">
            <?php if (has_post_thumbnail()) { ?>
                <div class="easymega-post-thumbnail">
                    <?php
                    $url = get_the_post_thumbnail_url(null, 'medium');
                    ?>
                    <a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>" style="<?php echo esc_attr('background-image:url("' . esc_url($url) . '")'); ?>"></a>
                </div>
            <?php } ?>
            <h2 class="post-title"><a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
        </div>
    <?php } ?>
<?php }