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); + ?> +
+
+
+
+ ()
+
+
+ images embedded in content
+
+ +
+ +