style="background-image: url('<?php if ($this->options->drawerImageUrl): $this->options->drawerImageUrl(); else:$this->options->themeUrl('image/drawer.jpg'); endif; ?>');">
<?php $this->options->description() ?>
id="close-drawer" οnclick="$.closeDrawer()">
clear_all
action="<?php $this->options->siteUrl(); ?>"
style="padding: 0px 16px;">
style="padding: 6px 0">
Search...
-
<?php if (!empty($this->options->drawerBlock) && in_array('ShowArchive', $this->options->drawerBlock)): ?>
access_time归档
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
->parse('
{date}{count}'); ?><?php if (!empty($this->options->drawerBlock) && in_array('ShowCategory', $this->options->drawerBlock)): ?>
dashboard分类
chevron_right
<?php //$this->widget('Widget_Metas_Category_List')->listCategories('wrapClass=widget-list&showCount=true&countTemplate={%d}'); ?>
<?php $this->widget('Widget_Metas_Category_List')->to($categorys); ?>
<?php while ($categorys->next()): ?>
<?php if ($categorys->levels === 0): ?>
<?php $children = $categorys->getAllChildren($categorys->mid); ?>
is('category', $categorys->slug)): ?> class="active"<?php endif; ?>>title="<?php $categorys->name(); ?>">
class="material-icons"><?php $categorys->name(); ?>
title="<?php $categorys->name(); ?>">
class="material-icons"><?php $categorys->name(); ?>
(<?php $categorys->count(); ?>)
<?php $child = $categorys->getCategory($mid); ?>
is('category', $mid)): ?> class="active"<?php endif; ?>>title="<?php echo $child['name']; ?>">
class="material-icons"> <?php echo $child['name']; ?>
<?php if (!empty($this->options->drawerBlock) && in_array('ShowPages', $this->options->drawerBlock)): ?>
description页面
chevron_right
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while ($pages->next()): ?>
<?php if (in_array($pages->slug, drawerMenuPages())):continue; endif; ?>
href="<?php $pages->permalink(); ?>"
title="<?php $pages->title(); ?>">
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while ($pages->next()): ?>
<?php if (!in_array($pages->slug, drawerMenuPages())):continue; endif; ?>
href="<?php $pages->permalink(); ?>"
title="<?php $pages->title(); ?>">
<?php if ($pages->slug == 'about'):echo 'person';
elseif ($pages->slug == 'links'):echo 'link';
elseif ($pages->slug == 'reading'):echo 'photo_album';
elseif ($pages->slug == 'board'):echo 'sms'; endif; ?>
<?php if ($this->user->hasLogin()): ?>
href="<?php $this->options->adminUrl(); ?>"><?php _e('控制台'); ?>
<?php _e('退出'); ?>href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?>
<?php //$this->options->feedUrl(); ?><?php //_e('文章 RSS'); ?>
<?php if (!empty($this->options->homeCard) && in_array('showAllList', $this->options->homeCard)): ?>
arrow_forward
$this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives);
$COUNT_TAG = 'YYL_TPX4869';
$lastYear = 0;
$tempHtml = '';
$count = 0;
if (!$archives->have()) {
echo "
}
while ($archives->next()) {
$year_tmp = date('Y', $archives->created);
$date = date('m.d', $archives->created);
if ($year_tmp != $lastYear) {
echo str_replace($COUNT_TAG, $count . '篇', $tempHtml);
$count = 0;
$lastYear = $year_tmp;
$tempHtml = "
}
$count++;
$tempHtml .= "
{$date} {$archives->title}";};
echo str_replace($COUNT_TAG, $count . '篇', $tempHtml);
$this->destory('Widget_Contents_Post_Recent'); ?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史