fix(frontend): align article list metadata and pagination
This commit is contained in:
@@ -273,25 +273,11 @@ if (!function_exists('aksrt_homepage_render_pagination')) {
|
||||
}
|
||||
|
||||
$contract = aksrt_homepage_get_latest_panel_contract();
|
||||
?>
|
||||
<div class="ajax-pagination aksrt-pagination-ajax"
|
||||
data-mode="<?php echo esc_attr($pagination_mode); ?>"
|
||||
data-next-page="<?php echo esc_attr($current_page + 1); ?>"
|
||||
data-max-pages="<?php echo esc_attr($max_pages); ?>"
|
||||
data-query-context="<?php echo esc_attr($contract['query_context']); ?>"
|
||||
data-query-vars="<?php echo esc_attr($contract['query_vars']); ?>"
|
||||
data-render-config="<?php echo esc_attr($contract['render_config']); ?>"
|
||||
data-page="<?php echo esc_attr($current_page); ?>"
|
||||
data-tab="latest">
|
||||
<a href="javascript:;" class="ajax-next aksrt-load-more-btn">
|
||||
<?php esc_html_e('加载更多', 'aksrt'); ?>
|
||||
</a>
|
||||
<div class="aksrt-loading-indicator" style="display:none;" aria-hidden="true">
|
||||
<i class="fas fa-spinner fa-spin"></i>
|
||||
<span><?php esc_html_e('加载中...', 'aksrt'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
aksrt_render_pagination($query, [
|
||||
'query_context' => $contract['query_context'],
|
||||
'render_config' => $contract['render_config_array'],
|
||||
'current_page' => $current_page,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user