HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/ganryujima_new_1602/popularpost/post.php
<?php
  $icon = get_field('news_list_thumbnail', $p->id);
  $iconurl = wp_get_attachment_image_src($icon, 'icon');
  $cover = get_field('cover', $p->id);
  $coverurl = wp_get_attachment_image_src($cover, 'icon');
  $discus = get_field('discussion_index_image', $p->id);
  $discusurl = wp_get_attachment_image_src($discus, 'icon');
?>
<article class="table_article" alt="<?php the_permalink($p->id); ?>">
  <a href="<?php the_permalink($p->id) ?>">
    <div class="cover-outer">
      <div class="cover">
        <?php if($iconurl){ ?>
          <img src="<?php echo $iconurl[0]; ?>" alt="">
        <?php } else if($coverurl){ ?>
          <img src="<?php echo $coverurl[0]; ?>" alt="">
        <?php } else if($discusurl){ ?>
          <img src="<?php echo $discusurl[0]; ?>" alt="">
        <?php } else { ?>
          <img src="<?= home_url() ?>/assets/images/dummyicon.jpg" alt="SAMURAI WARRIOR">
        <?php } ?>
      </div>
    </div>
    <div class="cnt">
      <aside class="info">
        <time><?php echo date_i18n($instance['stats_tag']['date']['format'], strtotime($p->date)); ?></time>
      </aside>
      <h1>
        <?php if(mb_strlen($p->title)>24) {
          $title= mb_substr($p->title,0,24);
          echo $title.'...';
        } else {
          echo $p->title;
        }?>
      </h1>
    </div>
  </a>
</article>