function Add_Meta_Boxes()
 {
     global $post_type_object;
     # Enqueue Edit Gallery JavaScript/CSS
     WP_Enqueue_Script('fancy-gallery-meta-boxes', $this->core->base_url . '/meta-boxes/meta-boxes.js', array('jquery'), $this->core->version, True);
     WP_Enqueue_Style('fancy-gallery-meta-boxes', $this->core->base_url . '/meta-boxes/meta-boxes.css', False, $this->core->version);
     # Remove Meta Boxes
     Remove_Meta_Box('authordiv', $this->name, 'normal');
     Remove_Meta_Box('postexcerpt', $this->name, 'normal');
     # Change some core texts
     #Add_Filter ( 'gettext', Array($this, 'Filter_GetText'), 10, 3 );
     # Register Meta Boxes
     $this->Add_Meta_Box(I18n::t('Images'), Core::$plugin_folder . '/meta-boxes/images.php', 'normal', 'high');
     if (!$this->core->options->Get('disable_excerpts')) {
         $this->Add_Meta_Box(I18n::t('Excerpt'), Core::$plugin_folder . '/meta-boxes/excerpt.php', 'normal', 'high');
     }
     $this->Add_Meta_Box(I18n::t('Template'), Core::$plugin_folder . '/meta-boxes/template.php', 'normal', 'high');
     if (Current_User_Can($post_type_object->cap->edit_others_posts)) {
         $this->Add_Meta_Box(I18n::t('Owner'), Core::$plugin_folder . '/meta-boxes/owner.php');
     }
     $this->Add_Meta_Box(I18n::t('Gallery ShortCode'), Core::$plugin_folder . '/meta-boxes/show-code.php', 'side', 'high');
     $this->Add_Meta_Box(I18n::t('Thumbnails'), Core::$plugin_folder . '/meta-boxes/thumbnails.php', 'side');
     # Add Meta Boxes
     foreach ($this->arr_meta_box as $box_index => $meta_box) {
         Add_Meta_Box('meta-box-' . BaseName($meta_box['include_file'], '.php'), $meta_box['title'], array($this, 'Print_Gallery_Meta_Box'), $this->name, $meta_box['column'], $meta_box['priority'], $box_index);
     }
 }
 function Add_Gallery_Meta_Boxes()
 {
     global $post_type_object;
     // Enqueue Edit Gallery JavaScript/CSS
     WP_Enqueue_Script('fancy-gallery-meta-boxes', $this->base_url . '/meta-boxes.js', array('jquery'), $this->version);
     WP_Enqueue_Style('fancy-gallery-meta-boxes', $this->base_url . '/meta-boxes.css', False, $this->version);
     // Remove Meta Boxes
     Remove_Meta_Box('authordiv', $this->gallery_post_type, 'normal');
     Remove_Meta_Box('postexcerpt', $this->gallery_post_type, 'normal');
     // Change some core texts
     Add_Filter('gettext', array($this, 'Filter_GetText'), 10, 3);
     // Register Meta Boxes
     $this->Add_Gallery_Meta_Box($this->t('Images'), DirName(__FILE__) . '/gallery-meta-box-images.php', 'normal', 'high');
     if (!$this->get_option('disable_excerpts')) {
         $this->Add_Gallery_Meta_Box($this->t('Excerpt'), DirName(__FILE__) . '/gallery-meta-box-excerpt.php', 'normal', 'high');
     }
     $this->Add_Gallery_Meta_Box($this->t('Template'), DirName(__FILE__) . '/gallery-meta-box-template.php', 'normal', 'high');
     if (Current_User_Can($post_type_object->cap->edit_others_posts)) {
         $this->Add_Gallery_Meta_Box($this->t('Owner'), DirName(__FILE__) . '/gallery-meta-box-owner.php');
     }
     $this->Add_Gallery_Meta_Box($this->t('Gallery ShortCode'), DirName(__FILE__) . '/gallery-meta-box-show-code.php', 'side', 'high');
     $this->Add_Gallery_Meta_Box($this->t('Thumbnails'), DirName(__FILE__) . '/gallery-meta-box-thumbnails.php', 'side');
     // Add Meta Boxes
     foreach ($this->arr_gallery_meta_box as $box_index => $meta_box) {
         Add_Meta_Box(BaseName($meta_box['include_file'], '.php'), $meta_box['title'], array($this, 'Print_Gallery_Meta_Box'), $this->gallery_post_type, $meta_box['column'], $meta_box['priority'], $box_index);
     }
 }