<?php

/**
 * Generate all the css declared in customizer's config
 * ====== DO NOT EDIT BELOW!!! =======
 * If you need to add custom css rules add them above so we can keep track of them
 */
$redux_sections = wpgrade::get_redux_sections();
/**
*======= TYPOGRAPHY


$fonts = array();

if ( isset( $fonts['google_menu_page_font'] ) ) {
	// this needs a default
	$font_size = '14px'; ?>
	html body.jassy_menu_page p, html body.jassy_menu_page span, html body.jassy_menu_page h4, html body.jassy_menu_page h2 {
	<?php wpgrade::display_font_params( $fonts['google_menu_page_font'] ); ?>
	}
<?php }
*/
//handle the complicated logic of the footer waves that keeps changing color
$footer_sidebar_style = wpgrade::option('footer_sidebar_style');
$waves_fill_color = '#121212';
switch ($footer_sidebar_style) {
    case 'light':
        $waves_fill_color = '#ffffff';
        break;
    case 'dark':
        $waves_fill_color = '#121212';
Exemplo n.º 2
0
 /**
  * This is a wpgrade specific hook!
  * @TODO Maybe refactor it in the future to work in redux extension
  */
 public function reset_style_section()
 {
     check_ajax_referer('reset-style-section', 'security');
     $defaults = wpgrade::get_redux_defaults();
     $sections = wpgrade::get_redux_sections();
     if (!empty($sections)) {
         foreach ($sections as $section) {
             if (isset($section['type']) && $section['type'] == 'customizer_section' && isset($section['fields']) && !empty($section['fields'])) {
                 foreach ($section['fields'] as $field) {
                     if (isset($field['id']) && isset($defaults[$field['id']])) {
                         $default_value = $defaults[$field['id']];
                         wpgrade::setoption($field['id'], $default_value);
                     }
                 }
             }
         }
     }
 }