302 lines
8.5 KiB
PHP
Executable File
302 lines
8.5 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="<?php echo context::global_filters($core->blog->settings->system->lang,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogLanguage'); ?>">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="ROBOTS" content="<?php echo context::robotsPolicy($core->blog->settings->system->robots_policy,''); ?>" />
|
|
|
|
<title><?php echo __('Archives'); ?> - <?php echo context::global_filters($core->blog->name,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogName'); ?></title>
|
|
<meta name="copyright" content="<?php echo context::global_filters($core->blog->settings->system->copyright_notice,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogCopyrightNotice'); ?>" />
|
|
<meta name="author" content="<?php echo context::global_filters($core->blog->settings->system->editor,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogEditor'); ?>" />
|
|
<meta name="date" content="<?php echo context::global_filters(dt::iso8601($core->blog->upddt,$core->blog->settings->system->blog_timezone),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
),'BlogUpdateDate'); ?>" />
|
|
|
|
<meta property="dc.title" lang="<?php echo context::global_filters($core->blog->settings->system->lang,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogLanguage'); ?>" content="<?php echo __('Archives'); ?> - <?php echo context::global_filters($core->blog->name,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogName'); ?>" />
|
|
<meta property="dc.language" content="<?php echo context::global_filters($core->blog->settings->system->lang,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogLanguage'); ?>" />
|
|
<meta property="dc.publisher" content="<?php echo context::global_filters($core->blog->settings->system->editor,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogEditor'); ?>" />
|
|
<meta property="dc.rights" content="<?php echo context::global_filters($core->blog->settings->system->copyright_notice,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogCopyrightNotice'); ?>" />
|
|
<meta property="dc.date" content="<?php echo context::global_filters(dt::iso8601($core->blog->upddt,$core->blog->settings->system->blog_timezone),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
),'BlogUpdateDate'); ?>" />
|
|
<meta property="dc.type" content="text" />
|
|
<meta property="dc.format" content="text/html" />
|
|
|
|
<?php
|
|
if (!isset($params)) $params = [];
|
|
$params['type'] = 'month';
|
|
if ($_ctx->exists("categories")) { $params['cat_id'] = $_ctx->categories->cat_id; }
|
|
$_ctx->archives = $core->blog->getDates($params); unset($params);
|
|
?>
|
|
<?php while ($_ctx->archives->fetch()) : ?>
|
|
<link rel="chapter" href="<?php echo context::global_filters($_ctx->archives->url($core),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'ArchiveURL'); ?>" title="<?php echo context::global_filters(dt::dt2str('%B %Y',$_ctx->archives->dt),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'ArchiveDate'); ?>" />
|
|
<?php endwhile; $_ctx->archives = null; ?>
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php echo context::global_filters($core->blog->url.$core->url->getURLFor("feed","atom"),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'type' => 'atom',
|
|
),'BlogFeedURL'); ?>" />
|
|
|
|
<?php try { echo $core->tpl->getData('_head.html'); } catch (Exception $e) {} ?>
|
|
|
|
</head>
|
|
|
|
<body class="dc-archive">
|
|
<div id="body">
|
|
<?php try { echo $core->tpl->getData('_top.html'); } catch (Exception $e) {} ?>
|
|
|
|
<div id="page" class="<?php
|
|
if (tplFreshy2Theme::$config->right_sidebar != "none")
|
|
echo "sidebar_right ";
|
|
if (tplFreshy2Theme::$config->left_sidebar != "none")
|
|
echo "sidebar_left";
|
|
?>
|
|
">
|
|
<div class="container">
|
|
<div id="main" role="main">
|
|
<div id="content">
|
|
|
|
<div class="post">
|
|
<h2 id="Archive" class="post-title"><?php echo __('Archives'); ?></h2>
|
|
|
|
<div class="post-content">
|
|
<?php
|
|
if (!isset($params)) $params = [];
|
|
$params['type'] = 'month';
|
|
if ($_ctx->exists("categories")) { $params['cat_id'] = $_ctx->categories->cat_id; }
|
|
$_ctx->archives = $core->blog->getDates($params); unset($params);
|
|
?>
|
|
<?php while ($_ctx->archives->fetch()) : ?>
|
|
<?php if ($_ctx->archives->yearHeader()) : ?>
|
|
<h3><?php echo context::global_filters(dt::dt2str('%Y',$_ctx->archives->dt),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'format' => '%Y',
|
|
),'ArchiveDate'); ?></h3>
|
|
<ul>
|
|
<?php endif; ?>
|
|
<li><a href="<?php echo context::global_filters($_ctx->archives->url($core),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'ArchiveURL'); ?>"
|
|
title="<?php echo context::global_filters(dt::dt2str('%B %Y',$_ctx->archives->dt),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'ArchiveDate'); ?>"><?php echo context::global_filters(dt::dt2str('%B',$_ctx->archives->dt),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => '1',
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'format' => '%B',
|
|
),'ArchiveDate'); ?></a>
|
|
(<?php echo context::global_filters($_ctx->archives->nb_post,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'ArchiveEntriesCount'); ?>)</li>
|
|
<?php if ($_ctx->archives->yearFooter()) : ?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
<?php endwhile; $_ctx->archives = null; ?>
|
|
</div>
|
|
</div> <!-- End #post -->
|
|
|
|
</div> <!-- End #content -->
|
|
|
|
<?php try { echo $core->tpl->getData('_sidebar.html'); } catch (Exception $e) {} ?>
|
|
|
|
</div> <!-- End #main -->
|
|
</div> <!-- End #container -->
|
|
</div> <!-- End #page -->
|
|
|
|
<?php try { echo $core->tpl->getData('_footer.html'); } catch (Exception $e) {} ?>
|
|
|
|
</div> <!-- End #body -->
|
|
</body>
|
|
</html>
|