📄 default_items.php
字号:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<ul id="archive-list" style="list-style: none;">
<?php foreach ($this->items as $item) : ?>
<li class="row<?php echo ($item->odd +1 ); ?>">
<h4 class="title">
<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id='.$item->slug); ?>">
<?php echo $item->title; ?>
</a>
</h4>
<h5 class="metadata">
<?php if ($this->params->get('show_create_date')) : ?>
<span class="created-date">
<?php echo JText::_('Created').': '.$item->created; ?>
</span>
<?php endif; ?>
<?php if ($this->params->get('show_author')) : ?>
<span class="author">
<?php echo JText::_('Author').': '; echo $item->created_by_alias ? $item->created_by_alias : $item->author; ?>
</span>
<?php endif; ?>
</h5>
<div class="intro">
<?php echo substr($item->introtext, 0, 255); ?>...
</div>
</li>
<?php endforeach; ?>
</ul>
<div id="navigation">
<span><?php echo $this->pagination->getPagesLinks(); ?></span>
<span><?php echo $this->pagination->getPagesCounter(); ?></span>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -