core/Theme.php
public function getThemeOption($key, $default = null)
    {
        $options = get_option('novusopress_theme_options') ?: [];

        if (array_key_exists($key, $options)) {
            return apply_filters(sprintf('novusopress_theme_options_%s', $key), $options[$key]);
        }

        $defaults = $this->getThemeDefaultOptions();

        if (array_key_exists($key, $defaults)) {
            return apply_filters(sprintf('novusopress_theme_options_%s', $key), $defaults[$key]);
        }

        return $default;
    }
public function getThemeOption($key, $default = null)
    {
        $options = get_option('novusopress_theme_options') ?: [];

        if (array_key_exists($key, $options)) {
            return apply_filters(sprintf('novusopress_theme_options_%s', $key), $options[$key]);
        }

        $defaults = $this->getThemeDefaultOptions();

        if (array_key_exists($key, $defaults)) {
            return apply_filters(sprintf('novusopress_theme_options_%s', $key), $defaults[$key]);
        }

        return $default;
    }
public function getThemeOption ( $ key , $ default = null ) { $ options = get_option ( 'novusopress_theme_options' ) ? : [ ] ; if ( array_key_exists ( $ key , $ options ) ) { return apply_filters ( sprintf ( 'novusopress_theme_options_%s' , $ key ) , $ options [ $ key ] ) ; } $ defaults = $ this -> getThemeDefaultOptions ( ) ; if ( array_key_exists ( $ key , $ defaults ) ) { return apply_filters ( sprintf ( 'novusopress_theme_options_%s' , $ key ) , $ defaults [ $ key ] ) ; } return $ default ; }
Retrieves theme option

@param string $key     The theme option key
@param mixed  $default A default value to return if the option is undefined

@return mixed
Retrieves theme option