/** * @return FW_Ext_Builder_Templates_Component[] */ private static function get_components() { if (is_null(self::$components)) { self::$components = array(); self::$registration_is_allowed = true; do_action('fw_ext_builder:template_components_register'); self::$registration_is_allowed = false; foreach (self::$components as $component) { $component->_init(); } } return self::$components; }
function _action_fw_ext_builder_template_component_full() { require_once dirname(__FILE__) . '/class-fw-ext-builder-templates-component-full.php'; FW_Ext_Builder_Templates::register_component(new FW_Ext_Builder_Templates_Component_Full()); }
<?php if (!defined('FW')) { die('Forbidden'); } require_once dirname(__FILE__) . '/class-fw-ext-builder-templates-component.php'; require_once dirname(__FILE__) . '/class-fw-ext-builder-templates.php'; foreach (array('full') as $component_id) { require_once dirname(__FILE__) . '/components/' . $component_id . '/init.php'; } FW_Ext_Builder_Templates::_init();