fix(admin): replicate reference post-feature settings page 1:1
- Rewrite post_list/feature schema (PHP + JS) with the reference theme's field set, order, defaults and dependencies; print/PDF toggles dropped - Move the migrated reference fields off the post-page schema (lightbox six switches, post like, default view/like ranges) to kill the dual path - Map PostDisplay::get_post_page_settings() to the new keys without legacy fallback: imagelightbox* (pc_s/m_s checkboxes merged), post_like_s, post_default_mate ranges, article_nav + article_nav_mobile_nav_s - Wire article_nav runtime: content data-nav/no-nav gate with per-post override, mobile drawer TOC box, imgbox_type config - Seed random views/likes on new posts from post_default_mate ranges - Keep the print stylesheet enqueued unconditionally (no switch); drop the dead print/PDF settings and needs_print requirement - Add post-feature settings reference contract test
This commit is contained in:
@@ -173,7 +173,8 @@ trait ScriptsPart1b {
|
||||
$is_paid_content_single
|
||||
);
|
||||
|
||||
if (!empty($singular_assets['needs_print'])) {
|
||||
// 打印样式(media=print):内容页常驻,无设置开关(参考主题未提供该配置)。
|
||||
if ($is_single_post || $is_single_resource || $is_static_page) {
|
||||
$print_path = get_template_directory() . '/assets/css/frontend/print.css';
|
||||
wp_enqueue_style(
|
||||
'aksrt-print',
|
||||
|
||||
Reference in New Issue
Block a user