source/php/Options/General.php
public function addMetaBoxes()
    {
	// Publish
	add_meta_box(
	    'modularity-mb-publish',
	    __('Save options', 'modularity'),
	    function () {
		$templatePath = \Modularity\Helper\Wp::getTemplate('publish', 'options/partials');
		include $templatePath;
	    },
	    $this->screenHook,
	    'side'
	);

	// Core options
	add_meta_box(
	    'modularity-mb-core-options',
	    __('Core options', 'modularity'),
	    function () {
		$templatePath = \Modularity\Helper\Wp::getTemplate('core-options', 'options/partials');
		include $templatePath;
	    },
	    $this->screenHook,
	    'normal'
	);

	if (has_action('Modularity/Options/Module')) {
	    add_meta_box(
		'modularity-mb-module-options',
		__('Module options', 'modularity'),
		function () {
		    do_action('Modularity/Options/Module');
		},
		$this->screenHook,
		'normal'
	    );
	}

	// Modules
	add_meta_box(
	    'modularity-mb-post-types',
	    __('Post types', 'modularity'),
	    array($this, 'metaBoxPostTypes'),
	    $this->screenHook,
	    'normal'
	);

	// Templates and areas
	add_meta_box(
	    'modularity-mb-template-areas',
	    __('Template areas', 'modularity'),
	    array($this, 'metaBoxTemplateAreas'),
	    $this->screenHook,
	    'normal'
	);

	// Modules
	add_meta_box(
	    'modularity-mb-modules',
	    __('Modules', 'modularity'),
	    array($this, 'metaBoxModules'),
	    $this->screenHook,
	    'normal'
	);
    }
public function addMetaBoxes()
    {
	// Publish
	add_meta_box(
	    'modularity-mb-publish',
	    __('Save options', 'modularity'),
	    function () {
		$templatePath = \Modularity\Helper\Wp::getTemplate('publish', 'options/partials');
		include $templatePath;
	    },
	    $this->screenHook,
	    'side'
	);

	// Core options
	add_meta_box(
	    'modularity-mb-core-options',
	    __('Core options', 'modularity'),
	    function () {
		$templatePath = \Modularity\Helper\Wp::getTemplate('core-options', 'options/partials');
		include $templatePath;
	    },
	    $this->screenHook,
	    'normal'
	);

	if (has_action('Modularity/Options/Module')) {
	    add_meta_box(
		'modularity-mb-module-options',
		__('Module options', 'modularity'),
		function () {
		    do_action('Modularity/Options/Module');
		},
		$this->screenHook,
		'normal'
	    );
	}

	// Modules
	add_meta_box(
	    'modularity-mb-post-types',
	    __('Post types', 'modularity'),
	    array($this, 'metaBoxPostTypes'),
	    $this->screenHook,
	    'normal'
	);

	// Templates and areas
	add_meta_box(
	    'modularity-mb-template-areas',
	    __('Template areas', 'modularity'),
	    array($this, 'metaBoxTemplateAreas'),
	    $this->screenHook,
	    'normal'
	);

	// Modules
	add_meta_box(
	    'modularity-mb-modules',
	    __('Modules', 'modularity'),
	    array($this, 'metaBoxModules'),
	    $this->screenHook,
	    'normal'
	);
    }
public function addMetaBoxes ( ) { // Publish add_meta_box ( 'modularity-mb-publish' , __ ( 'Save options' , 'modularity' ) , function ( ) { $ templatePath = \ Modularity \ Helper \ Wp :: getTemplate ( 'publish' , 'options/partials' ) ; include $ templatePath ; } , $ this -> screenHook , 'side' ) ; // Core options add_meta_box ( 'modularity-mb-core-options' , __ ( 'Core options' , 'modularity' ) , function ( ) { $ templatePath = \ Modularity \ Helper \ Wp :: getTemplate ( 'core-options' , 'options/partials' ) ; include $ templatePath ; } , $ this -> screenHook , 'normal' ) ; if ( has_action ( 'Modularity/Options/Module' ) ) { add_meta_box ( 'modularity-mb-module-options' , __ ( 'Module options' , 'modularity' ) , function ( ) { do_action ( 'Modularity/Options/Module' ) ; } , $ this -> screenHook , 'normal' ) ; } // Modules add_meta_box ( 'modularity-mb-post-types' , __ ( 'Post types' , 'modularity' ) , array ( $ this , 'metaBoxPostTypes' ) , $ this -> screenHook , 'normal' ) ; // Templates and areas add_meta_box ( 'modularity-mb-template-areas' , __ ( 'Template areas' , 'modularity' ) , array ( $ this , 'metaBoxTemplateAreas' ) , $ this -> screenHook , 'normal' ) ; // Modules add_meta_box ( 'modularity-mb-modules' , __ ( 'Modules' , 'modularity' ) , array ( $ this , 'metaBoxModules' ) , $ this -> screenHook , 'normal' ) ; }
Adds meta boxes to the general options page
@return void
Adds meta boxes to the general options page