default_settings = include ROCKSITE_THEME_CONFIG . 'default-values.php'; // customizer $this->customizer_panels = include ROCKSITE_THEME_CONFIG . 'customizer/customizer-panels.php'; $this->customizer_sections = include ROCKSITE_THEME_CONFIG . 'customizer/customizer-sections.php'; $this->customizer_fields = include ROCKSITE_THEME_CONFIG . 'customizer/customizer-fields.php'; } public function get_theme_mod( $key ) { if (isset( self::$theme_mods[ $key ] )) { return self::$theme_mods[ $key ]; } return false; } public function get_customizer_panels() { return $this->customizer_panels; } public function get_customizer_sections() { return $this->customizer_sections; } public function get_customizer_fields() { return $this->customizer_fields; } /** * Return styles assets * @return bool */ public function get_css_assets() { if (isset( $this->theme_assets[ 'styles' ] )) { return $this->theme_assets[ 'styles' ]; } else { return false; } } /** * Return styles assets * @return bool */ public function get_js_assets() { if (isset( $this->theme_assets[ 'scripts' ] )) { return $this->theme_assets[ 'scripts' ]; } else { return false; } } /** * Return theme fonts from the config * @return mixed */ public function get_fonts( $key=false) { if ($key === false) { return $this->theme_fonts; } else { foreach ($this->theme_fonts[$key] as $font_name => $value ) { return $font_name; } } } /** * Return google font url params * @param $key * @return string/bool */ public function get_google_font($key) { if( isset($this->theme_fonts['supported_google_fonts'][$key])) { return $this->theme_fonts['supported_google_fonts'][$key]; } else { return false; } } /** * Return all font options * @return mixed */ public function get_google_fonts_options() { return $this->theme_fonts['options_google_fonts']; } /** * Returns theme version * @return mixed */ public function version() { return $this->theme_info->Version; } public function get_sidebars() { return $this->sidebars; } public function get_project_variables( $key=false ) { if( $key !==false ) { return $this->project_variables[$key]; } else { return $this->project_variables; } } } }