$weight = array(__('Default','avia_framework') => '' , __('Normal','avia_framework') =>'normal', __('Bold','avia_framework')=>'bold', __('Light','avia_framework')=>'lighter');
$transform = array(__('Default','avia_framework') => '' , __('None' ,'avia_framework') =>'none', __('Uppercase','avia_framework')=>'uppercase', __('Lowercase','avia_framework')=>'lowercase');
$align = array(__('Default','avia_framework') => '' , __('Left' ,'avia_framework') =>'left', __('Center','avia_framework')=>'center', __('Right','avia_framework')=>'right');
$decoration = array(__('Default','avia_framework') => '' , __('None','avia_framework')=>'none !important' , __('Underline' ,'avia_framework') =>'underline !important', __('Overline','avia_framework')=>'overline !important', __('Line Trough','avia_framework')=>'line-through !important');
$display = array(__('Default','avia_framework') => '' , __('Inline','avia_framework') =>'inline', __('Inline Block','avia_framework')=>'inline-block', __('Block','avia_framework')=>'block');
$google_fonts = apply_filters( 'avf_advanced_styles_select_options_list', AviaSuperobject()->type_fonts()->get_font_select_options_list() );
$advanced = array();
$advanced['body'] = array(
"id" => "body", //needs to match array key
"name" => "<body>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for the <body> tag.",'avia_framework'),
"selector" => array("body#top" => ""),
"sections" => false,
"hover" => false,
"edit" => array(
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
)
);
$advanced['paragraph'] = array(
"id" => "paragraph", //needs to match array key
"name" => "<p>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for all <p> tags",'avia_framework'),
"selector" => array("#top [sections] p" => array(
"font_size" => "font-size: %font_size%;",
"line_height" => "line-height: %line_height%;",
"font_weight" => "font-weight: %font_weight%;",
"margin" => "margin: %margin% 0;")
),
"sections" => true,
"hover" => false,
"edit" => array(
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height'=> array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'margin' => array('type' => 'size', 'range' => '0.5-3', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Top & Bottom margin",'avia_framework')),
)
);
$advanced['strong'] = array(
"id" => "strong", //needs to match array key
"name" => "<strong>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for all <strong> tags",'avia_framework'),
"selector" => array("#top [sections] strong" => ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
)
);
$advanced['blockquote'] = array(
"id" => "blockquote", //needs to match array key
"name" => "<blockquote>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for all <blockquote> tags",'avia_framework'),
"selector" => array("#top [sections] blockquote"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
)
);
$advanced['underline'] = array(
"id" => "underline", //needs to match array key
"name" => "<u>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for all <u> (underline) tags",'avia_framework'),
"selector" => array("#top [sections] u, #top [sections] span[style*='underline;']"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'text_decoration' => array('type' => 'select', 'name'=> __("Text Decoration",'avia_framework'), 'options' => $decoration),
'display' => array('type' => 'select', 'name'=> __("Display",'avia_framework'), 'options' => $display),
)
);
$advanced['mark'] = array(
"id" => "mark", //needs to match array key
"name" => "<mark>",
"group" => __("HTML Tags",'avia_framework'),
"description" => __("Change the styling for all <mark> tags",'avia_framework'),
"selector" => array("#top [sections] mark"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'text_decoration' => array('type' => 'select', 'name'=> __("Text Decoration",'avia_framework'), 'options' => $decoration),
'display' => array('type' => 'select', 'name'=> __("Display",'avia_framework'), 'options' => $display),
)
);
$advanced['headings_all'] = array(
"id" => "headings_all", //needs to match array key
"name" => "All Headings (H1-H6)",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for all Heading tags",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h1, #top #wrap_all [sections] h2, #top #wrap_all [sections] h3, #top #wrap_all [sections] h4, #top #wrap_all [sections] h5, #top #wrap_all [sections] h6"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h1'] = array(
"id" => "h1", //needs to match array key
"name" => "H1",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H1 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h1"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h2'] = array(
"id" => "h2", //needs to match array key
"name" => "H2",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H2 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h2"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h3'] = array(
"id" => "h3", //needs to match array key
"name" => "H3",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H3 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h3"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h4'] = array(
"id" => "h4", //needs to match array key
"name" => "H4",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H4 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h4"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h5'] = array(
"id" => "h5", //needs to match array key
"name" => "H5",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H5 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h5"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['h6'] = array(
"id" => "h6", //needs to match array key
"name" => "H6",
"group" => __("Headings",'avia_framework'),
"description" => __("Change the styling for your H6 Tag",'avia_framework'),
"selector" => array("#top #wrap_all [sections] h6"=> ""),
"sections" => true,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['main_menu'] = array(
"id" => "main_menu", //needs to match array key
"name" => __("Main Menu Links",'avia_framework'),
"group" => __("Main Menu",'avia_framework'),
"description" => __("Change the styling for your main menu links",'avia_framework'),
"selector" => array(
/*trick: hover is used inside the selector to prevent it from beeing applied when :hover is checked*/
"#top #header[hover]_main_alternate [active]" => array( "background_color" => "background-color: %background_color%;" ),
"#top #header .av-main-nav > li[active][hover] " => array( "font_family" => "font-family: %font_family%;" ),
"#top #header .av-main-nav > li[active][hover] > a" => "",
".av_seperator_small_border .av-main-nav > li[active][hover] > a > .avia-menu-text,
#top #wrap_all #header #menu-item-search[active][hover]>a
"=> array( "border_color" => "border-color: %border_color%;" ),
"#top #header .av-main-nav > li[active][hover] > a .avia-menu-text, #top #header .av-main-nav > li[active][hover] > a .avia-menu-subtext"=> array( "color" => "color: %color%;" )
),
"sections" => false,
"hover" => true,
"active" => ".current-menu-item",
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-30', 'name'=> __("Font Size",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
)
);
$advanced['main_menu_dropdown'] = array(
"id" => "main_menu_dropdown", //needs to match array key
"name" => __("Main Menu sublevel Links",'avia_framework'),
"group" => __("Main Menu",'avia_framework'),
"description" => __("Change the styling for your main menu dropdown links",'avia_framework'),
"selector" => array("#top #wrap_all .av-main-nav ul > li[hover] > a, #top #wrap_all .avia_mega_div, #top #wrap_all .avia_mega_div ul, #top #wrap_all .av-main-nav ul ul"=> ""),
"sections" => false,
"hover" => true,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-30', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-3', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
)
);
$advanced['top_bar'] = array(
"id" => "top_bar", //needs to match array key
"name" => __("Small bar above Main Menu",'avia_framework'),
"group" => __("Main Menu",'avia_framework'),
"description" => __("Change the styling for the small bar above the main menu which can contain social icons, a second menu and a phone number ",'avia_framework'),
"selector" => array(
"#top #header_meta, #top #header_meta nav ul ul li, #top #header_meta nav ul ul a, #top #header_meta nav ul ul" => array("background_color" => "background-color: %background_color%;"),
"#top #header_meta a, #top #header_meta li, #top #header_meta .phone-info" => array( "border_color" => "border-color: %border_color%;", "color" => "color: %color%;"),
"#top #header_meta" => array("font_family" => "font-family: %font_family%;"),
),
"sections" => false,
"hover" => false,
"edit" => array( 'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
)
);
/*
$scale = array(__('Default','avia_framework') => '' , __('Small','avia_framework') =>'0.6');
$advanced['main_menu_icon_style'] = array(
"id" => "main_menu_icon_style", //needs to match array key
"name" => __("Main Menu Icon",'avia_framework'),
"group" => __("Main Menu (Icon)",'avia_framework'),
"description" => __("Change the styling for your main menu links once they are displayed in the page overlay",'avia_framework'),
"selector" => array(
"#top .av-burger-menu-main>a" => array("size"=>"padding:0;"),
"#header .av-hamburger" => array("size"=>"-ms-transform: scale(%size%); transform: scale(%size%); transform-origin: right;"),
".header_color .av-hamburger-inner, .header_color .av-hamburger-inner::before, .header_color .av-hamburger-inner::after" => array("color"=>"background-color: %color%")
),
"sections" => false,
"hover" => false,
"edit" => array(
'color' => array('type' => 'colorpicker', 'name'=> __("Icon Color",'avia_framework')),
'size' => array('type' => 'select', 'name'=> __("Icon Size",'avia_framework'), 'options' => $scale),
)
);
*/
$advanced['main_menu_icon'] = array(
"id" => "main_menu_icon", //needs to match array key
"name" => __("Menu Links in overlay/slide out",'avia_framework'),
"group" => __("Main Menu (Icon)",'avia_framework'),
"description" => __("Change the styling for your main menu links once they are displayed in the page overlay/slide out",'avia_framework'),
"selector" => array(
"#top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul li a" => array(
'color' => "color:%color%;",
"font_family" => "font-family: %font_family% ,'Helvetica Neue', Helvetica, Arial, sans-serif;",
"font_weight" => "font-weight: %font_weight%;",
"letter_spacing" => "letter-spacing: %letter_spacing%;",
"text_transform" => "text-transform: %text_transform%;",
"line_height" => "line-height: %line_height%;",
),
"#top #wrap_all #av-burger-menu-ul li" => array(
'font_size' => "font-size:%font_size%;",
"line_height" => "line-height: %line_height% !important;",
),
".av-burger-overlay-active #top #wrap_all .av-hamburger-inner, .av-burger-overlay-active #top #wrap_all .av-hamburger-inner::before, .av-burger-overlay-active #top #wrap_all .av-hamburger-inner::after, .html_av-overlay-side-classic #top div .av-burger-overlay li li .avia-bullet" => array(
'color'=> "background-color:%color%;",
),
"div.av-burger-overlay-bg" => array(
'background_color' => "background-color:%background_color%;",
),
".av-burger-overlay-active #top #wrap_all #header #menu-item-search a, .av-burger-overlay-active #top #wrap_all #main #menu-item-search a, .av-burger-overlay-active #top #wrap_all #menu-item-search a:hover" => array(
'color' => "color:%color%;",
),
"#top #wrap_all .av-burger-overlay-scroll" => array(
'menu_bg' => "background-color:%menu_bg%;",
),
".html_av-overlay-side #top #wrap_all div .av-burger-overlay-scroll #av-burger-menu-ul a:hover" => array(
'menu_bg_hover' => "background-color:%menu_bg_hover%;",
),
".html_av-overlay-side-classic #top #wrap_all .av-burger-overlay #av-burger-menu-ul li a" => array(
'border_color' => "border-color:%border_color%;",
),
),
"sections" => false,
"hover" => false,
"edit" => array(
'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Overlay Color",'avia_framework')),
'menu_bg' => array('type' => 'colorpicker', 'name'=> __("Menu Background",'avia_framework')),
'menu_bg_hover' => array('type' => 'colorpicker', 'name'=> __("Menu Hover BG",'avia_framework')),
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'hr1' => array('type' => 'hr'),
'font_size' => array('type' => 'size', 'range' => '8-120', 'name'=> __("Font Size",'avia_framework')),
'line_height' => array('type' => 'size', 'range' => '0.7-3', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'letter_spacing' => array('type' => 'size', 'range' => array(-10,20), 'increment' => 1, 'unit' => 'px', 'name'=> __("Letter Spacing",'avia_framework')),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['hover_overlay'] = array(
"id" => "hover_overlay", //needs to match array key
"name" => __("Linked Image Overlay",'avia_framework'),
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for the overlay that appears when you place your mouse cursor above a linked image",'avia_framework'),
"selector" => array(
"#top [sections] .image-overlay-inside" => array("overlay_style" => array( "none" , "display: none;") ),
"#top [sections] .image-overlay" => array("background_color" => "background-color: %background_color%;", "overlay_style" => array( "hide" , "visibility: hidden;")),
"#top [sections] div .image-overlay" => array("overlay_style" => array( "icon" , "background: none;")),
"#top [sections] .image-overlay .image-overlay-inside:before" => array( "icon_color" => "background-color: %icon_color%;", "color" => "color: %color%;" )
),
"sections" => true,
"hover" => false,
"edit" => array( 'overlay_style' => array('type' => 'select', 'name'=> __("Overlay Style",'avia_framework'), 'options' => array(__('Default','avia_framework') => '' , __('Minimal Overlay (No Icon)','avia_framework') =>'none' , __('Icon only','avia_framework') =>'icon' , __('Disable Overlay','avia_framework') =>'hide' )) ,
'color' => array('type' => 'colorpicker', 'name'=> __("Icon Color",'avia_framework')),
'icon_color' => array('type' => 'colorpicker', 'name'=> __("Icon background",'avia_framework')),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Overlay Color",'avia_framework')),
)
);
$advanced['buttons'] = array(
"id" => "buttons", //needs to match array key
"name" => "Buttons",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling of your buttons",'avia_framework'),
"selector" => array(
"#top #wrap_all .avia-slideshow-button, #top .avia-button, .html_elegant-blog .more-link, .avia-slideshow-arrows a:before, #top .av-menu-button > a .avia-menu-text"=> array('border_radius' => "border-radius: %border_radius%;"),
"#top #wrap_all .avia-button.avia-color-light, #top #wrap_all .avia-button.avia-color-dark" => array('border_width' => 'border-width:%border_width%;'),
"#top #wrap_all .avia-button.avia-color-light" => array('opacity' => 'color:#fff; border-color:#fff; background:transparent;'),
"#top #wrap_all .avia-button.avia-color-dark" => array('opacity' => 'color:#000; border-color:#000; background:transparent;'),
),
"sections" => false,
"hover" => false,
"edit" => array(
'border_radius' => array('type' => 'size', 'range' => '0-100', 'name'=> __("Border Radius",'avia_framework')),
'border_width' => array('type' => 'size', 'range' => array(1,10), 'increment' => 1, 'unit' => 'px', 'name'=> __("Border width and",'avia_framework')),
'opacity' => array('type' => 'select', 'name'=> __("opacity for transparent buttons",'avia_framework'),
'options' => array(__('Semi-transparent','avia_framework') => '' , __('Full-transparent','avia_framework') => 'off' )),
)
);
$advanced['widget_title'] = array(
"id" => "widget_title", //needs to match array key
"name" => "Widget title",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling of your widget title",'avia_framework'),
"selector" => array(
"#top [sections] .widgettitle" => array("style" => array( "border" , "border-style:solid; border-width:1px; padding:10px; text-align:center; margin-bottom:15px") ),
"html #top [sections] .widgettitle" => array("style" => array( "border-tp" , "border-style:solid; border-width:1px; padding:10px 0; border-left:none; border-right:none; margin-bottom:15px") ),
"body#top [sections] .widgettitle" => array( "border_color" => "border-color: %border_color%;", "background_color" => "background-color: %background_color%;", "color" => "color: %color%;", "text_align" => "text-align: %text_align%;"),
),
"sections" => true,
"hover" => false,
"edit" => array(
'style' => array(
'type' => 'select',
'name'=> __("Overlay Style",'avia_framework'),
'options' => array(
__('No Border','avia_framework') => '' ,
__('Border on top and bottom','avia_framework') =>'border-tp' ,
__('Border around the widget title','avia_framework') =>'border' ,
)
) ,
'border_color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework') ),
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework') ),
'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework') ),
'text_align' => array('type' => 'select', 'name'=> __("Text Align",'avia_framework'), 'options' => $align ),
)
);
$advanced['slideshow_titles'] = array(
"id" => "slideshow_titles", //needs to match array key
"name" => "Slideshow titles",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your fullscreen, fullwidth and easy slider title",'avia_framework'),
"selector" => array("#top #wrap_all .slideshow_caption h2.avia-caption-title, #top #wrap_all .av-slideshow-caption h2.avia-caption-title"=> ""),
"sections" => false,
"hover" => false,
"edit" => array(
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'letter_spacing' => array('type' => 'size', 'range' => array(-10,20), 'increment' => 1, 'unit' => 'px', 'name'=> __("Letter Spacing",'avia_framework')),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['slideshow_caption'] = array(
"id" => "slideshow_caption", //needs to match array key
"name" => "Slideshow caption",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your fullscreen, fullwidth and easy slider caption",'avia_framework'),
"selector" => array(
"#top #wrap_all .avia-caption-content p" => array(
"font_family" => "font-family: %font_family% ,'Helvetica Neue', Helvetica, Arial, sans-serif;",
"font_weight" => "font-weight: %font_weight%;",
"line_height" => "line-height: %line_height%;",
"letter_spacing" => "letter-spacing: %letter_spacing%;",
"text_transform" => "text-transform: %text_transform%;",
),
"#top .slideshow_caption" => array( "width" => "width: %width%;"),
),
"sections" => false,
"hover" => false,
"edit" => array(
'font_family' => array('type' => 'font', 'name'=> __("Font Family",'avia_framework'), 'options' => $google_fonts),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'letter_spacing' => array('type' => 'size', 'range' => array(-10,20), 'increment' => 1, 'unit' => 'px', 'name'=> __("Letter Spacing",'avia_framework')),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
'width' => array('type' => 'size', 'range' => array(40,100), 'increment' => 10, 'unit' => '%', 'name'=> __("Container Width",'avia_framework')),
)
);
$advanced['slideshow_button'] = array(
"id" => "slideshow_button", //needs to match array key
"name" => "Slideshow button",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your fullscreen, fullwidth and easy slider buttons",'avia_framework'),
"selector" => array("#top #wrap_all .avia-slideshow-button"=> ""),
"sections" => false,
"hover" => false,
"edit" => array(
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'letter_spacing' => array('type' => 'size', 'range' => array(-10,20), 'increment' => 1, 'unit' => 'px', 'name'=> __("Letter Spacing",'avia_framework')),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform ),
)
);
$advanced['cookie_consent'] = array(
"id" => "cookie_consent", //needs to match array key
"name" => "Cookie Consent Message Bar",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your cookie consent message bar",'avia_framework'),
"selector" => array(".avia-cookie-consent"=> ""),
"sections" => false,
"hover" => false,
"edit" => array(
'background_color' => array('type' => 'colorpicker', 'name'=> __("Background Color",'avia_framework')),
'color' => array('type' => 'colorpicker', 'name'=> __("Font Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'line_height' => array('type' => 'size', 'range' => '0.7-2', 'increment' => 0.1, 'unit' => 'em', 'name'=> __("Line Height",'avia_framework')),
'letter_spacing' => array('type' => 'size', 'range' => array(-10,20), 'increment' => 1, 'unit' => 'px', 'name'=> __("Letter Spacing",'avia_framework')),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform )
)
);
$advanced['cookie_consent_button'] = array(
"id" => "cookie_consent_button", //needs to match array key
"name" => "Cookie Consent Dismiss Button",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your cookie consent button",'avia_framework'),
"selector" => array(".avia-cookie-consent .avia-cookie-consent-button.avia-cookie-close-bar"=> ""),
"sections" => false,
"hover" => false,
"edit" => array(
'background_color' => array('type' => 'colorpicker', 'name'=> __("Button Background Color",'avia_framework')),
'color' => array('type' => 'colorpicker', 'name'=> __("Button Font Color",'avia_framework')),
'border-color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform )
)
);
$advanced['cookie_consent_extra_button'] = array(
"id" => "cookie_consent_extra_button", //needs to match array key
"name" => "Cookie Consent Link and Info Button ",
"group" => __("Misc",'avia_framework'),
"description" => __("Change the styling for your cookie consent extra buttons",'avia_framework'),
"selector" => array(".avia-cookie-consent .avia-cookie-consent-button.av-extra-cookie-btn"=> ""),
"sections" => false,
"hover" => false,
"edit" => array(
'background_color' => array('type' => 'colorpicker', 'name'=> __("Button Background Color",'avia_framework')),
'color' => array('type' => 'colorpicker', 'name'=> __("Button Font Color",'avia_framework')),
'border-color' => array('type' => 'colorpicker', 'name'=> __("Border Color",'avia_framework')),
'font_size' => array('type' => 'size', 'range' => '8-80', 'name'=> __("Font Size",'avia_framework')),
'font_weight' => array('type' => 'select', 'name'=> __("Font Weight",'avia_framework'), 'options' => $weight),
'text_transform' => array('type' => 'select', 'name'=> __("Text Transform",'avia_framework'), 'options' => $transform )
)
);
//body font size
//dropdown menu
//icon colors
//hover states
//links
// all sections/specific section
Warning: array_merge(): Argument #2 is not an array in /home/forge/www.eazybook.com/wp-content/themes/enfold/framework/php/class-style-generator.php on line 100
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
/*add color styles
Example of available values
$bg => #222222
$bg2 => #f8f8f8
$primary => #c8ccc2
$secondary => #182402
$color => #ffffff
$border => #e1e1e1
$img => /wp-content/themes/skylink/images/background-images/dashed-cross-dark.png
$pos => top left
$repeat => no-repeat
$attach => scroll
$heading => #eeeeee
$meta => #888888
$background_image => #222222 url(/wp-content/themes/skylink/images/background-images/dashed-cross-dark.png) top left no-repeat scroll
*/
if(!function_exists('avia_woo_dynamic_css'))
{
add_filter('avia_dynamic_css_output', 'avia_woo_dynamic_css', 10, 2);
function avia_woo_dynamic_css($output, $color_set)
{
/*color sets*/
foreach ($color_set as $key => $colors) // iterates over the color sets: usually $key is either: header_color, main_color, footer_color, socket_color
{
$key = ".".$key;
extract($colors);
$constant_font = avia_backend_calc_preceived_brightness($primary, 230) ? '#ffffff' : $bg;
$dark_bg2 = avia_backend_calculate_similar_color($bg2, 'darker', 1);
$primary2 = avia_backend_calculate_similar_color($primary, 'darker', 4);
$output .= "
$key .cart_dropdown .dropdown_widget li a, #top $key .avia_cart_buttons .button, #top $key .dropdown_widget .buttons .button, $key .cart_dropdown_first .cart_dropdown_link, #top $key p.order-info mark{
color: $color;
}
$key .woocommerce-tabs .tabs a, $key .product_meta, $key .quantity input.qty, $key .cart_dropdown .dropdown_widget, $key .avia_select_fake_val, $key address, $key .product>a $key .product_excerpt, $key .term_description, #top $key .price .from, #top #wrap_all $key del, $key .dynamic-title .dynamic-heading, $key .dynamic-title a, $key .entry-summary .woocommerce-product-rating .woocommerce-review-link, $key .chosen-container-single .chosen-single span, #top $key .select2-container .select2-choice, $key .woocommerce-MyAccount-navigation-link.is-active a{
color: $meta;
}
$key div.product .woocommerce-tabs ul.tabs li.active a, $key .cart_dropdown .dropdown_widget .widget_shopping_cart_content, $key .cart_dropdown_link, $key .inner_product_header, $key .avia-arrow, #top $key .variations select, #top $key .variations input, #top $key #reviews input[type='text'], #top $key #reviews input[type='email'], $key #reviews .comment-text, $key #reviews #comment, $key .single-product-main-image .images a, #top $key .shop_table.cart .input-text, #top $key form.login .input-text, #top $key form.register .input-text, $key .chosen-container-single .chosen-search, $key .products .product-category h3:before, #top $key .quantity input.qty{
background-color: $bg;
}
$key .woocommerce-tabs .tabs .active, $key div.product .woocommerce-tabs .panel, $key .activeslideThumb, $key #payment li, $key .widget_price_filter .ui-slider-horizontal .ui-slider-range, $key .avia_cart, $key form.login, $key form.register, $key .col-1, $key .col-2, $key .variations_form, $key .dynamic-title, $key .single-product-main-image .thumbnails a , $key .quantity input.qty, $key .avia_cart_buttons, #top $key .dropdown_widget .buttons, div .dropdown_widget .cart_list li:hover, $key .woocommerce-info, #top $key .chosen-container-single .chosen-single, #top $key .chosen-search input[type='text'], $key .chosen-results, $key .chosen-container .chosen-drop, #top $key .select2-container .select2-choice, $key .widget_layered_nav_filters .chosen a:hover, $key .widget_layered_nav .chosen a:hover, $key .woocommerce-MyAccount-navigation-link.is-active, $key .woocommerce-MyAccount-navigation-link:hover{
background-color: $bg2;
}
$key .thumbnail_container img, #top $key #main .order_details, #top $key .chosen-search input[type='text'], #top $key .chosen-container-single .chosen-single, #top $key .chosen-container-active .chosen-single, #top $key .chosen-container .chosen-drop, $key .chosen-container .chosen-results, $key .products .product-category h3:before, #top $key .select2-container .select2-choice{
border-color: $border;
}
$key .summary div{
border-color: $bg2;
}
$key .widget_price_filter .price_slider_wrapper .price_slider .ui-slider-handle, #top $key a.remove, #top $key .onsale{
background-color: $primary;
}
#top $key .active-result.highlighted{
background-color: $primary;
color: $constant_font;
}
$key #shop_header a:hover{
color: #fff;
}
#top $key .price, $key .stock, #top #wrap_all $key ins, $key .products .product-category h3 .count, $key .widget_layered_nav_filters .chosen a:before, $key .widget_layered_nav .chosen a:before{
color:$primary;
}
$key .dynamic-title a:hover{
color:$secondary;
}
$key .widget_price_filter .price_slider_wrapper .ui-widget-content{
background: $border;
}
#top $key .chzn-container-single .chzn-single{
border-color: $border;
background-color: $bg2;
color:$meta;
}
$key #payment {
background-color: $bg2;
}
#top $key .quantity input.plus, #top $key .quantity input.minus {
border-color: $border;
background-color: $dark_bg2;
color:$meta;
}
";
//bookings menu
$output .= "
$key .wc-bookings-booking-form .block-picker li a, #top $key .wc-bookings-date-picker .ui-datepicker td{
border-color: $border;
}
#top $key .wc-bookings-booking-form .block-picker li a:hover,
#top $key .wc-bookings-booking-form .block-picker li a:focus,
#top $key .wc-bookings-booking-form .block-picker li a.selected{
background-color: $primary !important;
color:$constant_font !important;
}
#top $key .wc-bookings-date-picker legend .wc-bookings-date-picker-choose-date, #top $key .wc-bookings-date-picker .ui-datepicker-header{
border-color: $primary;
background-color: $primary;
color:$constant_font;
}
$key .wc-bookings-date-picker .ui-datepicker td.bookable a{
background-color: $primary !important;
color:$constant_font !important;
border-color: $border;
}
#top $key .wc-bookings-date-picker .ui-datepicker th,
#top $key .wc-bookings-date-picker .ui-datepicker td .ui-state-default{
color:$color;
}
#top $key .wc_bookings_field_start_date, #top $key .wc-bookings-date-picker span.label{
color: $meta;
}
#top $key .wc-bookings-booking-form .wc-bookings-booking-cost, #top $key .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-other-month{
background-color: $bg2;
}
#top .wc-bookings-booking-form .blockUI.blockOverlay{
background-color: $bg !important;
}
#top $key .wc-bookings-date-picker .ui-datepicker td.bookable-range .ui-state-default,
#top $key .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-current-day a,
#top $key .wc-bookings-date-picker .ui-datepicker td.bookable-range{
background: $primary2 !important;
color: $constant_font;
}
";
//sort menu
$output .= "
$key .sort-param > li > span, $key .sort-param > li > a, $key .sort-param ul{
background-color: $bg2;
}
$key .sort-param > li:hover > span, $key .sort-param > li:hover > a, $key .sort-param > li:hover ul, $key .product-sorting strong{
color:$heading;
}
$key .sort-param a{
color:$meta;
}
#top $key .sort-param a:hover{
color:$secondary;
}
$key .avia-bullet{
border-color: $meta;
}
#top $key a:hover .avia-bullet{
border-color: $secondary;
}
$key .sort-param .current-param a{
color:$primary;
}
$key .sort-param .current-param .avia-bullet{
border-color:$primary;
}
";
if($key == '.header_color')
{
$output .= "
#top .av-cart-counter{background-color:$primary; color: $constant_font;}
";
}
if($key == '.main_color')
{
$output .= "
.added_to_cart_notification, .added_to_cart_notification .avia-arrow{
background-color: $bg;
color: $meta;
border-color: $border;
}
.added_to_cart_notification strong{
color:$heading;
}
#top .select2-drop{ background-color: $bg; }
#top .select2-results{color:$meta;}
#top .select2-search{ background-color: $bg2; }
#top .select2-search, #top .select2-drop-active{border-color: $border;}
#top .select2-search input[type='text']{background-color: $bg; color: $meta; border-color: $border;}
.select2-results .select2-highlighted {color: $constant_font; background-color: $primary; }
";
}
//unset all vars with the help of variable vars :)
foreach($colors as $key=>$val){ unset($$key); }
}
return $output;
}
}
Page not found - Eazybook
Nothing Found
Sorry, the post you are looking for is not available. Maybe you want to perform a search?
For best search results, mind the following suggestions:
- Always double check your spelling.
- Try similar keywords, for example: tablet instead of laptop.
- Try using more than one keyword.
Scroll to top