Example #1
0
 /**
  * The class constructor
  */
 private function __construct()
 {
     $this->set_is_updating();
     // Multilingual handling
     self::multilingual_options();
     // Make sure that $option_name is set.
     // This is run AFTER the multilingual option as a fallback.
     if (empty(self::$option_name)) {
         self::$option_name = self::get_option_name();
     }
     // Instantiate secondary classes
     $this->settings = Avada_Settings::get_instance();
     $this->options = Avada_Options::get_instance();
     $this->init = new Avada_Init();
     $this->social_sharing = new Avada_Social_Sharing();
     $this->template = new Avada_Template();
     $this->blog = new Avada_Blog();
     $this->images = new Avada_Images();
     $this->head = new Avada_Head();
     $this->dynamic_css = new Avada_Dynamic_CSS();
     $this->layout = new Avada_Layout();
     $this->google_map = new Avada_GoogleMap();
     add_action('wp', array($this, 'set_page_id'));
 }
 /**
  * The class constructor
  */
 public function __construct()
 {
     self::$saved_options = get_option(Avada::get_option_name());
     self::$options_with_id = Avada_Options::get_option_fields();
 }