123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php $this->layout( 'layout', [
- 'body_class' => 'trending-page',
- 'info' => $info,
- 'config' => $config,
- ] ) ?>
- <?php if ( ! $error ) : ?>
- <h2 class="page-heading"><?=$this->e( $info['title'] )?></h2>
- <?php if ( count( $entries > 0 ) ) : ?>
- <div class="entries thumbnails">
- <?php foreach( $entries as $entry ) : ?>
- <?php if ( $entry['item_type'] == 'video' ) : ?>
- <div class="entry">
- <a title="<?=$this->e( $entry['description'] )?>" href="<?=$this->e( $entry['video_url'] )?>">
- <img src="<?=$this->e( $entry['thumbnail_url'] )?>" />
- </a>
- <p class="title">
- <a title="<?=$this->e( $entry['description'] )?>" href="<?=$this->e( $entry['video_url'] )?>"><?=$this->e( $entry['title'] )?></a>
- </p>
- <p class="author"><a href="<?=$this->e( $entry['author_url'] )?>"><?=$this->e( $entry['author_name'] )?></a></p>
- </a>
- </div>
- <?php elseif ( $entry['item_type'] == 'channel' ) : ?>
- <a class="entry" href="<?=$this->e( $entry['channel_url'] )?>">
- <img src="<?=$this->e( $entry['channel_thumbnail_url'] )?>" />
- <span class="title"><?=$this->e( $entry['channel_name'] )?></span>
- <span class="sub-count"><?=$this->e( $entry['subscriber_count'] )?></span>
- <span class="video-count"><?=$this->e( $entry['video_count'] )?> publishes</span>
- </a>
- <?php endif; ?>
- <?php endforeach; ?>
- </div>
- <?php else: ?>
- <div class="error msg">Error: 0 entries found</div>
- <?php endif; ?>
- <?php else : ?>
- <div class="error msg">Error: <?=$this->e($error)?></div>
- <?php endif; ?>
|