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, ); // 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 ); // Typography $section = 'typography-plus'; $sections[] = array( 'id' => $section, 'title' => __( 'Typography', 'advocator-lite' ), 'priority' => '60', 'panel' => 'theme_options', ); // Footer $section = 'footer'; $sections[] = array( 'id' => $section, 'title' => __( 'Footer', 'advocator-lite' ), 'priority' => '70', 'description' => __( '', 'advocator-lite' ), 'panel' => 'theme_options', ); $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', ); // Pro $section = 'pro'; $sections[] = array( 'id' => $section, 'title' => __( 'Plus Features', 'advocator-lite' ), 'priority' => '70', 'description' => __( '', 'advocator-lite' ), 'panel' => 'theme_options', ); $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:
Display Events on the home page:
Display news and blogs posts on the home page:
Add portfolio posts to display gallery images on the home page:
You\'ll have access to 500+ Google Fonts to change for headers and paragraphs along with changing:
You\'ll have access to add or change:
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' ) ), ); $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' ) ), ); $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' ) ), ); // 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' );