Archives
{$archive_year} • {$archive_month}
{'!archives.get.years' | snippet : [
'cacheKey' => 'wopc/archives',
'cacheElementKey' => 'years',
'element' => 'archives.get.years',
'cacheExpires' => 2,
'debug' => 0
]}
{set $start_date = 0}
{set $end_date = time()}
{if $archive_year && $archive_month}
{set $start_date = strtotime("1 $archive_month $archive_year")}
{set $end_date = strtotime("last day of $archive_month $archive_year 23:59:59")}
{/if}
{'!getCache' | snippet : [
'cacheKey' => 'wopc-archives/' ~ $archive_year,
'cacheElementKey' => $archive_month,
'cacheExpires' => 86400,
'element' => 'pdoResources',
'tpl' => 'card.wide',
'tvPrefix' => '',
'includeTVs' => 'first-image,year',
'showHidden' => '0',
'parents' => '0',
'limit' => '401',
'totalVar' => 'totalitems',
'tplPageWrapper' => '@INLINE ',
'context' => 'web',
'where' => [
'template' => 8,
'publishedon:>=' => $start_date,
'publishedon:<=' => $end_date
],
'sortby' => 'publishedon',
'sortdir' => 'DESC',
'showLog' => 0
]}
{$totalitems}
[[!+page.nav]]