Plugin Directory

Changeset 1719627


Ignore:
Timestamp:
08/25/2017 10:30:01 PM (9 years ago)
Author:
oxsn
Message:

General Updates

Location:
helpful-features/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • helpful-features/trunk/css/form-style.css

    r1719453 r1719627  
    99input[type=date],
    1010input[type=tel],
     11input[type=url],
    1112input[type=email],
    1213input[type=number],
  • helpful-features/trunk/helpful-features.php

    r1719453 r1719627  
    99Author: OXSN
    1010Author URI: https://profiles.wordpress.org/oxsn
    11 Version: 0.2.9
     11Version: 0.2.10
    1212*/
    1313
     
    861861                    'section' => 'hefe_getting_started_customizer_section',
    862862                    'label' => 'Shortcode Name',
    863                     'description' => __('Enter the name you want all shortcodes to begin with.'),
     863                    'description' => 'Enter the name you want all shortcodes to begin with.',
    864864                    'input_attrs' => array(
    865865                        'placeholder' => 'client_name',
    866866                    ),
    867867                )));
    868                 $wp_customize->add_setting('hefe_getting_started_customizer_control_disable_admin_bar_by_user_roles', array(
    869                     'type' => 'option',
    870                 ));
    871                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_disable_admin_bar_by_user_roles', array(
     868                $wp_customize->add_setting('hefe_customizer_control_disable_admin_bar_by_user_roles', array(
     869                    'type' => 'option',
     870                ));
     871                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_disable_admin_bar_by_user_roles', array(
    872872                    'type' => '',
    873873                    'priority' => '',
    874874                    'section' => 'hefe_getting_started_customizer_section',
    875875                    'label' => 'Disable Admin Bar',
    876                     'description' => __('Disable the admin bar for only a list of comma seperated user roles.'),
     876                    'description' => 'Disable the admin bar for only a list of comma seperated user roles.',
    877877                    'input_attrs' => array(
    878878                        'placeholder' => 'editor,subscriber',
    879879                    ),
    880880                )));
    881                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enable_admin_bar_by_user_roles', array(
    882                     'type' => 'option',
    883                 ));
    884                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enable_admin_bar_by_user_roles', array(
     881                $wp_customize->add_setting('hefe_customizer_control_enable_admin_bar_by_user_roles', array(
     882                    'type' => 'option',
     883                ));
     884                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enable_admin_bar_by_user_roles', array(
    885885                    'type' => '',
    886886                    'priority' => '',
    887887                    'section' => 'hefe_getting_started_customizer_section',
    888888                    'label' => 'Enable Admin Bar',
    889                     'description' => __('Enable the admin bar for only a list of comma seperated user roles.'),
     889                    'description' => 'Enable the admin bar for only a list of comma seperated user roles.',
    890890                    'input_attrs' => array(
    891891                        'placeholder' => 'editor,subscriber',
    892892                    ),
    893893                )));
    894                 $wp_customize->add_setting('hefe_getting_started_customizer_control_exclude_from_search_page_ids', array(
    895                     'type' => 'option',
    896                 ));
    897                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_exclude_from_search_page_ids', array(
     894                $wp_customize->add_setting('hefe_customizer_control_exclude_from_search_page_ids', array(
     895                    'type' => 'option',
     896                ));
     897                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_exclude_from_search_page_ids', array(
    898898                    'type' => '',
    899899                    'priority' => '',
     
    905905                    ),
    906906                )));
    907                 $wp_customize->add_setting('hefe_getting_started_customizer_control_exclude_from_search_post_types', array(
    908                     'type' => 'option',
    909                 ));
    910                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_exclude_from_search_post_types', array(
     907                $wp_customize->add_setting('hefe_customizer_control_exclude_from_search_post_types', array(
     908                    'type' => 'option',
     909                ));
     910                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_exclude_from_search_post_types', array(
    911911                    'type' => '',
    912912                    'priority' => '',
    913913                    'section' => 'hefe_getting_started_customizer_section',
    914914                    'label' => 'Exclude Post Types From Search',
    915                     'description' => __('Exclude pages from the search by a list of comma seperated post types.'),
     915                    'description' => 'Exclude pages from the search by a list of comma seperated post types.',
    916916                    'input_attrs' => array(
    917917                        'placeholder' => 'page,post',
    918918                    ),
    919919                )));
    920                 $wp_customize->add_setting('hefe_getting_started_customizer_control_google_analytics_ua_code', array(
    921                     'type' => 'option',
    922                 ));
    923                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_google_analytics_ua_code', array(
     920                $wp_customize->add_setting('hefe_customizer_control_google_analytics_ua_code', array(
     921                    'type' => 'option',
     922                ));
     923                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_google_analytics_ua_code', array(
    924924                    'type' => '',
    925925                    'priority' => '',
     
    931931                    ),
    932932                )));
    933                 $wp_customize->add_setting('hefe_getting_started_customizer_control_google_fonts_url', array(
    934                     'type' => 'option',
    935                 ));
    936                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_google_fonts_url', array(
     933                $wp_customize->add_setting('hefe_customizer_control_google_fonts_url', array(
     934                    'type' => 'option',
     935                ));
     936                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_google_fonts_url', array(
    937937                    'type' => '',
    938938                    'priority' => '',
     
    944944                    ),
    945945                )));
    946                 $wp_customize->add_setting('hefe_getting_started_customizer_control_home_post_type_post_types', array(
     946                $wp_customize->add_setting('hefe_customizer_control_home_post_type_post_types', array(
    947947                    'type' => 'option',
    948948                    'default' => '',
    949949                ));
    950                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_home_post_type_post_types', array(
     950                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_home_post_type_post_types', array(
    951951                    'type' => '',
    952952                    'priority' => '',
     
    958958                    ),
    959959                )));
    960                 $wp_customize->add_setting('hefe_getting_started_customizer_control_home_post_type_status', array(
     960                $wp_customize->add_setting('hefe_customizer_control_home_post_type_status', array(
    961961                    'type' => 'option',
    962962                    'default' => 'any',
    963963                ));
    964                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_home_post_type_status', array(
     964                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_home_post_type_status', array(
    965965                    'type' => '',
    966966                    'priority' => '',
     
    972972                    ),
    973973                )));
    974                 $wp_customize->add_setting('hefe_getting_started_customizer_control_custom_author_base', array(
     974                $wp_customize->add_setting('hefe_customizer_control_custom_author_base', array(
    975975                    'type' => 'option',
    976976                    'default' => 'author',
    977977                ));
    978                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_custom_author_base', array(
     978                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_custom_author_base', array(
    979979                    'type' => '',
    980980                    'priority' => '',
     
    986986                    ),
    987987                )));
    988                 $wp_customize->add_setting('hefe_getting_started_customizer_control_home_page_random_order', array(
     988                $wp_customize->add_setting('hefe_customizer_control_home_page_random_order', array(
    989989                    'type' => 'option',
    990990                    'sanitize_callback' => 'sanitize_text_field',
    991991                    'default' => '',
    992992                ));
    993                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_home_page_random_order', array(
     993                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_home_page_random_order', array(
    994994                    'type' => 'checkbox',
    995995                    'priority' => '',
     
    998998                    'description' => 'Would you like the home page to randomize the post order?',
    999999                )));
    1000                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_colors', array(
     1000                $wp_customize->add_setting('hefe_customizer_control_enqueue_colors', array(
    10011001                    'type' => 'option',
    10021002                    'sanitize_callback' => 'sanitize_text_field',
    10031003                    'default' => '',
    10041004                ));
    1005                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_colors', array(
     1005                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_colors', array(
    10061006                    'type' => 'checkbox',
    10071007                    'priority' => '',
     
    10101010                    'description' => 'Would you like Colors code loaded on every page of your site?',
    10111011                )));
    1012                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_form', array(
     1012                $wp_customize->add_setting('hefe_customizer_control_enqueue_form', array(
    10131013                    'type' => 'option',
    10141014                    'sanitize_callback' => 'sanitize_text_field',
    10151015                    'default' => '',
    10161016                ));
    1017                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_form', array(
     1017                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_form', array(
    10181018                    'type' => 'checkbox',
    10191019                    'priority' => '',
     
    10221022                    'description' => 'Would you like Form code loaded on every page of your site?',
    10231023                )));
    1024                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_theme', array(
     1024                $wp_customize->add_setting('hefe_customizer_control_enqueue_theme', array(
    10251025                    'type' => 'option',
    10261026                    'sanitize_callback' => 'sanitize_text_field',
    10271027                    'default' => '',
    10281028                ));
    1029                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_theme', array(
     1029                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_theme', array(
    10301030                    'type' => 'checkbox',
    10311031                    'priority' => '',
     
    10341034                    'description' => 'Would you like Theme code loaded on every page of your site?',
    10351035                )));
    1036                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_wordpress', array(
     1036                $wp_customize->add_setting('hefe_customizer_control_enqueue_wordpress', array(
    10371037                    'type' => 'option',
    10381038                    'sanitize_callback' => 'sanitize_text_field',
    10391039                    'default' => '',
    10401040                ));
    1041                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_wordpress', array(
     1041                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_wordpress', array(
    10421042                    'type' => 'checkbox',
    10431043                    'priority' => '',
     
    10461046                    'description' => 'Would you like WordPress code loaded on every page of your site?',
    10471047                )));
    1048                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_border', array(
     1048                $wp_customize->add_setting('hefe_customizer_control_enqueue_border', array(
    10491049                    'type' => 'option',
    10501050                    'sanitize_callback' => 'sanitize_text_field',
    10511051                    'default' => '',
    10521052                ));
    1053                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_border', array(
     1053                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_border', array(
    10541054                    'type' => 'checkbox',
    10551055                    'priority' => '',
     
    10581058                    'description' => 'Would you like Border code loaded on every page of your site?',
    10591059                )));
    1060                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_display', array(
     1060                $wp_customize->add_setting('hefe_customizer_control_enqueue_display', array(
    10611061                    'type' => 'option',
    10621062                    'sanitize_callback' => 'sanitize_text_field',
    10631063                    'default' => '',
    10641064                ));
    1065                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_display', array(
     1065                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_display', array(
    10661066                    'type' => 'checkbox',
    10671067                    'priority' => '',
     
    10701070                    'description' => 'Would you like Display code loaded on every page of your site?',
    10711071                )));
    1072                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_float', array(
     1072                $wp_customize->add_setting('hefe_customizer_control_enqueue_float', array(
    10731073                    'type' => 'option',
    10741074                    'sanitize_callback' => 'sanitize_text_field',
    10751075                    'default' => '',
    10761076                ));
    1077                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_float', array(
     1077                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_float', array(
    10781078                    'type' => 'checkbox',
    10791079                    'priority' => '',
     
    10821082                    'description' => 'Would you like Float code loaded on every page of your site?',
    10831083                )));
    1084                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_margin', array(
     1084                $wp_customize->add_setting('hefe_customizer_control_enqueue_margin', array(
    10851085                    'type' => 'option',
    10861086                    'sanitize_callback' => 'sanitize_text_field',
    10871087                    'default' => '',
    10881088                ));
    1089                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_margin', array(
     1089                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_margin', array(
    10901090                    'type' => 'checkbox',
    10911091                    'priority' => '',
     
    10941094                    'description' => 'Would you like Margin code loaded on every page of your site?',
    10951095                )));
    1096                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_padding', array(
     1096                $wp_customize->add_setting('hefe_customizer_control_enqueue_padding', array(
    10971097                    'type' => 'option',
    10981098                    'sanitize_callback' => 'sanitize_text_field',
    10991099                    'default' => '',
    11001100                ));
    1101                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_padding', array(
     1101                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_padding', array(
    11021102                    'type' => 'checkbox',
    11031103                    'priority' => '',
     
    11061106                    'description' => 'Would you like Padding code loaded on every page of your site?',
    11071107                )));
    1108                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_text', array(
     1108                $wp_customize->add_setting('hefe_customizer_control_enqueue_text', array(
    11091109                    'type' => 'option',
    11101110                    'sanitize_callback' => 'sanitize_text_field',
    11111111                    'default' => '',
    11121112                ));
    1113                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_text', array(
     1113                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_text', array(
    11141114                    'type' => 'checkbox',
    11151115                    'priority' => '',
     
    11181118                    'description' => 'Would you like Text code loaded on every page of your site?',
    11191119                )));
    1120                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_width', array(
     1120                $wp_customize->add_setting('hefe_customizer_control_enqueue_width', array(
    11211121                    'type' => 'option',
    11221122                    'sanitize_callback' => 'sanitize_text_field',
    11231123                    'default' => '',
    11241124                ));
    1125                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_width', array(
     1125                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_width', array(
    11261126                    'type' => 'checkbox',
    11271127                    'priority' => '',
     
    11301130                    'description' => 'Would you like Width code loaded on every page of your site?',
    11311131                )));
    1132                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_html5shiv_js', array(
     1132                $wp_customize->add_setting('hefe_customizer_control_enqueue_html5shiv_js', array(
    11331133                    'type' => 'option',
    11341134                    'sanitize_callback' => 'sanitize_text_field',
    11351135                    'default' => '',
    11361136                ));
    1137                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_html5shiv_js', array(
     1137                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_html5shiv_js', array(
    11381138                    'type' => 'checkbox',
    11391139                    'priority' => '',
     
    11421142                    'description' => 'Would you like HTML5SHIV.JS code loaded on every page of your site?',
    11431143                )));
    1144                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_normalize_css', array(
     1144                $wp_customize->add_setting('hefe_customizer_control_enqueue_normalize_css', array(
    11451145                    'type' => 'option',
    11461146                    'sanitize_callback' => 'sanitize_text_field',
    11471147                    'default' => '',
    11481148                ));
    1149                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_normalize_css', array(
     1149                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_normalize_css', array(
    11501150                    'type' => 'checkbox',
    11511151                    'priority' => '',
     
    11541154                    'description' => 'Would you like Normalize.CSS code loaded on every page of your site?',
    11551155                )));
    1156                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_placeholders_js', array(
     1156                $wp_customize->add_setting('hefe_customizer_control_enqueue_placeholders_js', array(
    11571157                    'type' => 'option',
    11581158                    'sanitize_callback' => 'sanitize_text_field',
    11591159                    'default' => '',
    11601160                ));
    1161                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_placeholders_js', array(
     1161                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_placeholders_js', array(
    11621162                    'type' => 'checkbox',
    11631163                    'priority' => '',
     
    11661166                    'description' => 'Would you like Placeholders.JS code loaded on every page of your site?',
    11671167                )));
    1168                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_respond_js', array(
     1168                $wp_customize->add_setting('hefe_customizer_control_enqueue_respond_js', array(
    11691169                    'type' => 'option',
    11701170                    'sanitize_callback' => 'sanitize_text_field',
    11711171                    'default' => '',
    11721172                ));
    1173                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_respond_js', array(
     1173                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_respond_js', array(
    11741174                    'type' => 'checkbox',
    11751175                    'priority' => '',
     
    11781178                    'description' => 'Would you like Respond.JS code loaded on every page of your site?',
    11791179                )));
    1180                 $wp_customize->add_setting('hefe_getting_started_customizer_control_enqueue_selectivizr_js', array(
     1180                $wp_customize->add_setting('hefe_customizer_control_enqueue_selectivizr_js', array(
    11811181                    'type' => 'option',
    11821182                    'sanitize_callback' => 'sanitize_text_field',
    11831183                    'default' => '',
    11841184                ));
    1185                 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_getting_started_customizer_control_enqueue_selectivizr_js', array(
     1185                $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'hefe_customizer_control_enqueue_selectivizr_js', array(
    11861186                    'type' => 'checkbox',
    11871187                    'priority' => '',
     
    29892989
    29902990// Google Analytics UA Code
    2991 if(get_option('hefe_getting_started_customizer_control_google_analytics_ua_code')){
     2991if(get_option('hefe_customizer_control_google_analytics_ua_code')){
    29922992    if(!function_exists('hefe_function_header_inc_google_analytics_script')){
    29932993        add_action('wp_head', 'hefe_function_header_inc_google_analytics_script');
     
    29992999                      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    30003000
    3001                       ga('create', '".get_option('hefe_getting_started_customizer_control_google_analytics_ua_code')."', 'auto');
     3001                      ga('create', '".get_option('hefe_customizer_control_google_analytics_ua_code')."', 'auto');
    30023002                      ga('send', 'pageview');
    30033003
     
    34423442
    34433443// Custom Author Base
    3444 if(get_option('hefe_getting_started_customizer_control_custom_author_base')){
     3444if(get_option('hefe_customizer_control_custom_author_base')){
    34453445    if(!function_exists('hefe_function_init_custom_author_base')){
    34463446        add_action('init', 'hefe_function_init_custom_author_base');
    34473447        function hefe_function_init_custom_author_base() {
    34483448            global $wp_rewrite;
    3449             $author_slug = sanitize_text_field(get_option('hefe_getting_started_customizer_control_custom_author_base'));
     3449            $author_slug = sanitize_text_field(get_option('hefe_customizer_control_custom_author_base'));
    34503450            $wp_rewrite->author_base = $author_slug;
    34513451        }
     
    34543454
    34553455// Exclude Post Types From Search
    3456 if(get_option('hefe_getting_started_customizer_control_exclude_from_search_post_types')){
     3456if(get_option('hefe_customizer_control_exclude_from_search_post_types')){
    34573457    if(!function_exists('hefe_function_init_exclude_from_search_post_types')){
    34583458        add_action('init', 'hefe_function_init_exclude_from_search_post_types');
    34593459        function hefe_function_init_exclude_from_search_post_types(){
    34603460            global $wp_post_types;
    3461             $hefe_exclude_from_search_post_types_variables = explode(',', str_replace(' ', '', get_option('hefe_getting_started_customizer_control_exclude_from_search_post_types')));
     3461            $hefe_exclude_from_search_post_types_variables = explode(',', str_replace(' ', '', get_option('hefe_customizer_control_exclude_from_search_post_types')));
    34623462            foreach($hefe_exclude_from_search_post_types_variables as $hefe_exclude_from_search_post_types_variable):
    34633463                $wp_post_types[$hefe_exclude_from_search_post_types_variable]->exclude_from_search = true;
     
    34683468
    34693469// Exclude Page IDs From Search
    3470 if(get_option('hefe_getting_started_customizer_control_exclude_from_search_page_ids')){
     3470if(get_option('hefe_customizer_control_exclude_from_search_page_ids')){
    34713471    if(!function_exists('hefe_function_init_exclude_from_search_page_ids')){
    34723472        add_action('pre_get_posts', 'hefe_function_init_exclude_from_search_page_ids');
    34733473        function hefe_function_init_exclude_from_search_page_ids($query){
    3474             $hefe_exclude_from_search_page_ids_variables = explode(',', str_replace(' ', '', get_option('hefe_getting_started_customizer_control_exclude_from_search_page_ids')));
     3474            $hefe_exclude_from_search_page_ids_variables = explode(',', str_replace(' ', '', get_option('hefe_customizer_control_exclude_from_search_page_ids')));
    34753475            $hefe_exclude_from_search_page_ids_array = array();
    34763476            foreach($hefe_exclude_from_search_page_ids_variables as $hefe_exclude_from_search_page_ids_variable):
     
    38653865        }
    38663866        // Getting Started
    3867         if(get_option('hefe_getting_started_customizer_control_google_fonts_url')){
    3868             wp_enqueue_style('hefe-starter-google-fonts-style', get_option('hefe_getting_started_customizer_control_google_fonts_url'), array(), '1.0.0', 'all');
    3869         }
    3870         if(get_option('hefe_getting_started_customizer_control_enqueue_colors')){
     3867        if(get_option('hefe_customizer_control_google_fonts_url')){
     3868            wp_enqueue_style('hefe-starter-google-fonts-style', get_option('hefe_customizer_control_google_fonts_url'), array(), '1.0.0', 'all');
     3869        }
     3870        if(get_option('hefe_customizer_control_enqueue_colors')){
    38713871            wp_enqueue_style('hefe-starter-colors-style', hefe_dir_url.'css/colors-style.css', array(), '1.0.0', 'all');
    38723872        }
    3873         if(get_option('hefe_getting_started_customizer_control_enqueue_form')){
     3873        if(get_option('hefe_customizer_control_enqueue_form')){
    38743874            wp_enqueue_style('hefe-starter-form-style', hefe_dir_url.'css/form-style.css', array(), '1.0.0', 'all');
    38753875        }
    3876         if(get_option('hefe_getting_started_customizer_control_enqueue_theme')){
     3876        if(get_option('hefe_customizer_control_enqueue_theme')){
    38773877            wp_enqueue_style('hefe-starter-theme-style', hefe_dir_url.'css/theme-style.css', array(), '1.0.0', 'all');
    38783878        }
    3879         if(get_option('hefe_getting_started_customizer_control_enqueue_wordpress')){
     3879        if(get_option('hefe_customizer_control_enqueue_wordpress')){
    38803880            wp_enqueue_style('hefe-starter-wordpress-style', hefe_dir_url.'css/wordpress-style.css', array(), '1.0.0', 'all');
    38813881        }
    3882         if(get_option('hefe_getting_started_customizer_control_enqueue_border')){
     3882        if(get_option('hefe_customizer_control_enqueue_border')){
    38833883            wp_enqueue_style('hefe-starter-border-style', hefe_dir_url.'css/border-style.css', array(), '1.0.0', 'all');
    38843884        }
    3885         if(get_option('hefe_getting_started_customizer_control_enqueue_display')){
     3885        if(get_option('hefe_customizer_control_enqueue_display')){
    38863886            wp_enqueue_style('hefe-starter-display-style', hefe_dir_url.'css/display-style.css', array(), '1.0.0', 'all');
    38873887        }
    3888         if(get_option('hefe_getting_started_customizer_control_enqueue_float')){
     3888        if(get_option('hefe_customizer_control_enqueue_float')){
    38893889            wp_enqueue_style('hefe-starter-float-style', hefe_dir_url.'css/float-style.css', array(), '1.0.0', 'all');
    38903890        }
    3891         if(get_option('hefe_getting_started_customizer_control_enqueue_margin')){
     3891        if(get_option('hefe_customizer_control_enqueue_margin')){
    38923892            wp_enqueue_style('hefe-starter-margin-style', hefe_dir_url.'css/margin-style.css', array(), '1.0.0', 'all');
    38933893        }
    3894         if(get_option('hefe_getting_started_customizer_control_enqueue_padding')){
     3894        if(get_option('hefe_customizer_control_enqueue_padding')){
    38953895            wp_enqueue_style('hefe-starter-padding-style', hefe_dir_url.'css/padding-style.css', array(), '1.0.0', 'all');
    38963896        }
    3897         if(get_option('hefe_getting_started_customizer_control_enqueue_text')){
     3897        if(get_option('hefe_customizer_control_enqueue_text')){
    38983898            wp_enqueue_style('hefe-starter-text-style', hefe_dir_url.'css/text-style.css', array(), '1.0.0', 'all');
    38993899        }
    3900         if(get_option('hefe_getting_started_customizer_control_enqueue_width')){
     3900        if(get_option('hefe_customizer_control_enqueue_width')){
    39013901            wp_enqueue_style('hefe-starter-width-style', hefe_dir_url.'css/width-style.css', array(), '1.0.0', 'all');
    39023902        }
    3903         if(get_option('hefe_getting_started_customizer_control_enqueue_normalize_css')){
     3903        if(get_option('hefe_customizer_control_enqueue_normalize_css')){
    39043904            wp_enqueue_style('hefe-starter-normalize-css-style', hefe_dir_url.'css/normalize.min.css', array(), '4.1.1', 'all');
    39053905        }
    3906         if(get_option('hefe_getting_started_customizer_control_enqueue_normalize_css')){
     3906        if(get_option('hefe_customizer_control_enqueue_normalize_css')){
    39073907            wp_enqueue_style('hefe-starter-normalize-css-style', hefe_dir_url.'css/normalize.min.css', array(), '4.1.1', 'all');
    39083908        }
     
    40214021        }
    40224022        // Getting Started
    4023         if(get_option('hefe_getting_started_customizer_control_enqueue_html5shiv_js')){
     4023        if(get_option('hefe_customizer_control_enqueue_html5shiv_js')){
    40244024            wp_enqueue_script('hefe-starter-html5shiv-js-script', hefe_dir_url.'js/html5shiv.min.js', array('jquery'), '3.7.3', true);
    40254025        }
    4026         if(get_option('hefe_getting_started_customizer_control_enqueue_placeholders_js')){
     4026        if(get_option('hefe_customizer_control_enqueue_placeholders_js')){
    40274027            wp_enqueue_script('hefe-starter-placeholders-js-script', hefe_dir_url.'js/placeholders.min.js', array('jquery'), '4.0.1', true);
    40284028        }
    4029         if(get_option('hefe_getting_started_customizer_control_enqueue_respond_js')){
     4029        if(get_option('hefe_customizer_control_enqueue_respond_js')){
    40304030            wp_enqueue_script('hefe-starter-respond-js-script', hefe_dir_url.'js/respond.min.js', array('jquery'), '1.0.2', true);
    40314031        }
    4032         if(get_option('hefe_getting_started_customizer_control_enqueue_selectivizr_js')){
     4032        if(get_option('hefe_customizer_control_enqueue_selectivizr_js')){
    40334033            wp_enqueue_script('hefe-starter-selectivizr-js-script', hefe_dir_url.'js/selectivizr.min.js', array('jquery'), '1.0.2', true);
    40344034        }
     
    67876787        ), $atts);
    67886788        $hefe_injection_id = esc_attr($a['injection_id']);
    6789         $hefe_injection_filter = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', esc_attr($a['injection_filter']))));;
     6789        $hefe_injection_filter = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', esc_attr($a['injection_filter']))));
    67906790        $hefe_injection_exclude = explode(',', esc_attr($a['exclude']));
    67916791        if($hefe_injection_filter != ''){
     
    95539553
    95549554// Disable Admin Bar
    9555 if(get_option('hefe_getting_started_customizer_control_disable_admin_bar_by_user_roles')){
     9555if(get_option('hefe_customizer_control_disable_admin_bar_by_user_roles')){
    95569556    if(!function_exists('hefe_function_after_theme_setup_disable_admin_bar')){
    95579557        add_action('after_setup_theme', 'hefe_function_after_theme_setup_disable_admin_bar');
     
    95609560            $hefe_disable_admin_bar_get_roles = implode(get_userdata(get_current_user_id())->roles);
    95619561            // Get user roles to disable admin bar
    9562             $hefe_disable_admin_bar_user_role_variables = explode(',', str_replace(' ', '', strtolower(get_option('hefe_getting_started_customizer_control_disable_admin_bar_by_user_roles'))));
     9562            $hefe_disable_admin_bar_user_role_variables = explode(',', str_replace(' ', '', strtolower(get_option('hefe_customizer_control_disable_admin_bar_by_user_roles'))));
    95639563            // Disable admin bar
    95649564            foreach($hefe_disable_admin_bar_user_role_variables as $hefe_disable_admin_bar_user_role_variable){
     
    95729572
    95739573// Enable Admin Bar
    9574 if(get_option('hefe_getting_started_customizer_control_enable_admin_bar_by_user_roles')){
     9574if(get_option('hefe_customizer_control_enable_admin_bar_by_user_roles')){
    95759575    if(!function_exists('hefe_function_after_theme_setup_enable_admin_bar')){
    95769576        add_action('after_setup_theme', 'hefe_function_after_theme_setup_enable_admin_bar');
     
    95799579            $hefe_enable_admin_bar_get_roles = implode(get_userdata(get_current_user_id())->roles);
    95809580            // Get user roles to disable admin bar
    9581             $hefe_enable_admin_bar_user_role_variables =  explode(',', str_replace(' ', '', strtolower(get_option('hefe_getting_started_customizer_control_enable_admin_bar_by_user_roles'))));
     9581            $hefe_enable_admin_bar_user_role_variables =  explode(',', str_replace(' ', '', strtolower(get_option('hefe_customizer_control_enable_admin_bar_by_user_roles'))));
    95829582            // Disable admin bar
    95839583            foreach($hefe_enable_admin_bar_user_role_variables as $hefe_enable_admin_bar_user_role_variable){
     
    95939593
    95949594// Home Page Random Order
    9595 if(get_option('hefe_getting_started_customizer_control_home_page_random_order')){
     9595if(get_option('hefe_customizer_control_home_page_random_order')){
    95969596    session_start();
    95979597    add_filter( 'posts_orderby', 'randomise_with_pagination' );
     
    96259625
    96269626// Home Post Type / Post Types
    9627 if(get_option('hefe_getting_started_customizer_control_home_post_type_post_types')){
     9627if(get_option('hefe_customizer_control_home_post_type_post_types')){
    96289628    if(!function_exists('hefe_function_pre_get_posts_home_post_type_filter')){
    96299629        add_action('pre_get_posts', 'hefe_function_pre_get_posts_home_post_type_filter');
    96309630        function hefe_function_pre_get_posts_home_post_type_filter($wp_query){
    9631             $hefe_home_post_types =  explode(',', str_replace(' ', '', get_option('hefe_getting_started_customizer_control_home_post_type_post_types')));
    9632             $hefe_home_post_status = explode(',', str_replace(' ', '', get_option('hefe_getting_started_customizer_control_home_post_type_status')));
     9631            $hefe_home_post_types =  explode(',', str_replace(' ', '', get_option('hefe_customizer_control_home_post_type_post_types')));
     9632            $hefe_home_post_status = explode(',', str_replace(' ', '', get_option('hefe_customizer_control_home_post_type_status')));
    96339633            if ( !is_admin() && $wp_query->is_main_query() && is_home() ) {
    96349634                $wp_query->set('post_type', $hefe_home_post_types );
Note: See TracChangeset for help on using the changeset viewer.