diff --git a/igny8-wp-plugin/admin/class-post-meta-boxes.php b/igny8-wp-plugin/admin/class-post-meta-boxes.php index 1f939f49..bd21619f 100644 --- a/igny8-wp-plugin/admin/class-post-meta-boxes.php +++ b/igny8-wp-plugin/admin/class-post-meta-boxes.php @@ -30,17 +30,7 @@ class IGNY8_Post_Meta_Boxes { // Only add meta boxes for posts that have IGNY8 content ID $screen = get_current_screen(); if ($screen && $screen->post_type === 'post') { - // Keywords meta box - add_meta_box( - 'igny8_keywords', - __('IGNY8 Keywords', 'igny8-bridge'), - array($this, 'render_keywords_meta_box'), - 'post', - 'side', - 'high' - ); - - // SEO meta box + // SEO meta box (includes keywords now) add_meta_box( 'igny8_seo', __('IGNY8 SEO', 'igny8-bridge'), @@ -50,6 +40,16 @@ class IGNY8_Post_Meta_Boxes { 'high' ); + // Images meta box + add_meta_box( + 'igny8_images', + __('IGNY8 Images', 'igny8-bridge'), + array($this, 'render_images_meta_box'), + 'post', + 'side', + 'default' + ); + // Sync data meta box (read-only info) add_meta_box( 'igny8_sync_data', @@ -63,18 +63,86 @@ class IGNY8_Post_Meta_Boxes { } /** - * Render Keywords meta box + * Render Images meta box */ - public function render_keywords_meta_box($post) { - wp_nonce_field('igny8_keywords_nonce', 'igny8_keywords_nonce'); + public function render_images_meta_box($post) { + $featured_image_id = get_post_thumbnail_id($post->ID); + $gallery_images = get_post_meta($post->ID, '_igny8_gallery_images', true); + $in_article_images = get_post_meta($post->ID, '_igny8_imported_images', true); + ?> +
+ +

+
+ +

+ +

+ + + +

+ ()
+

+ + 'max-width: 60px; height: auto;')); ?> + + 4): ?> + + more + +
+

+ + + +

+
+ images embedded in content +

+ + + +

+ +
+ + + ID, '_igny8_cluster_name', true); $primary_keyword = get_post_meta($post->ID, '_igny8_primary_keyword', true); $secondary_keywords = get_post_meta($post->ID, '_igny8_secondary_keywords', true); + $meta_title = get_post_meta($post->ID, '_igny8_meta_title', true); + $meta_description = get_post_meta($post->ID, '_igny8_meta_description', true); // Convert comma-separated string to array for display $secondary_keywords_array = !empty($secondary_keywords) ? explode(',', $secondary_keywords) : array(); + ?> -
+
+ +

+ +

+ +


-
- - - ID, '_igny8_meta_title', true); - $meta_description = get_post_meta($post->ID, '_igny8_meta_description', true); - - ?> -
+