{php} /** * Personal home content, matching the legacy home.php timeline layout. */ {/php} {include file="component/sticky_module" /}
{php} if (!empty($articles)) { $currentYear = ''; foreach ($articles as $article) { $time = strtotime($article['ptptime'] ?? '') ?: time(); $year = date('Y', $time); if ($year !== $currentYear) { $currentYear = $year; if ($year !== date('Y')) { echo '

' . $year . '

'; } } echo \think\facade\View::fetch('component/timeline_item', [ 'post' => $article, 'siteConfig' => $siteConfig, 'showAuditLock' => true, 'appendFms' => false ]); } } {/php}