<?php

if ( ! class_exists( 'Trifold_Customizer_Bootstrap' ) ) :
/**
 * Bundled into single initialization
 * @since  1.0.0
 */
class Trifold_Customizer_Bootstrap
{

  // Stores all the controls that will be added
  protected $options;
  // Stores all the sections to be added
  protected $sections;
  // Stores all the panels to be added
  protected $panels;
  // Customizer Path
  public $customizer_path;

  /**
   * @access public
   */
  public function __construct()
  {
    $this->customizer_path = get_template_directory() . '/inc/customizer';
    $this->options  = array();
    $this->sections = array();
    $this->panels   = array();
  }

  /**
   * Call from subclasses
   * @since 1.0.0
   */
  public static function get_customizer_settings()
  {
    CL()->add_options( (new Trifold_Customizer_Register())->generate_options() );
  }
}

endif;

add_action( 'init', array( 'Trifold_Customizer_Bootstrap', 'get_customizer_settings' ) );