public function addMetaBoxes()
 {
     if (!is_admin()) {
         return;
     }
     $customPostTypes = $this->getCustomPostTypesFromSettings();
     foreach ($customPostTypes as $customPostType) {
         if (!isset($customPostType['name'], $customPostType['fieldBlocks']) || !is_array($customPostType['fieldBlocks']) || count($customPostType['fieldBlocks']) == 0) {
             continue;
         }
         ChesterWPAlchemyHelpers::setupFieldBlocks($customPostType['name'], $customPostType['fieldBlocks']);
     }
     $customPages = $this->getCustomPagesFromSettings();
     foreach ($customPages as $customPage) {
         if (!isset($customPage['name'], $customPage['fieldBlocks'], $customPage['pageId']) || !is_array($customPage['fieldBlocks']) || count($customPage['fieldBlocks']) == 0) {
             continue;
         }
         ChesterWPAlchemyHelpers::setupFieldBlocksForPage($customPage['pageId'], $customPage['name'], $customPage['fieldBlocks']);
     }
 }
<?php

ChesterWPAlchemyHelpers::showFields($mb);