, once only (removed from header.php).
aksrt_homepage_render_widget_zone(
['home_top_fluid'],
'fluid-widget-wrap aksrt-homepage__fluid-zone aksrt-homepage__fluid-zone--top'
);
?>
> $tab_configs Configured term tabs.
*/
function aksrt_homepage_get_tab_header_html(array $tab_configs): string {
$list_title = class_exists('\AKSRT\Settings\Settings')
? \AKSRT\Settings\Settings::home_list_title()
: '';
$fallback_title = $list_title !== '' ? $list_title : __('最新发布', 'aksrt');
$paged = aksrt_homepage_get_current_page();
//不是第一页
if ($paged > 1) {
return '
' . $fallback_title
. '' . esc_html(sprintf(__('第%s页', 'aksrt'), $paged)) . '
';
}
$index_tab_nav = '';
foreach ($tab_configs as $index => $tab_cfg) {
$index_tab_nav .= '' . wp_kses_post($list_title) . '
'
: '