slug; $i++; } $cats[$category->slug] = $category->name; } // Animations $animate = array( 'none' => __('none', 'advocator-lite'), 'bounce' => __('bounce', 'advocator-lite'), 'flash' => __('flash', 'advocator-lite'), 'pulse' => __('pulse', 'advocator-lite'), 'shake' => __('shake', 'advocator-lite'), 'wobble' => __('wobble', 'advocator-lite'), 'bounceIn' => __('bounceIn', 'advocator-lite'), 'bounceInDown' => __('bounceInDown', 'advocator-lite'), 'bounceInLeft' => __('bounceInLeft', 'advocator-lite'), 'bounceInRight' => __('bounceInRight', 'advocator-lite'), 'bounceInUp' => __('bounceInUp', 'advocator-lite'), 'fadeIn' => __('fadeIn', 'advocator-lite'), 'fadeInDown' => __('fadeInDown', 'advocator-lite'), 'fadeInDownBig' => __('fadeInDownBig', 'advocator-lite'), 'fadeInLeft' => __('fadeInLeft', 'advocator-lite'), 'fadeInLeftBig' => __('fadeInLeftBig', 'advocator-lite'), 'fadeInRight' => __('fadeInRight', 'advocator-lite'), 'fadeInRightBig' => __('fadeInRightBig', 'advocator-lite'), 'fadeInUp' => __('fadeInUp', 'advocator-lite'), 'fadeInUpBig' => __('fadeInUpBig', 'advocator-lite'), 'lightSpeedIn' => __('lightSpeedIn', 'advocator-lite'), 'lightSpeedOut' => __('lightSpeedOut', 'advocator-lite'), 'rotateIn' => __('rotateIn', 'advocator-lite'), 'rotateInDownLeft' => __('rotateInDownLeft', 'advocator-lite'), 'rotateInDownRight' => __('rotateInDownRight', 'advocator-lite'), 'rotateInUpLeft' => __('rotateInUpLeft', 'advocator-lite'), 'rotateInUpRight' => __('rotateInUpRight', 'advocator-lite'), 'zoomIn' => __('zoomIn', 'advocator-lite'), 'zoomInDown' => __('zoomInDown', 'advocator-lite'), 'zoomInLeft' => __('zoomInLeft', 'advocator-lite'), 'zoomInRight' => __('zoomInRight', 'advocator-lite'), 'zoomInUp' => __('zoomInUp', 'advocator-lite') ); // Stores all the controls that will be added $options = array(); // Stores all the sections to be added $sections = array(); // Image path defaults= $imagepath = get_template_directory_uri() . '/img/'; $upgrade_link = "https://rescuethemes.com/wordpress-themes/advocator/"; /** * Advocator Plus Upgrade Options * */ // Adds the sections to the $options array $options['sections'] = $sections; // Header $section = 'header'; $sections[] = array( 'id' => $section, 'title' => __( 'Header', 'advocator-lite' ), 'priority' => '30', 'description' => __( 'Header area options', 'advocator-lite' ), 'panel' => 'theme_options', ); $options['header_logo'] = array( 'id' => 'header_logo', 'label' => __( 'Logo', 'advocator-lite' ), 'section' => $section, 'type' => 'upload', 'default' => '', ); $options['header_top_bg_color'] = array( 'id' => 'header_top_bg_color', 'label' => __( 'Top header background color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $top_header, 'transport' => 'postMessage', ); $options['header_top_nav_link_color'] = array( 'id' => 'header_top_nav_link_color', 'label' => __( 'Top header Navigation Link Color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $top_nav_link_color, 'transport' => 'postMessage', ); $options['header_top_nav_link_color_hover'] = array( 'id' => 'header_top_nav_link_color_hover', 'label' => __( 'Top header Navigation Link Hover Color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $white, ); $options['header_bottom_bg_color'] = array( 'id' => 'header_bottom_bg_color', 'label' => __( 'Bottom header background color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $primary_green, 'transport' => 'postMessage', ); $options['header_bottom_nav_link_color'] = array( 'id' => 'header_bottom_nav_link_color', 'label' => __( 'Bottom Header Navigation Link Color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $white, 'transport' => 'postMessage', ); $options['header_bottom_nav_dropdown_indicator'] = array( 'id' => 'header_bottom_nav_dropdown_indicator', 'label' => __( 'Check to remove the dropdown indicator circle', 'advocator-lite' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['header-donate-plus'] = array( 'id' => 'header-donate-plus', 'label' => __( 'Display donation button', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Display a donation button right on the header menu:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Header Donation Button Settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Home Top Widgets $section = 'home-top-widgets'; $sections[] = array( 'id' => $section, 'title' => __( 'Home Top Widgets', 'advocator-lite' ), 'priority' => '40', 'description' => __( 'This section will display on the home page once widgets are added to it in the widgets section.', 'advocator-lite' ), 'panel' => 'theme_options' ); $options['home_top_widgets_bg'] = array( 'id' => 'home_top_widgets_bg', 'label' => __( 'Select the home top widgets background color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $home_top_widgets_bg, 'transport' => 'postMessage', ); $options['home_top_widgets_hover'] = array( 'id' => 'home_top_widgets_hover', 'label' => __( 'Select the home top widgets text hover color', 'advocator-lite' ), 'section' => $section, 'type' => 'color', 'default' => $home_top_widgets_hover ); $options['home_top_widgets-plus'] = array( 'id' => 'home_top_widgets-plus', 'label' => __( 'Home Top Widget Animation Effects', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Top Widget Effects', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Home Events $section = 'home-events-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Home Events', 'advocator-lite' ), 'priority' => '40', 'description' => __( 'Home events section options', 'advocator-lite' ), 'panel' => 'theme_options' ); $options['home-events-plus'] = array( 'id' => 'home-events-plus', 'label' => __( 'Advanced Home Events Settings', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Display Events on the home page:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Home Event settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Home News $section = 'home-news-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Home News', 'advocator-lite' ), 'priority' => '40', 'description' => __( 'Home blog posts options', 'advocator-lite' ), 'panel' => 'theme_options' ); $options['home-news-plus'] = array( 'id' => 'home-news-plus', 'label' => __( 'Advanced Home News/Blog Settings', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Display news and blogs posts on the home page:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Home News settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Home Gallery $section = 'home-gallery-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Home Gallery', 'advocator-lite' ), 'priority' => '50', 'description' => __( '', 'advocator-lite' ), 'panel' => 'theme_options', ); $options['home-gallery-plus'] = array( 'id' => 'home-gallery-plus', 'label' => __( 'Advanced Home Gallery Settings', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Add portfolio posts to display gallery images on the home page:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Home Gallery settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Typography $section = 'typography-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Typography', 'advocator-lite' ), 'priority' => '60', 'panel' => 'theme_options', ); $options['typography-plus'] = array( 'id' => 'typography-plus', 'label' => __( 'Advanced Typography Settings', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

You\'ll have access to 500+ Google Fonts to change for headers and paragraphs along with changing:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to typography settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Footer $section = 'footer'; $sections[] = array( 'id' => $section, 'title' => __( 'Footer', 'advocator-lite' ), 'priority' => '70', 'description' => __( '', 'advocator-lite' ), 'panel' => 'theme_options', ); $options['footer-plus'] = array( 'id' => 'footer-plus', 'label' => __( 'Advanced Footer Settings', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

You\'ll have access to add or change:

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to footer settings', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); $options['twitter_link'] = array( 'id' => 'twitter_link', 'label' => __( 'Enter a Twitter link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['facebook_link'] = array( 'id' => 'facebook_link', 'label' => __( 'Enter a Facebook link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['google_link'] = array( 'id' => 'google_link', 'label' => __( 'Enter a Google link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['instagram_link'] = array( 'id' => 'instagram_link', 'label' => __( 'Enter a Instagram link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['vimeo_link'] = array( 'id' => 'vimeo_link', 'label' => __( 'Enter a Vimeo link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['youtube_link'] = array( 'id' => 'youtube_link', 'label' => __( 'Enter a Youtube link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['pinterest_link'] = array( 'id' => 'pinterest_link', 'label' => __( 'Enter a Pinterest link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['linkedin_link'] = array( 'id' => 'linkedin_link', 'label' => __( 'Enter a LinkedIn link', 'advocator-lite' ), 'section' => $section, 'type' => 'text', 'default' => '', ); $options['footer_copyright'] = array( 'id' => 'footer_copyright', 'label' => __( 'Enter footer copyright text.', 'advocator-lite' ), 'section' => $section, 'type' => 'textarea', 'default' => '© Copyright', ); // Plus: WooCommerce $section = 'events-calendar-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Events', 'advocator-lite' ), 'priority' => '65', 'description' => '', 'panel' => 'theme_options' ); $options['events-calendar-plus'] = array( 'id' => 'events-calendar-plus', 'label' => __( 'Events Calendar', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Advocator Plus provides compatibility with the popular event system, The Events Calendar. Your events will look beautiful and stunning.

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Events Calendar support', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Plus: WooCommerce $section = 'give-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Give Donations', 'advocator-lite' ), 'priority' => '66', 'description' => '', 'panel' => 'theme_options' ); $options['give-plus'] = array( 'id' => 'give-plus', 'label' => __( 'Give', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Advocator Plus provides compatibility with the popular donation plugin, Give. Make your donation forms stand out.

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to Give donations support', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Plus: WooCommerce $section = 'woocommerce-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'eCommerce Shop', 'advocator-lite' ), 'priority' => '67', 'description' => '', 'panel' => 'theme_options' ); $options['woocommerce-plus'] = array( 'id' => 'woocommerce-plus', 'label' => __( 'WooCommerce', 'advocator-lite' ), 'section' => $section, 'type' => 'content', 'input_attrs' => array( 'content' => __( '

Advocator Plus provides compatibility with the world\'s most popular ecommerce system, WooCommerce. Whether it\'s physical products, music files, or your time, it\'s all possible.

', 'advocator-lite' ) ), 'description' => sprintf( __( 'Get access to ecommerce support', 'advocator-lite' ), esc_url( $upgrade_link ) ) ); // Custom CSS $section = 'Custom-css'; $sections[] = array( 'id' => $section, 'title' => __( 'Custom CSS', 'advocator-lite' ), 'priority' => '80', 'description' => __( 'Enter custom CSS styles', 'advocator-lite' ), 'panel' => 'theme_options', ); $options['custom_css_textarea'] = array( 'id' => 'custom_css_textarea', 'label' => __( 'Custom CSS', 'advocator-lite' ), 'section' => $section, 'type' => 'textarea', 'default' => '' ); // Adds the sections to the $options array $options['sections'] = $sections; $customizer_library = Customizer_Library::Instance(); $customizer_library->add_options( $options ); // To delete custom mods use: customizer_library_remove_theme_mods(); } add_action( 'init', 'customizer_library_rescue_options' );