/** * Overall Footer Options **/ function span_opt_footer($namespace) { // Hiding options $fields = array(); if ($namespace === 'general') { // displayed once on General Options $fields[] = array('id' => $namespace . '_footer_copyright', 'type' => 'textarea', 'title' => __('Footer Copyright', 'span'), 'desc' => __('You can set custom copyright on footer.', 'span')); } $fields[] = array('id' => $namespace . '_footer_menu', 'type' => 'select', 'title' => __('Select a menu', 'span'), 'desc' => __('Choose a menu you want to display on footer. Delete menu to use default menu saved on "<strong>Appearence > Menus</strong>".', 'span'), 'data' => 'menus'); $fields[] = array('id' => $namespace . '_footer_palette', 'type' => 'palette', 'title' => __('Footer palette', 'span'), 'subtitle' => __('You can set custom palette for footer.', 'span'), 'desc' => __('If you don\'t want to spend time trying to find the better combinasion, you can use predefined palette.', 'span'), 'default' => 'red', 'palettes' => span_color_palette('footer')); $fields[] = array('id' => $namespace . '_footer_color_type', 'type' => 'switch', 'title' => __('Color Type', 'span'), 'subtitle' => __('You can use Palette or Custom Color.', 'span'), 'default' => true, 'on' => __('Use Palette', 'span'), 'off' => __('Use Custom colors', 'span')); $fields[] = array('id' => $namespace . '_footer_bg_color', 'type' => 'color', 'title' => __('Footer Background Color', 'span'), 'subtitle' => __('Pick a color for footer background.', 'span'), 'default' => '#172029', 'validate' => 'color'); $fields[] = array('id' => $namespace . '_footer_text_color', 'type' => 'color', 'title' => __('Footer Text Color', 'span'), 'subtitle' => __('Pick a color for footer text.', 'span'), 'default' => '#CCC', 'validate' => 'color'); $fields[] = array('id' => $namespace . '_footer_link_color', 'type' => 'color', 'title' => __('Footer link Color', 'span'), 'subtitle' => __('Pick a color for footer link.', 'span'), 'default' => '#172029', 'validate' => 'color'); $fields[] = array('id' => $namespace . '_footer_link_hover', 'type' => 'color', 'title' => __('Footer Link Color on Hover', 'span'), 'subtitle' => __('Pick a color for footer link on hover.', 'span'), 'default' => '#172029', 'validate' => 'color'); $fields[] = array('id' => $namespace . '_footer_padding', 'type' => 'slider', 'title' => __('Footer Padding', 'span'), 'subtitle' => __('This let you enhance or reduce footer height.', 'span'), 'desc' => __('You can set up to 100px as padding.', 'span'), "default" => 15, "min" => 5, "step" => 5, "max" => 50, 'display_value' => 'padding'); $fields[] = array('id' => $namespace . '_footer_text_size', 'type' => 'slider', 'title' => __('Footer Text Size', 'span'), 'subtitle' => __('This let you enhance or reduce footer text size.', 'span'), 'desc' => __('You can set up to 100px as height.', 'span'), "default" => 15, "min" => 10, "step" => 1, "max" => 50, 'display_value' => 'size'); // Footer Details Redux::setSection(SPAN_OPT_NAME, array('title' => __('Footer', 'span'), 'id' => $namespace . '_footer', 'subsection' => true, 'customizer_width' => '450px', 'desc' => sprintf(__('This section let you customize %s footer options.', 'span'), ucwords($namespace)), 'fields' => $fields)); }
wp_nav_menu($menu_array); ?> </div> <!-- .col-md-6 --> </div> <!-- .row --> </div> </div> <!-- End Copyright --> </div> <?php wp_footer(); ?> <style> <?php $footer_color_palette = span_color_palette('footer'); $footer_color_type = span_hopt('footer_color_type', span_tag_hierarchy(), '#EEE'); // Custom Colors $footer_link_color = span_hopt('footer_link_color', span_tag_hierarchy(), '#F60'); $footer_link_hover = span_hopt('footer_link_hover', span_tag_hierarchy(), '#F60'); $footer_bck = span_hopt('footer_bg_color', span_tag_hierarchy(), '#999'); $footer_text_color = span_hopt('footer_text_color', span_tag_hierarchy(), '#DDD'); // Palette $footer_palette = span_hopt('footer_palette', span_tag_hierarchy(), 'default'); // Padding $footer_padding = span_hopt('footer_padding', span_tag_hierarchy(), '25px'); // Size $footer_size = span_hopt('footer_text_size', span_tag_hierarchy(), '15px'); // Footer Custom Colors if (!empty($footer_link_color) && !empty($footer_link_hover) && !empty($footer_bck) && !empty($footer_text_color) && !$footer_color_type) { ?>