本文整理汇总了PHP中Widget::archive方法的典型用法代码示例。如果您正苦于以下问题:PHP Widget::archive方法的具体用法?PHP Widget::archive怎么用?PHP Widget::archive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Widget
的用法示例。
在下文中一共展示了Widget::archive方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="widget-content">
<?php
echo Widget::tag('LIST', 'ASC');
?>
</div>
</div>
<div class="widget-wrapper">
<h4 class="widget-title">
<?php
echo $speak->widget->related_posts;
?>
</h4>
<div class="widget-content">
<?php
echo Widget::relatedPost();
?>
</div>
</div>
<div class="widget-wrapper">
<h4 class="widget-title">
<?php
echo $speak->widget->archives;
?>
</h4>
<div class="widget-content">
<?php
echo Widget::archive('HIERARCHY', 'DESC');
?>
</div>
</div>
</aside>
示例2: array
<a href="#toggle" class="blog-sidebar-toggle">
<i class="fa fa-bars"></i>
</a>
<aside class="blog-sidebar widgets">
<?php
Shield::chunk('block.widget', array('title' => false, 'content' => Widget::search($speak->search . '…', '<i class="fa fa-search"></i>')));
?>
<?php
if ($manager && Widget::exist('manager')) {
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
?>
<?php
}
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->tags, 'content' => Widget::tag()));
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->related_posts, 'content' => Widget::relatedPost()));
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->archives, 'content' => Widget::archive()));
?>
</aside>
示例3: array
<aside class="blog-sidebar widgets">
<?php
if ($manager && Widget::exist('manager')) {
Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
}
$ws = array(array('title' => $speak->widget->search_form, 'content' => Widget::search()), array('title' => $speak->widget->tags, 'content' => Widget::tag()), array('title' => $speak->widget->archives, 'content' => Widget::archive()));
foreach ($ws as $w) {
Shield::chunk('block.widget', $w);
}
?>
</aside>