/** * Pull an option from the database, echo value * * @since 0.1 */ function grh_option($hook = null, $field = null) { echo grh_get_option($hook, $field); }
/** * Loads javascript to resize the header if the option isn't disabled in the settings * * @since 0.1 */ function grh_enqueue_scripts() { if (!grh_get_option('disable-script')) { wp_enqueue_script('grh-header-height', plugins_url('/genesis-responsive-header/js/resize-header.js', GRH_PLUGIN_DIR), array('jquery'), '0.1', true); } }