feat(admin): replicate reference post-page settings page 1:1
- rewrite post_list.page schema (JS+PHP 2.0.0) with the reference field set: three cover types with option fieldsets (image 20-200% / slide CFS_Module::slide full config with nested dependsOn / video 0-200%), hide-time, p_indent, breadcrumbs (home-text as switcher), prevnext, authordesc, maxheight slider, yiyan block, copyright, button toptext, front/after content, related posts - migrate share_s to share page basic group and post_rewards_* to users features rewards group (runtime keys unchanged) - remap get_post_page_settings() to reference keys, normalize slide cover option, hardcode non-reference runtime flags (reading progress, favorites, author card), drop dual-path legacy aliases - wire slide option into aksrt_render_slider (effect/direction/spaceBetween/ speed/interval/loop/autoplay/nav/pagination, scale vs fixed-height modes), clamp image scale 20-200 and video scale 0-200 with 16:9 fallback, wire p_indent container class + CSS, resync frontend-tags fallback and FacadeBulk fallback, remap PostMetaBox cover keys - add post-page reference contract test; update stale cover-height and user-features contract tests Validation: node --test 464/464 pass, audit-admin-contracts errors=0, vite build ok, build-public-assets ok, php -l clean.
This commit is contained in:
@@ -109,13 +109,13 @@ class PostMetaBox {
|
||||
public function render_meta_box(\WP_Post $post): void {
|
||||
$meta = self::get_meta($post->ID);
|
||||
$settings = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::get_all() : [];
|
||||
$show_image = !array_key_exists('post_article_image_cover', $settings) || !empty($settings['post_article_image_cover']);
|
||||
$show_image = !array_key_exists('article_image_cover', $settings) || !empty($settings['article_image_cover']);
|
||||
$show_slide = !array_key_exists('list_thumb_slides_s', $settings)
|
||||
|| !empty($settings['list_thumb_slides_s'])
|
||||
|| !empty($settings['post_article_slide_cover']);
|
||||
|| !empty($settings['article_slide_cover']);
|
||||
$show_video = !array_key_exists('list_thumb_video_s', $settings)
|
||||
|| !empty($settings['list_thumb_video_s'])
|
||||
|| !empty($settings['post_article_video_cover']);
|
||||
|| !empty($settings['article_video_cover']);
|
||||
|
||||
wp_nonce_field('aksrt_post_extension_save', 'aksrt_post_extension_nonce');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user