Exemple #1
0
 /**
  * Constructor
  *
  * @param string $id The ID of the initializer
  * @param array $data The configuration key/value pairs
  */
 public function __construct($id, $data)
 {
     parent::__construct($id, $data);
     // Boostrap Kirki
     Hooks::filter('kirki/config', $this, 'configureKirki');
     Hooks::filter('customize_register', $this, 'createPanels');
     Hooks::filter('kirki/controls', $this, 'registerControls');
     /** @noinspection PhpIncludeInspection */
     require_once Paths::vendors('aristath/kirki/kirki.php');
 }
Exemple #2
0
 /**
  * Constructor
  *
  * @param string $id   The ID of the initializer
  * @param array  $data The configuration key/value pairs
  */
 public function __construct($id, $data)
 {
     parent::__construct($id, $data);
     // If blade is enabled, include required files
     if ($this->isBladeEnabled()) {
         require_once Paths::vendors('autoload.php');
     }
     // Our themes should be properly structured, so we could also provide some common templates within a
     // different folder
     Hooks::filter('get_search_form', $this, 'suggestMoreSearchFormTemplates');
 }
Exemple #3
0
 /**
  * Constructor
  *
  * @param string $id   The ID of the initializer
  * @param array  $data The configuration key/value pairs
  */
 public function __construct($id, $data)
 {
     parent::__construct($id, $data);
     require_once Paths::vendors('tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php');
     Hooks::action('tgmpa_register', $this, 'configureTgmPluginActivationLibrary');
 }