コード例 #1
0
 /**
  * Access the single instance of this class
  * @return Avada
  */
 public static function get_instance()
 {
     if (self::$instance == null) {
         self::$instance = new Avada();
     }
     return self::$instance;
 }
コード例 #2
0
 /**
  * The class constructor
  */
 private function __construct()
 {
     // Set Variables
     self::$framework_dir = get_template_directory_uri() . '/framework';
     // Instantiate secondary classes
     $this->init = new Avada_Init();
     $this->admin = new Avada_Admin();
     $this->social_icons = new Avada_Social_Icons();
     $this->sidebars = new Avada_Sidebars();
     $this->portfolio = new Avada_Portfolio();
     $this->template = new Avada_Template();
     $this->blog = new Avada_Blog();
     $this->fonts = new Avada_Fonts();
     $this->image = new Avada_Images();
     $this->scripts = new Avada_Scripts();
     $this->head = new Avada_Head();
     $this->dynamic_css = new Avada_Dynamic_CSS();
     $this->updater = new Avada_Updater();
     $this->upgrade = new Avada_Upgrade();
     $this->layout_bbpress = new Avada_Layout_bbPress();
     $this->layout = new Avada_Layout();
     $this->events_calendar = new Avada_EventsCalendar();
     $this->google_map = new Avada_GoogleMap();
     add_action('wp', array($this, 'set_page_id'));
 }
コード例 #3
0
 /**
  * Set portfolio page template classes
  */
 public function set_portfolio_page_template_classes($classes)
 {
     if (is_page_template('portfolio-one-column.php') || is_page_template('portfolio-two-column.php') || is_page_template('portfolio-three-column.php') || is_page_template('portfolio-four-column.php') || is_page_template('portfolio-five-column.php') || is_page_template('portfolio-six-column.php') || is_page_template('portfolio-one-column-text.php') || is_page_template('portfolio-two-column-text.php') || is_page_template('portfolio-three-column-text.php') || is_page_template('portfolio-four-column-text.php') || is_page_template('portfolio-five-column-text.php') || is_page_template('portfolio-six-column-text.php') || is_page_template('portfolio-grid.php')) {
         $classes[] = avada_get_portfolio_classes(Avada::c_pageID());
     }
     return $classes;
 }
コード例 #4
0
 /**
  * Sets the active language
  *
  * @param string|bool
  */
 public static function set_active_language($lang = false)
 {
     if (is_string($lang) && !empty($lang)) {
         self::$active_language = $lang;
     }
     // If we have not defined a language, then autodetect
     if (false == $lang || empty($lang)) {
         // No need to proceed if both WPML & PLL are inactive
         if (!self::$is_pll && !self::$is_wpml) {
             return 'en';
         }
         // Preliminary work for PLL.
         // Adds the WPML compatibility layer.
         if (self::$is_pll && function_exists('pll_define_wpml_constants')) {
             pll_define_wpml_constants();
         }
         // PLL-WPML compatibility is active, we can now work easier.
         if (defined('ICL_LANGUAGE_CODE')) {
             self::$active_language = ICL_LANGUAGE_CODE;
             if ('all' == ICL_LANGUAGE_CODE) {
                 Avada::set_language_is_all(true);
                 if (self::$is_wpml) {
                     global $sitepress;
                     self::$active_language = $sitepress->get_default_language();
                 } elseif (self::$is_pll) {
                     self::$active_language = pll_default_language('slug');
                 }
             }
         }
     }
 }
コード例 #5
0
ファイル: header.php プロジェクト: pedrom40/sazoo.org
/**
 * Header
 *
 * @var  array  	any existing settings
 * @return array 	existing sections + header
 *
 */
function avada_options_section_header($sections)
{
    $settings = get_option(Avada::get_option_name(), array());
    if (!isset($settings['side_header_break_point'])) {
        $settings['side_header_break_point'] = 800;
    }
    $sections['header'] = array('label' => esc_html__('Header', 'Avada'), 'id' => 'heading_header', 'is_panel' => true, 'priority' => 3, 'icon' => 'el-icon-arrow-up', 'fields' => array('header_info_1' => array('label' => esc_html__('Header Content', 'Avada'), 'description' => '', 'id' => 'header_info_1', 'default' => '', 'icon' => true, 'type' => 'sub-section', 'fields' => array('header_position' => array('label' => esc_html__('Header Position', 'Avada'), 'description' => esc_html__('Controls the position of the header to be in the top, left or right of the site. The main menu height, header padding and logo margin options will auto adjust based off your selection for ideal aesthetics.', 'Avada'), 'id' => 'header_position', 'default' => 'Top', 'type' => 'radio-buttonset', 'choices' => array('Top' => esc_html__('Top', 'Avada'), 'Left' => esc_html__('Left', 'Avada'), 'Right' => esc_html__('Right', 'Avada'))), 'header_layout' => array('label' => esc_html__('Select a Header Layout', 'Avada'), 'description' => esc_html__('Controls the general layout of the header. Headers 2-5 allow additional content areas via the header content options 1-3. Header 6 only allows parent level menu items, no child levels will display. The main menu height, header padding and logo margin options will auto adjust based off your selection for ideal aesthetics.', 'Avada'), 'id' => 'header_layout', 'default' => 'v1', 'type' => 'radio-image', 'choices' => array('v1' => get_template_directory_uri() . '/assets/images/patterns/header1.png', 'v2' => get_template_directory_uri() . '/assets/images/patterns/header2.png', 'v3' => get_template_directory_uri() . '/assets/images/patterns/header3.png', 'v4' => get_template_directory_uri() . '/assets/images/patterns/header4.png', 'v5' => get_template_directory_uri() . '/assets/images/patterns/header5.png', 'v6' => get_template_directory_uri() . '/assets/images/patterns/header6.png'), 'required' => array(array('setting' => 'header_position', 'operator' => '==', 'value' => 'Top'))), 'slider_position' => array('label' => esc_html__('Slider Position', 'Avada'), 'description' => esc_html__('Controls if the slider displays below or above the header.', 'Avada'), 'id' => 'slider_position', 'default' => 'Below', 'type' => 'radio-buttonset', 'choices' => array('Below' => esc_html__('Below', 'Avada'), 'Above' => esc_html__('Above', 'Avada')), 'required' => array(array('setting' => 'header_position', 'operator' => '==', 'value' => 'Top'))), 'header_left_content' => array('label' => esc_html__('Header Content 1', 'Avada'), 'description' => esc_html__('Controls the content that displays in the top left section.', 'Avada'), 'id' => 'header_left_content', 'default' => 'Contact Info', 'type' => 'select', 'choices' => array('Contact Info' => esc_html__('Contact Info', 'Avada'), 'Social Links' => esc_html__('Social Links', 'Avada'), 'Navigation' => esc_html__('Navigation', 'Avada'), 'Leave Empty' => esc_html__('Leave Empty', 'Avada')), 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v5'))), 'header_right_content' => array('label' => esc_html__('Header Content 2', 'Avada'), 'description' => esc_html__('Controls the content that displays in the top right section.', 'Avada'), 'id' => 'header_right_content', 'default' => 'Navigation', 'type' => 'select', 'choices' => array('Contact Info' => esc_html__('Contact Info', 'Avada'), 'Social Links' => esc_html__('Social Links', 'Avada'), 'Navigation' => esc_html__('Navigation', 'Avada'), 'Leave Empty' => esc_html__('Leave Empty', 'Avada')), 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v5'))), 'header_v4_content' => array('label' => esc_html__('Header Content 3', 'Avada'), 'description' => esc_html__('Controls the content that displays in the middle right section.', 'Avada'), 'id' => 'header_v4_content', 'default' => 'Tagline And Search', 'type' => 'select', 'choices' => array('Tagline' => esc_html__('Tagline', 'Avada'), 'Search' => esc_html__('Search', 'Avada'), 'Tagline And Search' => esc_html__('Tagline And Search', 'Avada'), 'Banner' => esc_html__('Banner', 'Avada'), 'None' => esc_html__('Leave Empty', 'Avada')), 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '==', 'value' => 'v4'))), 'header_number' => array('label' => esc_html__('Phone Number For Contact Info', 'Avada'), 'description' => esc_html__('This content will display if you have "Contact Info" selected for the Header Content 1 or 2 option above.', 'Avada'), 'id' => 'header_number', 'default' => 'Call Us Today! 1.555.555.555', 'type' => 'text', 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v5'))), 'header_email' => array('label' => esc_html__('Email Address For Contact Info', 'Avada'), 'description' => esc_html__('This content will display if you have "Contact Info" selected for the Header Content 1 or 2 option above.', 'Avada'), 'id' => 'header_email', 'default' => '*****@*****.**', 'type' => 'text', 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v5'))), 'header_tagline' => array('label' => esc_html__('Tagline For Content 3', 'Avada'), 'description' => esc_html__('This content will display if you have "Tagline" selected for the Header Content 3 option above.', 'Avada'), 'id' => 'header_tagline', 'default' => 'Insert Tagline Here', 'type' => 'textarea', 'required' => array(array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_v4_content', 'operator' => 'contains', 'value' => 'Tagline'))), 'header_banner_code' => array('label' => esc_html__('Banner Code For Content 3', 'Avada'), 'description' => esc_html__('This content will display if you have "Banner" selected for the Header Content 3 option above. Add HTML banner code for Header Content 3. Shortcodes, like buttons, can be used here also.', 'Avada'), 'id' => 'header_banner_code', 'default' => '', 'type' => 'code', 'choices' => array('language' => 'html', 'theme' => 'chrome'), 'required' => array(array('setting' => 'header_v4_content', 'operator' => '==', 'value' => 'Banner'))))), 'header_info_2' => array('label' => esc_html__('Header Background Image', 'Avada'), 'description' => '', 'id' => 'header_info_2', 'default' => '', 'icon' => true, 'type' => 'sub-section', 'fields' => array('header_bg_image' => array('label' => esc_html__('Background Image For Header Area', 'Avada'), 'description' => esc_html__('Select an image for the header background. If left empty, the header background color will be used. For top headers the image displays on top of the header background color and will only display if header opacity is set to 1. For side headers the image displays behind the header background color so the header opacity must be set below 1 to see the image.', 'Avada'), 'id' => 'header_bg_image', 'default' => '', 'mod' => '', 'type' => 'media'), 'header_bg_full' => array('label' => esc_html__('100% Background Image', 'Avada'), 'description' => esc_html__('Turn on to have the header background image display at 100% in width and height according to the window size.', 'Avada'), 'id' => 'header_bg_full', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'header_bg_parallax' => array('label' => esc_html__('Parallax Background Image', 'Avada'), 'description' => esc_html__('Turn on to use a parallax scrolling effect on the background image. Only works for top header position.', 'Avada'), 'id' => 'header_bg_parallax', 'default' => '1', 'type' => 'switch', 'required' => array(array('setting' => 'header_position', 'operator' => '==', 'value' => 'Top'), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'header_bg_repeat' => array('label' => esc_html__('Background Repeat', 'Avada'), 'description' => esc_html__('Controls how the background image repeats.', 'Avada'), 'id' => 'header_bg_repeat', 'default' => 'no-repeat', 'type' => 'select', 'choices' => array('repeat' => esc_html__('Repeat All', 'Avada'), 'repeat-x' => esc_html__('Repeat Horizontally', 'Avada'), 'repeat-y' => esc_html__('Repeat Vertically', 'Avada'), 'no-repeat' => esc_html__('No Repeat', 'Avada')), 'required' => array(array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'header_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))))), 'header_styling' => array('label' => esc_html__('Header Styling', 'Avada'), 'description' => '', 'id' => 'header_styling', 'default' => '', 'icon' => true, 'type' => 'sub-section', 'fields' => array('side_header_width' => array('label' => esc_html__('Header Width For Left/Right Position', 'Avada'), 'description' => esc_html__('Controls the width of the left or right side header. In pixels.', 'Avada'), 'id' => 'side_header_width', 'default' => '280', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '800', 'step' => '1'), 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'))), 'header_padding' => array('label' => esc_html__('Header Padding', 'Avada'), 'description' => esc_html__('Controls the top/right/bottom/left padding for the header.', 'Avada'), 'id' => 'header_padding', 'choices' => array('top' => true, 'bottom' => true, 'left' => true, 'right' => true), 'default' => array('top' => '0px', 'bottom' => '0px', 'left' => '0px', 'right' => '0px'), 'type' => 'spacing'), 'header_shadow' => array('label' => esc_html__('Header Shadow', 'Avada'), 'description' => esc_html__('Turn on to display a header drop shadow. This option is incompatible with Internet Explorer versions older than IE11.', 'Avada'), 'id' => 'header_shadow', 'default' => '0', 'type' => 'switch'), 'header_100_width' => array('label' => esc_html__('100% Header Width', 'Avada'), 'description' => esc_html__('Turn on to have the header area display at 100% width according to the window size. Turn off to follow site width.', 'Avada'), 'id' => 'header_100_width', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'layout', 'operator' => '==', 'value' => 'Wide'), array('setting' => 'header_position', 'operator' => '==', 'value' => 'Top'))), 'header_bg_color' => array('label' => esc_html__('Header Background Color', 'Avada'), 'description' => esc_html__('Controls the background color and opacity for the header. For top headers, opacity set below 1 will remove the header height completely. For side headers, opacity set below 1 will display a color overlay.', 'Avada'), 'id' => 'header_bg_color', 'type' => 'color-alpha', 'default' => '#ffffff'), 'header_border_color' => array('label' => esc_html__('Header Border Color', 'Avada'), 'description' => esc_html__('Controls the border colors for the header. If using left or right header position it controls the menu divider lines.', 'Avada'), 'id' => 'header_border_color', 'default' => '#e5e5e5', 'type' => 'color-alpha', 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '=', 'value' => 'v5'))), 'header_top_bg_color' => array('label' => esc_html__('Header Top Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the top header section used in Headers 2-5.', 'Avada'), 'id' => 'header_top_bg_color', 'default' => '#a0ce4e', 'type' => 'color-alpha', 'required' => array(array('setting' => 'header_position', 'operator' => '=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v1'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v6'))), 'tagline_font_size' => array('label' => esc_html__('Header Tagline Font Size', 'Avada'), 'description' => esc_html__('Controls the font size for the tagline text when using header 4.', 'Avada'), 'id' => 'tagline_font_size', 'default' => '16px', 'type' => 'dimension', 'choices' => array('units' => array('px', 'em')), 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '==', 'value' => 'v4'))), 'tagline_font_color' => array('label' => esc_html__('Header Tagline Font Color', 'Avada'), 'description' => esc_html__('Controls the font color for the tagline text when using header 4.', 'Avada'), 'id' => 'tagline_font_color', 'default' => '#747474', 'type' => 'color', 'class' => 'avada-or-gutter', 'required' => array(array('setting' => 'header_position', 'operator' => '!=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '==', 'value' => 'v4'))))), 'sticky_header' => array('label' => esc_html__('Sticky Header', 'Avada'), 'description' => '', 'id' => 'sticky_header', 'default' => '', 'icon' => true, 'type' => 'sub-section', 'fields' => array('header_sticky' => array('label' => esc_html__('Sticky Header', 'Avada'), 'description' => esc_html__('Turn on to enable a sticky header.', 'Avada'), 'id' => 'header_sticky', 'default' => 1, 'type' => 'switch'), 'header_sticky_tablet' => array('label' => esc_html__('Sticky Header on Tablets', 'Avada'), 'description' => esc_html__('Turn on to enable a sticky header when scrolling on tablets.', 'Avada'), 'id' => 'header_sticky_tablet', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0), array('setting' => 'responsive', 'operator' => '==', 'value' => '1'))), 'header_sticky_mobile' => array('label' => esc_html__('Sticky Header on Mobiles', 'Avada'), 'description' => esc_html__('Turn on to enable a sticky header when scrolling on mobiles.', 'Avada'), 'id' => 'header_sticky_mobile', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0), array('setting' => 'responsive', 'operator' => '==', 'value' => '1'))), 'header_sticky_shrinkage' => array('label' => esc_html__('Sticky Header Animation', 'Avada'), 'description' => esc_html__('Turn on to allow the sticky header to animate to a smaller height when activated. Only works with header v1 - v3 and v6.', 'Avada'), 'id' => 'header_sticky_shrinkage', 'default' => '1', 'type' => 'switch', 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v4'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v5'))), 'header_sticky_type2_layout' => array('label' => esc_html__('Sticky Header Display For Headers 4 - 5 ', 'Avada'), 'description' => esc_html__('Controls what displays in the sticky header when using header v4 - v5.', 'Avada'), 'id' => 'header_sticky_type2_layout', 'default' => 'menu_only', 'type' => 'radio-buttonset', 'choices' => array('menu_only' => esc_html__('Menu Only', 'Avada'), 'menu_and_logo' => esc_html__('Menu + Logo Area', 'Avada')), 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0), array('setting' => 'header_position', 'operator' => '=', 'value' => 'Top'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v1'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v2'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v3'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v6'))), 'header_sticky_bg_color' => array('label' => esc_html__('Sticky Header Background Color', 'Avada'), 'description' => esc_html__('Controls the background color for the sticky header.', 'Avada'), 'id' => 'header_sticky_bg_color', 'type' => 'color-alpha', 'default' => '#ffffff', 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0))), 'header_sticky_nav_padding' => array('label' => esc_html__('Sticky Header Menu Item Padding', 'Avada'), 'description' => esc_html__('Controls the space between each menu item in the sticky header.', 'Avada'), 'id' => 'header_sticky_nav_padding', 'default' => isset($settings['nav_padding']) && !empty($settings['nav_padding']) ? $settings['nav_padding'] : '35', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '200', 'step' => '1'), 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => '0'), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v6'))), 'header_sticky_nav_font_size' => array('label' => esc_html__('Sticky Header Navigation Font Size', 'Avada'), 'description' => esc_html__('Controls the font size of the menu items in the sticky header.', 'Avada'), 'id' => 'header_sticky_nav_font_size', 'default' => isset($settings['nav_font_size']) && !empty($settings['nav_font_size']) ? $settings['nav_font_size'] : '14px', 'type' => 'dimension', 'choices' => array('units' => array('px', 'em')), 'required' => array(array('setting' => 'header_sticky', 'operator' => '!=', 'value' => 0), array('setting' => 'header_layout', 'operator' => '!=', 'value' => 'v6')))))));
    return $sections;
}
コード例 #6
0
ファイル: contact.php プロジェクト: pedrom40/sazoo.org
/**
 * Contact
 *
 * @var  array  	any existing settings
 * @return array 	existing sections + contact
 *
 */
function avada_options_section_contact($sections)
{
    $settings = get_option(Avada::get_option_name(), array());
    if (!isset($settings['map_overlay_color'])) {
        $settings['map_overlay_color'] = '#a0ce4e';
    }
    $sections['contact'] = array('label' => esc_html__('Contact Form', 'Avada'), 'id' => 'heading_contact', 'priority' => 22, 'is_panel' => true, 'icon' => 'el-icon-envelope', 'fields' => array('contact_form_options_subsection' => array('label' => esc_html__('Contact Form', 'Avada'), 'description' => '', 'id' => 'contact_form_options_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('contact_form_important_note_info' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> The options on this tab are only for the contact form that displays on the "Contact" page template.', 'Avada') . '</div>', 'id' => 'contact_form_important_note_info', 'type' => 'custom'), 'email_address' => array('label' => esc_html__('Email Address', 'Avada'), 'description' => esc_html__('Enter the email address the form should be sent to. This only works for the form on the contact page template.', 'Avada'), 'id' => 'email_address', 'default' => '', 'type' => 'text', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact')), 'contact_comment_position' => array('label' => esc_html__('Contact Form Comment Area Position', 'Avada'), 'description' => esc_html__('Controls the position of the comment field with respect to the other fields.', 'Avada'), 'id' => 'contact_comment_position', 'default' => 'below', 'type' => 'radio-buttonset', 'choices' => array('above' => esc_html__('Above', 'Avada'), 'below' => esc_html__('Below', 'Avada')), 'active_callback' => array('Avada_Options_Conditionals', 'is_contact')), 'contact_form_options_info_2' => array('label' => esc_html__('ReCaptcha', 'Avada'), 'description' => '', 'id' => 'contact_form_options_info_2', 'type' => 'info'), 'recaptcha_php_version_warning' => version_compare(PHP_VERSION, '5.3') >= 0 ? array() : array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . esc_html__('ReCaptcha is not compatible with the PHP version you\'re using. Please update your server to at least PHP 5.3', 'Avada') . '</div>', 'id' => 'recaptcha_php_version_warning', 'type' => 'custom'), 'recaptcha_public' => Avada::$is_updating || version_compare(PHP_VERSION, '5.3') >= 0 ? array('label' => esc_html__('ReCaptcha Site Key', 'Avada'), 'description' => sprintf(esc_html__('Follow the steps in %s to get the site key.', 'Avada'), '<a href="http://theme-fusion.com/avada-doc/pages/setting-up-contact-page/" target="_blank">' . esc_html__('our docs', 'Avada') . '</a>'), 'id' => 'recaptcha_public', 'default' => '', 'type' => 'text', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact')) : array(), 'recaptcha_private' => Avada::$is_updating || version_compare(PHP_VERSION, '5.3') >= 0 ? array('label' => esc_html__('ReCaptcha Secret Key', 'Avada'), 'description' => sprintf(esc_html__('Follow the steps in %s to get the secret key.', 'Avada'), '<a href="http://theme-fusion.com/avada-doc/pages/setting-up-contact-page/" target="_blank">' . esc_html__('our docs', 'Avada') . '</a>'), 'id' => 'recaptcha_private', 'default' => '', 'type' => 'text', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact')) : array(), 'recaptcha_color_scheme' => Avada::$is_updating || version_compare(PHP_VERSION, '5.3') >= 0 ? array('label' => esc_html__('ReCaptcha Color Scheme', 'Avada'), 'description' => esc_html__('Controls the recaptcha color scheme.', 'Avada'), 'id' => 'recaptcha_color_scheme', 'default' => 'Clean', 'type' => 'select', 'choices' => array('light' => esc_html__('Light', 'Avada'), 'dark' => esc_html__('Dark', 'Avada')), 'active_callback' => array('Avada_Options_Conditionals', 'is_contact')) : array())), 'google_map_section' => array('label' => esc_html__('Google Map', 'Avada'), 'description' => '', 'id' => 'google_map_section', 'default' => esc_html__('Google Map', 'Avada'), 'icon' => true, 'type' => 'sub-section', 'fields' => array('google_map_disabled_note' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> Google Maps Script is disabled in Advanced > Theme Features section. Please enable it to see the options.', 'Avada') . '</div>', 'id' => 'google_map_disabled_note', 'type' => 'custom', 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '0'))), 'google_map_important_note_info' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> The options on this tab are only for the google map that displays on the "Contact" page template, they do not control the google map shortcode.', 'Avada') . '</div>', 'id' => 'google_map_important_note_info', 'type' => 'custom', 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'gmap_type' => array('label' => esc_html__('Google Map Type', 'Avada'), 'description' => esc_html__('Controls the type of google map that displays.', 'Avada'), 'id' => 'gmap_type', 'default' => 'roadmap', 'type' => 'select', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'choices' => array('roadmap' => esc_html__('Roadmap', 'Avada'), 'satellite' => esc_html__('Satellite', 'Avada'), 'hybrid' => esc_html__('Hybrid', 'Avada'), 'terrain' => esc_html__('Terrain', 'Avada')), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'gmap_dimensions' => array('label' => esc_html__('Google Map Dimensions', 'Avada'), 'description' => esc_html__('Controls the width and height of the google map.', 'Avada'), 'id' => 'gmap_dimensions', 'units' => false, 'default' => array('width' => '100%', 'height' => '415px'), 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'type' => 'dimensions', 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'gmap_topmargin' => array('label' => esc_html__('Google Map Top Margin', 'Avada'), 'description' => esc_html__('This is only applied to google maps that are not 100% width. It controls the distance to menu/page title.', 'Avada'), 'id' => 'gmap_topmargin', 'default' => '55px', 'type' => 'dimension', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'gmap_address' => array('label' => esc_html__('Google Map Address', 'Avada'), 'description' => esc_html__('Add the address to the location you wish to display. Single address example: 775 New York Ave, Brooklyn, Kings, New York 11203. If the location is off, please try to use long/lat coordinates with latlng=. ex: latlng=12.381068,-1.492711. For multiple addresses, separate addresses by using the | symbol. ex: Address 1|Address 2|Address 3.', 'Avada'), 'id' => 'gmap_address', 'default' => '775 New York Ave, Brooklyn, Kings, New York 11203', 'type' => 'textarea', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_zoom_level' => array('label' => esc_html__('Map Zoom Level', 'Avada'), 'description' => esc_html__('Controls the zoom level of the google map. Higher number is more zoomed in.', 'Avada'), 'id' => 'map_zoom_level', 'default' => 8, 'type' => 'slider', 'choices' => array('min' => 0, 'max' => 22, 'step' => 1), 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_pin' => array('label' => esc_html__('Address Pin', 'Avada'), 'description' => esc_html__('Turn on to display the google map address pin.', 'Avada'), 'id' => 'map_pin', 'default' => '1', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'gmap_pin_animation' => array('label' => esc_html__('Address Pin Animation', 'Avada'), 'description' => esc_html__('Turn on to enable address pin animation.', 'Avada'), 'id' => 'gmap_pin_animation', 'default' => '1', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_popup' => array('label' => esc_html__('Map Popup On Click', 'Avada'), 'description' => esc_html__('Turn on to require a click to display the popup graphic with address info for the pin on the map.', 'Avada'), 'id' => 'map_popup', 'default' => '0', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_scrollwheel' => array('label' => esc_html__('Map Zoom With Scrollwheel', 'Avada'), 'description' => esc_html__('Turn on to use the mouse scrollwheel to zoom the google map.', 'Avada'), 'id' => 'map_scrollwheel', 'default' => '1', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_scale' => array('label' => esc_html__('Map Scale', 'Avada'), 'description' => esc_html__('Turn on to display the google map scale.', 'Avada'), 'id' => 'map_scale', 'default' => '1', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_zoomcontrol' => array('label' => esc_html__('Map Zoom & Pan Control Icons', 'Avada'), 'description' => esc_html__('Turn on to display the google map zoom control icon and pan control icon.', 'Avada'), 'id' => 'map_zoomcontrol', 'default' => '1', 'type' => 'switch', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))))), 'google_map_design_styling_section' => array('label' => esc_html__('Google Map Styling', 'Avada'), 'description' => '', 'id' => 'google_map_design_styling_section', 'icon' => true, 'type' => 'sub-section', 'fields' => array('google_map_disabled_note_1' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> Google Maps Script is disabled in Advanced > Theme Features section. Please enable it to see the options.', 'Avada') . '</div>', 'id' => 'google_map_disabled_note_1', 'type' => 'custom', 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '0'))), 'google_map_styling_important_note_info' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> The options on this tab are only for the google map that displays on the "Contact" page template, they do not control the google map shortcode.', 'Avada') . '</div>', 'id' => 'google_map_styling_important_note_info', 'type' => 'custom', 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_styling' => array('label' => esc_html__('Select the Map Styling', 'Avada'), 'description' => esc_html__('Controls the google map styles. Default is google style, Theme is our style, or choose Custom to select your own style options below.', 'Avada'), 'id' => 'map_styling', 'default' => 'default', 'type' => 'select', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'choices' => array('default' => esc_html__('Default Styling', 'Avada'), 'theme' => esc_html__('Theme Styling', 'Avada'), 'custom' => esc_html__('Custom Styling', 'Avada')), 'required' => array(array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_overlay_color' => array('label' => esc_html__('Map Overlay Color', 'Avada'), 'description' => esc_html__('Custom styling setting only. Controls the overlay color for the map.', 'Avada'), 'id' => 'map_overlay_color', 'default' => isset($settings['primary_color']) ? $settings['primary_color'] : '#a0ce4e', 'type' => 'color-alpha', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_infobox_styling' => array('label' => esc_html__('Info Box Styling', 'Avada'), 'description' => esc_html__('Custom styling setting only. Controls the styling of the info box.', 'Avada'), 'id' => 'map_infobox_styling', 'default' => 'default', 'type' => 'select', 'choices' => array('default' => esc_html__('Default Infobox', 'Avada'), 'custom' => esc_html__('Custom Infobox', 'Avada')), 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_infobox_content' => array('label' => esc_html__('Info Box Content', 'Avada'), 'description' => esc_html__('Custom styling setting only. Type in custom info box content to replace the default address string. For multiple addresses, separate info box contents by using the | symbol. ex: InfoBox 1|InfoBox 2|InfoBox 3', 'Avada'), 'id' => 'map_infobox_content', 'default' => '', 'type' => 'textarea', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_infobox_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_infobox_bg_color' => array('label' => esc_html__('Info Box Background Color', 'Avada'), 'description' => esc_html__('Custom styling setting only. Controls the info box background color.', 'Avada'), 'id' => 'map_infobox_bg_color', 'default' => 'rgba(255,255,255,0)', 'type' => 'color-alpha', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_infobox_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_infobox_text_color' => array('label' => esc_html__('Info Box Text Color', 'Avada'), 'description' => esc_html__('Custom styling setting only. Controls the info box text color.', 'Avada'), 'id' => 'map_infobox_text_color', 'default' => 140 < Avada_Color::get_brightness($settings['map_overlay_color']) ? '#ffffff' : '#747474', 'type' => 'color', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_infobox_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1'))), 'map_custom_marker_icon' => array('label' => esc_html__('Custom Marker Icon', 'Avada'), 'description' => esc_html__('Custom styling setting only. Use full image urls for custom marker icons or input "theme" for our custom marker. For multiple addresses, separate icons by using the | symbol or use one for all. ex: Icon 1|Icon 2|Icon 3', 'Avada'), 'id' => 'map_custom_marker_icon', 'default' => '', 'type' => 'textarea', 'active_callback' => array('Avada_Options_Conditionals', 'is_contact'), 'required' => array(array('setting' => 'map_infobox_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'map_styling', 'operator' => '==', 'value' => 'custom'), array('setting' => 'status_gmap', 'operator' => '=', 'value' => '1')))))));
    return $sections;
}
コード例 #7
0
/**
 * Instantiate the Avada class
 * Make sure the class is properly set-up.
 * The Avada class is a singular object so we can directly access the one true Avada object using this function.
 */
function Avada()
{
    // Instantiate the class
    $avada = Avada::get_instance();
    // Properly add the settings
    $avada->settings = new Avada_Settings();
    $avada->mfi = new Avada_Multiple_Featured_Images();
    return $avada;
}
コード例 #8
0
/**
 * Shortcode-Styling settings
 *
 * @var array any existing settings
 * @return array existing sections + shortcode_styling
 *
 */
function avada_options_section_shortcode_styling($sections)
{
    $settings = get_option(Avada::get_option_name(), array());
    if (isset($settings['h2_typography']['color'])) {
        $h2_or_primary_default = $settings['h2_typography']['color'];
    } elseif (isset($settings['h2_color'])) {
        $h2_or_primary_default = $settings['h2_color'];
    } else {
        $h2_or_primary_default = '#a0ce4e';
    }
    $sections['shortcode_styling'] = array('label' => esc_html__('Shortcodes Styling', 'Avada'), 'id' => 'heading_shortcode_styling', 'is_panel' => true, 'priority' => 14, 'icon' => 'el-icon-check', 'fields' => array('shortcode_animations_accordion' => array('label' => esc_html__('Animations', 'Avada'), 'description' => '', 'id' => 'shortcode_animations_accordion', 'default' => '', 'type' => 'accordion', 'fields' => array('animation_offset' => array('label' => esc_html__('Animation Offset', 'Avada'), 'description' => esc_html__('Controls when the animation should start.', 'Avada'), 'id' => 'animation_offset', 'default' => 'top-into-view', 'type' => 'select', 'choices' => array('top-into-view' => esc_html__('Top of element hits bottom of viewport', 'Avada'), 'top-mid-of-view' => esc_html__('Top of element hits middle of viewport', 'Avada'), 'bottom-in-view' => esc_html__('Bottom of element enters viewport', 'Avada'))))), 'blog_shortcode_section' => array('label' => esc_html__('Blog Shortcode', 'Avada'), 'description' => '', 'id' => 'blog_shortcode_section', 'default' => '', 'type' => 'accordion', 'fields' => array('dates_box_color' => array('label' => esc_html__('Blog Date Box Color', 'Avada'), 'description' => esc_html__('Controls the color of the date box in blog alternate and recent posts layouts.', 'Avada'), 'id' => 'dates_box_color', 'default' => '#eef0f2', 'type' => 'color-alpha'))), 'button_shortcode_section' => array('label' => esc_html__('Button Shortcode', 'Avada'), 'id' => 'button_shortcode_section', 'type' => 'accordion', 'fields' => array('button_size' => array('label' => esc_html__('Button Size', 'Avada'), 'description' => esc_html__('Controls the default button size.', 'Avada'), 'id' => 'button_size', 'default' => 'Large', 'type' => 'radio-buttonset', 'choices' => array('Small' => esc_html__('Small', 'Avada'), 'Medium' => esc_html__('Medium', 'Avada'), 'Large' => esc_html__('Large', 'Avada'), 'XLarge' => esc_html__('X-Large', 'Avada'))), 'button_span' => array('label' => esc_html__('Button Span', 'Avada'), 'description' => esc_html__('Controls if the button spans the full width of its container.', 'Avada'), 'id' => 'button_span', 'default' => 'no', 'type' => 'radio-buttonset', 'choices' => array('yes' => esc_html__('Yes', 'Avada'), 'no' => esc_html__('No', 'Avada'))), 'button_shape' => array('label' => esc_html__('Button Shape', 'Avada'), 'description' => esc_html__('Controls the default button shape.', 'Avada'), 'id' => 'button_shape', 'default' => 'Round', 'type' => 'radio-buttonset', 'choices' => array('Square' => esc_html__('Square', 'Avada'), 'Round' => esc_html__('Round', 'Avada'), 'Pill' => esc_html__('Pill', 'Avada'))), 'button_type' => array('label' => esc_html__('Button Type', 'Avada'), 'description' => esc_html__('Controls the default button type.', 'Avada'), 'id' => 'button_type', 'default' => 'Flat', 'type' => 'radio-buttonset', 'choices' => array('Flat' => esc_html__('Flat', 'Avada'), '3d' => esc_html__('3D', 'Avada'))), 'button_typography' => array('id' => 'button_typography', 'label' => esc_html__('Button Typography', 'Avada'), 'description' => esc_html__('These settings control the typography for all button text.', 'Avada'), 'type' => 'typography', 'choices' => array('font-family' => true, 'font-weight' => true, 'letter-spacing' => true), 'default' => array('font-family' => 'PT Sans', 'font-weight' => '400', 'letter-spacing' => '0')), 'button_gradient_top_color' => array('label' => esc_html__('Button Gradient Top Color', 'Avada'), 'description' => esc_html__('Controls the top color of the button background.', 'Avada'), 'id' => 'button_gradient_top_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'button_gradient_bottom_color' => array('label' => esc_html__('Button Gradient Bottom Color', 'Avada'), 'description' => esc_html__('Controls the bottom color of the button background.', 'Avada'), 'id' => 'button_gradient_bottom_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'button_gradient_top_color_hover' => array('label' => esc_html__('Button Gradient Top Hover Color', 'Avada'), 'description' => esc_html__('Controls the top hover color of the button background.', 'Avada'), 'id' => 'button_gradient_top_color_hover', 'default' => '#96c346', 'type' => 'color-alpha'), 'button_gradient_bottom_color_hover' => array('label' => esc_html__('Button Gradient Bottom Hover Color', 'Avada'), 'description' => esc_html__('Controls the bottom hover color of the button background.', 'Avada'), 'id' => 'button_gradient_bottom_color_hover', 'default' => '#96c346', 'type' => 'color-alpha'), 'button_accent_color' => array('label' => esc_html__('Button Accent Color', 'Avada'), 'description' => esc_html__('Controls the color of the button border, divider, text and icon.', 'Avada'), 'id' => 'button_accent_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'button_accent_hover_color' => array('label' => esc_html__('Button Accent Hover Color', 'Avada'), 'description' => esc_html__('Controls the hover color of the button border, divider, text and icon.', 'Avada'), 'id' => 'button_accent_hover_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'button_bevel_color' => array('label' => esc_html__('Button Bevel Color For 3D Mode', 'Avada'), 'description' => esc_html__('Controls the bevel color of the buttons when using 3D button type.', 'Avada'), 'id' => 'button_bevel_color', 'default' => '#54770F', 'type' => 'color-alpha'), 'button_border_width' => array('label' => esc_html__('Button Border Width', 'Avada'), 'description' => esc_html__('Controls the border width for buttons.', 'Avada'), 'id' => 'button_border_width', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '20', 'step' => '1')))), 'carousel_shortcode_section' => array('label' => esc_html__('Carousel Shortcode', 'Avada'), 'description' => '', 'id' => 'carousel_shortcode_section', 'type' => 'accordion', 'fields' => array('carousel_nav_color' => array('label' => esc_html__('Carousel Navigation Box Color', 'Avada'), 'description' => esc_html__('Controls the color of the navigation box for carousel sliders.', 'Avada'), 'id' => 'carousel_nav_color', 'default' => 'rgba(0,0,0,0.6)', 'type' => 'color-alpha'), 'carousel_hover_color' => array('label' => esc_html__('Carousel Hover Navigation Box Color', 'Avada'), 'description' => esc_html__('Controls the color of the hover navigation box for carousel sliders.', 'Avada'), 'id' => 'carousel_hover_color', 'default' => 'rgba(0,0,0,0.7)', 'type' => 'color-alpha'), 'carousel_speed' => array('label' => esc_html__('Carousel Speed', 'Avada'), 'description' => esc_html__('Controls the speed of all carousel elements. ex: 1000 = 1 second.', 'Avada'), 'id' => 'carousel_speed', 'default' => '2500', 'type' => 'slider', 'choices' => array('min' => '1000', 'max' => '20000', 'step' => '250')))), 'checklist_shortcode_section' => array('label' => esc_html__('Checklist Shortcode', 'Avada'), 'description' => '', 'id' => 'checklist_shortcode_section', 'type' => 'accordion', 'fields' => array('checklist_icons_color' => array('label' => esc_html__('Checklist Icon Color', 'Avada'), 'description' => esc_html__('Controls the color of the checklist icon.', 'Avada'), 'id' => 'checklist_icons_color', 'default' => '#ffffff', 'type' => 'color'), 'checklist_circle' => array('label' => esc_html__('Checklist Circle', 'Avada'), 'description' => esc_html__('Turn on if you want to display a circle background for checklists.', 'Avada'), 'id' => 'checklist_circle', 'default' => '1', 'type' => 'switch'), 'checklist_circle_color' => array('label' => esc_html__('Checklist Circle Color', 'Avada'), 'description' => esc_html__('Controls the color of the checklist circle background.', 'Avada'), 'id' => 'checklist_circle_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'))), 'content_box_shortcode_section' => array('label' => esc_html__('Content Box Shortcode', 'Avada'), 'id' => 'content_box_shortcode_section', 'type' => 'accordion', 'fields' => array('content_box_bg_color' => array('label' => esc_html__('Content Box Background Color', 'Avada'), 'description' => esc_html__('Controls the background color for content boxes.', 'Avada'), 'id' => 'content_box_bg_color', 'default' => 'rgba(255,255,255,0)', 'type' => 'color-alpha'), 'content_box_title_size' => array('label' => esc_html__('Content Box Title Font Size', 'Avada'), 'description' => esc_html__('Controls the size of the title text.', 'Avada'), 'id' => 'content_box_title_size', 'default' => '18px', 'type' => 'dimension'), 'content_box_title_color' => array('label' => esc_html__('Content Box Title Font Color', 'Avada'), 'description' => esc_html__('Controls the color of the title font.', 'Avada'), 'id' => 'content_box_title_color', 'default' => $h2_or_primary_default, 'type' => 'color'), 'content_box_body_color' => array('label' => esc_html__('Content Box Body Font Color', 'Avada'), 'description' => esc_html__('Controls the color of the body font.', 'Avada'), 'id' => 'content_box_body_color', 'default' => '#747474', 'type' => 'color'), 'content_box_icon_size' => array('label' => esc_html__('Content Box Icon Font Size', 'Avada'), 'description' => esc_html__('Controls the size of the icon.', 'Avada'), 'id' => 'content_box_icon_size', 'default' => '21px', 'type' => 'dimension'), 'content_box_icon_color' => array('label' => esc_html__('Content Box Icon Color', 'Avada'), 'description' => esc_html__('Controls the color of the content box icon.', 'Avada'), 'id' => 'content_box_icon_color', 'default' => '#ffffff', 'type' => 'color'), 'content_box_icon_circle' => array('label' => esc_html__('Content Box Icon Background', 'Avada'), 'description' => esc_html__('Turn on to display a background behind the icon.', 'Avada'), 'id' => 'content_box_icon_circle', 'default' => 'yes', 'type' => 'radio-buttonset', 'choices' => array('yes' => esc_html__('On', 'Avada'), 'no' => esc_html__('Off', 'Avada'))), 'content_box_icon_circle_radius' => array('label' => esc_html__('Content Box Icon Background Radius', 'Avada'), 'description' => esc_html__('Controls the border radius of the icon background.', 'Avada'), 'id' => 'content_box_icon_circle_radius', 'default' => '50%', 'type' => 'dimension'), 'content_box_icon_bg_color' => array('label' => esc_html__('Content Box Icon Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the icon background.', 'Avada'), 'id' => 'content_box_icon_bg_color', 'default' => '#333333', 'type' => 'color-alpha'), 'content_box_icon_bg_inner_border_color' => array('label' => esc_html__('Content Box Icon Background Inner Border Color', 'Avada'), 'description' => esc_html__('Controls the inner border color of the icon background.', 'Avada'), 'id' => 'content_box_icon_bg_inner_border_color', 'default' => '#333333', 'type' => 'color-alpha'), 'content_box_icon_bg_inner_border_size' => array('label' => esc_html__('Content Box Icon Background Inner Border Size', 'Avada'), 'description' => esc_html__('Controls the inner border size of the icon background.', 'Avada'), 'id' => 'content_box_icon_bg_inner_border_size', 'default' => '1', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '20', 'step' => '1')), 'content_box_icon_bg_outer_border_color' => array('label' => esc_html__('Content Box Icon Background Outer Border Color', 'Avada'), 'description' => esc_html__('Controls the outer border color of the icon background.', 'Avada'), 'id' => 'content_box_icon_bg_outer_border_color', 'default' => 'rgba(255,255,255,0)', 'type' => 'color-alpha'), 'content_box_icon_bg_outer_border_size' => array('label' => esc_html__('Content Box Icon Background Outer Border Size', 'Avada'), 'description' => esc_html__('Controls the outer border size of the icon background', 'Avada'), 'id' => 'content_box_icon_bg_outer_border_size', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '20', 'step' => '1')), 'content_box_icon_hover_type' => array('label' => esc_html__('Content Box Hover Animation Type', 'Avada'), 'description' => esc_html__('Controls the hover effect of the icon.', 'Avada'), 'id' => 'content_box_icon_hover_type', 'default' => 'fade', 'type' => 'radio-buttonset', 'choices' => array('none' => esc_html__('None', 'Avada'), 'fade' => esc_html__('Fade', 'Avada'), 'slide' => esc_html__('Slide', 'Avada'), 'pulsate' => esc_html__('Pulsate', 'Avada'))), 'content_box_hover_animation_accent_color' => array('label' => esc_html__('Content Box Hover Animation Accent Color', 'Avada'), 'description' => esc_html__('Controls the accent color for the hover animation.', 'Avada'), 'id' => 'content_box_hover_animation_accent_color', 'default' => isset($settings['primary_color']) ? $settings['primary_color'] : '#a0ce4e', 'type' => 'color-alpha'), 'content_box_link_type' => array('label' => esc_html__('Content Box Link Type', 'Avada'), 'description' => esc_html__('Controls the type of link that displays in the content box.', 'Avada'), 'id' => 'content_box_link_type', 'default' => 'text', 'type' => 'radio-buttonset', 'choices' => array('text' => esc_html__('Text', 'Avada'), 'button-bar' => esc_html__('Button Bar', 'Avada'), 'button' => esc_html__('Button', 'Avada'))), 'content_box_link_area' => array('label' => esc_html__('Content Box Link Area', 'Avada'), 'description' => esc_html__('Controls which area the link will be assigned to.', 'Avada'), 'id' => 'content_box_link_area', 'default' => 'link-icon', 'type' => 'radio-buttonset', 'choices' => array('link-icon' => esc_html__('Link + Icon', 'Avada'), 'box' => esc_html__('Entire Content Box', 'Avada'))), 'content_box_link_target' => array('label' => esc_html__('Content Box Link Target', 'Avada'), 'description' => esc_html__('Controls how the link will open.', 'Avada'), 'id' => 'content_box_link_target', 'default' => '_self', 'type' => 'radio-buttonset', 'choices' => array('_self' => esc_html__('Same Window', 'Avada'), '_blank' => esc_html__('New Window/Tab', 'Avada'))), 'content_box_margin' => array('label' => esc_html__('Content Box Top/Bottom Margins', 'Avada'), 'description' => esc_html__('Controls the top/bottom margin for content boxes.', 'Avada'), 'id' => 'content_box_margin', 'type' => 'spacing', 'choices' => array('top' => true, 'bottom' => true, 'units' => array('px', '%')), 'default' => array('top' => '0px', 'bottom' => '60px')))), 'countdown_shortcode_section' => array('label' => esc_html__('Countdown Shortcode', 'Avada'), 'id' => 'countdown_shortcode_section', 'type' => 'accordion', 'fields' => array('countdown_timezone' => array('label' => esc_html__('Countdown Timezone', 'Avada'), 'description' => esc_html__('Controls the timezone that is used for the countdown calculation.', 'Avada'), 'id' => 'countdown_timezone', 'default' => 'site_time', 'type' => 'radio-buttonset', 'choices' => array('site_time' => esc_html__('Site Timezone', 'Avada'), 'user_time' => esc_html__('User Timezone', 'Avada'))), 'countdown_show_weeks' => array('label' => esc_html__('Countdown Show Weeks', 'Avada'), 'description' => esc_html__('Turn on to display the number of weeks in the countdown.', 'Avada'), 'id' => 'countdown_show_weeks', 'default' => 'no', 'type' => 'radio-buttonset', 'choices' => array('yes' => esc_html__('On', 'Avada'), 'no' => esc_html__('Off', 'Avada'))), 'countdown_background_color' => array('label' => esc_html__('Countdown Background Color', 'Avada'), 'description' => esc_html__('Controls the background color for the countdown box.', 'Avada'), 'id' => 'countdown_background_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'countdown_background_image' => array('label' => esc_html__('Countdown Background Image', 'Avada'), 'description' => esc_html__('Select an image for the countdown box background.', 'Avada'), 'id' => 'countdown_background_image', 'default' => '', 'mod' => '', 'type' => 'media'), 'countdown_background_repeat' => array('label' => esc_html__('Countdown Background Repeat', 'Avada'), 'description' => esc_html__('Controls how the background image repeats.', 'Avada'), 'id' => 'countdown_background_repeat', 'default' => 'no-repeat', 'type' => 'select', 'choices' => array('repeat' => esc_html__('Repeat All', 'Avada'), 'repeat-x' => esc_html__('Repeat Horizontal', 'Avada'), 'repeat-y' => esc_html__('Repeat Vertical', 'Avada'), 'no-repeat' => esc_html__('Repeat None', 'Avada')), 'required' => array(array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => ''), array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'countdown_background_position' => array('label' => esc_html__('Countdown Background Position', 'Avada'), 'description' => esc_html__('Controls how the background image is positioned.', 'Avada'), 'id' => 'countdown_background_position', 'default' => 'center center', 'type' => 'select', 'choices' => array('top left' => esc_html__('top left', 'Avada'), 'top center' => esc_html__('top center', 'Avada'), 'top right' => esc_html__('top right', 'Avada'), 'center left' => esc_html__('center left', 'Avada'), 'center center' => esc_html__('center center', 'Avada'), 'center right' => esc_html__('center right', 'Avada'), 'bottom left' => esc_html__('bottom left', 'Avada'), 'bottom center' => esc_html__('bottom center', 'Avada'), 'bottom right' => esc_html__('bottom right', 'Avada')), 'required' => array(array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => ''), array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'countdown_background_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'countdown_counter_box_color' => array('label' => esc_html__('Countdown Counter Box Color', 'Avada'), 'description' => esc_html__('Controls the background color for the counter boxes.', 'Avada'), 'id' => 'countdown_counter_box_color', 'default' => '#333333', 'type' => 'color-alpha'), 'countdown_counter_text_color' => array('label' => esc_html__('Countdown Counter Text Color', 'Avada'), 'description' => esc_html__('Controls the color for the countdown timer text.', 'Avada'), 'id' => 'countdown_counter_text_color', 'default' => '#ffffff', 'type' => 'color'), 'countdown_heading_text_color' => array('label' => esc_html__('Countdown Heading Text Color', 'Avada'), 'description' => esc_html__('Controls the color for the countdown headings.', 'Avada'), 'id' => 'countdown_heading_text_color', 'default' => '#ffffff', 'type' => 'color'), 'countdown_subheading_text_color' => array('label' => esc_html__('Countdown Subheading Text Color', 'Avada'), 'description' => esc_html__('Controls the color for the countdown subheadings.', 'Avada'), 'id' => 'countdown_subheading_text_color', 'default' => '#ffffff', 'type' => 'color'), 'countdown_link_text_color' => array('label' => esc_html__('Countdown Link Text Color', 'Avada'), 'description' => esc_html__('Controls the color for the countdown link text.', 'Avada'), 'id' => 'countdown_link_text_color', 'default' => '#ffffff', 'type' => 'color'), 'countdown_link_target' => array('label' => esc_html__('Countdown Link Target', 'Avada'), 'description' => esc_html__('Controls how the link will open.', 'Avada'), 'id' => 'countdown_link_target', 'default' => '_self', 'type' => 'radio-buttonset', 'choices' => array('_self' => esc_html__('Same Window', 'Avada'), '_blank' => esc_html__('New Window', 'Avada'))))), 'counterb_shortcode_section' => array('label' => esc_html__('Counter Boxes Shortcode', 'Avada'), 'description' => '', 'id' => 'counterb_shortcode_section', 'type' => 'accordion', 'fields' => array('counter_box_speed' => array('label' => esc_html__('Counter Box Speed', 'Avada'), 'description' => esc_html__('Controls the speed of all counter box elements. ex: 1000 = 1 second.', 'Avada'), 'id' => 'counter_box_speed', 'default' => '1000', 'type' => 'slider', 'choices' => array('min' => '500', 'max' => '20000', 'step' => '250')), 'counter_box_color' => array('label' => esc_html__('Counter Box Title Font Color', 'Avada'), 'description' => esc_html__('Controls the color of the counter value and icon.', 'Avada'), 'id' => 'counter_box_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'counter_box_title_size' => array('label' => esc_html__('Counter Box Title Font Size', 'Avada'), 'description' => esc_html__('Controls the size of the counter value and icon.', 'Avada'), 'id' => 'counter_box_title_size', 'default' => '50px', 'type' => 'dimension'), 'counter_box_icon_size' => array('label' => esc_html__('Counter Box Icon Size', 'Avada'), 'description' => esc_html__('Controls the size of the icon.', 'Avada'), 'id' => 'counter_box_icon_size', 'default' => '50px', 'type' => 'dimension'), 'counter_box_body_color' => array('label' => esc_html__('Counter Box Body Font Color', 'Avada'), 'description' => esc_html__('Controls the color of the counter box body text.', 'Avada'), 'id' => 'counter_box_body_color', 'default' => '#747474', 'type' => 'color'), 'counter_box_body_size' => array('label' => esc_html__('Counter Box Body Font Size', 'Avada'), 'description' => esc_html__('Controls the size of the counter box body text.', 'Avada'), 'id' => 'counter_box_body_size', 'default' => '13px', 'type' => 'dimension'), 'counter_box_border_color' => array('label' => esc_html__('Counter Box Border Color', 'Avada'), 'description' => esc_html__('Controls the color of the counter box border.', 'Avada'), 'id' => 'counter_box_border_color', 'default' => '#e0dede', 'type' => 'color-alpha'), 'counter_box_icon_top' => array('label' => esc_html__('Counter Box Icon On Top', 'Avada'), 'description' => esc_html__('Turn on to display the icon on top of the counter value.', 'Avada'), 'id' => 'counter_box_icon_top', 'default' => 'no', 'type' => 'radio-buttonset', 'choices' => array('yes' => esc_html__('On', 'Avada'), 'no' => esc_html__('Off', 'Avada'))))), 'cc_shortcode_section' => array('label' => esc_html__('Counter Circle Shortcode', 'Avada'), 'description' => '', 'id' => 'cc_shortcode_section', 'type' => 'accordion', 'fields' => array('counter_filled_color' => array('label' => esc_html__('Counter Circle Filled Color', 'Avada'), 'description' => esc_html__('Controls the color of the filled circle.', 'Avada'), 'id' => 'counter_filled_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'counter_unfilled_color' => array('label' => esc_html__('Counter Circle Unfilled Color', 'Avada'), 'description' => esc_html__('Controls the color of the unfilled circle.', 'Avada'), 'id' => 'counter_unfilled_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'))), 'dropcap_shortcode_section' => array('label' => esc_html__('Dropcap Shortcode', 'Avada'), 'description' => '', 'id' => 'dropcap_shortcode_section', 'type' => 'accordion', 'fields' => array('dropcap_color' => array('label' => esc_html__('Dropcap Color', 'Avada'), 'description' => esc_html__('Controls the color of the dropcap text, or the dropcap box if a box is used.', 'Avada'), 'id' => 'dropcap_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'))), 'flipb_shortcode_section' => array('label' => esc_html__('Flip Boxes Shortcode', 'Avada'), 'description' => '', 'id' => 'flipb_shortcode_section', 'type' => 'accordion', 'fields' => array('flip_boxes_front_bg' => array('label' => esc_html__('Flip Box Background Color Frontside', 'Avada'), 'description' => esc_html__('Controls the color of the frontside background.', 'Avada'), 'id' => 'flip_boxes_front_bg', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'flip_boxes_front_heading' => array('label' => esc_html__('Flip Box Heading Color Frontside', 'Avada'), 'description' => esc_html__('Controls the color of the frontside heading.', 'Avada'), 'id' => 'flip_boxes_front_heading', 'default' => '#333333', 'type' => 'color'), 'flip_boxes_front_text' => array('label' => esc_html__('Flip Box Text Color Frontside', 'Avada'), 'description' => esc_html__('Controls the color of the frontside text.', 'Avada'), 'id' => 'flip_boxes_front_text', 'default' => '#747474', 'type' => 'color'), 'flip_boxes_back_bg' => array('label' => esc_html__('Flip Box Background Color Backside', 'Avada'), 'description' => esc_html__('Controls the color of the backside background.', 'Avada'), 'id' => 'flip_boxes_back_bg', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'flip_boxes_back_heading' => array('label' => esc_html__('Flip Box Heading Color Backside', 'Avada'), 'description' => esc_html__('Controls the color of the backside heading.', 'Avada'), 'id' => 'flip_boxes_back_heading', 'default' => '#eeeded', 'type' => 'color'), 'flip_boxes_back_text' => array('label' => esc_html__('Flip Box Text Color Backside', 'Avada'), 'description' => esc_html__('Controls the color of the backside text.', 'Avada'), 'id' => 'flip_boxes_back_text', 'default' => '#ffffff', 'type' => 'color'), 'flip_boxes_border_size' => array('label' => esc_html__('Flip Box Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the flip box background.', 'Avada'), 'id' => 'flip_boxes_border_size', 'default' => '1', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'flip_boxes_border_color' => array('label' => esc_html__('Flip Box Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of flip box background.', 'Avada'), 'id' => 'flip_boxes_border_color', 'default' => 'rgba(0,0,0,0)', 'type' => 'color-alpha'), 'flip_boxes_border_radius' => array('label' => esc_html__('Flip Box Border Radius', 'Avada'), 'description' => esc_html__('Controls the border radius of the flip box background.', 'Avada'), 'id' => 'flip_boxes_border_radius', 'default' => '4px', 'type' => 'dimension', 'choices' => array('px', '%', 'em')))), 'fullwidth_shortcode_section' => array('label' => esc_html__('Full Width Shortcode', 'Avada'), 'description' => '', 'id' => 'fullwidth_shortcode_section', 'type' => 'accordion', 'fields' => array('full_width_bg_color' => array('label' => esc_html__('Full Width Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the full width section.', 'Avada'), 'id' => 'full_width_bg_color', 'default' => 'rgba(255,255,255,0)', 'type' => 'color-alpha'), 'full_width_border_size' => array('label' => esc_html__('Full Width Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the full width section.', 'Avada'), 'id' => 'full_width_border_size', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'full_width_border_color' => array('label' => esc_html__('Full Width Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the full width section.', 'Avada'), 'id' => 'full_width_border_color', 'default' => '#eae9e9', 'type' => 'color-alpha'))), 'icon_shortcode_section' => array('label' => esc_html__('Icon Shortcode', 'Avada'), 'description' => '', 'id' => 'icon_shortcode_section', 'type' => 'accordion', 'fields' => array('icon_circle_color' => array('label' => esc_html__('Icon Circle Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the circle background.', 'Avada'), 'id' => 'icon_circle_color', 'default' => '#333333', 'type' => 'color-alpha'), 'icon_border_color' => array('label' => esc_html__('Icon Circle Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the circle background.', 'Avada'), 'id' => 'icon_border_color', 'default' => '#333333', 'type' => 'color-alpha'), 'icon_color' => array('label' => esc_html__('Icon Color', 'Avada'), 'description' => esc_html__('Controls the color of the icon.', 'Avada'), 'id' => 'icon_color', 'default' => '#ffffff', 'type' => 'color-alpha'))), 'imgf_shortcode_section' => array('label' => esc_html__('Image Frame Shortcode', 'Avada'), 'description' => '', 'id' => 'imgf_shortcode_section', 'type' => 'accordion', 'fields' => array('imgframe_border_color' => array('label' => esc_html__('Image Frame Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the image frame.', 'Avada'), 'id' => 'imgframe_border_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'imageframe_border_size' => array('label' => esc_html__('Image Frame Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the image frame.', 'Avada'), 'id' => 'imageframe_border_size', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'imageframe_border_radius' => array('label' => esc_html__('Image Frame Border Radius', 'Avada'), 'description' => esc_html__('Controls the border radius of the image frame.', 'Avada'), 'id' => 'imageframe_border_radius', 'default' => '0px', 'type' => 'dimension', 'choices' => array('px', '%')), 'imgframe_style_color' => array('label' => esc_html__('Image Frame Style Color', 'Avada'), 'description' => esc_html__('Controls the style color of the image frame. Only works for glow and drop shadow style.', 'Avada'), 'id' => 'imgframe_style_color', 'default' => '#000000', 'type' => 'color-alpha'))), 'modal_shortcode_section' => array('label' => esc_html__('Modal Shortcode', 'Avada'), 'description' => '', 'id' => 'modal_shortcode_section', 'type' => 'accordion', 'fields' => array('modal_bg_color' => array('label' => esc_html__('Modal Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the modal popup box.', 'Avada'), 'id' => 'modal_bg_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'modal_border_color' => array('label' => esc_html__('Modal Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the modal popup box.', 'Avada'), 'id' => 'modal_border_color', 'default' => '#ebebeb', 'type' => 'color-alpha'))), 'person_shortcode_section' => array('label' => esc_html__('Person Shortcode', 'Avada'), 'description' => '', 'id' => 'person_shortcode_section', 'type' => 'accordion', 'fields' => array('person_shortcode_important_note_info' => array('label' => '', 'description' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> The styling options for the social icons used in the person shortcode are controlled through the options under the "Social Icon Shortcodes" section on this tab.', 'Avada') . '</div>', 'id' => 'person_shortcode_important_note_info', 'type' => 'custom'), 'person_background_color' => array('label' => esc_html__('Person Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the person area.', 'Avada'), 'id' => 'person_background_color', 'default' => 'rgba(0,0,0,0)', 'type' => 'color-alpha'), 'person_border_color' => array('label' => esc_html__('Person Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the person image.', 'Avada'), 'id' => 'person_border_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'person_border_size' => array('label' => esc_html__('Person Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the person image.', 'Avada'), 'id' => 'person_border_size', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'person_border_radius' => array('label' => esc_html__('Person Border Radius', 'Avada'), 'description' => esc_html__('Controls the border radius of the person image.', 'Avada'), 'id' => 'person_border_radius', 'default' => '0px', 'type' => 'dimension', 'choices' => array('px', '%')), 'person_style_color' => array('label' => esc_html__('Person Style Color', 'Avada'), 'description' => esc_html__('Controls the style color for all style types except border.', 'Avada'), 'id' => 'person_style_color', 'default' => '#000000', 'type' => 'color-alpha'), 'person_alignment' => array('label' => esc_html__('Person Content Alignment', 'Avada'), 'description' => esc_html__('Controls the alignment of the person content.', 'Avada'), 'id' => 'person_alignment', 'default' => 'Left', 'type' => 'radio-buttonset', 'choices' => array('Left' => esc_html__('Left', 'Avada'), 'Center' => esc_html__('Center', 'Avada'), 'Right' => esc_html__('Right', 'Avada'))), 'person_icon_position' => array('label' => esc_html__('Person Social Icon Position', 'Avada'), 'description' => esc_html__('Controls the position of the social icons.', 'Avada'), 'id' => 'person_icon_position', 'default' => 'Top', 'type' => 'radio-buttonset', 'choices' => array('Top' => esc_html__('Top', 'Avada'), 'Bottom' => esc_html__('Bottom', 'Avada'))))), 'popover_shortcode_section' => array('label' => esc_html__('Popover Shortcode', 'Avada'), 'description' => '', 'id' => 'popover_shortcode_section', 'type' => 'accordion', 'fields' => array('popover_heading_bg_color' => array('label' => esc_html__('Popover Heading Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the popover heading background.', 'Avada'), 'id' => 'popover_heading_bg_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'popover_content_bg_color' => array('label' => esc_html__('Popover Content Background Color', 'Avada'), 'description' => esc_html__('Controls the color of popover content background.', 'Avada'), 'id' => 'popover_content_bg_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'popover_border_color' => array('label' => esc_html__('Popover Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of popover box.', 'Avada'), 'id' => 'popover_border_color', 'default' => '#ebebeb', 'type' => 'color-alpha'), 'popover_text_color' => array('label' => esc_html__('Popover Text Color', 'Avada'), 'description' => esc_html__('Controls the color of the popover text.', 'Avada'), 'id' => 'popover_text_color', 'default' => '#747474', 'type' => 'color'), 'popover_placement' => array('label' => esc_html__('Popover Position', 'Avada'), 'description' => esc_html__('Controls the position of the popover in reference to the triggering element.', 'Avada'), 'id' => 'popover_placement', 'default' => 'Top', 'type' => 'radio-buttonset', 'choices' => array('Top' => esc_html__('Top', 'Avada'), 'Right' => esc_html__('Right', 'Avada'), 'Bottom' => esc_html__('Bottom', 'Avada'), 'Left' => esc_html__('Left', 'Avada'))))), 'pricingtable_shortcode_section' => array('label' => esc_html__('Pricing Table Shortcode', 'Avada'), 'description' => '', 'id' => 'pricingtable_shortcode_section', 'type' => 'accordion', 'fields' => array('full_boxed_pricing_box_heading_color' => array('label' => esc_html__('Pricing Box Style 1 Heading Color', 'Avada'), 'description' => esc_html__('Controls the color of style 1 pricing table headings.', 'Avada'), 'id' => 'full_boxed_pricing_box_heading_color', 'default' => '#333333', 'type' => 'color'), 'sep_pricing_box_heading_color' => array('label' => esc_html__('Pricing Box Style 2 Heading Color', 'Avada'), 'description' => esc_html__('Controls the color of style 2 pricing table headings.', 'Avada'), 'id' => 'sep_pricing_box_heading_color', 'default' => '#333333', 'type' => 'color'), 'pricing_box_color' => array('label' => esc_html__('Pricing Box Color', 'Avada'), 'description' => esc_html__('Controls the color portions of pricing boxes.', 'Avada'), 'id' => 'pricing_box_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'pricing_bg_color' => array('label' => esc_html__('Pricing Box Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the main background and title background.', 'Avada'), 'id' => 'pricing_bg_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'pricing_border_color' => array('label' => esc_html__('Pricing Box Border Color', 'Avada'), 'description' => esc_html__('Controls the color of the outer border, pricing row and footer row backgrounds.', 'Avada'), 'id' => 'pricing_border_color', 'default' => '#f8f8f8', 'type' => 'color-alpha'), 'pricing_divider_color' => array('label' => esc_html__('Pricing Box Divider Color', 'Avada'), 'description' => esc_html__('Controls the color of the dividers in-between pricing rows.', 'Avada'), 'id' => 'pricing_divider_color', 'default' => '#ededed', 'type' => 'color-alpha'))), 'progressbar_shortcode_section' => array('label' => esc_html__('Progress Bar Shortcode', 'Avada'), 'description' => '', 'id' => 'progressbar_shortcode_section', 'type' => 'accordion', 'fields' => array('progressbar_height' => array('label' => esc_html__('Progress Bar Height', 'Avada'), 'description' => esc_html__('Insert a height for the progress bar.', 'Avada'), 'id' => 'progressbar_height', 'default' => '37px', 'type' => 'dimension'), 'progressbar_text_position' => array('label' => esc_html__('Text Position', 'Avada'), 'description' => esc_html__('Select the position of the progress bar text. Choose "Default" for theme option selection.', 'Avada'), 'id' => 'progressbar_text_position', 'default' => 'on_bar', 'type' => 'radio-buttonset', 'choices' => array('on_bar' => esc_html__('On Bar', 'Avada'), 'above_bar' => esc_html__('Above Bar', 'Avada'), 'below_bar' => esc_html__('Below Bar', 'Avada'))), 'progressbar_filled_color' => array('label' => esc_html__('Progress Bar Filled Color', 'Avada'), 'description' => esc_html__('Controls the color of the progress bar filled area.', 'Avada'), 'id' => 'progressbar_filled_color', 'default' => '#a0ce4e', 'type' => 'color-alpha'), 'progressbar_filled_border_color' => array('label' => esc_html__('Progress Bar Filled Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the progress bar filled area.', 'Avada'), 'id' => 'progressbar_filled_border_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'progressbar_filled_border_size' => array('label' => esc_html__('Progress Bar Filled Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the progress bar filled area.', 'Avada'), 'id' => 'progressbar_filled_border_size', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '20', 'step' => '1')), 'progressbar_unfilled_color' => array('label' => esc_html__('Progress Bar Unfilled Color', 'Avada'), 'description' => esc_html__('Controls the color of the progress bar unfilled area.', 'Avada'), 'id' => 'progressbar_unfilled_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'progressbar_text_color' => array('label' => esc_html__('Progress Bar Text Color', 'Avada'), 'description' => esc_html__('Controls the color of the progress bar text.', 'Avada'), 'id' => 'progressbar_text_color', 'default' => '#ffffff', 'type' => 'color-alpha'))), 'sectionseparator_shortcode_section' => array('label' => esc_html__('Section Separator Shortcode', 'Avada'), 'description' => '', 'id' => 'sectionseparator_shortcode_section', 'type' => 'accordion', 'fields' => array('section_sep_border_size' => array('label' => esc_html__('Section Separator Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the section separator.', 'Avada'), 'id' => 'section_sep_border_size', 'default' => '1', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'section_sep_bg' => array('label' => esc_html__('Section Separator Divider Candy Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the divider candy.', 'Avada'), 'id' => 'section_sep_bg', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'section_sep_border_color' => array('label' => esc_html__('Section Separator Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the separator.', 'Avada'), 'id' => 'section_sep_border_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'))), 'separator_shortcode_section' => array('label' => esc_html__('Separator Shortcode', 'Avada'), 'description' => '', 'id' => 'separator_shortcode_section', 'type' => 'accordion', 'fields' => array('sep_color' => array('label' => esc_html__('Separator Color', 'Avada'), 'description' => esc_html__('Controls the color of all separators, divider lines and borders for meta, previous & next, filters, archive pages, boxes around number pagination, sidebar widgets, accordion divider lines, counter boxes and more.', 'Avada'), 'id' => 'sep_color', 'default' => '#e0dede', 'type' => 'color-alpha'), 'separator_circle' => array('label' => esc_html__('Separator Circle', 'Avada'), 'description' => esc_html__('Turn on if you want to display a circle around the separator icon.', 'Avada'), 'id' => 'separator_circle', 'default' => '1', 'type' => 'switch'), 'separator_border_size' => array('label' => esc_html__('Border Size', 'Avada'), 'description' => esc_html__('Controls the border size of the separator.', 'Avada'), 'id' => 'separator_border_size', 'default' => '1', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')))), 'sociallinks_shortcode_section' => array('label' => esc_html__('Social Icon Shortcodes', 'Avada'), 'description' => '', 'id' => 'sociallinks_shortcode_section', 'type' => 'accordion', 'fields' => array('social_links_info' => array('id' => 'social_links_info', 'type' => 'raw', 'content' => '<div class="avada-avadaredux-important-notice">' . __('<strong>IMPORTANT NOTE:</strong> These social icon global options control both the social link shortcode and person shortcode.', 'Avada') . '</div>'), 'social_links_font_size' => array('label' => esc_html__('Social Links Icons Font Size', 'Avada'), 'description' => esc_html__('Controls the font size for the social link icons.', 'Avada'), 'id' => 'social_links_font_size', 'default' => '16px', 'type' => 'dimension'), 'social_links_color_type' => array('label' => esc_html__('Social Links Icon Color Type', 'Avada'), 'description' => esc_html__('Custom colors allow you to choose a color for icons and boxes. Brand colors will use the exact brand color of each network for the icons or boxes.', 'Avada'), 'id' => 'social_links_color_type', 'default' => 'custom', 'type' => 'radio-buttonset', 'choices' => array('custom' => esc_html__('Custom Colors', 'Avada'), 'brand' => esc_html__('Brand Colors', 'Avada'))), 'social_links_icon_color' => array('label' => esc_html__('Social Links Custom Icons Color', 'Avada'), 'description' => esc_html__('Controls the color of the custom icons.', 'Avada'), 'id' => 'social_links_icon_color', 'default' => '#bebdbd', 'type' => 'color-alpha', 'required' => array(array('setting' => 'social_links_color_type', 'operator' => '==', 'value' => 'custom'))), 'social_links_boxed' => array('label' => esc_html__('Social Links Icons Boxed', 'Avada'), 'description' => esc_html__('Turn on to have the icon displayed in a small box. Turn off to have the icon displayed with no box.', 'Avada'), 'id' => 'social_links_boxed', 'default' => '0', 'type' => 'switch'), 'social_links_box_color' => array('label' => esc_html__('Social Links Icons Custom Box Color', 'Avada'), 'description' => esc_html__('Select a custom social icon box color.', 'Avada'), 'id' => 'social_links_box_color', 'default' => '#e8e8e8', 'type' => 'color-alpha', 'required' => array(array('setting' => 'social_links_boxed', 'operator' => '==', 'value' => '1'), array('setting' => 'social_links_color_type', 'operator' => '==', 'value' => 'custom'))), 'social_links_boxed_radius' => array('label' => esc_html__('Social Links Icons Boxed Radius', 'Avada'), 'description' => esc_html__('Box radius for the social icons.', 'Avada'), 'id' => 'social_links_boxed_radius', 'default' => '4px', 'type' => 'dimension', 'choices' => array('px', 'em'), 'required' => array(array('setting' => 'social_links_boxed', 'operator' => '==', 'value' => '1'))), 'social_links_boxed_padding' => array('label' => esc_html__('Social Links Icons Boxed Padding', 'Avada'), 'id' => 'social_links_boxed_padding', 'default' => '8px', 'type' => 'dimension', 'required' => array(array('setting' => 'social_links_boxed', 'operator' => '==', 'value' => '1'))), 'social_links_tooltip_placement' => array('label' => esc_html__('Social Links Icons Tooltip Position', 'Avada'), 'description' => esc_html__('Controls the tooltip position of the social links icons.', 'Avada'), 'id' => 'social_links_tooltip_placement', 'default' => 'Top', 'type' => 'radio-buttonset', 'choices' => array('Top' => esc_html__('Top', 'Avada'), 'Right' => esc_html__('Right', 'Avada'), 'Bottom' => esc_html__('Bottom', 'Avada'), 'Left' => esc_html__('Left', 'Avada'), 'None' => esc_html__('None', 'Avada'))))), 'tabs_shortcode_section' => array('label' => esc_html__('Tabs Shortcode', 'Avada'), 'description' => '', 'id' => 'tabs_shortcode_section', 'type' => 'accordion', 'fields' => array('tabs_bg_color' => array('label' => esc_html__('Tabs Background Color + Hover Color', 'Avada'), 'description' => esc_html__('Controls the color of the active tab, tab hover and content background.', 'Avada'), 'id' => 'tabs_bg_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'tabs_inactive_color' => array('label' => esc_html__('Tabs Inactive Color', 'Avada'), 'description' => esc_html__('Controls the color of the inactive tabs.', 'Avada'), 'id' => 'tabs_inactive_color', 'default' => '#ebeaea', 'type' => 'color-alpha'), 'tabs_border_color' => array('label' => esc_html__('Tabs Border Color', 'Avada'), 'description' => esc_html__('Controls the color of the tab border.', 'Avada'), 'id' => 'tabs_border_color', 'default' => '#ebeaea', 'type' => 'color-alpha'))), 'tagline_shortcode_section' => array('label' => esc_html__('Tagline Shortcode', 'Avada'), 'description' => '', 'id' => 'tagline_shortcode_section', 'type' => 'accordion', 'fields' => array('tagline_bg' => array('label' => esc_html__('Tagline Box Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the tagline box background.', 'Avada'), 'id' => 'tagline_bg', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'tagline_border_color' => array('label' => esc_html__('Tagline Box Border Color', 'Avada'), 'description' => esc_html__('Controls the border color of the tagline box.', 'Avada'), 'id' => 'tagline_border_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'tagline_margin' => array('label' => esc_html__('Tagline Top/Bottom Margins', 'Avada'), 'description' => esc_html__('Controls the top/bottom margin of the tagline box.', 'Avada'), 'id' => 'tagline_margin', 'default' => array('top' => '0px', 'bottom' => '84px'), 'type' => 'spacing', 'choices' => array('top' => true, 'bottom' => true)))), 'testimonials_shortcode_section' => array('label' => esc_html__('Testimonials Shortcode', 'Avada'), 'description' => '', 'id' => 'testimonials_shortcode_section', 'type' => 'accordion', 'fields' => array('testimonial_bg_color' => array('label' => esc_html__('Testimonial Background Color', 'Avada'), 'description' => esc_html__('Controls the color of the testimonial background.', 'Avada'), 'id' => 'testimonial_bg_color', 'default' => '#f6f6f6', 'type' => 'color-alpha'), 'testimonial_text_color' => array('label' => esc_html__('Testimonial Text Color', 'Avada'), 'description' => esc_html__('Controls the color of the testimonial text.', 'Avada'), 'id' => 'testimonial_text_color', 'default' => '#747474', 'type' => 'color'), 'testimonials_speed' => array('label' => esc_html__('Testimonials Speed', 'Avada'), 'description' => esc_html__('Controls the speed of the testimonial slider. ex: 1000 = 1 second.', 'Avada'), 'id' => 'testimonials_speed', 'default' => '4000', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '20000', 'step' => '250')), 'testimonials_random' => array('label' => esc_html__('Random Order', 'Avada'), 'description' => esc_html__('Turn on to display testimonials in a random order.', 'Avada'), 'id' => 'testimonials_random', 'default' => '0', 'type' => 'switch'))), 'title_shortcode_section' => array('label' => esc_html__('Title Shortcode', 'Avada'), 'description' => '', 'id' => 'title_shortcode_section', 'type' => 'accordion', 'fields' => array('title_style_type' => array('label' => esc_html__('Title Separator', 'Avada'), 'description' => esc_html__('Controls the type of title separator that will display.', 'Avada'), 'id' => 'title_style_type', 'default' => 'double', 'type' => 'select', 'choices' => array('single' => esc_html__('Single', 'Avada'), 'single solid' => esc_html__('Single Solid', 'Avada'), 'single dashed' => esc_html__('Single Dashed', 'Avada'), 'single dotted' => esc_html__('Single Dotted', 'Avada'), 'double' => esc_html__('Double', 'Avada'), 'double solid' => esc_html__('Double Solid', 'Avada'), 'double dashed' => esc_html__('Double Dashed', 'Avada'), 'double dotted' => esc_html__('Double Dotted', 'Avada'), 'underline' => esc_html__('Underline', 'Avada'), 'underline solid' => esc_html__('Underline Solid', 'Avada'), 'underline dashed' => esc_html__('Underline Dashed', 'Avada'), 'underline dotted' => esc_html__('Underline Dotted', 'Avada'), 'none' => esc_html__('None', 'Avada'))), 'title_border_color' => array('label' => esc_html__('Title Separator Color', 'Avada'), 'description' => esc_html__('Controls the color of the title separators.', 'Avada'), 'id' => 'title_border_color', 'default' => '#e0dede', 'type' => 'color-alpha'), 'title_margin' => array('label' => esc_html__('Title Top/Bottom Margins', 'Avada'), 'description' => esc_html__('Controls the top/bottom margin of the title.', 'Avada'), 'id' => 'title_margin', 'default' => array('top' => '0px', 'bottom' => '31px'), 'type' => 'spacing', 'choices' => array('top' => true, 'bottom' => true)))), 'accordion_shortcode_section' => array('label' => esc_html__('Toggles Shortcode', 'Avada'), 'id' => 'accordion_shortcode_section', 'type' => 'accordion', 'fields' => array('accordion_divider_line' => array('label' => esc_html__('Toggle Divider Line', 'Avada'), 'description' => esc_html__('Turn on to display a divider line between each item.', 'Avada'), 'id' => 'accordion_divider_line', 'default' => '1', 'type' => 'switch'), 'accordian_inactive_color' => array('label' => esc_html__('Toggles Inactive Box Color', 'Avada'), 'description' => esc_html__('Controls the color of the inactive toggle box.', 'Avada'), 'id' => 'accordian_inactive_color', 'default' => '#333333', 'type' => 'color-alpha'))), 'user_login_shortcode_section' => array('label' => esc_html__('User Login Shortcode', 'Avada'), 'id' => 'user_login_shortcode_section', 'description' => '', 'type' => 'accordion', 'fields' => array('user_login_text_align' => array('label' => esc_html__('User Login Text Align', 'Avada'), 'description' => esc_html__('Controls the alignment of all user login content. "Text Flow" follows the default text align of the site. "Center" will center all elements.', 'Avada'), 'id' => 'user_login_text_align', 'default' => 'center', 'type' => 'radio-buttonset', 'choices' => array('textflow' => esc_html__('Text Flow', 'Avada'), 'center' => esc_html__('Center', 'Avada'))), 'user_login_form_background_color' => array('label' => esc_html__('User Login Form Backgound Color', 'Avada'), 'description' => esc_html__('Controls the color of the form background.', 'Avada'), 'id' => 'user_login_form_background_color', 'default' => '#f6f6f6', 'type' => 'color-alpha')))));
    return $sections;
}
コード例 #9
0
    /**
     * Avada extra OpenGraph tags
     * These are added to the <head> of the page using the 'wp_head' action.
     */
    public function insert_og_meta()
    {
        global $post;
        $settings = Avada::settings();
        // Early exit if we don't need to continue any further
        if ($settings['status_opengraph']) {
            return;
        }
        // Early exit if this is not a singular post/page/cpt
        if (!is_singular()) {
            return;
        }
        $image = '';
        if (!has_post_thumbnail($post->ID)) {
            if ($settings['logo']) {
                $image = $settings['logo'];
            }
        } else {
            $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
            $image = esc_attr($thumbnail_src[0]);
        }
        ?>

		<meta property="og:title" content="<?php 
        echo strip_tags(str_replace(array('"', "'"), array('&quot;', '&#39;'), $post->post_title));
        ?>
"/>
		<meta property="og:type" content="article"/>
		<meta property="og:url" content="<?php 
        echo get_permalink();
        ?>
"/>
		<meta property="og:site_name" content="<?php 
        echo get_bloginfo('name');
        ?>
"/>
		<meta property="og:description" content="<?php 
        echo Avada()->blog->get_content_stripped_and_excerpted(55, $post->post_content);
        ?>
"/>

		<?php 
        if ('' != $image) {
            ?>
			<meta property="og:image" content="<?php 
            echo $image;
            ?>
"/>
		<?php 
        }
    }
コード例 #10
0
 public function __construct()
 {
     // An array of all the custom fields we have.
     $this->field_types = array('typography', 'color_alpha', 'spacing', 'dimensions');
     // An array of all our extensions
     $this->extensions = array('search', 'repeater', 'accordion', 'vendorsupport');
     $this->path = dirname(__FILE__);
     foreach ($this->field_types as $field_type) {
         add_action('avadaredux/' . Avada::get_option_name() . '/field/class/' . $field_type, array($this, 'register_' . $field_type));
     }
     foreach ($this->extensions as $extension) {
         if (class_exists('AvadaRedux')) {
             AvadaRedux::setExtensions(Avada::get_option_name(), $this->path . '/extensions/' . $extension . '/extension_' . $extension . '.php');
         }
     }
 }
コード例 #11
0
 public function __construct()
 {
     self::$grid_image_meta = array();
     self::$grid_accepted_widths = array('200', '400', '600', '800', '1200');
     self::$supported_grid_layouts = array('grid', 'timeline', 'large', 'portfolio_full', 'related-posts');
     $options = get_option(Avada::get_option_name());
     if (isset($options['status_lightbox']) && $options['status_lightbox']) {
         add_filter('wp_get_attachment_link', array($this, 'prepare_lightbox_links'));
     }
     add_filter('jpeg_quality', array($this, 'set_jpeg_quality'));
     add_filter('wp_editor_set_quality', array($this, 'set_jpeg_quality'));
     add_filter('max_srcset_image_width', array($this, 'set_max_srcset_image_width'));
     add_filter('wp_calculate_image_srcset', array($this, 'set_largest_image_size'), '10', '5');
     add_filter('wp_calculate_image_srcset', array($this, 'edit_grid_image_srcset'), '15', '5');
     add_filter('wp_calculate_image_sizes', array($this, 'edit_grid_image_sizes'), '10', '5');
     add_filter('post_thumbnail_html', array($this, 'edit_grid_image_src'), '10', '5');
     add_action('delete_attachment', array($this, 'delete_resized_images'));
 }
コード例 #12
0
 /**
  * The class constructor
  */
 public function __construct()
 {
     Avada::$is_updating = $_GET && isset($_GET['avada_update']) && '1' == $_GET['avada_update'] ? true : false;
     /**
      * The array of sections by ID.
      * These are used in the filenames AND the function-names.
      */
     $this->section_names = array('layout', 'menu', 'responsive', 'colors', 'header', 'logo', 'page_title_bar', 'sliding_bar', 'footer', 'sidebars', 'background', 'typography', 'shortcode_styling', 'blog', 'portfolio', 'social_media', 'slideshows', 'elastic_slider', 'lightbox', 'contact', 'search_page', 'extra', 'advanced', 'bbpress', 'woocommerce', 'events_calendar', 'custom_css');
     /**
      * Include the section files
      */
     $this->include_files();
     /**
      * Set the $sections
      */
     $this->set_sections();
     /**
      * Set the $fields
      */
     $this->set_fields();
 }
コード例 #13
0
ファイル: class-avada.php プロジェクト: pedrom40/sazoo.org
 /**
  * Change the private $language_is_all property.
  *
  * @static
  * @access public
  * @param bool $is_all Whether we're on the "all" language option or not.
  * @return null|void
  */
 public static function set_language_is_all($is_all)
 {
     if (true === $is_all) {
         self::$language_is_all = true;
         return;
     }
     self::$language_is_all = false;
 }
コード例 #14
0
ファイル: layout.php プロジェクト: pedrom40/sazoo.org
/**
 * Layout
 *
 * @var  array  	any existing settings
 * @return array 	existing sections + layout
 *
 */
function avada_options_section_layout($sections)
{
    $settings = get_option(Avada::get_option_name(), array());
    $sections['layout'] = array('label' => esc_html__('Layout', 'Avada'), 'id' => 'heading_layout', 'priority' => 1, 'icon' => 'el-icon-website', 'fields' => array('layout' => array('label' => esc_html__('Layout', 'Avada'), 'description' => esc_html__('Controls the site layout.', 'Avada'), 'id' => 'layout', 'default' => 'Wide', 'type' => 'radio-buttonset', 'choices' => array('Boxed' => esc_html__('Boxed', 'Avada'), 'Wide' => esc_html__('Wide', 'Avada'))), 'site_width' => array('label' => esc_html__('Site Width', 'Avada'), 'description' => esc_html__('Controls the overall site width.', 'Avada'), 'id' => 'site_width', 'default' => '1100px', 'type' => 'dimension', 'choices' => array('px', '%'), 'transport' => 'postMessage'), 'main_padding' => array('label' => esc_html__('Page Content Padding', 'Avada'), 'description' => esc_html__('Controls the top/bottom padding for page content.', 'Avada'), 'id' => 'main_padding', 'choices' => array('top' => true, 'bottom' => true, 'units' => array('px', '%')), 'default' => array('top' => '55px', 'bottom' => '40px'), 'type' => 'spacing'), 'hundredp_padding' => array('label' => esc_html__('100% Width Left/Right Padding', 'Avada'), 'description' => esc_html__('Controls the left/right padding for page content when using 100% site width or 100% width page template.', 'Avada'), 'id' => 'hundredp_padding', 'default' => '30px', 'type' => 'dimension', 'choices' => array('px', '%')), 'col_margin' => array('label' => esc_html__('Column Margins', 'Avada'), 'description' => esc_html__('Controls the top/bottom margins for all column sizes.', 'Avada'), 'id' => 'col_margin', 'type' => 'spacing', 'choices' => array('top' => true, 'bottom' => true, 'units' => array('px', '%')), 'default' => array('top' => '0px', 'bottom' => '20px')), 'single_sidebar_layouts_info' => array('label' => esc_html__('Single Sidebar Layouts', 'Avada'), 'description' => '', 'id' => 'single_sidebar_layouts_info', 'type' => 'info'), 'sidebar_width' => array('label' => esc_html__('Single Sidebar Width', 'Avada'), 'description' => esc_html__('Controls the width of the sidebar when only one sidebar is present.', 'Avada'), 'id' => 'sidebar_width', 'default' => '23%', 'type' => 'dimension', 'choices' => array('px', '%')), 'dual_sidebar_layouts_info' => array('label' => esc_html__('Dual Sidebar Layouts', 'Avada'), 'description' => '', 'id' => 'dual_sidebar_layouts_info', 'type' => 'info'), 'sidebar_2_1_width' => array('label' => esc_html__('Dual Sidebar Width 1', 'Avada'), 'description' => esc_html__('Controls the width of sidebar 1 when dual sidebars are present.', 'Avada'), 'id' => 'sidebar_2_1_width', 'default' => '21%', 'type' => 'dimension', 'choices' => array('px', '%')), 'sidebar_2_2_width' => array('label' => esc_html__('Dual Sidebar Width 2', 'Avada'), 'description' => esc_html__('Controls the width of sidebar 2 when dual sidebars are present.', 'Avada'), 'id' => 'sidebar_2_2_width', 'default' => '21%', 'type' => 'dimension', 'choices' => array('px', '%')), 'ec_sidebar_layouts_info' => Avada::$is_updating || class_exists('Tribe__Events__Main') ? array('label' => esc_html__('Events Calendar Single Sidebar Layout', 'Avada'), 'description' => '', 'id' => 'ec_sidebar_layouts_info', 'type' => 'info') : array(), 'ec_sidebar_width' => Avada::$is_updating || class_exists('Tribe__Events__Main') ? array('label' => esc_html__('Events Calendar Single Sidebar Width', 'Avada'), 'description' => esc_html__('Controls the width of the sidebar when only one sidebar is present.', 'Avada'), 'id' => 'ec_sidebar_width', 'default' => '32%', 'type' => 'dimension', 'choices' => array('px', '%')) : array(), 'ec_dual_sidebar_layouts_info' => Avada::$is_updating || class_exists('Tribe__Events__Main') ? array('label' => esc_html__('Events Calendar Dual Sidebar Layout', 'Avada'), 'description' => '', 'id' => 'ec_dual_sidebar_layouts_info', 'type' => 'info') : array(), 'ec_sidebar_2_1_width' => Avada::$is_updating || class_exists('Tribe__Events__Main') ? array('label' => esc_html__('Events Calendar Dual Sidebar Width 1', 'Avada'), 'description' => esc_html__('Controls the width of sidebar 1 when dual sidebars are present.', 'Avada'), 'id' => 'ec_sidebar_2_1_width', 'default' => '21%', 'type' => 'dimension', 'choices' => array('px', '%')) : array(), 'ec_sidebar_2_2_width' => Avada::$is_updating || class_exists('Tribe__Events__Main') ? array('label' => esc_html__('Events Calendar Dual Sidebar Width 2', 'Avada'), 'description' => esc_html__('Controls the width of sidebar 2 when dual sidebars are present.', 'Avada'), 'id' => 'ec_sidebar_2_2_width', 'default' => '21%', 'type' => 'dimension', 'choices' => array('px', '%')) : array()));
    return $sections;
}
コード例 #15
0
ファイル: importer.php プロジェクト: pedrom40/sazoo.org
function fusion_importer()
{
    global $wpdb;
    if (current_user_can('manage_options')) {
        if (!defined('WP_LOAD_IMPORTERS')) {
            define('WP_LOAD_IMPORTERS', true);
        }
        // we are loading importers
        if (!class_exists('WP_Importer')) {
            // if main importer class doesn't exist
            $wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php';
            include $wp_importer;
        }
        if (!class_exists('WP_Import')) {
            // if WP importer doesn't exist
            $wp_import = get_template_directory() . '/includes/plugins/importer/wordpress-importer.php';
            include $wp_import;
        }
        if (class_exists('WP_Importer') && class_exists('WP_Import')) {
            // check for main import class and wp import class
            if (!isset($_POST['demo_type']) || trim($_POST['demo_type']) == '') {
                $demo_type = 'classic';
            } else {
                $demo_type = $_POST['demo_type'];
            }
            switch ($demo_type) {
                case 'agency':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/agency_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/agency_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/agency_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/agency_demo/fusion_slider.zip';
                    break;
                case 'app':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/app_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/app_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/app_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/app_demo/fusion_slider.zip';
                    break;
                case 'travel':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/travel_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/travel_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/travel_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/travel_demo/fusion_slider.zip';
                    break;
                case 'cafe':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/cafe_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/cafe_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/cafe_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/cafe_demo/fusion_slider.zip';
                    break;
                case 'fashion':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/fashion_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/fashion_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/fashion_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/fashion_demo/fusion_slider.zip';
                    break;
                case 'architecture':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/architecture_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/architecture_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/architecture_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/architecture_demo/fusion_slider.zip';
                    break;
                case 'hosting':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/hosting_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/hosting_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/hosting_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/hosting_demo/fusion_slider.zip';
                    break;
                case 'hotel':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/hotel_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/hotel_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/hotel_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/hotel_demo/fusion_slider.zip';
                    break;
                case 'law':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/law_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/law_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/law_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/law_demo/fusion_slider.zip';
                    break;
                case 'lifestyle':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/lifestyle_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/lifestyle_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/lifestyle_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/lifestyle_demo/fusion_slider.zip';
                    break;
                case 'church':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/church_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/church_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = true;
                    $sidebars = array('PageSidebar' => 'Page Sidebar');
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/church_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/church_demo/fusion_slider.zip';
                    break;
                case 'gym':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/gym_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/gym_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/gym_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/gym_demo/fusion_slider.zip';
                    break;
                case 'photography':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/photography_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/photography_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/photography_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/photography_demo/fusion_slider.zip';
                    break;
                case 'modern_shop':
                    // is a shop demo?
                    $shop_demo = true;
                    // Set pages
                    $woopages = array('woocommerce_shop_page_id' => 'Full Shop With Sidebar', 'woocommerce_cart_page_id' => 'Cart', 'woocommerce_checkout_page_id' => 'Checkout', 'woocommerce_pay_page_id' => 'Checkout &#8594; Pay', 'woocommerce_thanks_page_id' => 'Order Received', 'woocommerce_myaccount_page_id' => 'My Account', 'woocommerce_edit_address_page_id' => 'Edit My Address', 'woocommerce_view_order_page_id' => 'View Order', 'woocommerce_change_password_page_id' => 'Change Password', 'woocommerce_logout_page_id' => 'Logout', 'woocommerce_lost_password_page_id' => 'Lost Password');
                    $woo_xml = get_template_directory() . '/includes/plugins/importer/modern_shop_demo/avada.xml';
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/modern_shop_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/modern_shop_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = true;
                    $sidebars = array('Shop' => 'Shop');
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/modern_shop_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/modern_shop_demo/fusion_slider.zip';
                    break;
                case 'classic_shop':
                    // is a shop demo?
                    $shop_demo = true;
                    // Set pages
                    $woopages = array('woocommerce_shop_page_id' => 'Shop Full Width', 'woocommerce_cart_page_id' => 'Shopping Cart', 'woocommerce_checkout_page_id' => 'Checkout', 'woocommerce_pay_page_id' => 'Checkout &#8594; Pay', 'woocommerce_thanks_page_id' => 'Order Received', 'woocommerce_myaccount_page_id' => 'My Account', 'woocommerce_edit_address_page_id' => 'Edit My Address', 'woocommerce_view_order_page_id' => 'View Order', 'woocommerce_change_password_page_id' => 'Change Password', 'woocommerce_logout_page_id' => 'Logout', 'woocommerce_lost_password_page_id' => 'Lost Password');
                    $woo_xml = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/avada.xml';
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = true;
                    $sidebars = array('Men' => 'Men', 'Women' => 'Women', 'Accessories' => 'Accessories', 'Products Sidebar' => 'ProductsSidebar', 'Content Widget 1' => 'ContentWidget1', 'Content Widget 2' => 'ContentWidget2', 'Content Widget 3' => 'ContentWidget3', 'Content Widget 4' => 'ContentWidget4', 'Promotion' => 'Promotion');
                    $sidebars = array_flip($sidebars);
                    // lazy code
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = true;
                    $rev_directory = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/revsliders/';
                    // reading settings
                    $homepage_title = 'Home 1';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/classic_shop_demo/fusion_slider.zip';
                    break;
                case 'landing_product':
                    // is a shop demo?
                    $shop_demo = true;
                    // Set pages
                    $woopages = array('woocommerce_shop_page_id' => 'Shop', 'woocommerce_cart_page_id' => 'Cart', 'woocommerce_checkout_page_id' => 'Checkout', 'woocommerce_pay_page_id' => 'Checkout &#8594; Pay', 'woocommerce_thanks_page_id' => 'Order Received', 'woocommerce_myaccount_page_id' => 'My Account', 'woocommerce_edit_address_page_id' => 'Edit My Address', 'woocommerce_view_order_page_id' => 'View Order', 'woocommerce_change_password_page_id' => 'Change Password', 'woocommerce_logout_page_id' => 'Logout', 'woocommerce_lost_password_page_id' => 'Lost Password');
                    $woo_xml = get_template_directory() . '/includes/plugins/importer/landing_product_demo/avada.xml';
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/landing_product_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/landing_product_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = false;
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/landing_product_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = true;
                    $rev_directory = get_template_directory() . '/includes/plugins/importer/landing_product_demo/revsliders/';
                    // reading settings
                    $homepage_title = 'Homepage';
                    $fs_exists = false;
                    break;
                case 'forum':
                    $shop_demo = false;
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/forum_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/forum_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = true;
                    $sidebars = array('News Sidebar' => 'NewsSidebar', 'Forum Sidebar' => 'ForumSidebar', 'Apple Sidebar' => 'AppleSidebar', 'Android Sidebar' => 'AndroidSidebar', 'Microsoft Sidebar' => 'MicrosoftSidebar');
                    $sidebars = array_flip($sidebars);
                    // lazy code
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/forum_demo/widget_data.json';
                    $layerslider_exists = false;
                    $revslider_exists = false;
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/forum_demo/fusion_slider.zip';
                    break;
                default:
                    // is a shop demo?
                    $shop_demo = true;
                    // Set pages
                    $woopages = array('woocommerce_shop_page_id' => 'Shop', 'woocommerce_cart_page_id' => 'Cart', 'woocommerce_checkout_page_id' => 'Checkout', 'woocommerce_pay_page_id' => 'Checkout &#8594; Pay', 'woocommerce_thanks_page_id' => 'Order Received', 'woocommerce_myaccount_page_id' => 'My Account', 'woocommerce_edit_address_page_id' => 'Edit My Address', 'woocommerce_view_order_page_id' => 'View Order', 'woocommerce_change_password_page_id' => 'Change Password', 'woocommerce_logout_page_id' => 'Logout', 'woocommerce_lost_password_page_id' => 'Lost Password');
                    $woo_xml = get_template_directory() . '/includes/plugins/importer/classic_demo/avada.xml';
                    $theme_xml_file = get_template_directory() . '/includes/plugins/importer/classic_demo/avada.xml';
                    $theme_options_file = get_template_directory() . '/includes/plugins/importer/classic_demo/theme_options.json';
                    // Register Custom Sidebars
                    $sidebar_exists = true;
                    $sidebars = array('ContactSidebar' => 'Contact Sidebar', 'FAQ' => 'FAQ', 'HomepageSidebar' => 'Home Page Sidebar', 'Portfolio' => 'Portfolio', 'Megamenu1' => 'Megamenu1', 'Megamenu2' => 'Megamenu2', 'Twitter' => 'Twitter', 'PageWidget1' => 'Page Widget 1', 'PageWidget2' => 'Page Widget 2');
                    // Sidebar Widgets File
                    $widgets_file = get_template_directory() . '/includes/plugins/importer/classic_demo/widget_data.json';
                    $layerslider_exists = true;
                    $layer_directory = get_template_directory() . '/includes/plugins/importer/classic_demo/layersliders/';
                    $revslider_exists = true;
                    $rev_directory = get_template_directory() . '/includes/plugins/importer/classic_demo/revsliders/';
                    // reading settings
                    $homepage_title = 'Home';
                    $fs_exists = true;
                    $fs_url = get_template_directory() . '/includes/plugins/importer/classic_demo/fusion_slider.zip';
            }
            add_filter('intermediate_image_sizes_advanced', 'avada_filter_image_sizes');
            /* Import Woocommerce if WooCommerce Exists */
            if (class_exists('WooCommerce') && $shop_demo == true) {
                $importer = new WP_Import();
                $theme_xml = $woo_xml;
                $importer->fetch_attachments = true;
                ob_start();
                $importer->import($theme_xml);
                ob_end_clean();
                foreach ($woopages as $woo_page_name => $woo_page_title) {
                    $woopage = get_page_by_title($woo_page_title);
                    if (isset($woopage) && $woopage->ID) {
                        update_option($woo_page_name, $woopage->ID);
                        // Front Page
                    }
                }
                // We no longer need to install pages
                delete_option('_wc_needs_pages');
                delete_transient('_wc_activation_redirect');
                // Flush rules after install
                flush_rewrite_rules();
            } else {
                $importer = new WP_Import();
                /* Import Posts, Pages, Portfolio Content, FAQ, Images, Menus */
                $theme_xml = $theme_xml_file;
                $importer->fetch_attachments = true;
                //ob_start();
                $importer->import($theme_xml);
                //ob_end_clean();
                flush_rewrite_rules();
            }
            // Set imported menus to registered theme locations
            $locations = get_theme_mod('nav_menu_locations');
            // registered menu locations in theme
            $menus = wp_get_nav_menus();
            // registered menus
            if ($menus) {
                if ($demo_type == 'classic') {
                    $opmenu = get_page_by_title('One Page');
                } else {
                    if ($demo_type == 'landing_product') {
                        $opmenu = get_page_by_title('Homepage');
                    }
                }
                foreach ($menus as $menu) {
                    // assign menus to theme locations
                    if ($demo_type == 'classic') {
                        if ($menu->name == 'Main') {
                            $locations['main_navigation'] = $menu->term_id;
                        } else {
                            if ($menu->name == '404') {
                                $locations['404_pages'] = $menu->term_id;
                            } else {
                                if ($menu->name == 'Top') {
                                    $locations['top_navigation'] = $menu->term_id;
                                }
                            }
                        }
                        // Assign One Page Menu
                        if (isset($opmenu) && $opmenu->ID && $menu->name == 'One Page') {
                            update_post_meta($opmenu->ID, 'pyre_displayed_menu', $menu->term_id);
                        }
                    } elseif ($demo_type == 'agency') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'app') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'travel') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'cafe') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'fashion') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'architecture') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'hosting') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'hotel') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'law') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'lifestyle') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'church') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'gym') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'photography') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'modern_shop') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'classic_shop') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        } else {
                            if ($menu->name == 'Top Secondary Menu') {
                                $locations['top_navigation'] = $menu->term_id;
                            }
                        }
                    } elseif ($demo_type == 'landing_product') {
                        // Assign One Page Menu
                        if (isset($opmenu) && $opmenu->ID && $menu->name == 'Landing Page Menu') {
                            update_post_meta($opmenu->ID, 'pyre_displayed_menu', $menu->term_id);
                        }
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    } elseif ($demo_type == 'forum') {
                        if ($menu->name == 'Main Menu') {
                            $locations['main_navigation'] = $menu->term_id;
                        }
                    }
                }
            }
            set_theme_mod('nav_menu_locations', $locations);
            // set menus to locations
            // Import Theme Options
            $theme_options_json = file_get_contents($theme_options_file);
            $theme_options = json_decode($theme_options_json, true);
            $theme_options['logo_retina'] = '';
            $theme_options_db_name = Avada::get_original_option_name();
            update_option($theme_options_db_name, $theme_options);
            // Add sidebar widget areas
            if ($sidebar_exists == true) {
                update_option('sbg_sidebars', $sidebars);
                foreach ($sidebars as $sidebar) {
                    $sidebar_class = avada_name_to_class($sidebar);
                    register_sidebar(array('name' => $sidebar, 'id' => 'avada-custom-sidebar-' . strtolower($sidebar_class), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="heading"><h4 class="widget-title">', 'after_title' => '</h4></div>'));
                }
            }
            // Add data to widgets
            if (isset($widgets_file) && $widgets_file) {
                $widgets_json = $widgets_file;
                // widgets data file
                $widgets_json = file_get_contents($widgets_json);
                $widget_data = $widgets_json;
                $import_widgets = fusion_import_widget_data($widget_data);
            }
            // Import Layerslider
            if (function_exists('layerslider_import_sample_slider') && $layerslider_exists == true) {
                // if layerslider is activated
                // Get importUtil
                include WP_PLUGIN_DIR . '/LayerSlider/classes/class.ls.importutil.php';
                $layer_files = fusion_get_import_files($layer_directory, 'zip');
                foreach ($layer_files as $layer_file) {
                    // finally import layer slider
                    $import = new LS_ImportUtil($layer_file);
                }
                // Get all sliders
                // Table name
                $table_name = $wpdb->prefix . "layerslider";
                // Get sliders
                $sliders = $wpdb->get_results("SELECT * FROM {$table_name}\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE flag_hidden = '0' AND flag_deleted = '0'\n\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY date_c ASC");
                if (!empty($sliders)) {
                    foreach ($sliders as $key => $item) {
                        $slides[$item->id] = $item->name;
                    }
                }
                if ($slides) {
                    foreach ($slides as $key => $val) {
                        $slides_array[$val] = $key;
                    }
                }
                // Assign LayerSlider
                if ($demo_type == 'classic') {
                    $lspage = get_page_by_title('Layer Slider');
                    if (isset($lspage) && $lspage->ID && $slides_array['Avada Full Width']) {
                        update_post_meta($lspage->ID, 'pyre_slider', $slides_array['Avada Full Width']);
                    }
                }
            }
            // Import Revslider
            if (class_exists('UniteFunctionsRev') && $revslider_exists == true) {
                // if revslider is activated
                $rev_files = fusion_get_import_files($rev_directory, 'zip');
                $slider = new RevSlider();
                foreach ($rev_files as $rev_file) {
                    // finally import rev slider data files
                    $filepath = $rev_file;
                    ob_start();
                    $slider->importSliderFromPost(true, false, $filepath);
                    ob_clean();
                    ob_end_clean();
                }
            }
            // Set reading options
            $homepage = get_page_by_title($homepage_title);
            if (isset($homepage) && $homepage->ID) {
                update_option('show_on_front', 'page');
                update_option('page_on_front', $homepage->ID);
                // Front Page
            }
            // Fusion Sliders Import
            if ($fs_exists == true) {
                @avada_import_fsliders($fs_url);
            }
            update_option('avada_imported_demo', 'true');
            echo 'imported';
            exit;
        }
    }
}
コード例 #16
0
 public function main_menu_args($args)
 {
     global $post;
     $c_pageID = Avada::c_pageID();
     if (get_post_meta($c_pageID, 'pyre_displayed_menu', true) != '' && get_post_meta($c_pageID, 'pyre_displayed_menu', true) != 'default' && ($args['theme_location'] == 'main_navigation' || $args['theme_location'] == 'sticky_navigation')) {
         $menu = get_post_meta($c_pageID, 'pyre_displayed_menu', true);
         $args['menu'] = $menu;
     }
     return $args;
 }
コード例 #17
0
 /**
  * Send the email
  */
 public function send_email()
 {
     $options = get_option(Avada::get_option_name());
     $name = wp_filter_kses($this->name);
     $email = wp_filter_kses($this->email);
     $subject = wp_filter_kses($this->subject);
     $message = wp_filter_kses($this->message);
     if (function_exists('stripslashes')) {
         $subject = stripslashes($subject);
         $message = stripslashes($message);
     }
     $email_to = $options['email_address'];
     $body = esc_html__('Name:', 'Avada') . " {$name} \n\n";
     $body .= esc_html__('Email:', 'Avada') . " {$email} \n\n";
     $body .= esc_html__('Subject:', 'Avada') . " {$subject} \n\n";
     $body .= esc_html__('Comments:', 'Avada') . "\n {$message}";
     $headers = 'Reply-To: ' . $name . ' <' . $email . '>' . "\r\n";
     wp_mail($email_to, $subject, $body, $headers);
     $this->email_sent = true;
     if (true == $this->email_sent) {
         $_POST['contact_name'] = '';
         $_POST['email'] = '';
         $_POST['url'] = '';
         $_POST['msg'] = '';
     }
 }
コード例 #18
0
 /**
  * Get the sidebars
  *
  * @param array $sidebar_options
  *
  * @return array
  */
 public function get_sidebar_settings($sidebar_options = array())
 {
     // Post options
     $sidebar_1 = get_post_meta(Avada::c_pageID(), 'sbg_selected_sidebar_replacement', true);
     $sidebar_2 = get_post_meta(Avada::c_pageID(), 'sbg_selected_sidebar_2_replacement', true);
     $sidebar_position_post_option = strtolower(get_post_meta(Avada::c_pageID(), 'pyre_sidebar_position', true));
     $sidebar_position_metadata = metadata_exists('post', Avada::c_pageID(), 'pyre_sidebar_position');
     if (is_array($sidebar_1) && $sidebar_1[0] === '0') {
         $sidebar_1 = array('Blog Sidebar');
     }
     if (is_array($sidebar_2) && $sidebar_2[0] === '0') {
         $sidebar_2 = array('Blog Sidebar');
     }
     // Theme options
     $sidebar_position_theme_option = array_key_exists('position', $sidebar_options) ? strtolower($sidebar_options['position']) : '';
     // Set default sidebar position
     $sidebar_position = $sidebar_position_post_option;
     // Get sidebars and position from theme options if it's being forced globally
     if (array_key_exists('global', $sidebar_options) && $sidebar_options['global']) {
         $sidebar_1 = array('None' != $sidebar_options['sidebar_1'] ? $sidebar_options['sidebar_1'] : '');
         $sidebar_2 = array('None' != $sidebar_options['sidebar_2'] ? $sidebar_options['sidebar_2'] : '');
         $sidebar_position = $sidebar_position_theme_option;
     }
     // If sidebar position is default OR no entry in database exists
     if ('default' == $sidebar_position || !$sidebar_position_metadata) {
         $sidebar_position = $sidebar_position_theme_option;
     }
     // Reverse sidebar position if double sidebars are used and position is right
     if (Avada()->template->double_sidebars() && 'right' == $sidebar_position) {
         $sidebar_1_placeholder = $sidebar_1;
         $sidebar_2_placeholder = $sidebar_2;
         // Reverse the sidebars
         $sidebar_1 = $sidebar_2_placeholder;
         $sidebar_2 = $sidebar_1_placeholder;
     }
     $return = array('position' => $sidebar_position);
     if ($sidebar_1) {
         $return['sidebar_1'] = $sidebar_1[0];
     }
     if ($sidebar_2) {
         $return['sidebar_2'] = $sidebar_2[0];
     }
     return $return;
 }
コード例 #19
0
 /**
  * Calculate any extra classes for the <body> element.
  * These are then added using the 'body_class' filter.
  * Documentation: ttps://codex.wordpress.org/Plugin_API/Filter_Reference/body_class
  */
 public function body_classes($classes)
 {
     $sidebar_1 = $this->sidebar_context(1);
     $sidebar_2 = $this->sidebar_context(2);
     $c_pageID = Avada::c_pageID();
     $classes[] = 'fusion-body';
     if (is_page_template('blank.php')) {
         $classes[] = 'body_blank';
     }
     if (!Avada()->settings->get('header_sticky_tablet')) {
         $classes[] = 'no-tablet-sticky-header';
     }
     if (!Avada()->settings->get('header_sticky_mobile')) {
         $classes[] = 'no-mobile-sticky-header';
     }
     if (Avada()->settings->get('mobile_slidingbar_widgets')) {
         $classes[] = 'no-mobile-slidingbar';
     }
     if (Avada()->settings->get('status_totop')) {
         $classes[] = 'no-totop';
     }
     if (!Avada()->settings->get('status_totop_mobile')) {
         $classes[] = 'no-mobile-totop';
     }
     if ('horizontal' == Avada()->settings->get('woocommerce_product_tab_design') && is_singular('product')) {
         $classes[] = 'woo-tabs-horizontal';
     }
     if ('modern' == Avada()->settings->get('mobile_menu_design')) {
         $classes[] = 'mobile-logo-pos-' . strtolower(Avada()->settings->get('logo_alignment'));
     }
     if ('Boxed' == Avada()->settings->get('layout') && 'default' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true) || 'boxed' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) {
         $classes[] = 'layout-boxed-mode';
     } else {
         $classes[] = 'layout-wide-mode';
     }
     if (is_array($sidebar_1) && !empty($sidebar_1) && ($sidebar_1[0] || '0' == $sidebar_1[0]) && !is_buddypress() && !is_bbpress() && !is_page_template('100-width.php') && (!class_exists('WooCommerce') || class_exists('WooCommerce') && !is_cart() && !is_checkout() && !is_account_page() && !(get_option('woocommerce_thanks_page_id') && is_page(get_option('woocommerce_thanks_page_id'))))) {
         $classes[] = 'has-sidebar';
     }
     if (is_array($sidebar_1) && $sidebar_1[0] && is_array($sidebar_2) && $sidebar_2[0] && !is_buddypress() && !is_bbpress() && !is_page_template('100-width.php') && (!class_exists('WooCommerce') || class_exists('WooCommerce') && !is_cart() && !is_checkout() && !is_account_page() && !(get_option('woocommerce_thanks_page_id') && is_page(get_option('woocommerce_thanks_page_id'))))) {
         $classes[] = 'double-sidebars';
     }
     if (is_page_template('side-navigation.php') && is_array($sidebar_2) && $sidebar_2[0]) {
         $classes[] = 'double-sidebars';
     }
     if (is_home()) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if (is_archive() && (!is_buddypress() && !is_bbpress() && (class_exists('WooCommerce') && !is_shop()) || !class_exists('WooCommerce')) && !is_tax('portfolio_category') && !is_tax('portfolio_skills') && !is_tax('portfolio_tags') && !is_tax('product_cat') && !is_tax('product_tag')) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if (is_tax('portfolio_category') || is_tax('portfolio_skills') || is_tax('portfolio_tags')) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if (is_tax('product_cat') || is_tax('product_tag')) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if (is_search()) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if ((is_bbpress() || is_buddypress()) && !bbp_is_forum_archive() && !bbp_is_topic_archive() && !bbp_is_user_home() && !bbp_is_search()) {
         if (Avada()->settings->get('bbpress_global_sidebar')) {
             if ('None' != $sidebar_1) {
                 $classes[] = 'has-sidebar';
             }
             if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
                 $classes[] = 'double-sidebars';
             }
         } else {
             if (is_array($sidebar_1) && $sidebar_1[0]) {
                 $classes[] = 'has-sidebar';
             }
             if (is_array($sidebar_1) && $sidebar_1[0] && is_array($sidebar_2) && $sidebar_2[0]) {
                 $classes[] = 'double-sidebars';
             }
         }
     }
     if ((is_bbpress() || is_buddypress()) && (bbp_is_forum_archive() || bbp_is_topic_archive() || bbp_is_user_home() || bbp_is_search())) {
         if ('None' != $sidebar_1) {
             $classes[] = 'has-sidebar';
         }
         if ('None' != $sidebar_1 && 'None' != $sidebar_2) {
             $classes[] = 'double-sidebars';
         }
     }
     if (class_exists('Tribe__Events__Main') && is_events_archive()) {
         if (is_array($sidebar_1) && $sidebar_1[0] && !is_bbpress() && !is_page_template('100-width.php') && (!class_exists('WooCommerce') || class_exists('WooCommerce') && !is_cart() && !is_checkout() && !is_account_page() && !(get_option('woocommerce_thanks_page_id') && is_page(get_option('woocommerce_thanks_page_id'))))) {
             $classes[] = 'has-sidebar';
         }
         if (is_array($sidebar_1) && $sidebar_1[0] && is_array($sidebar_2) && $sidebar_2[0] && !is_bbpress() && !is_page_template('100-width.php') && (!class_exists('WooCommerce') || class_exists('WooCommerce') && !is_cart() && !is_checkout() && !is_account_page() && !(get_option('woocommerce_thanks_page_id') && is_page(get_option('woocommerce_thanks_page_id'))))) {
             $classes[] = 'double-sidebars';
         }
     }
     if ('no' != get_post_meta($c_pageID, 'pyre_display_header', true)) {
         if ('Left' == Avada()->settings->get('header_position') || 'Right' == Avada()->settings->get('header_position')) {
             $classes[] = 'side-header';
         }
         if ('Left' == Avada()->settings->get('header_position')) {
             $classes[] = 'side-header-left';
         } elseif ('Right' == Avada()->settings->get('header_position')) {
             $classes[] = 'side-header-right';
         }
         $classes[] = 'menu-text-align-' . strtolower(Avada()->settings->get('menu_text_align'));
     }
     $classes[] = 'mobile-menu-design-' . Avada()->settings->get('mobile_menu_design');
     return $classes;
 }
コード例 #20
0
    /**
     * Output the content for the current step
     */
    public function setup_wizard_template()
    {
        $current_step = intval($this->step);
        ?>
		<!DOCTYPE html>
		<html xmlns="http://www.w3.org/1999/xhtml" <?php 
        language_attributes();
        ?>
>
			<head>
				<meta name="viewport" content="width=device-width" />
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
				<title><?php 
        esc_html_e('Avada Database Update Wizard', 'Avada');
        ?>
</title>
				<?php 
        do_action('admin_print_styles');
        ?>
				<?php 
        do_action('admin_head');
        ?>
				<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100' rel='stylesheet' type='text/css'>
				<style>
				.avada-setup {
					padding: 3% 20%;
					background-color: #f2f2f2;
					font-family:'Roboto', sans-serif;
					font-weight:300;
					font-size: 1.1em;
				}
				.update-content {
					max-width: 1150px;
					margin: auto;
				}
				.avada-logo {
					margin-bottom: 25px;
					text-align: center;
				}
				.avada-logo img {
					max-width: 226.5px;
					height: auto;
					vertical-align: bottom;
				}
				.avada-version {
					vertical-align: bottom;
				}
				.avada-version-inner {
					display: inline-block;
					margin-left: 20px;
					padding: 5px 10px;
					background-color: #a0ce4e;
					-webkit-border-radius: 3px;
					border-radius: 3px;
					color: #fff;
				}
				.avada-content-wrapper {
					-webkit-border-radius: 3px;
					border-radius: 3px;
					-webkit-box-shadow: 1px 1px 3px 1px rgba(0,0,0,.2);
					box-shadow: 1px 1px 3px 1px rgba(0,0,0,.2);
				}
				.avada-welcome-msg {
					padding: 25px 35px;
					line-height: 1.6em;
					background-color: #a0ce4e;
					color: #fff;
					font-style: italic;
					text-align: center;
				}
				.avada-migration-link {
					color: #fff;
				}
				.avada-setup-content {
					padding: 30px 10%;
					background: #fff;
				}
				.avada-update-progress-bar {
					height: 20px;
					position: relative;
					background: #F0F4C3;
					margin: 35px 0;
					padding: 1px;
				}
				.avada-update-progress-bar > span {
					display: block;
					height: 100%;
					background-color: #8bc34a;
					position: relative;
					overflow: hidden;
				}
				.tasks-list {
					padding: 0;
					list-style: none;
					<?php 
        if (3 < $this->steps) {
            ?>
						-webkit-column-count: 2;
						-moz-column-count: 2;
						column-count: 2;
					<?php 
        }
        ?>
				}
				.tasks-list li .content {
					color: #333;
				}
				.tasks-list li {
					color: #f2f2f2;
				}
				.tasks-list li:before {
					vertical-align: middle;
					font-family: dashicons;
					content: "\f147";
					font-size: 1.4em
				}
				.tasks-list li.done {
					color: #a0ce4e;
				}
				.tasks-list li.doing {
					color: #000;
				}
				.avada-save-options {
					display: inline-block;
					margin: 2em 0 0.67em 0;
					padding: 1em 2em;
					background-color: #a0ce4e;
					color: #fff;
					text-decoration: none;
					-webkit-border-radius: 3px;
					border-radius: 3px;
					-webkit-transition: all 0.3s;
					-moz-transition: all 0.3s;
					-ms-transition: all 0.3s;
					transition: all 0.3s;
				}
				.avada-save-options.needs-update {
					background-color: #ef5350;
				}
				.avada-save-options:hover {
					background-color: #96c346;
				}
				.avada-save-options.needs-update:hover {
					background-color: #f44336;
				}
				.avada-footer {
					padding: 25px 35px;
					background: #f2f2f2;
					font-size: 0.8em;
					text-align: right;
				}
				.avada-themefusion-link {
					color: #000;
					text-decoration: none;
				}
				.avada-separator {
					padding: 0 10px;
				}
				.avada-heart {
					padding-left: 5px;
					vertical-align: middle;
				}
				.avada-heart:after {
					font-family: dashicons;
					content: "\f487";
				}
				</style>
			</head>
			<?php 
        $version = Avada::get_version();
        ?>
			<body class="avada-setup wp-core-ui">
				<div class="update-content">
					<div class="avada-logo">
						<img src="<?php 
        echo get_template_directory_uri();
        ?>
/assets/images/logo_migration.png" alt="<?php 
        esc_html_e('Avada Logo', 'Avada');
        ?>
" width="453" height="95">
						<span class="avada-version">
							<span class="avada-version-inner"><?php 
        echo $version;
        ?>
</span>
						</span>
					</div>
					<div class="avada-content-wrapper">
						<div class="avada-welcome-msg">
							<?php 
        $migration_link = sprintf('<a class="avada-migration-link" href="https://theme-fusion.com/knowledgebase/avada-v4-migration" target="_blank" title="%s">%s</a>', esc_html__('Migration Information'), esc_html__('link'));
        if (!empty($this->available_languages)) {
            printf(esc_html__('We have an amazing new update in store for you! Avada 4.0 now includes a new options panel powered by the AvadaRedux Framework. To complete the migration, we have backed up your existing theme options in your database, made a copy and then securely converted. If you have a multi-lingual site, each language will be updated individually one after another. For more detailed information, please visit this %s. Thank you for choosing Avada!', 'Avada'), $migration_link);
        } else {
            printf(esc_html__('We have an amazing new update in store for you! Avada 4.0 now includes a new options panel powered by the AvadaRedux Framework. To complete the migration, we have backed up your existing theme options in your database, made a copy and then securely converted. For more detailed information, please visit this %s. Thank you for choosing Avada!', 'Avada'), $migration_link);
        }
        ?>
						</div>
						<div class="avada-setup-content">
							<h1 style="font-size:1.3em;">
								<?php 
        esc_html_e('Updating Avada Database Entries', 'Avada');
        ?>
							</h1>
							<?php 
        if (!empty($this->available_languages)) {
            ?>
								<?php 
            printf(esc_html__('Currently migrating language: %s', 'Avada'), '<strong>' . esc_attr($this->active_language) . '</strong>');
            ?>
							<?php 
        }
        ?>
							<?php 
        if ($current_step >= count($this->steps)) {
            ?>
								<p><?php 
            esc_html_e('Done!', 'Avada');
            ?>
</p>
							<?php 
        } elseif ($current_step >= count($this->steps) * 0.75) {
            ?>
								<p><?php 
            esc_html_e('Almost there...', 'Avada');
            ?>
</p>
							<?php 
        } elseif ($current_step >= count($this->steps) * 0.4) {
            ?>
								<p><?php 
            esc_html_e('Halfway there... Patience Padawan, Patience.', 'Avada');
            ?>
</p>
							<?php 
        } else {
            ?>
								<p><?php 
            esc_html_e('This may take a few minutes, please wait.', 'Avada');
            ?>
</p>
							<?php 
        }
        ?>

							<?php 
        if (!empty($this->available_languages)) {
            ?>
								<?php 
            $current_lang_step = 0;
            ?>
								<?php 
            $current_lang_step = array_search($this->active_language, $this->available_languages) + 1;
            ?>
								<div class="avada-update-progress-bar"><span style="width: <?php 
            echo intval(100 * $current_lang_step / count($this->available_languages));
            ?>
%"></span></div>
							<?php 
        }
        ?>

							<?php 
        if ($current_step <= count($this->steps) && isset($this->steps[$this->step])) {
            ?>
								<div class="avada-update-progress-bar"><span style="width: <?php 
            echo intval(100 * ($current_step + 1) / count($this->steps));
            ?>
%"></span></div>
								<p><?php 
            printf(esc_html__('Updating Avada Database options: step %s of %s.', 'Avada'), intval($this->step + 1), count($this->steps));
            ?>
</p>
								<ul class="tasks-list">
									<?php 
            foreach ($this->steps as $key => $step) {
                ?>
										<?php 
                $li_class = '';
                if ($key <= $current_step - 1) {
                    $li_class = ' class="done"';
                } elseif ($key == $current_step) {
                    $li_class = ' class="doing"';
                }
                ?>
										<li<?php 
                echo $li_class;
                ?>
>
											<span class="content"><?php 
                echo esc_html($step['description']);
                ?>
</span>
										</li>
									<?php 
            }
            ?>
								</ul>
							<?php 
        } else {
            ?>
								<?php 
            if (empty($this->available_languages) || count($this->available_languages) == array_search($this->active_language, $this->available_languages) + 1) {
                ?>
									<p><?php 
                esc_html_e('Congratulations, Data migration for Avada 4.0 was successfully completed.', 'Avada');
                ?>
</p>
									<p><?php 
                esc_html_e('For best experience, please clear your browser cache once.', 'Avada');
                ?>
</p>
									<p><?php 
                esc_html_e('Dynamic-CSS caches have been auto reset. Have fun!', 'Avada');
                ?>
</p>
								<?php 
            }
            ?>
							<?php 
        }
        ?>

							<?php 
        if (intval($this->step) >= count($this->steps)) {
            ?>
								<?php 
            $needs_plugin_update = false;
            ?>
								<?php 
            if (class_exists('FusionCore_Plugin')) {
                ?>
									<?php 
                $fc_version = FusionCore_Plugin::VERSION;
                ?>
									<?php 
                if (version_compare($fc_version, '2.0', '<')) {
                    ?>
										<?php 
                    $needs_plugin_update = true;
                    ?>
									<?php 
                }
                ?>
								<?php 
            }
            ?>
								<?php 
            if (empty($this->available_languages) || count($this->available_languages) == array_search($this->active_language, $this->available_languages) + 1) {
                ?>

									<?php 
                if ($needs_plugin_update) {
                    ?>
										<a class="avada-save-options needs-update" href="<?php 
                    echo admin_url('themes.php?page=install-required-plugins');
                    ?>
">
											<?php 
                    _e('Fusion Core Plugin Must Be Updated - Click Here', 'Avada');
                    ?>
										</a>
									<?php 
                } else {
                    ?>
										<a class="avada-save-options" href="<?php 
                    echo admin_url('themes.php?page=avada_options');
                    ?>
">
											<?php 
                    _e('Take Me To Theme Options!', 'Avada');
                    ?>
										</a>
									<?php 
                }
                ?>

								<?php 
            }
            ?>
							<?php 
        }
        ?>
						</div>
						<div class="avada-footer"><a class="avada-themefusion-link" href="https://theme-fusion.com" target="_blank" title="ThemeFusion">ThemeFusion</a><span class="avada-separator">|</span><?php 
        printf(esc_html__('Created with %s', 'Avada'), '<span class="avada-heart"></span>');
        ?>
</div>
					</div>
					<?php 
        echo $this->redirect_script();
        ?>
				</div>
			</body>
		</html>
		<?php 
    }
コード例 #21
0
 /**
  * Actions to run on initial theme activation
  *
  * @since 3.8.0
  */
 public function admin_init()
 {
     if (current_user_can('edit_theme_options')) {
         // Save avada key in a different location
         $avada_key = get_option('Avada_Key');
         if (!is_array($avada_key) && empty($avada_key)) {
             $avada_options = get_option(Avada::get_option_name());
             $tf_username = isset($avada_options['tf_username']) ? $avada_options['tf_username'] : '';
             $tf_api = isset($avada_options['tf_api']) ? $avada_options['tf_api'] : '';
             $tf_purchase_code = isset($avada_options['tf_purchase_code']) ? $avada_options['tf_purchase_code'] : '';
             if ($tf_username && $tf_api && $tf_purchase_code) {
                 update_option('Avada_Key', array('tf_username' => $tf_username, 'tf_api' => $tf_api, 'tf_purchase_code' => $tf_purchase_code));
             }
         }
         if (isset($_GET['avada-deactivate']) && 'deactivate-plugin' == $_GET['avada-deactivate']) {
             check_admin_referer('avada-deactivate', 'avada-deactivate-nonce');
             $plugins = TGM_Plugin_Activation::$instance->plugins;
             foreach ($plugins as $plugin) {
                 if ($plugin['slug'] == $_GET['plugin']) {
                     deactivate_plugins($plugin['file_path']);
                 }
             }
         }
         if (isset($_GET['avada-activate']) && 'activate-plugin' == $_GET['avada-activate']) {
             check_admin_referer('avada-activate', 'avada-activate-nonce');
             $plugins = TGM_Plugin_Activation::$instance->plugins;
             foreach ($plugins as $plugin) {
                 if (isset($_GET['plugin']) && $plugin['slug'] == $_GET['plugin']) {
                     activate_plugin($plugin['file_path']);
                     wp_redirect(admin_url('admin.php?page=avada-plugins'));
                     exit;
                 }
             }
         }
     }
 }
コード例 #22
0
ファイル: sidebar-1.php プロジェクト: pedrom40/sazoo.org
<div id="sidebar" <?php 
Avada()->layout->add_class('sidebar_1_class');
?>
 <?php 
Avada()->layout->add_style('sidebar_1_style');
?>
>
	<?php 
if (!Avada()->template->has_sidebar() || 'left' == Avada()->layout->sidebars['position'] || 'right' == Avada()->layout->sidebars['position'] && !Avada()->template->double_sidebars()) {
    ?>
		<?php 
    echo avada_display_sidenav(Avada::c_pageID());
    ?>

		<?php 
    if (class_exists('Tribe__Events__Main') && is_singular('tribe_events')) {
        ?>
			<?php 
        do_action('tribe_events_single_event_before_the_meta');
        ?>
			<?php 
        tribe_get_template_part('modules/meta');
        ?>
			<?php 
        do_action('tribe_events_single_event_after_the_meta');
        ?>
		<?php 
    }
    ?>
	<?php 
}
コード例 #23
0
 /**
  * When in Polylang on WPML we're using "all" languages,
  * saved options should be copied to ALL languages.
  *
  * @access public
  * @since 4.0.2
  */
 public function save_all_languages()
 {
     // Get the current language.
     $is_all = Avada::get_language_is_all();
     // If not "all", then early exit.
     if (!$is_all) {
         return;
     }
     // Get the options.
     $option_name = Avada::get_option_name();
     $original_option_name = Avada::get_original_option_name();
     $options = get_option($option_name);
     // Get available languages.
     $all_languages = Avada_Multilingual::get_available_languages();
     // Get default language
     $default_language = Avada_Multilingual::get_default_language();
     if ('en' !== $default_language) {
         update_option($original_option_name . '_' . $default_language, $options);
         update_option($original_option_name, $options);
     }
     foreach ($all_languages as $language) {
         // Skip English.
         if ('' === $language || 'en' === $language) {
             continue;
         }
         // Skip the main language if something other than English.
         // We've already handled that above.
         if ('en' !== $default_language && $default_language === $language) {
             continue;
         }
         // Copy options to the new language.
         update_option($original_option_name . '_' . $language, $options);
     }
 }
コード例 #24
0
ファイル: dynamic_css.php プロジェクト: pedrom40/sazoo.org
/**
 * Format of the $css array:
 * $css['media-query']['element']['property'] = value
 *
 * If no media query is required then set it to 'global'
 *
 * If we want to add multiple values for the same property then we have to make it an array like this:
 * $css[media-query][element]['property'][] = value1
 * $css[media-query][element]['property'][] = value2
 *
 * Multiple values defined as an array above will be parsed separately.
 */
function avada_dynamic_css_array()
{
    global $wp_version;
    $c_pageID = Avada::c_pageID();
    $isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'], 'iPad');
    $css = array();
    /**
     * An array of all the elements that will be targeted from the body typography settings
     */
    $body_typography_elements = apply_filters('avada_body_typography_elements', avada_get_body_typography_elements());
    /**
     * An array of all the elements that will be targeted from the nav typography settings
     */
    $nav_typography_elements = array('.side-nav li a', '.fusion-main-menu > ul > li > a');
    $nav_typography_elements = avada_implode($nav_typography_elements);
    /**
     * An array of all the elements that will be targeter from the h1_typography settings
     */
    $h1_typography_elements = apply_filters('avada_h1_typography_elements', avada_get_h1_typography_elements());
    /**
     * An array of all the elements that will be targeter from the h2_typography settings
     */
    $h2_typography_elements = apply_filters('avada_h2_typography_elements', avada_get_h2_typography_elements());
    /**
     * An array of all the elements that will be targeter from the h3_typography settings
     */
    $h3_typography_elements = apply_filters('avada_h3_typography_elements', avada_get_h3_typography_elements());
    /**
     * An array of all the elements that will be targeter from the h4_typography settings
     */
    $h4_typography_elements = apply_filters('avada_h4_typography_elements', avada_get_h4_typography_elements());
    /**
     * An array of all the elements that will be targeter from the h5_typography settings
     */
    $h5_typography_elements = apply_filters('avada_h5_typography_elements', avada_get_h5_typography_elements());
    /**
     * An array of all the elements that will be targeter from the h6_typography settings
     */
    $h6_typography_elements = apply_filters('avada_h6_typography_elements', avada_get_h6_typography_elements());
    /**
     * An array of all the elements that will be targeter from the button_typography settings
     */
    $button_typography_elements = apply_filters('avada_button_typography_elements', avada_get_button_typography_elements());
    $footer_headings_typography_elements = array('.fusion-footer-widget-area h3', '.fusion-footer-widget-area .widget-title', '#slidingbar-area h3', '#slidingbar-area .widget-title');
    $footer_headings_typography_elements = avada_implode($footer_headings_typography_elements);
    // Set the correct paddings and negative margins for the "100% Width Left/Right Padding" option
    $hundredplr_padding = Avada_Sanitize::size(fusion_get_option('hundredp_padding', 'hundredp_padding', $c_pageID));
    $hundredplr_padding_value = Avada_Sanitize::number($hundredplr_padding);
    $hundredplr_padding_unit = Avada_Sanitize::get_unit($hundredplr_padding);
    $hundredplr_padding_negative_margin = '-' . $hundredplr_padding_value . $hundredplr_padding_unit;
    if ($hundredplr_padding_unit == '%') {
        $fullwidth_max_width = 100 - 2 * $hundredplr_padding_value;
        $hundredplr_padding_negative_margin = '-' . $hundredplr_padding_value / $fullwidth_max_width * 100 . $hundredplr_padding_unit;
    }
    $link_color_elements = array('body a', 'body a:before', 'body a:after', '.single-navigation a[rel="prev"]:before', '.single-navigation a[rel="next"]:after', '.project-content .project-info .project-info-box a', '.fusion-content-widget-area .widget li a', '.fusion-content-widget-area .widget .recentcomments', '.fusion-content-widget-area .widget_categories li', '#main .post h2 a', '.about-author .title a', '.shop_attributes tr th', '.fusion-rollover a', '.fusion-load-more-button');
    if (class_exists('bbPress')) {
        $link_color_elements[] = '.bbp-forum-header a.bbp-forum-permalink';
        $link_color_elements[] = '.bbp-topic-header a.bbp-topic-permalink';
        $link_color_elements[] = '.bbp-reply-header a.bbp-reply-permalink';
    }
    if (class_exists('WooCommerce')) {
        $link_color_elements[] = '.fusion-woo-featured-products-slider .price .amount';
        //$link_color_elements[] = '.my_account_orders thead tr th';
        //$link_color_elements[] = '.shop_table thead tr th';
        //$link_color_elements[] = '.cart_totals table th';
        //$link_color_elements[] = '.checkout .shop_table tfoot th';
        //$link_color_elements[] = '.checkout .payment_methods label';
        //$link_color_elements[] = '#final-order-details .mini-order-details th';
        $link_color_elements[] = '#main .product .product_title';
        $link_color_elements[] = '.shop_table.order_details tr th';
        $link_color_elements[] = '.widget_layered_nav li.chosen a';
        $link_color_elements[] = '.widget_layered_nav li.chosen a:before';
        $link_color_elements[] = '.widget_layered_nav_filters li.chosen a';
        $link_color_elements[] = '.widget_layered_nav_filters li.chosen a:before';
    }
    if (class_exists('Tribe__Events__Main')) {
        $link_color_elements[] = '#tribe-events-content .tribe-events-sub-nav li a';
        $link_color_elements[] = '.event-is-recurring';
    }
    $link_color_elements = avada_implode($link_color_elements);
    // Is the site width a percent value?
    $site_width_percent = false !== strpos(Avada()->settings->get('site_width'), '%') ? true : false;
    $theme_info = wp_get_theme();
    if ($theme_info->parent_theme) {
        $template_dir = basename(get_template_directory());
        $theme_info = wp_get_theme($template_dir);
    }
    $css['global']['.' . $theme_info->get('Name') . "_" . str_replace('.', '', $theme_info->get('Version'))]['color'] = 'green';
    if (!Avada()->settings->get('responsive')) {
        $css['global']['.ua-mobile #wrapper']['width'] = '100% !important';
        $css['global']['.ua-mobile #wrapper']['overflow'] = 'hidden !important';
    }
    $side_header_width = 'Top' == Avada()->settings->get('header_position') ? 0 : intval(Avada()->settings->get('side_header_width'));
    if (version_compare($wp_version, '4.3.1', '<=')) {
        // tweak the comment-form CSS for WordPress versions < 4.4
        $css['global']['#comment-input']['margin-bottom'] = '13px';
    }
    if (class_exists('WooCommerce')) {
        if ('horizontal' == Avada()->settings->get('woocommerce_product_tab_design')) {
            $css['global']['.woocommerce-tabs > .tabs']['width'] = '100%';
            $css['global']['.woocommerce-tabs > .tabs']['margin'] = '0px';
            $css['global']['.woocommerce-tabs > .tabs']['border-bottom'] = '1px solid #dddddd';
            $css['global']['.woocommerce-tabs > .tabs li']['float'] = 'left';
            $css['global']['.woocommerce-tabs > .tabs li a']['border'] = '1px solid transparent !important';
            $css['global']['.woocommerce-tabs > .tabs li a']['padding'] = '10px 20px';
            $css['global']['.woocommerce-tabs > .tabs .active']['border'] = '1px solid #dddddd';
            $css['global']['.woocommerce-tabs > .tabs .active']['border-bottom'] = 'none';
            $css['global']['.woocommerce-tabs > .tabs .active']['min-height'] = '40px';
            $css['global']['.woocommerce-tabs > .tabs .active']['margin-bottom'] = '-1px';
            $css['global']['.woocommerce-tabs > .tabs .active:hover a']['cursor'] = 'default';
            $css['global']['.woocommerce-tabs .entry-content']['float'] = 'left';
            $css['global']['.woocommerce-tabs .entry-content']['margin'] = '0px';
            $css['global']['.woocommerce-tabs .entry-content']['width'] = '100%';
            $css['global']['.woocommerce-tabs .entry-content']['border-top'] = 'none';
        }
        if ('0' != Avada_Color::get_alpha_from_rgba(Avada()->settings->get('timeline_bg_color'))) {
            $css['global']['.products .product-list-view']['padding-left'] = '20px';
            $css['global']['.products .product-list-view']['padding-right'] = '20px';
        }
        $elements = array('.fusion-item-in-cart .fusion-rollover-content .fusion-rollover-title', '.fusion-item-in-cart .fusion-rollover-content .fusion-rollover-categories', '.fusion-item-in-cart .fusion-rollover-content .price', '.fusion-carousel-title-below-image .fusion-item-in-cart .fusion-rollover-content .fusion-product-buttons', '.products .product .fusion-item-in-cart .fusion-rollover-content .fusion-product-buttons');
        $css['global'][avada_implode($elements)]['display'] = 'none';
        if ('clean' == Avada()->settings->get('woocommerce_product_box_design')) {
            $css['global']['.fusion-woo-product-design-clean .products .fusion-rollover .star-rating span:before, .fusion-woo-product-design-clean .products .fusion-rollover .star-rating:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_icon_color'));
            $css['global']['.fusion-woo-product-design-clean .products .fusion-rollover-content .fusion-product-buttons, .fusion-woo-slider .fusion-product-buttons']['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_text_color'));
            $css['global']['.fusion-woo-product-design-clean .products .fusion-rollover-content .fusion-product-buttons a, .fusion-woo-slider .fusion-product-buttons a']['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_text_color'));
            $css['global']['.fusion-woo-product-design-clean .products .fusion-rollover-content .fusion-product-buttons a, .fusion-woo-slider .fusion-product-buttons a']['letter-spacing'] = '1px';
            $css['global']['.fusion-woo-product-design-clean .products .fusion-rollover-content .fusion-rollover-linebreak, .fusion-woo-slider .fusion-product-buttons .fusion-rollover-linebreak']['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_text_color'));
        }
        // Make the single product page layout reflect the single image size in Woo settings
        if (is_product()) {
            $post_image = get_the_post_thumbnail(get_the_ID(), apply_filters('single_product_large_thumbnail_size', 'shop_single'));
            if ($post_image) {
                preg_match('@width="([^"]+)"@', $post_image, $match);
                if ('500' != $match[1]) {
                    $shop_single_image_size = wc_get_image_size('shop_single');
                    $css['global']['.product .images']['width'] = $shop_single_image_size['width'] . 'px';
                    $css['global']['.product .summary.entry-summary']['margin-left'] = $shop_single_image_size['width'] + 30 . 'px';
                }
            }
        }
    }
    $elements = array('html', 'body', 'html body.custom-background');
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce-tabs > .tabs .active a';
    }
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('content_bg_color'));
    if ('Wide' == Avada()->settings->get('layout')) {
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('content_bg_color'));
    } elseif ('Boxed' == Avada()->settings->get('layout')) {
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('bg_color'));
    }
    if (!$site_width_percent) {
        $elements = array('#main', '.fusion-secondary-header', '.sticky-header .sticky-shadow', '.tfs-slider .slide-content-container', '.header-v4 #small-nav', '.header-v5 #small-nav', '.fusion-footer-copyright-area', '.fusion-footer-widget-area', '#slidingbar', '.fusion-page-title-bar');
        $css['global'][avada_implode($elements)]['padding-left'] = '30px';
        $css['global'][avada_implode($elements)]['padding-right'] = '30px';
        $elements = array('.width-100 .nonhundred-percent-fullwidth', '.width-100 .fusion-section-separator');
        $css['global'][avada_implode($elements)]['padding-left'] = $hundredplr_padding;
        $css['global'][avada_implode($elements)]['padding-right'] = $hundredplr_padding;
        $elements = array('.width-100 .fullwidth-box', '.width-100 .fusion-section-separator');
        $css['global'][avada_implode($elements)]['margin-left'] = $hundredplr_padding_negative_margin . '!important';
        $css['global'][avada_implode($elements)]['margin-right'] = $hundredplr_padding_negative_margin . '!important';
    }
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li a']['padding-left'] = '30px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li a']['padding-right'] = '30px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item .fusion-open-submenu']['padding-right'] = '35px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item a']['padding-left'] = '30px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item a']['padding-right'] = '30px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li a']['padding-left'] = '39px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li a']['padding-left'] = '48px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li a']['padding-left'] = '57px';
    $css['global']['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li li a']['padding-left'] = '66px';
    $elements = array('a:hover', '.tooltip-shortcode', '.event-is-recurring:hover');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $elements = array('.fusion-login-box a:hover', '.fusion-footer-widget-area ul li a:hover', '.fusion-footer-widget-area .widget li a:hover:before', '.fusion-footer-widget-area .widget li.recentcomments:hover:before', '.fusion-footer-widget-area .fusion-tabs-widget .tab-holder .news-list li .post-holder a:hover', '.fusion-footer-widget-area .fusion-accordian .panel-title a:hover', '#slidingbar-area ul li a:hover', '#slidingbar-area .widget li.recentcomments:hover:before', '#slidingbar-area .fusion-accordian .panel-title a:hover', '.fusion-filters .fusion-filter.fusion-active a', '.project-content .project-info .project-info-box a:hover', '#main .post h2 a:hover', '#main .about-author .title a:hover', 'span.dropcap', '.fusion-footer-widget-area a:hover', '.slidingbar-area a:hover', '.slidingbar-area .widget li a:hover:before', '.fusion-copyright-notice a:hover', '.fusion-content-widget-area .widget_categories li a:hover', '.fusion-content-widget-area .widget li a:hover', '.fusion-date-and-formats .fusion-format-box i', 'h5.toggle:hover a', '.tooltip-shortcode', '.content-box-percentage', '.fusion-popover', '.more a:hover:after', '.fusion-read-more:hover:after', '.pagination-prev:hover:before', '.pagination-next:hover:after', '.single-navigation a[rel=prev]:hover:before', '.single-navigation a[rel=next]:hover:after', '.fusion-content-widget-area .widget li a:hover:before', '.fusion-content-widget-area .widget_nav_menu li a:hover:before', '.fusion-content-widget-area .widget_categories li a:hover:before', '.fusion-content-widget-area .widget .recentcomments:hover:before', '.fusion-content-widget-area .widget_recent_entries li a:hover:before', '.fusion-content-widget-area .widget_archive li a:hover:before', '.fusion-content-widget-area .widget_pages li a:hover:before', '.fusion-content-widget-area .widget_links li a:hover:before', '.side-nav .arrow:hover:after', '#wrapper .jtwt .jtwt_tweet a:hover', '.star-rating:before', '.star-rating span:before', '#wrapper .fusion-widget-area .current_page_item > a', '#wrapper .fusion-widget-area .current-menu-item > a', '#wrapper .fusion-widget-area .current_page_item > a:before', '#wrapper .fusion-widget-area .current-menu-item > a:before', '.side-nav ul > li.current_page_item > a', '.side-nav li.current_page_ancestor > a', '.fusion-accordian .panel-title a:hover', '.price ins .amount', '.price > .amount');
    if (is_rtl()) {
        $elements[] = '.rtl .more a:hover:before';
        $elements[] = '.rtl .fusion-read-more:hover:before';
    }
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper span.ginput_total';
        $elements[] = '.gform_wrapper span.ginput_product_price';
        $elements[] = '.ginput_shipping_price';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-pagination .bbp-pagination-links .pagination-prev:hover:before';
        $elements[] = '.bbp-pagination .bbp-pagination-links .pagination-next:hover:after';
        $elements[] = '.bbp-topics-front ul.super-sticky a:hover';
        $elements[] = '.bbp-topics ul.super-sticky a:hover';
        $elements[] = '.bbp-topics ul.sticky a:hover';
        $elements[] = '.bbp-forum-content ul.sticky a:hover';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .address .edit:hover:after';
        $elements[] = '.woocommerce-tabs .tabs a:hover .arrow:after';
        $elements[] = '.woocommerce-pagination .prev:hover';
        $elements[] = '.woocommerce-pagination .next:hover';
        $elements[] = '.woocommerce-pagination .prev:hover:before';
        $elements[] = '.woocommerce-pagination .next:hover:after';
        $elements[] = '.woocommerce-tabs .tabs li.active a';
        $elements[] = '.woocommerce-tabs .tabs li.active a .arrow:after';
        $elements[] = '.woocommerce-side-nav li.active a';
        $elements[] = '.woocommerce-side-nav li.active a:after';
        $elements[] = '.my_account_orders .order-actions a:hover:after';
        $elements[] = '.avada-order-details .shop_table.order_details tfoot tr:last-child .amount';
        $elements[] = '#wrapper .cart-checkout a:hover';
        $elements[] = '#wrapper .cart-checkout a:hover:before';
        $elements[] = '.widget_shopping_cart_content .total .amount';
        $elements[] = '.widget_layered_nav li a:hover:before';
        $elements[] = '.widget_product_categories li a:hover:before';
        $elements[] = '.my_account_orders .order-number a';
        $elements[] = '.shop_table .product-subtotal .amount';
        $elements[] = '.cart_totals .order-total .amount';
        $elements[] = '.checkout .shop_table tfoot .order-total .amount';
        $elements[] = '#final-order-details .mini-order-details tr:last-child .amount';
        $elements[] = '.fusion-carousel-title-below-image .fusion-carousel-meta .price .amount';
        $elements[] = '.widget_shopping_cart_content a:hover:before';
        // $elements[] = '.fusion-woo-product-design-clean .products .fusion-rollover-content .fusion-product-buttons a:hover';
        // $elements[] = '.fusion-woo-product-design-clean .products .fusion-rollover-content .cart-loading a:hover';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.tribe-events-gmap:hover:before';
        $elements[] = '.tribe-events-gmap:hover:after';
        $elements[] = '.tribe-events-nav-previous a:hover:before, .tribe-events-nav-previous a:hover:after';
        $elements[] = '.tribe-events-nav-next a:hover:before, .tribe-events-nav-next a:hover:after';
        $elements[] = '#tribe-events-content .tribe-events-sub-nav li a:hover';
        $elements[] = '.tribe-mini-calendar-event .list-date .list-dayname';
        $elements[] = '#tribe_events_filters_wrapper .tribe_events_slider_val';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $elements = array('.fusion-accordian .panel-title a:hover .fa-fusion-box');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color')) . ' !important';
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color')) . ' !important';
    $css['global']['.fusion-content-widget-area .fusion-image-wrapper .fusion-rollover .fusion-rollover-content a:hover']['color'] = '#333333';
    $elements = array('.star-rating:before', '.star-rating span:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $elements = array('.tagcloud a:hover', '#slidingbar-area .tagcloud a:hover', '.fusion-footer-widget-area .tagcloud a:hover');
    $css['global'][avada_implode($elements)]['color'] = '#FFFFFF';
    $css['global'][avada_implode($elements)]['text-shadow'] = 'none';
    $elements = array('.reading-box', '.fusion-filters .fusion-filter.fusion-active a', '#wrapper .fusion-tabs-widget .tab-holder .tabs li.active a', '#wrapper .post-content blockquote', '.progress-bar-content', '.pagination .current', '.pagination a.inactive:hover', '.fusion-hide-pagination-text .pagination-prev:hover', '.fusion-hide-pagination-text .pagination-next:hover', '#nav ul li > a:hover', '#sticky-nav ul li > a:hover', '.tagcloud a:hover', '#wrapper .fusion-tabs.classic .nav-tabs > li.active .tab-link:hover', '#wrapper .fusion-tabs.classic .nav-tabs > li.active .tab-link:focus', '#wrapper .fusion-tabs.classic .nav-tabs > li.active .tab-link', '#wrapper .fusion-tabs.vertical-tabs.classic .nav-tabs > li.active .tab-link');
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-pagination .bbp-pagination-links .current';
        $elements[] = '.bbp-topic-pagination .page-numbers:hover';
        $elements[] = '#bbpress-forums div.bbp-topic-tags a:hover';
        $elements[] = '.fusion-hide-pagination-text .bbp-pagination .bbp-pagination-links .pagination-prev:hover';
        $elements[] = '.fusion-hide-pagination-text .bbp-pagination .bbp-pagination-links .pagination-next:hover';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce-pagination .page-numbers.current';
        $elements[] = '.woocommerce-pagination .page-numbers:hover';
        $elements[] = '.woocommerce-pagination .current';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $css['global']['#wrapper .side-nav li.current_page_item a']['border-right-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $css['global']['#wrapper .side-nav li.current_page_item a']['border-left-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $elements = array('.fusion-accordian .panel-title .active .fa-fusion-box', 'ul.circle-yes li:before', '.circle-yes ul li:before', '.progress-bar-content', '.pagination .current', '.fusion-date-and-formats .fusion-date-box', '.table-2 table thead', '.tagcloud a:hover', '#toTop:hover', '#wrapper .search-table .search-button input[type="submit"]:hover', 'ul.arrow li:before');
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-pagination .bbp-pagination-links .current';
        //$elements[] = '#bbpress-forums div.bbp-topic-tags a:hover';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.onsale';
        $elements[] = '.woocommerce-pagination .current';
        $elements[] = '.woocommerce .social-share li a:hover i';
        $elements[] = '.price_slider_wrapper .ui-slider .ui-slider-range';
        $elements[] = '.cart-loading';
        $elements[] = 'p.demo_store';
        $elements[] = '.avada-myaccount-data .digital-downloads li:before';
        $elements[] = '.avada-thank-you .order_details li:before';
        $elements[] = '.fusion-content-widget-area .widget_layered_nav li.chosen';
        $elements[] = '.fusion-content-widget-area .widget_layered_nav_filters li.chosen';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.tribe-events-calendar thead th';
        $elements[] = '.tribe-events-calendar td.tribe-events-present div[id*=tribe-events-daynum-]';
        $elements[] = '.tribe-events-calendar td.tribe-events-present div[id*=tribe-events-daynum-]>a';
        $elements[] = '#tribe-events-content .tribe-events-tooltip h4';
        $elements[] = '.tribe-events-list-separator-month';
        $elements[] = '.tribe-mini-calendar-event .list-date';
    }
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    if (class_exists('WooCommerce')) {
        $css['global']['.woocommerce .social-share li a:hover i']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    }
    if (class_exists('bbPress')) {
        $elements = array('.bbp-topics-front ul.super-sticky', '.bbp-topics ul.super-sticky', '.bbp-topics ul.sticky', '.bbp-forum-content ul.sticky');
        $css['global'][avada_implode($elements)]['background-color'] = '#ffffe8';
        $css['global'][avada_implode($elements)]['opacity'] = '1';
    }
    if (Avada()->settings->get('slidingbar_widgets')) {
        $css['global']['#slidingbar']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_bg_color'));
        $css['global']['.sb-toggle-wrapper']['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_bg_color'));
        $css['global']['#wrapper #slidingbar-area .fusion-tabs-widget .tab-holder .tabs li']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_bg_color'));
        if (Avada()->settings->get('slidingbar_top_border')) {
            $css['global']['#slidingbar-area']['border-bottom'][] = '3px solid ' . Avada_Sanitize::color(Avada()->settings->get('slidingbar_bg_color'));
            $css['global']['.fusion-header-wrapper']['margin-top'] = '3px';
            $css['global']['.admin-bar p.demo_store']['padding-top'] = '13px';
        }
        if (('Boxed' == Avada()->settings->get('layout') && 'default' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true) || 'boxed' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) && 'Top' != Avada()->settings->get('header_position')) {
            $elements = array('.side-header-right #slidingbar-area', '.side-header-left #slidingbar-area');
            $css['global'][avada_implode($elements)]['top'] = 'auto';
        }
    }
    $elements = array('.fusion-separator .icon-wrapper', 'html', 'body', '#sliders-container', '#fusion-gmap-container');
    if ('Boxed' != Avada()->settings->get('layout')) {
        $elements[] = '#wrapper';
        $elements[] = '#main';
    } elseif (in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
        $elements[] = '#wrapper';
        $css['global']['#main']['background-color'] = "transparent";
    } else {
        $elements[] = '#main';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-arrow';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce-tabs > .tabs .active a';
    }
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('content_bg_color'));
    $css['global']['.fusion-footer-widget-area']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('footer_bg_color'));
    $css['global']['#wrapper .fusion-footer-widget-area .fusion-tabs-widget .tab-holder .tabs li']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('footer_bg_color'));
    $css['global']['.fusion-footer-widget-area']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('footer_border_color'));
    $css['global']['.fusion-footer-widget-area']['border-top-width'] = intval(Avada()->settings->get('footer_border_size')) . 'px';
    $css['global']['.fusion-footer-copyright-area']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('copyright_bg_color'));
    $css['global']['.fusion-footer-copyright-area']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('copyright_border_color'));
    $css['global']['.fusion-footer-copyright-area']['border-top-width'] = intval(Avada()->settings->get('copyright_border_size')) . 'px';
    $css['global']['.sep-boxed-pricing .panel-heading']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('pricing_box_color'));
    $css['global']['.sep-boxed-pricing .panel-heading']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('pricing_box_color'));
    $elements = array('.fusion-pricing-table .panel-body .price .integer-part', '.fusion-pricing-table .panel-body .price .decimal-part', '.full-boxed-pricing.fusion-pricing-table .standout .panel-heading h3');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('pricing_box_color'));
    $css['global']['.fusion-image-wrapper .fusion-rollover']['background-image'][] = 'linear-gradient(top, ' . Avada_Sanitize::color(Avada()->settings->get('image_gradient_top_color')) . ' 0%, ' . Avada_Sanitize::color(Avada()->settings->get('image_gradient_bottom_color')) . ' 100%)';
    $css['global']['.fusion-image-wrapper .fusion-rollover']['background-image'][] = '-webkit-gradient(linear, left top, left bottom, color-stop(0, ' . Avada_Sanitize::color(Avada()->settings->get('image_gradient_top_color')) . '), color-stop(1, ' . Avada_Sanitize::color(Avada()->settings->get('image_gradient_bottom_color')) . '))';
    $css['global']['.fusion-image-wrapper .fusion-rollover']['background-image'][] = 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('image_gradient_top_color'))) . ', endColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('image_gradient_bottom_color'))) . '), progid: DXImageTransform.Microsoft.Alpha(Opacity=0)';
    $css['global']['.no-cssgradients .fusion-image-wrapper .fusion-rollover']['background'] = Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('image_gradient_top_color')));
    $css['global']['.fusion-image-wrapper:hover .fusion-rollover']['filter'] = 'progid:DXImageTransform.Microsoft.gradient(startColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('image_gradient_top_color'))) . ', endColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('image_gradient_bottom_color'))) . '), progid: DXImageTransform.Microsoft.Alpha(Opacity=100)';
    $button_accent_hover_color = !Avada()->settings->get('button_accent_hover_color') ? 'transparent' : Avada_Sanitize::color(Avada()->settings->get('button_accent_hover_color'));
    $elements = array('.fusion-portfolio-one .fusion-button', '#main .comment-submit', '#reviews input#submit', '.comment-form input[type="submit"]', '.button-default', '.fusion-button-default', '.button.default', '.post-password-form input[type="submit"]', '.ticket-selector-submit-btn[type=submit]');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gform_button';
        $elements[] = '.gform_wrapper .button';
        $elements[] = '.gform_page_footer input[type="button"]';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
        $elements[] = '.wpcf7-submit';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-submit-wrapper .button';
        $elements[] = '#bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.price_slider_amount button';
        $elements[] = '.woocommerce .single_add_to_cart_button';
        $elements[] = '.woocommerce button.button';
        $elements[] = '.woocommerce .avada-shipping-calculator-form .button';
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce .checkout_coupon .button';
        $elements[] = '.woocommerce .login .button';
        $elements[] = '.woocommerce .register .button';
        $elements[] = '.woocommerce .avada-order-details .order-again .button';
        $elements[] = '.woocommerce .avada-order-details .order-again .button';
        $elements[] = '.woocommerce .lost_reset_password input[type="submit"]';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
        $elements[] = '#tribe-events .tribe-events-button';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_toggle';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_reset';
    }
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color'));
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_color'));
    if (Avada()->settings->get('button_gradient_top_color') != Avada()->settings->get('button_gradient_bottom_color')) {
        $css['global'][avada_implode($elements)]['background-image'][] = '-webkit-gradient( linear, left bottom, left top, from( ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_bottom_color')) . ' ), to( ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color')) . ' ) )';
        $css['global'][avada_implode($elements)]['background-image'][] = 'linear-gradient( to top, ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_bottom_color')) . ', ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color')) . ' )';
    }
    if ('Pill' != Avada()->settings->get('button_shape')) {
        $css['global'][avada_implode($elements)]['filter'] = 'progid:DXImageTransform.Microsoft.gradient(startColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('button_gradient_top_color'))) . ', endColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('button_gradient_bottom_color'))) . ')';
    }
    $css['global'][avada_implode($elements)]['transition'] = 'all .2s';
    $elements = array('.no-cssgradients .fusion-portfolio-one .fusion-button', '.no-cssgradients #main .comment-submit', '.no-cssgradients #reviews input#submit', '.no-cssgradients .comment-form input[type="submit"]', '.no-cssgradients .button-default', '.no-cssgradients .fusion-button-default', '.no-cssgradients .button.default', '.no-cssgradients .post-password-form input[type="submit"]', '.no-cssgradients .ticket-selector-submit-btn[type="submit"]', '.link-type-button-bar .fusion-read-more');
    if (class_exists('GFForms')) {
        $elements[] = '.no-cssgradients .gform_wrapper .gform_button';
        $elements[] = '.no-cssgradients .gform_wrapper .button';
        $elements[] = '.no-cssgradients .gform_page_footer input[type="button"]';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.no-cssgradients .wpcf7-form input[type="submit"]';
        $elements[] = '.no-cssgradients .wpcf7-submit';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.no-cssgradients .bbp-submit-wrapper .button';
        $elements[] = '.no-cssgradients #bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.no-cssgradients .price_slider_amount button';
        $elements[] = '.no-cssgradients .woocommerce .single_add_to_cart_button';
        $elements[] = '.no-cssgradients .woocommerce button.button';
        $elements[] = '.no-cssgradients .woocommerce .avada-shipping-calculator-form .button';
        $elements[] = '.no-cssgradients .woocommerce .checkout #place_order';
        $elements[] = '.no-cssgradients .woocommerce .checkout_coupon .button';
        $elements[] = '.no-cssgradients .woocommerce .login .button';
        $elements[] = '.no-cssgradients .woocommerce .register .button';
        $elements[] = '.no-cssgradients .woocommerce .avada-order-details .order-again .button';
        $elements[] = '.no-cssgradients .woocommerce .lost_reset_password input[type="submit"]';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.no-cssgradients #tribe-bar-form .tribe-bar-submit input[type=submit]';
        $elements[] = '.no-cssgradients #tribe-events .tribe-events-button';
        $elements[] = '.no-cssgradients #tribe_events_filter_control #tribe_events_filters_toggle';
        $elements[] = '.no-cssgradients #tribe_events_filter_control #tribe_events_filters_reset';
    }
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color'));
    $elements = array('.fusion-portfolio-one .fusion-button:hover', '#main .comment-submit:hover', '#reviews input#submit:hover', '.comment-form input[type="submit"]:hover', '.button-default:hover', '.fusion-button-default:hover', '.button.default:hover', '.post-password-form input[type="submit"]:hover', '.ticket-selector-submit-btn[type="submit"]:hover');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gform_button:hover';
        $elements[] = '.gform_wrapper .button:hover';
        $elements[] = '.gform_page_footer input[type="button"]:hover';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]:hover';
        $elements[] = '.wpcf7-submit:hover';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-submit-wrapper .button:hover';
        $elements[] = '#bbp_user_edit_submit:hover';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.price_slider_amount button:hover';
        $elements[] = '.woocommerce .single_add_to_cart_button:hover';
        $elements[] = '.woocommerce .avada-shipping-calculator-form .button:hover';
        $elements[] = '.woocommerce .checkout #place_order:hover';
        $elements[] = '.woocommerce .checkout_coupon .button:hover';
        $elements[] = '.woocommerce .login .button:hover';
        $elements[] = '.woocommerce .register .button:hover';
        $elements[] = '.woocommerce .avada-order-details .order-again .button:hover';
        $elements[] = '.woocommerce .lost_reset_password input[type="submit"]:hover';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]:hover';
        $elements[] = '#tribe-events .tribe-events-button:hover';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_toggle:hover';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_reset:hover';
    }
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color_hover'));
    $css['global'][avada_implode($elements)]['color'] = $button_accent_hover_color;
    if (Avada()->settings->get('button_gradient_top_color_hover') != Avada()->settings->get('button_gradient_bottom_color_hover')) {
        $css['global'][avada_implode($elements)]['background-image'][] = '-webkit-gradient( linear, left bottom, left top, from( ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_bottom_color_hover')) . ' ), to( ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color_hover')) . ' ) )';
        $css['global'][avada_implode($elements)]['background-image'][] = 'linear-gradient( to top, ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_bottom_color_hover')) . ', ' . Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color_hover')) . ' )';
    }
    if ('Pill' != Avada()->settings->get('button_shape')) {
        $css['global'][avada_implode($elements)]['filter'] = 'progid:DXImageTransform.Microsoft.gradient(startColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('button_gradient_top_color_hover'))) . ', endColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('button_gradient_bottom_color_hover'))) . ')';
    }
    $elements = array('.no-cssgradients .fusion-portfolio-one .fusion-button:hover', '.no-cssgradients #main .comment-submit:hover', '.no-cssgradients #reviews input#submit:hover', '.no-cssgradients .comment-form input[type="submit"]:hover', '.no-cssgradients .button-default:hover', '.no-cssgradients .fusion-button-default:hover', '.no-cssgradinets .button.default:hover', '.no-cssgradinets .post-password-form input[type="submit"]:hover', '.no-cssgradients .ticket-selector-submit-btn[type="submit"]:hover');
    if (class_exists('GFForms')) {
        $elements[] = '.no-cssgradients .gform_wrapper .gform_button:hover';
        $elements[] = '.no-cssgradients .gform_wrapper .button:hover';
        $elements[] = '.no-cssgradients .gform_page_footer input[type="button"]:hover';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.no-cssgradients .wpcf7-form input[type="submit"]:hover';
        $elements[] = '.no-cssgradients .wpcf7-submit:hover';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.no-cssgradients .bbp-submit-wrapper .button:hover';
        $elements[] = '.no-cssgradients #bbp_user_edit_submit:hover';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.no-cssgradients .price_slider_amount button:hover';
        $elements[] = '.no-cssgradients .woocommerce .single_add_to_cart_button:hover';
        $elements[] = '.no-cssgradients .woocommerce .avada-shipping-calculator-form .button:hover';
        $elements[] = '.no-cssgradients .woocommerce .checkout #place_order:hover';
        $elements[] = '.no-cssgradients .woocommerce .checkout_coupon .button:hover';
        $elements[] = '.no-cssgradients .woocommerce .login .button:hover';
        $elements[] = '.no-cssgradients .woocommerce .register .button:hover';
        $elements[] = '.no-cssgradients .woocommerce .avada-order-details .order-again .button:hover';
        $elements[] = '.no-cssgradients .woocommerce .lost_reset_password input[type="submit"]:hover';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.no-cssgradients #tribe-bar-form .tribe-bar-submit input[type=submit]:hover';
        $elements[] = '.no-cssgradients #tribe-events .tribe-events-button:hover';
        $elements[] = '.no-cssgradients #tribe_events_filter_control #tribe_events_filters_toggle:hover';
        $elements[] = '.no-cssgradients #tribe_events_filter_control #tribe_events_filters_reset:hover';
    }
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('button_gradient_top_color_hover')) . ' !important';
    $elements = array('.link-type-button-bar .fusion-read-more', '.link-type-button-bar .fusion-read-more:after', '.link-type-button-bar .fusion-read-more:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_color'));
    $elements = array('.link-type-button-bar .fusion-read-more:hover', '.link-type-button-bar .fusion-read-more:hover:after', '.link-type-button-bar .fusion-read-more:hover:before', '.link-type-button-bar.link-area-box:hover .fusion-read-more', '.link-type-button-bar.link-area-box:hover .fusion-read-more:after', '.link-type-button-bar.link-area-box:hover .fusion-read-more:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_color')) . ' !important';
    $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-link', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-gallery');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_text_color'));
    $elements = array('.fusion-rollover .fusion-rollover-content .fusion-rollover-title', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-rollover-title a', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-rollover-categories', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-rollover-categories a', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content a', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .price *', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_text_color'));
    $css['global']['.fusion-page-title-bar']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('page_title_border_color'));
    if ('0' == Avada_Color::get_alpha_from_rgba(Avada()->settings->get('page_title_border_color'))) {
        $css['global']['.fusion-page-title-bar']['border'] = 'none';
    }
    if ('' != Avada()->settings->get('footerw_bg_image', 'url')) {
        $css['global']['.fusion-footer-widget-area']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('footerw_bg_image', 'url')) . '")';
        $css['global']['.fusion-footer-widget-area']['background-repeat'] = esc_attr(Avada()->settings->get('footerw_bg_repeat'));
        $css['global']['.fusion-footer-widget-area']['background-position'] = esc_attr(Avada()->settings->get('footerw_bg_pos'));
        if (Avada()->settings->get('footerw_bg_full')) {
            $css['global']['.fusion-footer-widget-area']['background-attachment'] = 'scroll';
            $css['global']['.fusion-footer-widget-area']['background-position'] = 'center center';
            $css['global']['.fusion-footer-widget-area']['background-size'] = 'cover';
        }
    }
    $css['global'][$footer_headings_typography_elements]['font-family'] = wp_strip_all_tags(Avada()->settings->get('footer_headings_typography', 'font-family'));
    $css['global'][$footer_headings_typography_elements]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('footer_headings_typography', 'font-size'));
    $css['global'][$footer_headings_typography_elements]['font-weight'] = intval(Avada()->settings->get('footer_headings_typography', 'font-weight'));
    $css['global'][$footer_headings_typography_elements]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('footer_headings_typography', 'line-height'));
    $css['global'][$footer_headings_typography_elements]['letter-spacing'] = round(Avada()->settings->get('footer_headings_typography', 'letter-spacing')) . 'px';
    $font_style = Avada()->settings->get('footer_headings_typography', 'font-style');
    if (!empty($font_style)) {
        $css['global'][$footer_headings_typography_elements]['font-style'] = esc_attr(Avada()->settings->get('footer_headings_typography', 'font-style'));
    }
    if (in_array(Avada()->settings->get('footer_special_effects'), array('footer_area_bg_parallax', 'footer_sticky_with_parallax_bg_image'))) {
        $css['global']['.fusion-footer-widget-area']['background-attachment'] = 'fixed';
        $css['global']['.fusion-footer-widget-area']['background-position'] = 'top center';
    }
    if ('footer_parallax_effect' == Avada()->settings->get('footer_special_effects')) {
        $elements = array('#sliders-container', '#fusion-gmap-container', '.fusion-page-title-bar', '#main');
        $css['global'][avada_implode($elements)]['position'] = 'relative';
        $css['global'][avada_implode($elements)]['z-index'] = '1';
    }
    if (0 != intval(Avada()->settings->get('footer_sticky_height')) && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
        $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
        $css['global'][avada_implode($elements)]['height'] = '100%';
        $css['global']['.above-footer-wrapper']['min-height'] = '100%';
        $css['global']['.above-footer-wrapper']['margin-bottom'] = (int) Avada()->settings->get('footer_sticky_height') * -1 . 'px';
        $css['global']['.above-footer-wrapper:after']['content'] = '""';
        $css['global']['.above-footer-wrapper:after']['display'] = 'block';
        $css['global']['.above-footer-wrapper:after']['height'] = intval(Avada()->settings->get('footer_sticky_height')) . 'px';
        $css['global']['.fusion-footer']['height'] = intval(Avada()->settings->get('footer_sticky_height')) . 'px';
    }
    $css['global']['.fusion-footer-widget-area']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('footer_area_padding', 'top'));
    $css['global']['.fusion-footer-widget-area']['padding-bottom'] = Avada_Sanitize::size(Avada()->settings->get('footer_area_padding', 'bottom'));
    $elements = array('.fusion-footer-widget-area > .fusion-row', '.fusion-footer-copyright-area > .fusion-row');
    $css['global'][avada_implode($elements)]['padding-left'] = Avada_Sanitize::size(Avada()->settings->get('footer_area_padding', 'left'));
    $css['global'][avada_implode($elements)]['padding-right'] = Avada_Sanitize::size(Avada()->settings->get('footer_area_padding', 'right'));
    if (Avada()->settings->get('footer_100_width')) {
        $elements = array('.layout-wide-mode .fusion-footer-widget-area > .fusion-row', '.layout-wide-mode .fusion-footer-copyright-area > .fusion-row');
        $css['global'][avada_implode($elements)]['max-width'] = '100% !important';
    }
    $css['global']['.fusion-footer-copyright-area']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('copyright_padding', 'top'));
    $css['global']['.fusion-footer-copyright-area']['padding-bottom'] = Avada_Sanitize::size(Avada()->settings->get('copyright_padding', 'bottom'));
    $css['global']['.fontawesome-icon.circle-yes']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('icon_circle_color'));
    $elements = array('.fontawesome-icon.circle-yes', '.content-box-shortcode-timeline');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('icon_border_color'));
    $elements = array('.fontawesome-icon', '.fontawesome-icon.circle-yes', '.post-content .error-menu li:before', '.post-content .error-menu li:after');
    if (class_exists('WooCommerce')) {
        $elements[] = '.avada-myaccount-data .digital-downloads li:before';
        $elements[] = '.avada-myaccount-data .digital-downloads li:after';
        $elements[] = '.avada-thank-you .order_details li:before';
        $elements[] = '.avada-thank-you .order_details li:after';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('icon_color'));
    $elements = array('.fusion-title .title-sep', '.fusion-title.sep-underline', '.product .product-border');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('title_border_color'));
    if (class_exists('Tribe__Events__Main')) {
        $css['global']['.tribe-events-single .related-posts .fusion-title .title-sep']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_border_color'), Avada()->settings->get_default('ec_border_color'));
    }
    $elements = array('.review blockquote q', '.post-content blockquote', '.checkout .payment_methods .payment_box');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('testimonial_bg_color'));
    $css['global']['.fusion-testimonials .author:after']['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('testimonial_bg_color'));
    $elements = array('.review blockquote q', '.post-content blockquote');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('testimonial_text_color'));
    if (isset($body_typography_elements['family'])) {
        $css['global'][avada_implode($body_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
        $css['global'][avada_implode($body_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
        $css['global'][avada_implode($body_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('body_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('body_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($body_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('body_typography', 'font-style'));
        }
    }
    if (isset($body_typography_elements['line-height'])) {
        $css['global'][avada_implode($body_typography_elements['line-height'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('body_typography', 'line-height'));
    }
    if (isset($body_typography_elements['size'])) {
        $css['global'][avada_implode($body_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('body_typography', 'font-size'));
    }
    if (isset($body_typography_elements['color'])) {
        $css['global'][avada_implode($body_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('body_typography', 'color'));
    }
    $elements = array('.avada-container h3', '.review blockquote div strong', '.fusion-footer-widget-area h3', '#slidingbar-area h3', '.project-content .project-info h4', '.fusion-load-more-button', '.comment-form input[type="submit"]', '.ticket-selector-submit-btn[type="submit"]');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gform_button';
        $elements[] = '.gform_wrapper .button';
        $elements[] = '.gform_page_footer input[type="button"]';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
    }
    if (class_exists('bbPress')) {
        $elements[] = '#bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .single_add_to_cart_button';
        $elements[] = '.woocommerce button.button';
        $elements[] = '.woocommerce .avada-shipping-calculator-form .button';
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce .checkout_coupon .button';
        $elements[] = '.woocommerce .login .button';
        $elements[] = '.woocommerce .register .button';
        $elements[] = '.woocommerce .avada-order-details .order-again .button';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
        $elements[] = '#tribe-events .tribe-events-button';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_toggle';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_reset';
    }
    $css['global'][avada_implode($elements)]['font-weight'] = 'bold';
    $elements = array('.meta .fusion-date', '.review blockquote q', '.post-content blockquote');
    $css['global'][avada_implode($elements)]['font-style'] = 'italic';
    $elements = array('.fusion-page-title-bar .fusion-breadcrumbs', '.fusion-page-title-bar .fusion-breadcrumbs li', '.fusion-page-title-bar .fusion-breadcrumbs li a');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('breadcrumbs_font_size'));
    $css['global']['#wrapper .side-nav li a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('side_nav_font_size'));
    $elements = array('.sidebar .widget h4');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('sidew_font_size'));
    $css['global'][$nav_typography_elements]['font-family'] = wp_strip_all_tags(Avada()->settings->get('nav_typography', 'font-family'));
    $css['global']['.fusion-main-menu-cart .fusion-widget-cart-number']['font-family'] = wp_strip_all_tags(Avada()->settings->get('nav_typography', 'font-family'));
    $css['global'][$nav_typography_elements]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('nav_font_size'));
    $css['global'][$nav_typography_elements]['font-weight'] = intval(Avada()->settings->get('nav_typography', 'font-weight'));
    $css['global'][$nav_typography_elements]['letter-spacing'] = round(Avada()->settings->get('nav_typography', 'letter-spacing')) . 'px';
    $font_style = Avada()->settings->get('nav_typography', 'font-style');
    if (!empty($font_style)) {
        $css['global'][$nav_typography_elements]['font-style'] = esc_attr(Avada()->settings->get('nav_typography', 'font-style'));
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements = array('.single-tribe_events .sidebar .widget h4', '.single-tribe_events .sidebar .tribe-events-single-section-title');
        $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('ec_sidew_font_size'));
        $elements = array('.single-tribe_events .sidebar', '.single-tribe_events .tribe-events-event-meta');
        $css['global'][avada_implode($elements)]['font-size'] = intval(Avada()->settings->get('ec_text_font_size')) . 'px';
    }
    $elements = array('#slidingbar-area h3', '#slidingbar-area .widget-title');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('slidingbar_font_size'));
    $css['global'][avada_implode($elements)]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('slidingbar_font_size'));
    $css['global']['.fusion-copyright-notice']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('copyright_font_size'));
    $elements = array('#main .fusion-row', '.fusion-footer-widget-area .fusion-row', '#slidingbar-area .fusion-row', '.fusion-footer-copyright-area .fusion-row', '.fusion-page-title-row', '.tfs-slider .slide-content-container .slide-content');
    $css['global'][avada_implode($elements)]['max-width'] = Avada_Sanitize::size(Avada()->settings->get('site_width'));
    $elements = array('#wrapper #main .post > h2.entry-title', '#wrapper #main .fusion-post-content > .blog-shortcode-post-title', '#wrapper #main .fusion-post-content > h2.entry-title', '#wrapper #main .fusion-portfolio-content > h2.entry-title', '#wrapper .fusion-events-shortcode .fusion-events-meta h2');
    if (class_exists('WooCommerce')) {
        $elements[] = '.single-product .product .product_title';
    }
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('post_titles_font_size'));
    $css['global'][avada_implode($elements)]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('post_titles_font_lh'));
    $elements = array('#wrapper #main .about-author .fusion-title h3', '#wrapper #main #comments .fusion-title h3', '#wrapper #main #respond .fusion-title h3', '#wrapper #main .related-posts .fusion-title h3', '#wrapper #main .related.products .fusion-title h3');
    if (class_exists('WooCommerce')) {
        $elements[] = '.single-product .woocommerce-tabs h3';
    }
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('post_titles_extras_font_size'));
    $css['global'][avada_implode($elements)]['line-height'] = '1.5';
    $css['global']['.ei-title h2']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('es_title_font_size'));
    $css['global']['.ei-title h2']['line-height'] = '1.5';
    $css['global']['.ei-title h3']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('es_caption_font_size'));
    $css['global']['.ei-title h3']['line-height'] = '1.5';
    $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-rollover-categories', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-rollover-categories a', '.fusion-recent-posts .columns .column .meta', '.fusion-carousel-meta', '.fusion-single-line-meta', '#wrapper .fusion-events-shortcode .fusion-events-meta h4');
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums li.bbp-body ul.forum .bbp-forum-freshness';
        $elements[] = '#bbpress-forums li.bbp-body ul.topic .bbp-topic-freshness';
        $elements[] = '#bbpress-forums .bbp-forum-info .bbp-forum-content';
        $elements[] = '#bbpress-forums p.bbp-topic-meta';
        $elements[] = '.bbp-pagination-count';
        $elements[] = '#bbpress-forums div.bbp-topic-author .fusion-reply-id';
        $elements[] = '#bbpress-forums div.bbp-reply-author .fusion-reply-id';
        $elements[] = '#bbpress-forums .bbp-reply-header .bbp-meta';
        $elements[] = '#bbpress-forums span.bbp-admin-links a';
        $elements[] = '#bbpress-forums span.bbp-admin-links';
        $elements[] = '#bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log';
        $elements[] = '#bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log';
        $elements[] = '#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log';
    }
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('meta_font_size'));
    $css['global'][avada_implode($elements)]['line-height'] = '1.5';
    $elements = array('.fusion-meta', '.fusion-meta-info', '.fusion-recent-posts .columns .column .meta', '.post .single-line-meta', '.fusion-carousel-meta');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('meta_font_size'));
    $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a', '.product-buttons a');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('woo_icon_font_size'));
    $css['global'][avada_implode($elements)]['line-height'] = '1.5';
    // Make sure px vales have enough space before main text
    $woo_icon_font_size = Avada()->settings->get('woo_icon_font_size');
    if (Avada_Sanitize::get_unit(Avada()->settings->get('woo_icon_font_size')) == 'px') {
        preg_match_all('!\\d+!', Avada()->settings->get('woo_icon_font_size'), $matches);
        $woo_icon_font_size = $matches[0][0] + 2 . 'px';
    }
    if (is_rtl()) {
        $elements = array('.rtl .fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a', '.rtl .product-buttons a');
        $css['global'][avada_implode($elements)]['padding-right'] = $woo_icon_font_size;
        $elements = array('.rtl .fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a:before', '.rtl .product-buttons a:before');
        $css['global'][avada_implode($elements)]['margin-right'] = '-' . $woo_icon_font_size;
    } else {
        $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a', '.product-buttons a');
        $css['global'][avada_implode($elements)]['padding-left'] = $woo_icon_font_size;
        $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-content .fusion-product-buttons a:before', '.product-buttons a:before');
        $css['global'][avada_implode($elements)]['margin-left'] = '-' . $woo_icon_font_size;
    }
    $elements = array('.pagination', '.page-links', '.pagination .pagination-next', '.pagination .pagination-prev');
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce-pagination';
        $elements[] = '.woocommerce-pagination .next';
        $elements[] = '.woocommerce-pagination .prev';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-pagination .bbp-pagination-links';
        $elements[] = '.bbp-pagination .bbp-pagination-links .pagination-prev';
        $elements[] = '.bbp-pagination .bbp-pagination-links .pagination-next';
    }
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('pagination_font_size'));
    $elements = array('.fusion-page-title-bar h1', '.fusion-page-title-bar h3');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('page_title_color'));
    $css['global']['.sep-boxed-pricing .panel-heading h3']['color'] = Avada_Sanitize::color(Avada()->settings->get('sep_pricing_box_heading_color'));
    $css['global']['.full-boxed-pricing.fusion-pricing-table .panel-heading h3']['color'] = Avada_Sanitize::color(Avada()->settings->get('full_boxed_pricing_box_heading_color'));
    $css['global'][avada_implode($link_color_elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('link_color'));
    if (class_exists('bbPress')) {
        $link_color_rgb = fusion_hex2rgb(Avada_Sanitize::color(Avada()->settings->get('link_color')));
        $link_color_hover = 'rgba(' . $link_color_rgb[0] . ',' . $link_color_rgb[1] . ',' . $link_color_rgb[2] . ',0.8)';
        $css['global']['#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a:hover']['color'] = $link_color_hover;
    }
    $css['global']['body #toTop:before']['color'] = '#fff';
    if (class_exists('Tribe__Events__Main')) {
        $elements = array('.single-tribe_events .sidebar a', '.single-tribe_events .sidebar a:before', '.single-tribe_events .sidebar a:after', '.single-tribe_events .fusion-content-widget-area .widget li a', '.single-tribe_events .fusion-content-widget-area .widget li a:before', '.single-tribe_events .fusion-content-widget-area .widget li a:after');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_link_color'));
        $elements = array('.single-tribe_events .sidebar a:hover', '.single-tribe_events .sidebar a:hover:before', '.single-tribe_events .sidebar a:hover:after', '.single-tribe_events .fusion-content-widget-area .widget li a:hover', '.single-tribe_events .fusion-content-widget-area .widget li a:hover:before', '.single-tribe_events .fusion-content-widget-area .widget li a:hover:after');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    }
    $elements = array('.fusion-page-title-bar .fusion-breadcrumbs', '.fusion-page-title-bar .fusion-breadcrumbs a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('breadcrumbs_text_color'));
    $elements = array('#slidingbar-area h3', '#slidingbar-area .fusion-title > *', '#slidingbar-area .widget-title');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_headings_color'));
    $elements = array('#slidingbar-area', '#slidingbar-area .widget_nav_menu li', '#slidingbar-area .widget_categories li', '#slidingbar-area .widget_product_categories li', '#slidingbar-area .widget_meta li', '#slidingbar-area .widget li.recentcomments', '#slidingbar-area .widget_recent_entries li', '#slidingbar-area .widget_archive li', '#slidingbar-area .widget_pages li', '#slidingbar-area .widget_links li', '#slidingbar-area .widget_layered_nav li', '#slidingbar-area .fusion-column', '#slidingbar-area .jtwt', '#slidingbar-area .jtwt .jtwt_tweet');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_text_color'));
    $elements = array('.slidingbar-area a', '.slidingbar-area .widget li a:before', ' #slidingbar-area .jtwt .jtwt_tweet a', '#wrapper #slidingbar-area .fusion-tabs-widget .tab-holder .tabs li a', '#slidingbar-area .fusion-accordian .panel-title a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_link_color'));
    $elements = array('.sidebar .widget h4', '.sidebar .widget .heading h4');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('sidebar_heading_color'));
    if (class_exists('Tribe__Events__Main')) {
        $elements = array('.single-tribe_events .sidebar .widget h4', '.single-tribe_events .sidebar .widget .heading h4', '.single-tribe_events .sidebar .tribe-events-single-section-title');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_heading_color'));
        $elements = array('.single-tribe_events .sidebar');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_text_color'));
        $elements = array('.single-tribe_events .fusion-content-widget-area .widget_nav_menu li', '.single-tribe_events .fusion-content-widget-area .widget_meta li', '.single-tribe_events .fusion-content-widget-area .widget_recent_entries li', '.single-tribe_events .fusion-content-widget-area .widget_archive li', '.single-tribe_events .fusion-content-widget-area .widget_pages li', '.single-tribe_events .fusion-content-widget-area .widget_links li', '.single-tribe_events .fusion-content-widget-area .widget li a', '.single-tribe_events .fusion-content-widget-area .widget .recentcomments', '.single-tribe_events .fusion-content-widget-area .widget_categories li', '.single-tribe_events #wrapper .fusion-tabs-widget .tab-holder', '.single-tribe_events .sidebar .tagcloud a', '.single-tribe_events .sidebar .tribe-events-meta-group dd', '.single-tribe_events .sidebar .tribe-mini-calendar-event', '.single-tribe_events .sidebar .tribe-events-list-widget ol li', '.single-tribe_events .sidebar .tribe-events-venue-widget li');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_divider_color'));
    }
    $elements = array('.sidebar .widget .widget-title', '.sidebar .widget .heading .widget-title');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('sidebar_widget_bg_color'));
    if ('0' != Avada_Color::get_alpha_from_rgba(Avada()->settings->get('sidebar_widget_bg_color'))) {
        $css['global'][avada_implode($elements)]['padding'] = '9px 15px';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements = array('.single-tribe_events .sidebar .widget .widget-title', '.single-tribe_events .sidebar .widget .heading .widget-title', '.single-tribe_events .sidebar .tribe-events-single-section-title');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_widget_bg_color'));
        if ('0' != Avada_Color::get_alpha_from_rgba(Avada()->settings->get('ec_sidebar_widget_bg_color'))) {
            $css['global'][avada_implode($elements)]['padding'] = '9px 15px';
        }
    }
    $elements = array('.fusion-footer-widget-area h3', '.fusion-footer-widget-area .widget-title', '.fusion-footer-widget-column .product-title');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('footer_headings_typography', 'color'));
    $elements = array('.fusion-footer-widget-area', '.fusion-footer-widget-area .widget_nav_menu li', '.fusion-footer-widget-area .widget_categories li', '.fusion-footer-widget-area .widget_product_categories li', '.fusion-footer-widget-area .widget_meta li', '.fusion-footer-widget-area .widget li.recentcomments', '.fusion-footer-widget-area .widget_recent_entries li', '.fusion-footer-widget-area .widget_archive li', '.fusion-footer-widget-area .widget_pages li', '.fusion-footer-widget-area .widget_links li', '.fusion-footer-widget-area .widget_layered_nav li', '.fusion-footer-widget-area article.col', '.fusion-footer-widget-area .jtwt', '.fusion-footer-widget-area .jtwt .jtwt_tweet', '.fusion-copyright-notice');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('footer_text_color'));
    $elements = array('.fusion-footer-widget-area a', '.fusion-footer-widget-area .widget li a:before', '.fusion-footer-widget-area .jtwt .jtwt_tweet a', '#wrapper .fusion-footer-widget-area .fusion-tabs-widget .tab-holder .tabs li a', '.fusion-footer-widget-area .fusion-tabs-widget .tab-holder .news-list li .post-holder a', '.fusion-copyright-notice a', '.fusion-footer-widget-area .fusion-accordian .panel-title a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('footer_link_color'));
    $css['global']['.ei-title h2']['color'] = Avada_Sanitize::color(Avada()->settings->get('es_title_color'));
    $css['global']['.ei-title h3']['color'] = Avada_Sanitize::color(Avada()->settings->get('es_caption_color'));
    $elements = array('.sep-single', '.sep-double', '.sep-dashed', '.sep-dotted', '.search-page-search-form', '.ls-avada', '.avada-skin-rev', '.es-carousel-wrapper.fusion-carousel-small .es-carousel ul li img', '.fusion-accordian .fusion-panel', '.progress-bar', '#small-nav', '.fusion-filters', '.single-navigation', '.project-content .project-info .project-info-box', '.post .fusion-meta-info', '.fusion-blog-layout-grid .post .post-wrapper', '.fusion-blog-layout-grid .post .fusion-content-sep', '.fusion-portfolio .fusion-portfolio-boxed .fusion-portfolio-post-wrapper', '.fusion-portfolio .fusion-portfolio-boxed .fusion-content-sep', '.fusion-portfolio-one .fusion-portfolio-boxed .fusion-portfolio-post-wrapper', '.fusion-blog-layout-grid .post .flexslider', '.fusion-layout-timeline .post', '.fusion-layout-timeline .post .fusion-content-sep', '.fusion-layout-timeline .post .flexslider', '.fusion-timeline-date', '.fusion-timeline-arrow', '.fusion-counters-box .fusion-counter-box .counter-box-border', 'tr td', '.table', '.table > thead > tr > th', '.table > tbody > tr > th', '.table > tfoot > tr > th', '.table > thead > tr > td', '.table > tbody > tr > td', '.table > tfoot > tr > td', '.table-1 table', '.table-1 table th', '.table-1 tr td', '.tkt-slctr-tbl-wrap-dv table', '.tkt-slctr-tbl-wrap-dv tr td', '.table-2 table thead', '.table-2 tr td', '.fusion-content-widget-area .widget li a', '.fusion-content-widget-area .widget li a:before', '.fusion-content-widget-area .widget .recentcomments', '.fusion-content-widget-area .widget_categories li', '#wrapper .fusion-tabs-widget .tab-holder', '.commentlist .the-comment', '.side-nav', '#wrapper .side-nav li a', 'h5.toggle.active + .toggle-content', '#wrapper .side-nav li.current_page_item li a', '.tabs-vertical .tabset', '.tabs-vertical .tabs-container .tab_content', '.fusion-tabs.vertical-tabs.clean .nav-tabs li .tab-link', '.pagination a.inactive', '.fusion-hide-pagination-text .pagination-prev', '.fusion-hide-pagination-text .pagination-next', '.page-links a', '.fusion-author .fusion-author-social', '.side-nav li a', '.price_slider_wrapper', '.tagcloud a', '.fusion-content-widget-area .widget_nav_menu li', '.fusion-content-widget-area .widget_meta li', '.fusion-content-widget-area .widget_recent_entries li', '.fusion-content-widget-area .widget_archive li', '.fusion-content-widget-area .widget_pages li', '.fusion-content-widget-area .widget_links li', '#customer_login_box', '.chzn-container-single .chzn-single', '.chzn-container-single .chzn-single div', '.chzn-drop', '.input-radio', '.panel.entry-content', '#reviews li .comment-text', '#customer_login .col-1', '#customer_login .col-2', '#customer_login h2');
    if (is_rtl()) {
        $elements[] = '.rtl .side-nav';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-pagination .bbp-pagination-links a.inactive';
        $elements[] = '.bbp-topic-pagination .page-numbers';
        $elements[] = '.widget.widget.widget_display_replies ul li';
        $elements[] = '.widget.widget_display_topics ul li';
        $elements[] = '.widget.widget_display_views ul li';
        $elements[] = '.widget.widget_display_stats dt';
        $elements[] = '.widget.widget_display_stats dd';
        $elements[] = '.bbp-pagination-links span.dots';
        $elements[] = '.fusion-hide-pagination-text .bbp-pagination .bbp-pagination-links .pagination-prev';
        $elements[] = '.fusion-hide-pagination-text .bbp-pagination .bbp-pagination-links .pagination-next';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.fusion-body .avada_myaccount_user';
        $elements[] = '.fusion-body .myaccount_user_container span';
        $elements[] = '.woocommerce-pagination .page-numbers';
        $elements[] = '.woo-tabs-horizontal .woocommerce-tabs > .tabs li';
        $elements[] = '.woo-tabs-horizontal .woocommerce-tabs > .tabs';
        $elements[] = '.woo-tabs-horizontal .woocommerce-tabs > .wc-tab';
        $elements[] = '.fusion-body .woocommerce-side-nav li a';
        $elements[] = '.fusion-body .woocommerce-content-box';
        $elements[] = '.fusion-body .woocommerce-content-box h2';
        $elements[] = '.fusion-body .woocommerce .address h4';
        $elements[] = '.fusion-body .woocommerce-tabs .tabs li a';
        $elements[] = '.fusion-body .woocommerce .social-share';
        $elements[] = '.fusion-body .woocommerce .social-share li';
        $elements[] = '.fusion-body .woocommerce-success-message';
        $elements[] = '.fusion-body .woocommerce .cross-sells';
        $elements[] = '.fusion-body .woocommerce-message';
        $elements[] = '.fusion-body .woocommerce .checkout #customer_details .col-1';
        $elements[] = '.fusion-body .woocommerce .checkout #customer_details .col-2';
        $elements[] = '.fusion-body .woocommerce .checkout h3';
        $elements[] = '.fusion-body .woocommerce .cross-sells h2';
        $elements[] = '.fusion-body .woocommerce .addresses .title';
        $elements[] = '.fusion-content-widget-area .widget_product_categories li';
        $elements[] = '.widget_product_categories li';
        $elements[] = '.widget_layered_nav li';
        $elements[] = '.fusion-content-widget-area .product_list_widget li';
        $elements[] = '.fusion-content-widget-area .widget_layered_nav li';
        $elements[] = '.fusion-body .my_account_orders tr';
        $elements[] = '.side-nav-left .side-nav';
        $elements[] = '.fusion-body .shop_table tr';
        $elements[] = '.fusion-body .cart_totals .total';
        $elements[] = '.fusion-body .checkout .shop_table tfoot';
        $elements[] = '.fusion-body .shop_attributes tr';
        $elements[] = '.fusion-body .cart-totals-buttons';
        $elements[] = '.fusion-body .cart_totals';
        $elements[] = '.fusion-body .woocommerce-shipping-calculator';
        $elements[] = '.fusion-body .coupon';
        $elements[] = '.fusion-body .cart_totals h2';
        $elements[] = '.fusion-body .woocommerce-shipping-calculator h2';
        $elements[] = '.fusion-body .coupon h2';
        $elements[] = '.fusion-body .order-total';
        $elements[] = '.fusion-body .woocommerce .cart-empty';
        $elements[] = '.fusion-body .woocommerce .return-to-shop';
        $elements[] = '.fusion-body .avada-order-details .shop_table.order_details tfoot';
        $elements[] = '#final-order-details .mini-order-details tr:last-child';
        $elements[] = '.fusion-body .order-info';
        $elements[] = '.woocommerce .social-share';
        $elements[] = '.woocommerce .social-share li';
        $elements[] = '.quantity .minus, .quantity .qty';
        if (is_rtl()) {
            $elements[] = '.rtl .woocommerce .social-share li';
        }
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.sidebar .tribe-mini-calendar-event';
        $elements[] = '.sidebar .tribe-events-list-widget ol li';
        $elements[] = '.sidebar .tribe-events-venue-widget li';
        $elements[] = '.fusion-content-widget-area .tribe-mini-calendar-event';
        $elements[] = '.fusion-content-widget-area .tribe-events-list-widget ol li';
        $elements[] = '.fusion-content-widget-area .tribe-events-venue-widget li';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
    $css['global']['.price_slider_wrapper .ui-widget-content']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
    if (class_exists('GFForms')) {
        $css['global']['.gform_wrapper .gsection']['border-bottom'] = '1px dotted ' . Avada_Sanitize::color(Avada()->settings->get('sep_color'));
    }
    $css['global']['.fusion-load-more-button.fusion-blog-button']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('blog_load_more_posts_button_bg_color'));
    $css['global']['.fusion-load-more-button.fusion-blog-button:hover']['background-color'] = Avada_Sanitize::color(Avada_Color::get_rgba(Avada()->settings->get('blog_load_more_posts_button_bg_color'), '0.8'));
    $button_brightness = fusion_calc_color_brightness(Avada_Sanitize::color(Avada()->settings->get('blog_load_more_posts_button_bg_color')));
    $text_color = 140 < $button_brightness ? '#333' : '#fff';
    $elements = array('.fusion-load-more-button.fusion-blog-button', '.fusion-load-more-button.fusion-blog-button:hover');
    $css['global'][avada_implode($elements)]['color'] = $text_color;
    $css['global']['.fusion-load-more-button.fusion-portfolio-button']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('portfolio_load_more_posts_button_bg_color'));
    $css['global']['.fusion-load-more-button.fusion-portfolio-button:hover']['background-color'] = Avada_Sanitize::color(Avada_Color::get_rgba(Avada()->settings->get('portfolio_load_more_posts_button_bg_color'), '0.8'));
    $button_brightness = fusion_calc_color_brightness(Avada_Sanitize::color(Avada()->settings->get('portfolio_load_more_posts_button_bg_color')));
    $text_color = 140 < $button_brightness ? '#333' : '#fff';
    $elements = array('.fusion-load-more-button.fusion-portfolio-button', '.fusion-load-more-button.fusion-portfolio-button:hover');
    $css['global'][avada_implode($elements)]['color'] = $text_color;
    if (class_exists('WooCommerce')) {
        $elements = array('.quantity .minus', '.quantity .plus');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('qty_bg_color'));
        $elements = array('.quantity .minus:hover', '.quantity .plus:hover');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('qty_bg_hover_color'));
        $elements = array('.quantity', '.quantity .minus', '.quantity .plus');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
    }
    $css['global']['.sb-toggle-wrapper .sb-toggle:after']['color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_toggle_icon_color'));
    $elements = array('#slidingbar-area .widget_nav_menu li', '#slidingbar-area .widget_categories li', '#slidingbar-area .widget_product_categories li', '#slidingbar-area .widget_meta li', '#slidingbar-area .widget li.recentcomments', '#slidingbar-area .widget_recent_entries ul li', '#slidingbar-area .widget_archive li', '#slidingbar-area .widget_pages li', '#slidingbar-area .widget_links li', '#slidingbar-area .widget_layered_nav li', '#slidingbar-area .widget_product_categories li', '#slidingbar-area .product_list_widget li');
    $css['global'][avada_implode($elements)]['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_divider_color'));
    $elements = array('#slidingbar-area .tagcloud a', '#wrapper #slidingbar-area .fusion-tabs-widget .tab-holder', '#wrapper #slidingbar-area .fusion-tabs-widget .tab-holder .news-list li', '#slidingbar-area .fusion-accordian .fusion-panel');
    if (class_exists('bbPress')) {
        $elements[] = '#slidingbar-area .bbp-pagination .bbp-pagination-links a.inactive';
        $elements[] = '#slidingbar-area .bbp-topic-pagination .page-numbers';
        $elements[] = '#slidingbar-area .widget.widget.widget_display_replies ul li';
        $elements[] = '#slidingbar-area .widget.widget_display_topics ul li';
        $elements[] = '#slidingbar-area .widget.widget_display_views ul li';
        $elements[] = '#slidingbar-area .widget.widget_display_stats dt';
        $elements[] = '#slidingbar-area .widget.widget_display_stats dd';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#slidingbar-area .tribe-mini-calendar-event';
        $elements[] = '#slidingbar-area .tribe-events-list-widget ol li';
        $elements[] = '#slidingbar-area .tribe-events-venue-widget li';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('slidingbar_divider_color'));
    $elements = array('.fusion-footer-widget-area .widget_nav_menu li', '.fusion-footer-widget-area .widget_categories li', '.fusion-footer-widget-area .product_list_widget li', '.fusion-footer-widget-area .widget_meta li', '.fusion-footer-widget-area .widget li.recentcomments', '.fusion-footer-widget-area .widget_recent_entries li', '.fusion-footer-widget-area .widget_archive li', '.fusion-footer-widget-area .widget_pages li', '.fusion-footer-widget-area .widget_links li', '.fusion-footer-widget-area .widget_layered_nav li', '.fusion-footer-widget-area .widget_product_categories li', '.fusion-footer-widget-area ul li', '.fusion-footer-widget-area .tagcloud a', '#wrapper .fusion-footer-widget-area .fusion-tabs-widget .tab-holder', '#wrapper .fusion-footer-widget-area .fusion-tabs-widget .tab-holder .news-list li', '.fusion-footer-widget-area .fusion-accordian .fusion-panel');
    if (class_exists('bbPress')) {
        $elements[] = '.fusion-footer-widget-area .bbp-pagination .bbp-pagination-links a.inactive';
        $elements[] = '.fusion-footer-widget-area .bbp-topic-pagination .page-numbers';
        $elements[] = '.fusion-footer-widget-area .widget.widget.widget_display_replies ul li';
        $elements[] = '.fusion-footer-widget-area .widget.widget_display_topics ul li';
        $elements[] = '.fusion-footer-widget-area .widget.widget_display_views ul li';
        $elements[] = '.fusion-footer-widget-area .widget.widget_display_stats dt';
        $elements[] = '.fusion-footer-widget-area .widget.widget_display_stats dd';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '.fusion-footer-widget-area .tribe-mini-calendar-event';
        $elements[] = '.fusion-footer-widget-area .tribe-events-list-widget ol li';
        $elements[] = '.fusion-footer-widget-area .tribe-events-venue-widget li';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('footer_divider_color'));
    $elements = array('.input-text', 'input[type="text"]', 'textarea', 'input.s', '#comment-input input', '#comment-textarea textarea', '.comment-form-comment textarea', '.post-password-form label input[type="password"]', '.main-nav-search-form input', '.search-page-search-form input', '.chzn-container-single .chzn-single', '.chzn-container .chzn-drop', '.avada-select-parent select', '.avada-select .select2-container .select2-choice', '.avada-select .select2-container .select2-choice2', 'select', '#wrapper .search-table .search-field input');
    if (defined('ICL_SITEPRESS_VERSION' || class_exists('SitePress'))) {
        $elements[] = '#lang_sel_click a.lang_sel_sel';
        $elements[] = '#lang_sel_click ul ul a';
        $elements[] = '#lang_sel_click ul ul a:visited';
        $elements[] = '#lang_sel_click a';
        $elements[] = '#lang_sel_click a:visited';
    }
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gfield input[type="text"]';
        $elements[] = '.gform_wrapper .gfield input[type="email"]';
        $elements[] = '.gform_wrapper .gfield input[type="tel"]';
        $elements[] = '.gform_wrapper .gfield input[type="url"]';
        $elements[] = '.gform_wrapper .gfield input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"] input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"]';
        $elements[] = '.gform_wrapper .gfield_select[multiple=multiple]';
        $elements[] = '.gform_wrapper .gfield select';
        $elements[] = '.gform_wrapper .gfield textarea';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form .wpcf7-text';
        $elements[] = '.wpcf7-form .wpcf7-quiz';
        $elements[] = '.wpcf7-form .wpcf7-number';
        $elements[] = '.wpcf7-form textarea';
        $elements[] = '.wpcf7-form .wpcf7-select';
        $elements[] = '.wpcf7-captchar';
        $elements[] = '.wpcf7-form .wpcf7-date';
    }
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums .bbp-search-form #bbp_search';
        $elements[] = '.bbp-reply-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form input#bbp_topic_title';
        $elements[] = '.bbp-topic-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form select#bbp_stick_topic_select';
        $elements[] = '.bbp-topic-form select#bbp_topic_status_select';
        $elements[] = '#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content';
        $elements[] = '.bbp-login-form input';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]';
    }
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('form_bg_color'));
    $elements = array('.avada-select-parent .select-arrow', '#wrapper .select-arrow');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('form_bg_color'));
    $elements = array('.input-text', 'input[type="text"]', 'textarea', 'input.s', 'input.s .placeholder', '#comment-input input', '#comment-textarea textarea', '#comment-input .placeholder', '#comment-textarea .placeholder', '.comment-form-comment textarea', '.post-password-form label input[type="password"]', '.avada-select .select2-container .select2-choice', '.avada-select .select2-container .select2-choice2', 'select', '.main-nav-search-form input', '.search-page-search-form input', '.chzn-container-single .chzn-single', '.chzn-container .chzn-drop', '.avada-select-parent select', '#wrapper .search-table .search-field input');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gfield input[type="text"]';
        $elements[] = '.gform_wrapper .gfield input[type="email"]';
        $elements[] = '.gform_wrapper .gfield input[type="tel"]';
        $elements[] = '.gform_wrapper .gfield input[type="url"]';
        $elements[] = '.gform_wrapper .gfield input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"] input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"]';
        $elements[] = '.gform_wrapper .gfield_select[multiple=multiple]';
        $elements[] = '.gform_wrapper .gfield select';
        $elements[] = '.gform_wrapper .gfield textarea';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form .wpcf7-text';
        $elements[] = '.wpcf7-form .wpcf7-quiz';
        $elements[] = '.wpcf7-form .wpcf7-number';
        $elements[] = '.wpcf7-form textarea';
        $elements[] = '.wpcf7-form .wpcf7-select';
        $elements[] = '.wpcf7-select-parent .select-arrow';
        $elements[] = '.wpcf7-captchar';
        $elements[] = '.wpcf7-form .wpcf7-date';
    }
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums .bbp-search-form #bbp_search';
        $elements[] = '.bbp-reply-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form input#bbp_topic_title';
        $elements[] = '.bbp-topic-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form select#bbp_stick_topic_select';
        $elements[] = '.bbp-topic-form select#bbp_topic_status_select';
        $elements[] = '#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content';
        $elements[] = '.bbp-login-form input';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $elements = array('input#s::-webkit-input-placeholder', '#comment-input input::-webkit-input-placeholder', '.post-password-form label input[type="password"]::-webkit-input-placeholder', '#comment-textarea textarea::-webkit-input-placeholder', '.comment-form-comment textarea::-webkit-input-placeholder', '.input-text::-webkit-input-placeholder', 'input::-webkit-input-placeholder', '.searchform .s::-webkit-input-placeholder');
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]::-webkit-input-placeholder';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]::-webkit-input-placeholder';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $elements = array('input#s:-moz-placeholder', '#comment-input input:-moz-placeholder', '.post-password-form label input[type="password"]:-moz-placeholder', '#comment-textarea textarea:-moz-placeholder', '.comment-form-comment textarea:-moz-placeholder', '.input-text:-moz-placeholder', 'input:-moz-placeholder', '.searchform .s:-moz-placeholder');
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]:-moz-placeholder';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]:-moz-placeholder';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $elements = array('input#s::-moz-placeholder', '#comment-input input::-moz-placeholder', '.post-password-form label input[type="password"]::-moz-placeholder', '#comment-textarea textarea::-moz-placeholder', '.comment-form-comment textarea::-moz-placeholder', '.input-text::-moz-placeholder', 'input::-moz-placeholder', '.searchform .s::-moz-placeholder');
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]::-moz-placeholder';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]::-moz-placeholder';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $elements = array('input#s:-ms-input-placeholder', '#comment-input input:-ms-input-placeholder', '.post-password-form label input[type="password"]::-ms-input-placeholder', '#comment-textarea textarea:-ms-input-placeholder', '.comment-form-comment textarea:-ms-input-placeholder', '.input-text:-ms-input-placeholder', 'input:-ms-input-placeholder', '.searchform .s:-ms-input-placeholder');
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]::-ms-input-placeholder';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]::-ms-input-placeholder';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $elements = array('.input-text', 'input[type="text"]', 'textarea', 'input.s', '#comment-input input', '#comment-textarea textarea', '.comment-form-comment textarea', '.post-password-form label input[type="password"]', '.gravity-select-parent .select-arrow', '.select-arrow', '.main-nav-search-form input', '.search-page-search-form input', '.chzn-container-single .chzn-single', '.chzn-container .chzn-drop', '.avada-select-parent select', '.avada-select-parent .select-arrow', 'select', '#wrapper .search-table .search-field input', '.avada-select .select2-container .select2-choice', '.avada-select .select2-container .select2-choice .select2-arrow', '.avada-select .select2-container .select2-choice2 .select2-arrow');
    if (defined('ICL_SITEPRESS_VERSION' || class_exists('SitePress'))) {
        $elements[] = '#lang_sel_click a.lang_sel_sel';
        $elements[] = '#lang_sel_click ul ul a';
        $elements[] = '#lang_sel_click ul ul a:visited';
        $elements[] = '#lang_sel_click a';
        $elements[] = '#lang_sel_click a:visited';
    }
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gfield input[type="text"]';
        $elements[] = '.gform_wrapper .gfield input[type="email"]';
        $elements[] = '.gform_wrapper .gfield input[type="tel"]';
        $elements[] = '.gform_wrapper .gfield input[type="url"]';
        $elements[] = '.gform_wrapper .gfield input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"] input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"]';
        $elements[] = '.gform_wrapper .gfield_select[multiple=multiple]';
        $elements[] = '.gform_wrapper .gfield select';
        $elements[] = '.gform_wrapper .gfield textarea';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form .wpcf7-text';
        $elements[] = '.wpcf7-form .wpcf7-quiz';
        $elements[] = '.wpcf7-form .wpcf7-number';
        $elements[] = '.wpcf7-form textarea';
        $elements[] = '.wpcf7-form .wpcf7-select';
        $elements[] = '.wpcf7-select-parent .select-arrow';
        $elements[] = '.wpcf7-captchar';
        $elements[] = '.wpcf7-form .wpcf7-date';
    }
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums .quicktags-toolbar';
        $elements[] = '#bbpress-forums .bbp-search-form #bbp_search';
        $elements[] = '.bbp-reply-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form input#bbp_topic_title';
        $elements[] = '.bbp-topic-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form select#bbp_stick_topic_select';
        $elements[] = '.bbp-topic-form select#bbp_topic_status_select';
        $elements[] = '#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content';
        $elements[] = '#wp-bbp_topic_content-editor-container';
        $elements[] = '#wp-bbp_reply_content-editor-container';
        $elements[] = '.bbp-login-form input';
        $elements[] = '#bbpress-forums .wp-editor-container';
        $elements[] = '#wp-bbp_topic_content-editor-container';
        $elements[] = '#wp-bbp_reply_content-editor-container';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce-checkout .select2-drop-active';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('form_border_color'));
    $elements = array('.input-text:not(textarea)', 'input[type="text"]', 'input.s', '#comment-input input', '.post-password-form label input[type="password"]', '.main-nav-search-form input', '.search-page-search-form input', '.chzn-container-single .chzn-single', '.chzn-container .chzn-drop', 'select', '.searchform .search-table .search-field input', '.avada-select-parent select', '.avada-select .select2-container .select2-choice');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gfield input[type="text"]';
        $elements[] = '.gform_wrapper .gfield input[type="email"]';
        $elements[] = '.gform_wrapper .gfield input[type="tel"]';
        $elements[] = '.gform_wrapper .gfield input[type="url"]';
        $elements[] = '.gform_wrapper .gfield input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"] input[type="number"]';
        $elements[] = '.gform_wrapper .gfield input[type="password"]';
        $elements[] = '.gform_wrapper .gfield_select[multiple=multiple]';
        $elements[] = '.gform_wrapper .gfield select';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form .wpcf7-text';
        $elements[] = '.wpcf7-form .wpcf7-quiz';
        $elements[] = '.wpcf7-form .wpcf7-number';
        $elements[] = '.wpcf7-form .wpcf7-select';
        $elements[] = '.wpcf7-captchar';
        $elements[] = '.wpcf7-form .wpcf7-date';
    }
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums .bbp-search-form #bbp_search';
        $elements[] = '.bbp-reply-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form input#bbp_topic_title';
        $elements[] = '.bbp-topic-form input#bbp_topic_tags';
        $elements[] = '.bbp-topic-form select#bbp_stick_topic_select';
        $elements[] = '.bbp-topic-form select#bbp_topic_status_select';
        $elements[] = '.bbp-login-form input';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.avada-shipping-calculator-form .avada-select-parent select';
        $elements[] = '.shipping-calculator-form .avada-select-parent select';
        $elements[] = '.cart-collaterals .form-row input';
        $elements[] = '.cart-collaterals .avada-select-parent input';
        $elements[] = '.cart-collaterals .woocommerce-shipping-calculator #calc_shipping_postcode';
        $elements[] = '.coupon .input-text';
        $elements[] = '.checkout .input-text:not(textarea)';
        $elements[] = '.woocommerce-checkout .select2-drop-active';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form input[type=text]';
        $elements[] = '.tribe-bar-disabled #tribe-bar-form .tribe-bar-filters input[type=text]';
    }
    $css['global'][avada_implode($elements)]['height'] = Avada_Sanitize::size(Avada()->settings->get('form_input_height'));
    $css['global'][avada_implode($elements)]['padding-top'] = '0';
    $css['global'][avada_implode($elements)]['padding-bottom'] = '0';
    $elements = array('.avada-select .select2-container .select2-choice .select2-arrow', '.avada-select .select2-container .select2-choice2 .select2-arrow', '.searchform .search-table .search-button input[type="submit"]');
    $css['global'][avada_implode($elements)]['height'] = Avada_Sanitize::size(Avada()->settings->get('form_input_height'));
    $css['global'][avada_implode($elements)]['width'] = Avada_Sanitize::size(Avada()->settings->get('form_input_height'));
    $css['global'][avada_implode($elements)]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('form_input_height'));
    $css['global']['.select2-container .select2-choice > .select2-chosen']['line-height'] = Avada_Sanitize::size(Avada()->settings->get('form_input_height'));
    $elements = array('.select-arrow', '.select2-arrow');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_border_color'));
    if (class_exists('GFForms')) {
        $css['global']['.gfield_time_ampm .gravity-select-parent']['width'] = 'auto !important';
        $css['global']['.gfield_time_ampm .gravity-select-parent select']['min-width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('form_input_height')) . ' * 2) !important';
    }
    $height_fraction = intval(Avada()->settings->get('form_input_height')) / 35;
    if (1 < $height_fraction) {
        $css['global']['.fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents']['width'] = 250 + 50 * $height_fraction . 'px';
    }
    if (!Avada()->settings->get('avada_styles_dropdowns')) {
        $css['global']['select']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('form_border_color'));
        $css['global']['select']['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
        $css['global']['select']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('form_border_color'));
        $css['global']['select']['font-size'] = '13px';
        $css['global']['select']['height'] = '35px';
        $css['global']['select']['text-indent'] = '5px';
        $css['global']['select']['width'] = '100%';
        $css['global']['select::-webkit-input-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
        $css['global']['select:-moz-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    }
    $css['global']['.fusion-page-title-bar h1']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('page_title_font_size'));
    $css['global']['.fusion-page-title-bar h1']['line-height'] = 'normal';
    $css['global']['.fusion-page-title-bar h3']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('page_title_subheader_font_size'));
    $css['global']['.fusion-page-title-bar h3']['line-height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('page_title_subheader_font_size')) . ' + 12px)';
    if (false !== strpos(Avada()->settings->get('site_width'), 'px')) {
        $margin = '80px';
        $half_margin = '40px';
    } else {
        $margin = '6%';
        $half_margin = '3%';
    }
    /**
     * Single-sidebar Layouts
     */
    $sidebar_width = Avada_Sanitize::size(Avada()->settings->get('sidebar_width'));
    if (false === strpos($sidebar_width, 'px') && false === strpos($sidebar_width, '%')) {
        $sidebar_width = 100 > intval($sidebar_width) ? intval($sidebar_width) . '%' : intval($sidebar_width) . 'px';
    }
    $css['global']['body.has-sidebar #content']['width'] = 'calc(100% - ' . $sidebar_width . ' - ' . $margin . ')';
    $css['global']['body.has-sidebar #main .sidebar']['width'] = $sidebar_width;
    /**
     * Double-Sidebar layouts
     */
    $sidebar_2_1_width = Avada_Sanitize::size(Avada()->settings->get('sidebar_2_1_width'));
    if (false === strpos($sidebar_2_1_width, 'px') && false === strpos($sidebar_2_1_width, '%')) {
        $sidebar_2_1_width = 100 > intval($sidebar_2_1_width) ? intval($sidebar_2_1_width) . '%' : intval($sidebar_2_1_width) . 'px';
    }
    $sidebar_2_2_width = Avada_Sanitize::size(Avada()->settings->get('sidebar_2_2_width'));
    if (false === strpos($sidebar_2_2_width, 'px') && false === strpos($sidebar_2_2_width, '%')) {
        $sidebar_2_2_width = 100 > intval($sidebar_2_2_width) ? intval($sidebar_2_2_width) . '%' : intval($sidebar_2_2_width) . 'px';
    }
    $css['global']['body.has-sidebar.double-sidebars #content']['width'] = 'calc(100% - ' . $sidebar_2_1_width . ' - ' . $sidebar_2_2_width . ' - ' . $margin . ')';
    $css['global']['body.has-sidebar.double-sidebars #content']['margin-left'] = 'calc(' . $sidebar_2_1_width . ' + ' . $half_margin . ')';
    $css['global']['body.has-sidebar.double-sidebars #main #sidebar']['width'] = $sidebar_2_1_width;
    $css['global']['body.has-sidebar.double-sidebars #main #sidebar']['margin-left'] = 'calc(' . $half_margin . ' - (100% - ' . $sidebar_2_2_width . '))';
    $css['global']['body.has-sidebar.double-sidebars #main #sidebar-2']['width'] = $sidebar_2_2_width;
    $css['global']['body.has-sidebar.double-sidebars #main #sidebar-2']['margin-left'] = $half_margin;
    if (class_exists('Tribe__Events__Main')) {
        $sidebar_width = Avada_Sanitize::size(Avada()->settings->get('ec_sidebar_width'));
        if (false !== strpos($sidebar_width, 'px') && false !== strpos($sidebar_width, '%')) {
            $sidebar_width = 100 > intval($sidebar_width) ? intval($sidebar_width) . '%' : intval($sidebar_width) . 'px';
        }
        if (tribe_get_option('tribeEventsTemplate', 'default') != '100-width.php') {
            $css['global']['.single-tribe_events #content']['width'] = 'calc(100% - ' . $sidebar_width . ' - ' . $margin . ')';
            $css['global']['.single-tribe_events #main .sidebar']['width'] = $sidebar_width;
        }
        /**
         * Single-sidebar Layouts
         */
        $css['global']['body.has-sidebar.single-tribe_events #content']['width'] = 'calc(100% - ' . $sidebar_width . ' - ' . $margin . ')';
        $css['global']['body.has-sidebar.single-tribe_events #main .sidebar']['width'] = $sidebar_width;
        /**
         * Double-Sidebar layouts
         */
        $sidebar_2_1_width = Avada_Sanitize::size(Avada()->settings->get('ec_sidebar_2_1_width'));
        if (false === strpos($sidebar_2_1_width, 'px') && false === strpos($sidebar_2_1_width, '%')) {
            $sidebar_2_1_width = 100 > intval($sidebar_2_1_width) ? intval($sidebar_2_1_width) . '%' : intval($sidebar_2_1_width) . 'px';
        }
        $sidebar_2_2_width = Avada_Sanitize::size(Avada()->settings->get('ec_sidebar_2_2_width'));
        if (false === strpos($sidebar_2_2_width, 'px') && false === strpos($sidebar_2_2_width, '%')) {
            $sidebar_2_2_width = 100 > intval($sidebar_2_2_width) ? intval($sidebar_2_2_width) . '%' : intval($sidebar_2_2_width) . 'px';
        }
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #content']['width'] = 'calc(100% - ' . $sidebar_2_1_width . ' - ' . $sidebar_2_2_width . ' - ' . $margin . ')';
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #content']['margin-left'] = 'calc(' . $sidebar_2_1_width . ' + ' . $half_margin . ')';
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #main #sidebar']['width'] = $sidebar_2_1_width;
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #main #sidebar']['margin-left'] = 'calc(' . $half_margin . ' - (100% - ' . $sidebar_2_2_width . '))';
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #main #sidebar-2']['width'] = $sidebar_2_2_width;
        $css['global']['body.has-sidebar.double-sidebars.single-tribe_events #main #sidebar-2']['margin-left'] = $half_margin;
    }
    $css['global']['#main .sidebar']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('sidebar_bg_color'));
    $css['global']['#main .sidebar']['padding'] = Avada_Sanitize::size(Avada()->settings->get('sidebar_padding'));
    if (class_exists('Tribe__Events__Main')) {
        $css['global']['.single-tribe_events #main .sidebar']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_sidebar_bg_color'));
        $css['global']['.single-tribe_events #main .sidebar']['padding'] = Avada_Sanitize::size(Avada()->settings->get('ec_sidebar_padding'));
    }
    $css['global']['.fusion-accordian .panel-title a .fa-fusion-box']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('accordian_inactive_color'));
    $css['global']['.progress-bar-content']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('counter_filled_color'));
    $css['global']['.progress-bar-content']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('counter_filled_color'));
    $css['global']['.content-box-percentage']['color'] = Avada_Sanitize::color(Avada()->settings->get('counter_filled_color'));
    $css['global']['.progress-bar']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('counter_unfilled_color'));
    $css['global']['.progress-bar']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('counter_unfilled_color'));
    $css['global']['#wrapper .fusion-date-and-formats .fusion-format-box, .tribe-mini-calendar-event .list-date .list-dayname']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('dates_box_color'));
    $elements = array('.fusion-carousel .fusion-carousel-nav .fusion-nav-prev', '.fusion-carousel .fusion-carousel-nav .fusion-nav-next');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('carousel_nav_color'));
    $elements = avada_map_selector($elements, ':hover');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('carousel_hover_color'));
    $elements = array('.fusion-flexslider .flex-direction-nav .flex-prev', '.fusion-flexslider .flex-direction-nav .flex-next');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('carousel_nav_color'));
    $elements = avada_map_selector($elements, ':hover');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('carousel_hover_color'));
    $css['global']['.content-boxes .col']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('content_box_bg_color'));
    $css['global']['#wrapper .fusion-content-widget-area .fusion-tabs-widget .tabs-container']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('tabs_bg_color'));
    $css['global']['body .fusion-content-widget-area .fusion-tabs-widget .tab-hold .tabs li']['border-right'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('tabs_bg_color'));
    if (is_rtl()) {
        $css['global']['body.rtl #wrapper .fusion-content-widget-area .fusion-tabs-widget .tab-hold .tabset li']['border-left-color'] = Avada_Sanitize::color(Avada()->settings->get('tabs_bg_color'));
    }
    $elements = array('body .fusion-content-widget-area .fusion-tabs-widget .tab-holder .tabs li a', '.fusion-content-widget-area .fusion-tabs-widget .tab-holder .tabs li a');
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('tabs_inactive_color'));
    $css['global'][avada_implode($elements)]['border-bottom'] = '0';
    $css['global']['body .fusion-content-widget-area .fusion-tabs-widget .tab-hold .tabs li a:hover']['background'] = Avada_Sanitize::color(Avada()->settings->get('tabs_bg_color'));
    $css['global']['body .fusion-content-widget-area .fusion-tabs-widget .tab-hold .tabs li a:hover']['border-bottom'] = '0';
    $elements = array('body .fusion-content-widget-area .fusion-tabs-widget .tab-hold .tabs li.active a', 'body .fusion-content-widget-area .fusion-tabs-widget .tab-holder .tabs li.active a');
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('tabs_bg_color'));
    $css['global'][avada_implode($elements)]['border-bottom'] = '0';
    $css['global'][avada_implode($elements)]['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $elements = array('#wrapper .fusion-content-widget-area .fusion-tabs-widget .tab-holder', '.fusion-content-widget-area .fusion-tabs-widget .tab-holder .news-list li');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('tabs_border_color'));
    $css['global']['.fusion-single-sharing-box']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('social_bg_color'));
    if ('transparent' == Avada()->settings->get('social_bg_color') || 0 == Avada_Color::get_alpha_from_rgba('social_bg_color')) {
        $css['global']['.fusion-single-sharing-box']['padding'] = '0';
    }
    $elements = array('.fusion-blog-layout-grid .post .fusion-post-wrapper', '.fusion-blog-layout-timeline .post', '.fusion-portfolio.fusion-portfolio-boxed .fusion-portfolio-content-wrapper', '.products li.product', '.fusion-events-shortcode .fusion-layout-column');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('timeline_bg_color'));
    if ('0' != Avada_Color::get_alpha_from_rgba(Avada()->settings->get('timeline_bg_color'))) {
        $css['global']['.fusion-events-shortcode .fusion-events-meta']['padding'] = '20px';
    }
    $elements = array('.fusion-blog-layout-grid .post .flexslider', '.fusion-blog-layout-grid .post .fusion-post-wrapper', '.fusion-blog-layout-grid .post .fusion-content-sep', '.products li', '.product-details-container', '.product-buttons', '.product-buttons-container', '.product .product-buttons', '.fusion-blog-layout-timeline .fusion-timeline-line', '.fusion-blog-timeline-layout .post', '.fusion-blog-timeline-layout .post .fusion-content-sep', '.fusion-blog-timeline-layout .post .flexslider', '.fusion-blog-layout-timeline .post', '.fusion-blog-layout-timeline .post .fusion-content-sep', '.fusion-portfolio.fusion-portfolio-boxed .fusion-portfolio-content-wrapper', '.fusion-portfolio.fusion-portfolio-boxed .fusion-content-sep', '.fusion-blog-layout-timeline .post .flexslider', '.fusion-blog-layout-timeline .fusion-timeline-date', '.fusion-events-shortcode .fusion-layout-column', '.fusion-events-shortcode .fusion-events-thumbnail');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('timeline_color'));
    if ('transparent' == Avada_Sanitize::color(Avada()->settings->get('timeline_color')) || '0' == Avada_Color::get_alpha_from_rgba(Avada_Sanitize::color(Avada()->settings->get('timeline_color')))) {
        $css['global'][avada_implode($elements)]['border'] = 'none';
    }
    $elements = array('.fusion-blog-layout-timeline .fusion-timeline-circle', '.fusion-blog-layout-timeline .fusion-timeline-date', '.fusion-blog-timeline-layout .fusion-timeline-circle', '.fusion-blog-timeline-layout .fusion-timeline-date');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('timeline_color'));
    $elements = array('.fusion-timeline-icon', '.fusion-timeline-arrow:before', '.fusion-blog-timeline-layout .fusion-timeline-icon', '.fusion-blog-timeline-layout .fusion-timeline-arrow:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('timeline_color'));
    $elements = array('div.indicator-hint');
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums li.bbp-header';
        $elements[] = '#bbpress-forums div.bbp-reply-header';
        $elements[] = '#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a';
        $elements[] = 'div.bbp-template-notice';
        $elements[] = '#bbpress-forums .bbp-search-results .bbp-forum-header';
        $elements[] = '#bbpress-forums .bbp-search-results .bbp-topic-header';
    }
    $css['global'][avada_implode($elements)]['background'] = Avada_Sanitize::color(Avada()->settings->get('bbp_forum_header_bg'));
    if (class_exists('bbPress')) {
        $elements = array('#bbpress-forums .forum-titles li', 'span.bbp-admin-links', 'span.bbp-admin-links a', '.bbp-forum-header a.bbp-forum-permalink', '.bbp-reply-header a.bbp-reply-permalink', '.bbp-topic-header a.bbp-topic-permalink');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('bbp_forum_header_font_color'));
        $css['global']['#bbpress-forums .bbp-replies div.even']['background'] = 'transparent';
    }
    $elements = array('div.indicator-hint');
    if (class_exists('bbPress')) {
        $elements[] = '#bbpress-forums ul.bbp-lead-topic';
        $elements[] = '#bbpress-forums ul.bbp-topics';
        $elements[] = '#bbpress-forums ul.bbp-forums';
        $elements[] = '#bbpress-forums ul.bbp-replies';
        $elements[] = '#bbpress-forums ul.bbp-search-results';
        $elements[] = '#bbpress-forums li.bbp-body ul.forum';
        $elements[] = '#bbpress-forums li.bbp-body ul.topic';
        $elements[] = '#bbpress-forums div.bbp-reply-content';
        $elements[] = '#bbpress-forums div.bbp-reply-header';
        $elements[] = '#bbpress-forums div.bbp-reply-author .bbp-reply-post-date';
        $elements[] = '#bbpress-forums div.bbp-topic-tags a';
        $elements[] = '#bbpress-forums #bbp-single-user-details';
        $elements[] = 'div.bbp-template-notice';
        $elements[] = '.bbp-arrow';
        $elements[] = '#bbpress-forums .bbp-search-results .bbp-forum-content';
        $elements[] = '#bbpress-forums .bbp-search-results .bbp-topic-content';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('bbp_forum_border_color'));
    if ('Dark' == Avada()->settings->get('scheme_type')) {
        $css['global']['.fusion-rollover .price .amount']['color'] = '#333333';
        $css['global']['.error_page .oops']['color'] = '#2F2F30';
        $css['global']['.meta li']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('body_typography', 'color'));
        if (class_exists('bbPress')) {
            $elements = array('.bbp-arrow', '#bbpress-forums .quicktags-toolbar');
            $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('content_bg_color'));
        }
        $css['global']['#toTop']['background-color'] = '#111111';
        $css['global']['.chzn-container-single .chzn-single']['background-image'] = 'none';
        $css['global']['.chzn-container-single .chzn-single']['box-shadow'] = 'none';
        $elements = array('.catalog-ordering a', '.order-dropdown > li:after', '.order-dropdown ul li a');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
        $elements = array('.order-dropdown li', '.order-dropdown .current-li', '.order-dropdown > li:after', '.order-dropdown ul li a', '.catalog-ordering .order li a', '.order-dropdown li', '.order-dropdown .current-li', '.order-dropdown ul', '.order-dropdown ul li a', '.catalog-ordering .order li a');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('form_bg_color'));
        $elements = array('.order-dropdown li:hover', '.order-dropdown .current-li:hover', '.order-dropdown ul li a:hover', '.catalog-ordering .order li a:hover');
        $css['global'][avada_implode($elements)]['background-color'] = '#29292A';
        if (class_exists('bbPress')) {
            $elements = array('.bbp-topics-front ul.super-sticky', '.bbp-topics ul.super-sticky', '.bbp-topics ul.sticky', '.bbp-forum-content ul.sticky');
            $css['global'][avada_implode($elements)]['background-color'] = '#3E3E3E';
            $elements = array('.bbp-topics-front ul.super-sticky a', '.bbp-topics ul.super-sticky a', '.bbp-topics ul.sticky a', '.bbp-forum-content ul.sticky a');
            $css['global'][avada_implode($elements)]['color'] = '#FFFFFF';
        }
        $elements = array('.pagination-prev:before', '.pagination-next:after');
        if (class_exists('WooCommerce')) {
            $elements[] = '.woocommerce-pagination .prev:before';
            $elements[] = '.woocommerce-pagination .next:after';
        }
        $css['global'][avada_implode($elements)]['color'] = '#747474';
        $elements = array('.table-1 table', '.tkt-slctr-tbl-wrap-dv table');
        $css['global'][avada_implode($elements)]['background-color'] = '#313132';
        $css['global'][avada_implode($elements)]['box-shadow'] = '0 1px 3px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(62, 62, 62, 0.5)';
        $elements = array('.table-1 table th', '.tkt-slctr-tbl-wrap-dv table th', '.table-1 tbody tr:nth-child(2n)', '.tkt-slctr-tbl-wrap-dv tbody tr:nth-child(2n)');
        $css['global'][avada_implode($elements)]['background-color'] = '#212122';
    }
    if (Avada()->settings->get('blog_grid_column_spacing') || '0' === Avada()->settings->get('blog_grid_column_spacing')) {
        $css['global']['#posts-container.fusion-blog-layout-grid']['margin'] = '-' . intval(Avada()->settings->get('blog_grid_column_spacing') / 2) . 'px -' . intval(Avada()->settings->get('blog_grid_column_spacing') / 2) . 'px 0 -' . intval(Avada()->settings->get('blog_grid_column_spacing') / 2) . 'px';
        $css['global']['#posts-container.fusion-blog-layout-grid .fusion-post-grid']['padding'] = intval(Avada()->settings->get('blog_grid_column_spacing') / 2) . 'px';
    }
    $css['global']['.quicktags-toolbar input']['background'][] = 'linear-gradient(to top, ' . Avada_Sanitize::color(Avada()->settings->get('content_bg_color')) . ', ' . Avada_Sanitize::color(Avada()->settings->get('form_bg_color')) . ' ) #3E3E3E';
    $css['global']['.quicktags-toolbar input']['background-image'] = '-webkit-gradient( linear, left top, left bottom, color-stop(0, ' . Avada_Sanitize::color(Avada()->settings->get('form_bg_color')) . '), color-stop(1, ' . Avada_Sanitize::color(Avada()->settings->get('content_bg_color')) . '))';
    $css['global']['.quicktags-toolbar input']['filter'] = 'progid:DXImageTransform.Microsoft.gradient(startColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('form_bg_color'))) . ', endColorstr=' . Avada_Sanitize::color(Avada_Color::rgba2hex(Avada()->settings->get('content_bg_color'))) . '), progid: DXImageTransform.Microsoft.Alpha(Opacity=0)';
    $css['global']['.quicktags-toolbar input']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('form_border_color'));
    $css['global']['.quicktags-toolbar input']['color'] = Avada_Sanitize::color(Avada()->settings->get('form_text_color'));
    $css['global']['.quicktags-toolbar input:hover']['background'] = Avada_Sanitize::color(Avada()->settings->get('form_bg_color'));
    if (!Avada()->settings->get('image_rollover')) {
        $css['global']['.fusion-rollover']['display'] = 'none';
    }
    if ('left' != Avada()->settings->get('image_rollover_direction')) {
        switch (Avada()->settings->get('image_rollover_direction')) {
            case 'fade':
                $image_rollover_direction_value = 'translateY(0%)';
                $image_rollover_direction_hover_value = '';
                $css['global']['.fusion-image-wrapper .fusion-rollover']['transition'] = 'opacity 0.5s ease-in-out';
                break;
            case 'right':
                $image_rollover_direction_value = 'translateX(100%)';
                $image_rollover_direction_hover_value = '';
                break;
            case 'bottom':
                $image_rollover_direction_value = 'translateY(100%)';
                $image_rollover_direction_hover_value = 'translateY(0%)';
                break;
            case 'top':
                $image_rollover_direction_value = 'translateY(-100%)';
                $image_rollover_direction_hover_value = 'translateY(0%)';
                break;
            case 'center_horiz':
                $image_rollover_direction_value = 'scaleX(0)';
                $image_rollover_direction_hover_value = 'scaleX(1)';
                break;
            case 'center_vertical':
                $image_rollover_direction_value = 'scaleY(0)';
                $image_rollover_direction_hover_value = 'scaleY(1)';
                break;
            default:
                $image_rollover_direction_value = 'scaleY(0)';
                $image_rollover_direction_hover_value = 'scaleY(1)';
                break;
        }
        $css['global']['.fusion-image-wrapper .fusion-rollover']['transform'] = $image_rollover_direction_value;
        if ('' != $image_rollover_direction_hover_value) {
            $css['global']['.fusion-image-wrapper:hover .fusion-rollover']['transform'] = $image_rollover_direction_hover_value;
        }
    }
    $css['global']['.ei-slider']['width'] = Avada_Sanitize::size(Avada()->settings->get('tfes_dimensions', 'width'));
    $css['global']['.ei-slider']['height'] = Avada_Sanitize::size(Avada()->settings->get('tfes_dimensions', 'height'));
    /**
     * Buttons
     */
    $elements = array('.button.default', '.fusion-button.fusion-button-default', '.post-password-form input[type="submit"]', '#comment-submit', '#reviews input#submit', '.ticket-selector-submit-btn[type="submit"]');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gform_button';
        $elements[] = '.gform_wrapper .button';
        $elements[] = '.gform_page_footer input[type="button"]';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
        $elements[] = '.wpcf7-submit';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-submit-wrapper button';
        $elements[] = '.bbp-submit-wrapper .button';
        $elements[] = '#bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce .single_add_to_cart_button';
        $elements[] = '.woocommerce button.button';
        $elements[] = '.woocommerce .login .button';
        $elements[] = '.woocommerce .register .button';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
        $elements[] = '#tribe-events .tribe-events-button';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_toggle';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_reset';
    }
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_color'));
    $elements = avada_map_selector($elements, ':hover');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_hover_color'));
    $button_size = strtolower(esc_attr(Avada()->settings->get('button_size')));
    $elements = array('.button.default', '.fusion-button-default', '.post-password-form input[type="submit"]');
    if (class_exists('GFForms')) {
        $elements[] = '.fusion-body #main .gform_wrapper .gform_button';
        $elements[] = '.fusion-body #main .gform_wrapper .button';
        $elements[] = '.fusion-body #main .gform_wrapper .gform_footer .gform_button';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
        $elements[] = '.wpcf7-submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce #wrapper .single_add_to_cart_button';
        $elements[] = '.woocommerce .avada-shipping-calculator-form .button';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-events .tribe-events-button';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_toggle';
        $elements[] = '#tribe_events_filter_control #tribe_events_filters_reset';
    }
    switch ($button_size) {
        case 'small':
            $css['global'][avada_implode($elements)]['padding'] = '9px 20px';
            $css['global'][avada_implode($elements)]['line-height'] = '14px';
            $css['global'][avada_implode($elements)]['font-size'] = '12px';
            if ('3d' == Avada()->settings->get('button_type')) {
                $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 2px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 4px 4px 2px rgba(0, 0, 0, 0.3)';
            }
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['line-height'] = '14px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['font-size'] = '12px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['height'] = '31px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['width'] = '31px';
            break;
        case 'medium':
            $css['global'][avada_implode($elements)]['padding'] = '11px 23px';
            $css['global'][avada_implode($elements)]['line-height'] = '16px';
            $css['global'][avada_implode($elements)]['font-size'] = '13px';
            if ('3d' == Avada()->settings->get('button_type')) {
                $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 3px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
            }
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['line-height'] = '16px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['font-size'] = '13px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['height'] = '36px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['width'] = '36px';
            break;
        case 'large':
            $css['global'][avada_implode($elements)]['padding'] = '13px 29px';
            $css['global'][avada_implode($elements)]['line-height'] = '17px';
            $css['global'][avada_implode($elements)]['font-size'] = '14px';
            if ('3d' == Avada()->settings->get('button_type')) {
                $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 4px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 6px 6px 3px rgba(0, 0, 0, 0.3)';
            }
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['line-height'] = '17px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['font-size'] = '14px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['height'] = '40px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['width'] = '40px';
            break;
        case 'xlarge':
            $css['global'][avada_implode($elements)]['padding'] = '17px 40px';
            $css['global'][avada_implode($elements)]['line-height'] = '21px';
            $css['global'][avada_implode($elements)]['font-size'] = '18px';
            if ('3d' == Avada()->settings->get('button_type')) {
                $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 5px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 7px 7px 3px rgba(0, 0, 0, 0.3)';
            }
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['line-height'] = '21px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['font-size'] = '18px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['height'] = '53px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['width'] = '53px';
            break;
        default:
            // Fallback to medium
            $css['global'][avada_implode($elements)]['padding'] = '11px 23px';
            $css['global'][avada_implode($elements)]['line-height'] = '16px';
            $css['global'][avada_implode($elements)]['font-size'] = '13px';
            if ('3d' == Avada()->settings->get('button_type')) {
                $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 3px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
            }
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['line-height'] = '16px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['font-size'] = '13px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['height'] = '36px';
            $css['global']['.quantity .minus, .quantity .plus, .quantity .qty']['width'] = '36px';
    }
    $elements = array('.button.default.button-3d.button-small', '.fusion-button.button-small.button-3d', '.ticket-selector-submit-btn[type="submit"]', '.fusion-button.fusion-button-3d.fusion-button-small');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 2px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 4px 4px 2px rgba(0, 0, 0, 0.3)';
    $elements = avada_map_selector($elements, ':active');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 4px 4px 2px rgba(0, 0, 0, 0.3)';
    $elements = array('.button.default.button-3d.button-medium', '.fusion-button.button-medium.button-3d', '.fusion-button.fusion-button-3d.fusion-button-medium');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 3px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
    $elements = avada_map_selector($elements, ':active');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
    $elements = array('.button.default.button-3d.button-large', '.fusion-button.button-large.button-3d', '.fusion-button.fusion-button-3d.fusion-button-large');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 4px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 6px 3px rgba(0, 0, 0, 0.3)';
    $elements = avada_map_selector($elements, ':active');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 6px 6px 3px rgba(0, 0, 0, 0.3)';
    $elements = array('.button.default.button-3d.button-xlarge', '.fusion-button.button-xlarge.button-3d', '.fusion-button.fusion-button-3d.fusion-button-xlarge');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 5px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 7px 7px 3px rgba(0, 0, 0, 0.3)';
    $elements = avada_map_selector($elements, ':active');
    $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 2px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 7px 7px 3px rgba(0, 0, 0, 0.3)';
    if ('3d' == Avada()->settings->get('button_type')) {
        $elements = array('.button.default.small', '.fusion-button.fusion-button-default.fusion-button-small', '.post-password-form input[type="submit"]', '#reviews input#submit', '.ticket-selector-submit-btn[type="submit"]');
        if (class_exists('GFForms')) {
            $elements[] = '.gform_page_footer input[type="button"]';
            $elements[] = '.gform_wrapper .gform_button';
            $elements[] = '.gform_wrapper .button';
        }
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-form input[type="submit"].fusion-button-small';
            $elements[] = '.wpcf7-submit.fusion-button-small';
        }
        if (class_exists('bbPress')) {
            $elements[] = '.bbp-submit-wrapper .button';
            $elements[] = '#bbp_user_edit_submit';
        }
        if (class_exists('WooCommerce')) {
            $elements[] = '.woocommerce .login .button';
            $elements[] = '.woocommerce .register .button';
        }
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 2px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 4px 4px 2px rgba(0, 0, 0, 0.3)';
        $elements = avada_map_selector($elements, ':active');
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 4px 4px 2px rgba(0, 0, 0, 0.3)';
        $elements = array('.button.default.medium', '.fusion-button.fusion-button-default.fusion-button-medium', '#comment-submit');
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-form input[type="submit"].fusion-button-medium';
            $elements[] = '.wpcf7-submit.fusion-button-medium';
        }
        if (class_exists('bbPress')) {
            $elements[] = '.bbp-submit-wrapper .button.button-medium';
        }
        if (class_exists('WooCommerce')) {
            $elements[] = '.woocommerce .checkout #place_order';
            $elements[] = '.woocommerce .single_add_to_cart_button';
            $elements[] = '.woocommerce button.button';
        }
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 3px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
        $elements = avada_map_selector($elements, ':active');
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 5px 5px 3px rgba(0, 0, 0, 0.3)';
        $elements = array('.button.default.large', '.fusion-button.fusion-button-default.fusion-button-large');
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-form input[type="submit"].fusion-button-large';
            $elements[] = '.wpcf7-submit.fusion-button-large';
        }
        if (class_exists('bbPress')) {
            $elements[] = '.bbp-submit-wrapper .button.button-large';
        }
        if (class_exists('Tribe__Events__Main')) {
            $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
        }
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 4px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 6px 6px 3px rgba(0, 0, 0, 0.3)';
        $elements = avada_map_selector($elements, ':active');
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 1px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 6px 6px 3px rgba(0, 0, 0, 0.3)';
        $elements = array('.button.default.xlarge', '.fusion-button.fusion-button-default.fusion-button-xlarge');
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-form input[type="submit"].fusion-button-xlarge';
            $elements[] = '.wpcf7-submit.fusion-button-xlarge';
        }
        if (class_exists('bbPress')) {
            $elements[] = '.bbp-submit-wrapper .button.button-xlarge';
        }
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 1px 0px #ffffff, 0px 5px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 7px 7px 3px rgba(0, 0, 0, 0.3)';
        $elements = avada_map_selector($elements, ':active');
        $css['global'][avada_implode($elements)]['box-shadow'] = 'inset 0px 2px 0px #ffffff, 0px 2px 0px ' . Avada_Sanitize::color(Avada()->settings->get('button_bevel_color')) . ', 1px 7px 7px 3px rgba(0, 0, 0, 0.3)';
    }
    $elements = array('.button.default', '.fusion-button', '.button-default', '.fusion-button-default', '.post-password-form input[type="submit"]', '#comment-submit', '#reviews input#submit');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_wrapper .gform_button';
        $elements[] = '.gform_wrapper .button';
        $elements[] = '.gform_page_footer input[type="button"]';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
        $elements[] = '.wpcf7-submit';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-submit-wrapper .button';
        $elements[] = '#bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce .single_add_to_cart_button';
        $elements[] = '.woocommerce button.button';
        $elements[] = '.woocommerce .login .button';
        $elements[] = '.woocommerce .register .button';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
    }
    $css['global'][avada_implode($elements)]['border-width'] = intval(Avada()->settings->get('button_border_width')) . 'px';
    $css['global'][avada_implode($elements)]['border-style'] = 'solid';
    $elements = array('.button.default:hover', '.fusion-button.button-default:hover', '.ticket-selector-submit-btn[type="submit"]');
    $css['global'][avada_implode($elements)]['border-width'] = intval(Avada()->settings->get('button_border_width')) . 'px';
    $css['global'][avada_implode($elements)]['border-style'] = 'solid';
    $css['global']['.fusion-menu-item-button .menu-text']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_color'));
    $css['global']['.fusion-menu-item-button:hover .menu-text']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('button_accent_hover_color'));
    $elements = array('.button.default', '.button-default', '.fusion-button-default', '#comment-submit', '.post-password-form input[type="submit"]', '#reviews input#submit', '.ticket-selector-submit-btn[type="submit"]');
    if (class_exists('GFForms')) {
        $elements[] = '.gform_page_footer input[type="button"]';
        $elements[] = '.gform_wrapper .gform_button';
        $elements[] = '.gform_wrapper .button';
    }
    if (defined('WPCF7_PLUGIN')) {
        $elements[] = '.wpcf7-form input[type="submit"]';
        $elements[] = '.wpcf7-submit';
    }
    if (class_exists('bbPress')) {
        $elements[] = '.bbp-submit-wrapper .button';
        $elements[] = '#bbp_user_edit_submit';
    }
    if (class_exists('WooCommerce')) {
        $elements[] = '.woocommerce .checkout #place_order';
        $elements[] = '.woocommerce .single_add_to_cart_button';
        $elements[] = '.woocommerce button.button';
        $elements[] = '.woocommerce .avada-shipping-calculator-form .button';
        $elements[] = '.woocommerce .login .button';
        $elements[] = '.woocommerce .register .button';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements[] = '#tribe-bar-form .tribe-bar-submit input[type=submit]';
    }
    if ('Pill' == Avada()->settings->get('button_shape')) {
        $css['global'][avada_implode($elements)]['border-radius'] = '25px';
    } elseif ('Square' == Avada()->settings->get('button_shape')) {
        $css['global'][avada_implode($elements)]['border-radius'] = '0';
    } elseif ('Round' == Avada()->settings->get('button_shape')) {
        $css['global'][avada_implode($elements)]['border-radius'] = '2px';
    }
    if ('yes' == Avada()->settings->get('button_span')) {
        $css['global'][avada_implode($elements)]['width'] = '100%';
        if (class_exists('WooCommerce')) {
            $css['global']['.woocommerce #customer_login .col-1 .login .form-row']['float'] = 'none';
            $css['global']['.woocommerce #customer_login .col-1 .login .form-row']['margin-right'] = '0';
            $css['global']['.woocommerce #customer_login .col-1 .login .button']['margin'] = '0';
            $css['global']['.woocommerce #customer_login .login .inline']['float'] = 'left';
            $css['global']['.woocommerce #customer_login .login .inline']['margin-left'] = '0';
            $css['global']['.woocommerce #customer_login .login .lost_password']['float'] = 'right';
            $css['global']['.woocommerce #customer_login .login .lost_password']['margin-top'] = '10px';
            $css['global']['.fusion-login-box-submit']['float'] = 'none';
        }
        $css['global']['.fusion-reading-box-container .fusion-desktop-button']['width'] = 'auto';
    }
    $css['global']['.reading-box']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('tagline_bg'));
    $css['global']['.isotope .isotope-item']['transition-property'] = 'top, left, opacity';
    if (!Avada()->settings->get('link_image_rollover')) {
        $css['global']['.fusion-rollover .link-icon']['display'] = 'none !important';
    }
    if (!Avada()->settings->get('zoom_image_rollover')) {
        $css['global']['.fusion-rollover .gallery-icon']['display'] = 'none !important';
    }
    if (!Avada()->settings->get('title_image_rollover')) {
        $css['global']['.fusion-rollover .fusion-rollover-title']['display'] = 'none';
    }
    if (!Avada()->settings->get('cats_image_rollover')) {
        $css['global']['.fusion-rollover .fusion-rollover-categories']['display'] = 'none';
    }
    if (class_exists('WooCommerce')) {
        if (Avada()->settings->get('woocommerce_one_page_checkout')) {
            $elements = array('.woocommerce .checkout #customer_details .col-1', '.woocommerce .checkout #customer_details .col-2');
            $css['global'][avada_implode($elements)]['box-sizing'] = 'border-box';
            $css['global'][avada_implode($elements)]['border'] = '1px solid';
            $css['global'][avada_implode($elements)]['overflow'] = 'hidden';
            $css['global'][avada_implode($elements)]['padding'] = '30px';
            $css['global'][avada_implode($elements)]['margin-bottom'] = '30px';
            $css['global'][avada_implode($elements)]['float'] = 'left';
            $css['global'][avada_implode($elements)]['width'] = '48%';
            $css['global'][avada_implode($elements)]['margin-right'] = '4%';
            if (is_rtl()) {
                $elements = array('.rtl .woocommerce form.checkout #customer_details .col-1', '.rtl .woocommerce form.checkout #customer_details .col-2');
                $css['global'][avada_implode($elements)]['float'] = 'right';
                $css['global']['.rtl .woocommerce form.checkout #customer_details .col-1']['margin-left'] = '4%';
                $css['global']['.rtl .woocommerce form.checkout #customer_details .col-1']['margin-right'] = 0;
            }
            $elements = array('.woocommerce form.checkout #customer_details .col-1', '.woocommerce form.checkout #customer_details .col-2');
            $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
            $css['global']['.woocommerce form.checkout #customer_details div:last-child']['margin-right'] = '0';
            $css['global']['.woocommerce form.checkout .avada-checkout-no-shipping #customer_details .col-1']['width'] = '100%';
            $css['global']['.woocommerce form.checkout .avada-checkout-no-shipping #customer_details .col-1']['margin-right'] = '0';
            $css['global']['.woocommerce form.checkout .avada-checkout-no-shipping #customer_details .col-2']['display'] = 'none';
        } else {
            $elements = array('.woocommerce form.checkout .col-2', '.woocommerce form.checkout #order_review_heading', '.woocommerce form.checkout #order_review');
            $css['global'][avada_implode($elements)]['display'] = 'none';
        }
    }
    if (Avada()->settings->get('page_title_100_width')) {
        $css['global']['.layout-wide-mode .fusion-page-title-row']['max-width'] = '100%';
        if (Avada()->settings->get('header_100_width')) {
            $css['global']['.layout-wide-mode .fusion-page-title-row']['padding-left'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
            $css['global']['.layout-wide-mode .fusion-page-title-row']['padding-right'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'right'));
        }
    }
    if (isset($button_typography_elements['family'])) {
        $css['global'][avada_implode($button_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('button_typography', 'font-family'));
        $css['global'][avada_implode($button_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('button_typography', 'font-weight'));
        $css['global'][avada_implode($button_typography_elements['family'])]['letter-spacing'] = round(Avada_Sanitize::size(Avada()->settings->get('button_typography', 'letter-spacing'))) . 'px';
        $font_style = Avada()->settings->get('button_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($button_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('button_typography', 'font-style'));
        }
    }
    $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-link', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-gallery');
    if (!Avada()->settings->get('icon_circle_image_rollover')) {
        $css['global'][avada_implode($elements)]['background'] = 'none';
        $css['global'][avada_implode($elements)]['width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('image_rollover_icon_size')) . ' * 1.5)';
        $css['global'][avada_implode($elements)]['height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('image_rollover_icon_size')) . ' * 1.5)';
    } else {
        $css['global'][avada_implode($elements)]['width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('image_rollover_icon_size')) . ' * 2.41)';
        $css['global'][avada_implode($elements)]['height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('image_rollover_icon_size')) . ' * 2.41)';
    }
    $elements = array('.fusion-image-wrapper .fusion-rollover .fusion-rollover-link:before', '.fusion-image-wrapper .fusion-rollover .fusion-rollover-gallery:before');
    if (Avada()->settings->get('image_rollover_icon_size')) {
        $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('image_rollover_icon_size'));
        if (!Avada()->settings->get('icon_circle_image_rollover')) {
            $css['global'][avada_implode($elements)]['line-height'] = '1.5';
        } else {
            $css['global'][avada_implode($elements)]['line-height'] = '2.41';
        }
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('image_rollover_icon_color'));
    /**
     * Headings
     */
    // H1
    if (isset($h1_typography_elements['family'])) {
        $css['global'][avada_implode($h1_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h1_typography', 'font-family'));
        $css['global'][avada_implode($h1_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h1_typography', 'font-weight'));
        $css['global'][avada_implode($h1_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h1_typography', 'line-height'));
        $css['global'][avada_implode($h1_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h1_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h1_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h1_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h1_typography', 'font-style'));
        }
    }
    if (isset($h1_typography_elements['size'])) {
        $css['global'][avada_implode($h1_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h1_typography', 'font-size'));
    }
    if (isset($h1_typography_elements['color'])) {
        $css['global'][avada_implode($h1_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h1_typography', 'color'));
    }
    // H2
    if (isset($h2_typography_elements['family'])) {
        $css['global'][avada_implode($h2_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h2_typography', 'font-family'));
        $css['global'][avada_implode($h2_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h2_typography', 'font-weight'));
        $css['global'][avada_implode($h2_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h2_typography', 'line-height'));
        $css['global'][avada_implode($h2_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h2_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h2_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h2_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h2_typography', 'font-style'));
        }
    }
    if (isset($h2_typography_elements['size'])) {
        $css['global'][avada_implode($h2_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h2_typography', 'font-size'));
    }
    if (isset($h2_typography_elements['color'])) {
        $css['global'][avada_implode($h2_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h2_typography', 'color'));
    }
    // H3
    if (isset($h3_typography_elements['family'])) {
        $css['global'][avada_implode($h3_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h3_typography', 'font-family'));
        $css['global'][avada_implode($h3_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h3_typography', 'font-weight'));
        $css['global'][avada_implode($h3_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h3_typography', 'line-height'));
        $css['global'][avada_implode($h3_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h3_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h3_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h3_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h3_typography', 'font-style'));
        }
    }
    if (isset($h3_typography_elements['size'])) {
        $css['global'][avada_implode($h3_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h3_typography', 'font-size'));
    }
    if (isset($h3_typography_elements['color'])) {
        $css['global'][avada_implode($h3_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h3_typography', 'color'));
    }
    // H4
    if (isset($h4_typography_elements['family'])) {
        $css['global'][avada_implode($h4_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h4_typography', 'font-family'));
        $css['global'][avada_implode($h4_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h4_typography', 'font-weight'));
        $css['global'][avada_implode($h4_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h4_typography', 'line-height'));
        $css['global'][avada_implode($h4_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h4_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h4_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h4_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h4_typography', 'font-style'));
        }
    }
    if (isset($h4_typography_elements['size'])) {
        $css['global'][avada_implode($h4_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h4_typography', 'font-size'));
    }
    if (isset($h4_typography_elements['color'])) {
        $css['global'][avada_implode($h4_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h4_typography', 'color'));
    }
    // H5
    if (isset($h5_typography_elements['family'])) {
        $css['global'][avada_implode($h5_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h5_typography', 'font-family'));
        $css['global'][avada_implode($h5_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h5_typography', 'font-weight'));
        $css['global'][avada_implode($h5_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h5_typography', 'line-height'));
        $css['global'][avada_implode($h5_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h5_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h5_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h5_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h5_typography', 'font-style'));
        }
    }
    if (isset($h5_typography_elements['size'])) {
        $css['global'][avada_implode($h5_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h5_typography', 'font-size'));
    }
    if (isset($h5_typography_elements['color'])) {
        $css['global'][avada_implode($h5_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h5_typography', 'color'));
    }
    // H6
    if (isset($h6_typography_elements['family'])) {
        $css['global'][avada_implode($h6_typography_elements['family'])]['font-family'] = wp_strip_all_tags(Avada()->settings->get('h6_typography', 'font-family'));
        $css['global'][avada_implode($h6_typography_elements['family'])]['font-weight'] = intval(Avada()->settings->get('h6_typography', 'font-weight'));
        $css['global'][avada_implode($h6_typography_elements['family'])]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('h6_typography', 'line-height'));
        $css['global'][avada_implode($h6_typography_elements['family'])]['letter-spacing'] = round(Avada()->settings->get('h6_typography', 'letter-spacing')) . 'px';
        $font_style = Avada()->settings->get('h6_typography', 'font-style');
        if (!empty($font_style)) {
            $css['global'][avada_implode($h6_typography_elements['family'])]['font-style'] = esc_attr(Avada()->settings->get('h6_typography', 'font-style'));
        }
    }
    if (isset($h6_typography_elements['size'])) {
        $css['global'][avada_implode($h6_typography_elements['size'])]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('h6_typography', 'font-size'));
    }
    if (isset($h6_typography_elements['color'])) {
        $css['global'][avada_implode($h6_typography_elements['color'])]['color'] = Avada_Sanitize::color(Avada()->settings->get('h6_typography', 'color'));
    }
    $css['global'][avada_implode(array('h1', '.fusion-title-size-one'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h1_typography', 'margin-top'));
    $css['global'][avada_implode(array('h1', '.fusion-title-size-one'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h1_typography', 'margin-bottom'));
    $css['global'][avada_implode(array('h2', '.fusion-title-size-two'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h2_typography', 'margin-top'));
    $css['global'][avada_implode(array('h2', '.fusion-title-size-two'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h2_typography', 'margin-bottom'));
    $css['global'][avada_implode(array('h3', '.fusion-title-size-three'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h3_typography', 'margin-top'));
    $css['global'][avada_implode(array('h3', '.fusion-title-size-three'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h3_typography', 'margin-bottom'));
    $css['global'][avada_implode(array('h4', '.fusion-title-size-four'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h4_typography', 'margin-top'));
    $css['global'][avada_implode(array('h4', '.fusion-title-size-four'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h4_typography', 'margin-bottom'));
    $css['global'][avada_implode(array('h5', '.fusion-title-size-five'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h5_typography', 'margin-top'));
    $css['global'][avada_implode(array('h5', '.fusion-title-size-five'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h5_typography', 'margin-bottom'));
    $css['global'][avada_implode(array('h6', '.fusion-title-size-six'))]['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('h6_typography', 'margin-top'));
    $css['global'][avada_implode(array('h6', '.fusion-title-size-six'))]['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('h6_typography', 'margin-bottom'));
    /**
     * HEADER IS NUMBER 5
     */
    /**
     * Header Styles
     */
    $css['global']['.fusion-logo']['margin-top'] = Avada_Sanitize::size(Avada()->settings->get('logo_margin', 'top'));
    $css['global']['.fusion-logo']['margin-right'] = Avada_Sanitize::size(Avada()->settings->get('logo_margin', 'right'));
    $css['global']['.fusion-logo']['margin-bottom'] = Avada_Sanitize::size(Avada()->settings->get('logo_margin', 'bottom'));
    $css['global']['.fusion-logo']['margin-left'] = Avada_Sanitize::size(Avada()->settings->get('logo_margin', 'left'));
    if (Avada()->settings->get('header_shadow')) {
        $elements = array('.fusion-header-shadow:after', 'body.side-header-left #side-header.header-shadow .side-header-border:before', 'body.side-header-right #side-header.header-shadow .side-header-border:before');
        $css['global'][avada_implode($elements)]['content'] = '""';
        $css['global'][avada_implode($elements)]['z-index'] = '99996';
        $css['global'][avada_implode($elements)]['position'] = 'absolute';
        $css['global'][avada_implode($elements)]['left'] = '0';
        $css['global'][avada_implode($elements)]['top'] = '0';
        $css['global'][avada_implode($elements)]['height'] = '100%';
        $css['global'][avada_implode($elements)]['width'] = '100%';
        $css['global'][avada_implode($elements)]['pointer-events'] = 'none';
        $elements = array('.fusion-header-shadow .fusion-mobile-menu-design-classic', '.fusion-header-shadow .fusion-mobile-menu-design-modern');
        $css['global'][avada_implode($elements)]['box-shadow'] = '0px 10px 50px -2px rgba(0, 0, 0, 0.14)';
        $css['global']['body.side-header-left #side-header.header-shadow .side-header-border:before']['box-shadow'] = '10px 0px 50px -2px rgba(0, 0, 0, 0.14)';
        $css['global']['body.side-header-right #side-header.header-shadow .side-header-border:before']['box-shadow'] = '-10px 0px 50px -2px rgba(0, 0, 0, 0.14)';
        $elements = array('.fusion-is-sticky:before', '.fusion-is-sticky:after');
        $css['global'][avada_implode($elements)]['display'] = 'none';
    }
    $css['global']['.fusion-header-wrapper .fusion-row']['padding-left'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
    $css['global']['.fusion-header-wrapper .fusion-row']['padding-right'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'right'));
    $css['global']['.fusion-header-wrapper .fusion-row']['max-width'] = Avada_Sanitize::size(Avada()->settings->get('site_width'));
    $elements = array('.fusion-header-v2 .fusion-header', '.fusion-header-v3 .fusion-header', '.fusion-header-v4 .fusion-header', '.fusion-header-v5 .fusion-header');
    $css['global'][avada_implode($elements)]['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['#side-header .fusion-secondary-menu-search-inner']['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['.fusion-header .fusion-row']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'top'));
    $css['global']['.fusion-header .fusion-row']['padding-bottom'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'bottom'));
    $css['global']['.fusion-secondary-header']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_bg_color'));
    $css['global']['.fusion-secondary-header']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('snav_font_size'));
    $css['global']['.fusion-secondary-header']['color'] = Avada_Sanitize::color(Avada()->settings->get('snav_color'));
    $css['global']['.fusion-secondary-header']['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $elements = array('.fusion-secondary-header a', '.fusion-secondary-header a:hover');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('snav_color'));
    $css['global']['.fusion-header-v2 .fusion-secondary-header']['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    $css['global']['.fusion-mobile-menu-design-modern .fusion-secondary-header .fusion-alignleft']['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['.fusion-header-tagline']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('tagline_font_size'));
    $css['global']['.fusion-header-tagline']['color'] = Avada_Sanitize::color(Avada()->settings->get('tagline_font_color'));
    $elements = array('.fusion-secondary-main-menu', '.fusion-mobile-menu-sep');
    $css['global'][avada_implode($elements)]['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['#side-header']['width'] = intval($side_header_width) . 'px';
    $css['global']['#side-header .side-header-background']['width'] = intval($side_header_width) . 'px';
    $css['global']['#side-header .side-header-border']['width'] = intval($side_header_width) . 'px';
    $css['global']['#side-header']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'top'));
    $css['global']['#side-header']['padding-bottom'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'bottom'));
    $css['global']['#side-header .side-header-border']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['#side-header .side-header-content']['padding-left'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
    $css['global']['#side-header .side-header-content']['padding-right'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['padding-left'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['padding-right'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'right'));
    $css['global']['.side-header-left .fusion-main-menu > ul > li > a > .fusion-caret']['right'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'right'));
    $css['global']['.side-header-right .fusion-main-menu > ul > li > a > .fusion-caret']['left'] = Avada_Sanitize::size(Avada()->settings->get('header_padding', 'left'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['border-bottom-color'] = Avada_Sanitize::color(Avada()->settings->get('header_border_color'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['text-align'] = esc_attr(Avada()->settings->get('menu_text_align'));
    $elements = array('#side-header .fusion-main-menu > ul > li.current-menu-ancestor > a', '#side-header .fusion-main-menu > ul > li.current-menu-item > a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global'][avada_implode($elements)]['border-right-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global'][avada_implode($elements)]['border-left-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['body.side-header-left #side-header .fusion-main-menu > ul > li > ul']['left'] = intval($side_header_width - 1) . 'px';
    $css['global']['body.side-header-left #side-header .fusion-main-menu .fusion-custom-menu-item-contents']['top'] = '0';
    $css['global']['body.side-header-left #side-header .fusion-main-menu .fusion-custom-menu-item-contents']['left'] = intval($side_header_width - 1) . 'px';
    $css['global']['#side-header .fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents']['border-top-width'] = '1px';
    $css['global']['#side-header .fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents']['border-top-style'] = 'solid';
    $elements = array('#side-header .side-header-content-1', '#side-header .side-header-content-2', '#side-header .fusion-secondary-menu > ul > li > a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_color'));
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('snav_font_size'));
    if (0 != intval(Avada()->settings->get('nav_highlight_border'))) {
        $elements = array('.side-header-left #side-header .fusion-main-menu > ul > li.current-menu-ancestor > a', '.side-header-left #side-header .fusion-main-menu > ul > li.current-menu-item > a');
        $css['global'][avada_implode($elements)]['border-right-width'] = intval(Avada()->settings->get('nav_highlight_border')) . 'px';
        $elements = array('.side-header-right #side-header .fusion-main-menu > ul > li.current-menu-ancestor > a', '.side-header-right #side-header .fusion-main-menu > ul > li.current-menu-item > a');
        $css['global'][avada_implode($elements)]['border-left-width'] = intval(Avada()->settings->get('nav_highlight_border')) . 'px';
    }
    $elements = array('.side-header-right #side-header .fusion-main-menu ul .fusion-dropdown-menu .sub-menu li ul', '.side-header-right #side-header .fusion-main-menu ul .fusion-dropdown-menu .sub-menu', '.side-header-right #side-header .fusion-main-menu ul .fusion-menu-login-box .sub-menu', '.side-header-right #side-header .fusion-main-menu .fusion-menu-cart-items', '.side-header-right #side-header .fusion-main-menu .fusion-menu-login-box .fusion-custom-menu-item-contents');
    $css['global'][avada_implode($elements)]['left'] = '-' . intval(Avada()->settings->get('dropdown_menu_width')) . 'px';
    $css['global']['.side-header-right #side-header .fusion-main-menu-search .fusion-custom-menu-item-contents']['left'] = '-250px';
    /**
     * Main Menu Styles
     */
    if (0 != intval(Avada()->settings->get('nav_padding'))) {
        $css['global']['.fusion-main-menu > ul > li']['padding-right'] = intval(Avada()->settings->get('nav_padding')) . 'px';
        if (is_rtl()) {
            $css['global']['.rtl .fusion-main-menu .fusion-last-menu-item']['padding-right'] = intval(Avada()->settings->get('nav_padding')) . 'px';
        }
    }
    if (0 != intval(Avada()->settings->get('nav_highlight_border'))) {
        $css['global']['.fusion-main-menu > ul > li > a']['border-top'] = intval(Avada()->settings->get('nav_highlight_border')) . 'px solid transparent';
    }
    if ('Top' != Avada()->settings->get('header_position') || 'v6' != Avada()->settings->get('header_layout')) {
        $css['global']['.fusion-main-menu > ul > li > a']['height'] = intval(Avada()->settings->get('nav_height')) . 'px';
        $css['global']['.fusion-main-menu > ul > li > a']['line-height'] = intval(Avada()->settings->get('nav_height')) . 'px';
    }
    $css['global']['.fusion-megamenu-icon img']['max-height'] = Avada_Sanitize::size(Avada()->settings->get('nav_font_size'));
    $elements = array('.fusion-main-menu > ul > li > a', '.fusion-main-menu .fusion-widget-cart-counter > a:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $elements = array('.fusion-main-menu > ul > li > a:hover', '.fusion-main-menu .fusion-widget-cart-counter > a:hover:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-main-menu > ul > li > a:hover']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-main-menu > ul > .fusion-menu-item-button > a:hover']['border-color'] = 'transparent';
    $css['global']['.fusion-widget-cart-number']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-widget-cart-counter a:hover:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-widget-cart-number']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['height'] = 'auto';
    $css['global']['#side-header .fusion-main-menu > ul > li > a']['min-height'] = intval(Avada()->settings->get('nav_height')) . 'px';
    $elements = array('.fusion-main-menu .current_page_item > a', '.fusion-main-menu .current-menu-item > a', '.fusion-main-menu .current-menu-parent > a', '.fusion-main-menu .current-menu-ancestor > a');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-main-menu > ul > .fusion-menu-item-button > a']['border-color'] = 'transparent';
    $elements = array('.fusion-main-menu .fusion-main-menu-icon:after');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $elements = array('.fusion-main-menu .fusion-menu-cart-link a:hover', '.fusion-main-menu .fusion-menu-cart-checkout-link a:hover', '.fusion-main-menu .fusion-menu-cart-link a:hover:before', '.fusion-main-menu .fusion-menu-cart-checkout-link a:hover:before');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $elements = array('.fusion-main-menu .fusion-main-menu-icon:after', '.fusion-main-menu .fusion-widget-cart-counter > a:before', '.fusion-main-menu .fusion-widget-cart-counter > a .fusion-widget-cart-number');
    $css['global'][avada_implode($elements)]['height'] = Avada_Sanitize::size(Avada()->settings->get('nav_font_size'));
    $css['global'][avada_implode($elements)]['width'] = Avada_Sanitize::size(Avada()->settings->get('nav_font_size'));
    if (Avada()->settings->get('main_nav_icon_circle')) {
        $elements = array('.fusion-main-menu .fusion-main-menu-icon:after', '.fusion-main-menu .fusion-widget-cart-counter > a:before');
        $css['global'][avada_implode($elements)]['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
        preg_match_all('!\\d+!', Avada()->settings->get('nav_font_size'), $matches);
        $css['global'][avada_implode($elements)]['padding'] = $matches[0][0] * 0.35 . Avada_Sanitize::get_unit(Avada()->settings->get('nav_font_size'));
    }
    $css['global']['.fusion-main-menu .fusion-main-menu-icon:hover']['border-color'] = 'transparent';
    $css['global']['.fusion-main-menu .fusion-main-menu-icon:hover:after']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    if (Avada()->settings->get('main_nav_icon_circle')) {
        $css['global']['.fusion-main-menu .fusion-main-menu-icon:hover:after']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
        $css['global']['.fusion-main-menu .fusion-widget-cart-counter > a:hover:before']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    }
    $elements = array('.fusion-main-menu .fusion-main-menu-search-open .fusion-main-menu-icon:after', '.fusion-main-menu .fusion-main-menu-icon-active:after');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    if (Avada()->settings->get('main_nav_icon_circle')) {
        $elements = array('.fusion-main-menu .fusion-main-menu-search-open .fusion-main-menu-icon:after', '.fusion-main-menu .fusion-main-menu-icon-active:after');
        $css['global'][avada_implode($elements)]['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    }
    $css['global']['.fusion-main-menu .sub-menu']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_bg_color'));
    $css['global']['.fusion-main-menu .sub-menu']['width'] = intval(Avada()->settings->get('dropdown_menu_width')) . 'px';
    $css['global']['.fusion-main-menu .sub-menu']['border-top'] = '3px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-main-menu .sub-menu']['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
    $css['global']['.fusion-main-menu .sub-menu']['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
    if (Avada()->settings->get('megamenu_shadow')) {
        $css['global']['.fusion-main-menu .sub-menu']['box-shadow'] = '1px 1px 30px rgba(0, 0, 0, 0.06)';
    }
    $css['global']['.fusion-main-menu .sub-menu ul']['left'] = intval(Avada()->settings->get('dropdown_menu_width')) . 'px';
    $css['global']['.fusion-main-menu .sub-menu ul']['top'] = '-3px';
    if (Avada()->settings->get('mainmenu_dropdown_display_divider')) {
        $css['global']['.fusion-main-menu .sub-menu li a']['border-bottom'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
    } else {
        $css['global']['.fusion-main-menu .sub-menu li a']['border-bottom'] = 'none';
    }
    $css['global']['.fusion-main-menu .sub-menu li a']['padding-top'] = intval(Avada()->settings->get('mainmenu_dropdown_vertical_padding')) . 'px';
    $css['global']['.fusion-main-menu .sub-menu li a']['padding-bottom'] = intval(Avada()->settings->get('mainmenu_dropdown_vertical_padding')) . 'px';
    $css['global']['.fusion-main-menu .sub-menu li a']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
    $css['global']['.fusion-main-menu .sub-menu li a']['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
    $css['global']['.fusion-main-menu .sub-menu li a']['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
    $css['global']['.fusion-main-menu .sub-menu li a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('nav_dropdown_font_size'));
    $css['global']['.fusion-main-menu .fusion-main-menu-cart']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('nav_dropdown_font_size'));
    $css['global']['.fusion-main-menu .sub-menu li a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_bg_hover_color'));
    $elements = array('.fusion-main-menu .sub-menu .current_page_item > a', '.fusion-main-menu .sub-menu .current-menu-item > a', '.fusion-main-menu .sub-menu .current-menu-parent > a');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_bg_hover_color'));
    $css['global']['.fusion-main-menu .fusion-custom-menu-item-contents']['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
    $css['global']['.fusion-main-menu .fusion-custom-menu-item-contents']['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
    $elements = array('.fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents', '.fusion-main-menu .fusion-main-menu-cart .fusion-custom-menu-item-contents', '.fusion-main-menu .fusion-menu-login-box .fusion-custom-menu-item-contents');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_bg_color'));
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
    if ('transparent' == Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color')) || 0 == Avada_Color::get_alpha_from_rgba(Avada()->settings->get('menu_sub_sep_color'))) {
        $css['global'][avada_implode($elements)]['border'] = '0';
    }
    if (is_rtl()) {
        $elements = array('.rtl .fusion-header-v1 .fusion-main-menu > ul > li', '.rtl .fusion-header-v2 .fusion-main-menu > ul > li', '.rtl .fusion-header-v3 .fusion-main-menu > ul > li');
        $css['global'][avada_implode($elements)]['padding-right'] = '0';
        if (0 != Avada()->settings->get('nav_padding')) {
            $css['global'][avada_implode($elements)]['padding-left'] = intval(Avada()->settings->get('nav_padding')) . 'px';
        }
        $css['global']['.rtl .fusion-main-menu .sub-menu ul']['left'] = 'auto';
        $css['global']['.rtl .fusion-main-menu .sub-menu ul']['right'] = intval(Avada()->settings->get('dropdown_menu_width')) . 'px';
    }
    /**
     * Flyout Menu Styles
     */
    $css['global']['.fusion-header-v6 .fusion-header-v6-content .fusion-flyout-menu-icons']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-header-v6-content .fusion-widget-cart-number']['min-width'] = Avada_Sanitize::size(Avada()->settings->get('flyout_menu_icon_font_size'));
    $icon_font_size = Avada_Sanitize::number(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-menu-toggle']['height'] = $icon_font_size * 0.9 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-menu-toggle']['width'] = $icon_font_size * 1.5 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-search-toggle .fusion-toggle-icon']['height'] = $icon_font_size * 0.9 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-search-toggle .fusion-toggle-icon']['width'] = $icon_font_size * 0.9 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-toggle-icon-line']['height'] = round($icon_font_size * 0.1) . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-body .fusion-header-v6.fusion-flyout-search-active .fusion-flyout-menu-icons .fusion-flyout-search-toggle .fusion-toggle-icon-line']['height'] = $icon_font_size * 0.1 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-toggle-icon-line']['width'] = $icon_font_size * 1.5 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu-icons .fusion-flyout-menu-toggle .fusion-toggle-icon-line']['width'] = $icon_font_size * 0.9 / 0.75 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $css['global']['.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-menu-icons .fusion-flyout-search-toggle .fusion-toggle-icon-line']['width'] = $icon_font_size * 0.9 / 0.75 . Avada_Sanitize::get_unit(Avada()->settings->get('flyout_menu_icon_font_size'));
    $elements = array('.fusion-header-v6 .fusion-header-v6-content .fusion-flyout-menu-icons .fusion-flyout-cart-wrapper', '.fusion-header-v6 .fusion-header-v6-content .fusion-flyout-menu-icons .fusion-flyout-search-toggle', '.fusion-header-v6 .fusion-header-v6-content .fusion-flyout-menu-icons .fusion-flyout-menu-toggle');
    $css['global'][avada_implode($elements)]['padding'] = sprintf('0 %spx', round(Avada()->settings->get('nav_padding') / 2));
    $css['global']['.fusion-header-v6 .fusion-header-v6-content .fusion-flyout-menu-icons']['margin'] = sprintf('0 -%spx', Avada()->settings->get('nav_padding') / 2);
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-icon:before']['color'] = Avada()->settings->get('flyout_menu_icon_color');
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-icon:hover:before']['color'] = Avada()->settings->get('flyout_menu_icon_hover_color');
    if (Avada()->settings->get('main_nav_icon_circle')) {
        $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-icon:before']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('flyout_menu_icon_color'));
        $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-icon:hover:before']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('flyout_menu_icon_hover_color'));
        $css['global']['.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-icon:before']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
        $css['global']['.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-icon:hover:before']['border'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
        $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-icon:before']['padding'] = $icon_font_size * 0.35 . Avada_Sanitize::get_unit(Avada()->settings->get('nav_font_size'));
    }
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-icons .fusion-toggle-icon-line']['background-color'] = Avada()->settings->get('flyout_menu_icon_color');
    $elements = array('.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-menu-toggle:hover .fusion-toggle-icon-line', '.fusion-header-v6 .fusion-flyout-menu-icons .fusion-flyout-search-toggle:hover .fusion-toggle-icon-line');
    $css['global'][avada_implode($elements)]['background-color'] = Avada()->settings->get('flyout_menu_icon_hover_color');
    $css['global']['.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-icon:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-icon:hover:before']['color'] = Avada()->settings->get('menu_hover_first_color');
    $css['global']['.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-toggle-icon-line']['background-color'] = Avada()->settings->get('menu_first_color');
    $elements = array('.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-flyout-menu-toggle:hover .fusion-toggle-icon-line', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-icons .fusion-flyout-search-toggle:hover .fusion-toggle-icon-line');
    $css['global'][avada_implode($elements)]['background-color'] = Avada()->settings->get('menu_hover_first_color');
    $css['global']['.fusion-header-v6 .fusion-flyout-menu-bg']['background-color'] = Avada()->settings->get('flyout_menu_background_color');
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s']['font-family'] = wp_strip_all_tags(Avada()->settings->get('nav_typography', 'font-family'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s::-webkit-input-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s::-moz-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s:-moz-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['#wrapper .fusion-header-v6 .fusion-flyout-search .searchform .s:-ms-input-placeholder']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['.fusion-header-v6 .fusion-flyout-menu .fusion-menu li']['padding'] = Avada_Sanitize::number(Avada()->settings->get('nav_font_size')) . Avada_Sanitize::get_unit(Avada()->settings->get('nav_font_size')) . ' 0';
    switch (Avada()->settings->get('flyout_menu_direction')) {
        case 'fade':
            $elements = array('.fusion-header-v6 .fusion-flyout-menu', '.fusion-header-v6 .fusion-flyout-search', '.fusion-header-v6 .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['top'] = '-1000%';
            $css['global'][avada_implode($elements)]['transition'] = 'opacity 0.4s ease 0s, top 0s ease 0.4s';
            $elements = array('.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu', '.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-search', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['top'] = '0';
            $css['global'][avada_implode($elements)]['transition'] = 'opacity 0.4s ease 0s, top 0s ease 0s';
            break;
        case 'left':
            $elements = array('.fusion-header-v6 .fusion-flyout-menu', '.fusion-header-v6 .fusion-flyout-search', '.fusion-header-v6 .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateX(-100%)';
            $elements = array('.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu', '.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-search', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateX(0%)';
            break;
        case 'right':
            $elements = array('.fusion-header-v6 .fusion-flyout-menu', '.fusion-header-v6 .fusion-flyout-search', '.fusion-header-v6 .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateX(100%)';
            $elements = array('.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu', '.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-search', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateX(0%)';
            break;
        case 'bottom':
            $elements = array('.fusion-header-v6 .fusion-flyout-menu', '.fusion-header-v6 .fusion-flyout-search', '.fusion-header-v6 .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateY(100%)';
            $elements = array('.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu', '.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-search', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateY(0%)';
            break;
        case 'top':
            $elements = array('.fusion-header-v6 .fusion-flyout-menu', '.fusion-header-v6 .fusion-flyout-search', '.fusion-header-v6 .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateY(-100%)';
            $elements = array('.fusion-header-v6.fusion-flyout-menu-active .fusion-flyout-menu', '.fusion-header-v6.fusion-flyout-search-active .fusion-flyout-search', '.fusion-header-v6.fusion-flyout-active .fusion-flyout-menu-bg');
            $css['global'][avada_implode($elements)]['transform'] = 'translateY(0%)';
            break;
    }
    /**
     * Secondary Menu Styles
     */
    $css['global']['.fusion-secondary-menu > ul > li']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_first_border_color'));
    if (0 != Avada_Sanitize::number(Avada()->settings->get('sec_menu_lh'))) {
        $css['global']['.fusion-secondary-menu > ul > li > a']['height'] = Avada_Sanitize::size(Avada()->settings->get('sec_menu_lh'));
        $css['global']['.fusion-secondary-menu > ul > li > a']['line-height'] = Avada_Sanitize::size(Avada()->settings->get('sec_menu_lh'));
    }
    $css['global']['.fusion-secondary-menu .sub-menu, .fusion-secondary-menu .fusion-custom-menu-item-contents']['width'] = intval(Avada()->settings->get('topmenu_dropwdown_width')) . 'px';
    $css['global']['.fusion-secondary-menu .fusion-secondary-menu-icon']['min-width'] = intval(Avada()->settings->get('topmenu_dropwdown_width')) . 'px';
    $css['global']['.fusion-secondary-menu .sub-menu']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_sub_bg_color'));
    $css['global']['.fusion-secondary-menu .sub-menu']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_sep_color'));
    $css['global']['.fusion-secondary-menu .sub-menu a']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_sep_color'));
    $css['global']['.fusion-secondary-menu .sub-menu a']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_color'));
    $css['global']['.fusion-secondary-menu .sub-menu a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_bg_hover_color'));
    $css['global']['.fusion-secondary-menu .sub-menu a:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_hover_color'));
    $css['global']['.fusion-secondary-menu > ul > li > .sub-menu .sub-menu']['left'] = intval(Avada()->settings->get('topmenu_dropwdown_width')) . 'px';
    $css['global']['.fusion-secondary-menu .fusion-custom-menu-item-contents']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_sub_bg_color'));
    $css['global']['.fusion-secondary-menu .fusion-custom-menu-item-contents']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_sep_color'));
    $css['global']['.fusion-secondary-menu .fusion-custom-menu-item-contents']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_color'));
    $elements = array('.fusion-secondary-menu .fusion-secondary-menu-icon', '.fusion-secondary-menu .fusion-secondary-menu-icon:hover');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['.fusion-secondary-menu .fusion-menu-cart-items a']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_color'));
    $css['global']['.fusion-secondary-menu .fusion-menu-cart-item a']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_sep_color'));
    $css['global']['.fusion-secondary-menu .fusion-menu-cart-item img']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
    $css['global']['.fusion-secondary-menu .fusion-menu-cart-item a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_bg_hover_color'));
    $css['global']['.fusion-secondary-menu .fusion-menu-cart-item a:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_hover_color'));
    if (class_exists('WooCommerce')) {
        $css['global']['.fusion-secondary-menu .fusion-menu-cart-checkout']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_cart_bg_color'));
        $css['global']['.fusion-secondary-menu .fusion-menu-cart-checkout a:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_color'));
        $elements = array('.fusion-secondary-menu .fusion-menu-cart-checkout a:hover', '.fusion-secondary-menu .fusion-menu-cart-checkout a:hover:before');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('header_top_menu_sub_hover_color'));
    }
    $css['global']['.fusion-secondary-menu-icon']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_cart_bg_color'));
    $css['global']['.fusion-secondary-menu-icon']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $elements = array('.fusion-secondary-menu-icon:before', '.fusion-secondary-menu-icon:after');
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    if (is_rtl()) {
        $css['global']['.rtl .fusion-secondary-menu > ul > li:first-child']['border-left'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('header_top_first_border_color'));
        $css['global']['.rtl .fusion-secondary-menu > ul > li > .sub-menu .sub-menu']['left'] = 'auto';
        $css['global']['.rtl .fusion-secondary-menu > ul > li > .sub-menu .sub-menu']['right'] = intval(Avada()->settings->get('topmenu_dropwdown_width')) . 'px';
    }
    if (0 != Avada_Sanitize::number(Avada()->settings->get('sec_menu_lh'))) {
        $css['global']['.fusion-contact-info']['line-height'] = Avada_Sanitize::size(Avada()->settings->get('sec_menu_lh'));
    }
    /**
     * Common Menu Styles
     */
    if (class_exists('WooCommerce')) {
        $css['global']['.fusion-menu-cart-items']['width'] = intval(Avada()->settings->get('dropdown_menu_width')) . 'px';
        $css['global']['.fusion-menu-cart-items']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('woo_icon_font_size')) . 'px';
        $css['global']['.fusion-menu-cart-items']['line-height'] = '1.5';
        $css['global']['.fusion-menu-cart-items a']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
        $css['global']['.fusion-menu-cart-item a']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
        $css['global']['.fusion-menu-cart-item img']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
        $css['global']['.fusion-menu-cart-item a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_bg_hover_color'));
        $css['global']['.fusion-menu-cart-checkout']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_cart_bg_color'));
        $css['global']['.fusion-menu-cart-checkout a:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
        $elements = array('.fusion-menu-cart-checkout a:hover', '.fusion-menu-cart-checkout a:hover:before');
        $elements['global']['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    }
    /**
     * Megamenu Styles
     */
    $css['global']['.fusion-megamenu-holder']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_hover_first_color'));
    $css['global']['.fusion-megamenu']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_bg_color'));
    if (Avada()->settings->get('megamenu_shadow')) {
        $css['global']['.fusion-megamenu']['box-shadow'] = '1px 1px 30px rgba(0, 0, 0, 0.06)';
    }
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
    $css['global']['.rtl .fusion-megamenu-wrapper .fusion-megamenu-submenu:last-child']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu a']['padding-top'] = intval(Avada()->settings->get('megamenu_item_vertical_padding')) . 'px';
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu a']['padding-bottom'] = intval(Avada()->settings->get('megamenu_item_vertical_padding')) . 'px';
    if (Avada()->settings->get('megamenu_item_display_divider')) {
        $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu a']['border-bottom'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
        $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a']['border-bottom'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
        $css['global']['#side-header .fusion-main-menu > ul .sub-menu > li:last-child > a']['border-bottom'] = '1px solid ' . Avada_Sanitize::color(Avada()->settings->get('menu_sub_sep_color'));
        $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu']['padding-bottom'] = '0';
        $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu-notitle']['padding-top'] = '0';
    }
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_bg_hover_color'));
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a:hover']['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a:hover']['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
    $css['global']['.fusion-megamenu-wrapper .fusion-megamenu-submenu > a:hover']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('nav_dropdown_font_size'));
    $css['global']['.fusion-megamenu-title']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('megamenu_title_size'));
    $css['global']['.fusion-megamenu-title']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['.fusion-megamenu-title a']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_first_color'));
    $css['global']['.fusion-megamenu-bullet']['border-left-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
    $css['global']['.fusion-megamenu-widgets-container']['color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
    $css['global']['.fusion-megamenu-widgets-container']['font-family'] = wp_strip_all_tags(Avada()->settings->get('body_typography', 'font-family'));
    $css['global']['.fusion-megamenu-widgets-container']['font-weight'] = intval(Avada()->settings->get('body_typography', 'font-weight'));
    $css['global']['.fusion-megamenu-widgets-container']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('nav_dropdown_font_size'));
    if (is_rtl()) {
        $css['global']['.rtl .fusion-megamenu-bullet']['border-right-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_sub_color'));
        $css['global']['.rtl .fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu ul']['right'] = 'auto';
    }
    /**
     * Sticky Header Styles
     */
    $elements = array('.fusion-header-wrapper.fusion-is-sticky .fusion-header', '.fusion-header-wrapper.fusion-is-sticky .fusion-secondary-main-menu');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_sticky_bg_color'));
    $elements = array('.no-rgba .fusion-header-wrapper.fusion-is-sticky .fusion-header', '.no-rgba .fusion-header-wrapper.fusion-is-sticky .fusion-secondary-main-menu');
    $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_sticky_bg_color'));
    $css['global'][avada_implode($elements)]['opacity'] = Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_sticky_bg_color'));
    $css['global'][avada_implode($elements)]['filter'] = 'progid: DXImageTransform.Microsoft.Alpha(Opacity=' . Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_sticky_bg_color')) * 100 . ')';
    $css['global']['.fusion-is-sticky .fusion-main-menu > ul > li']['padding-right'] = intval(Avada()->settings->get('header_sticky_nav_padding')) . 'px';
    $css['global']['.fusion-is-sticky .fusion-main-menu > ul > li:last-child']['padding-right'] = '0';
    if (0 != intval(Avada()->settings->get('header_sticky_nav_padding'))) {
        $css['global']['.rtl .fusion-is-sticky .fusion-main-menu > ul > li:last-child']['padding-right'] = intval(Avada()->settings->get('header_sticky_nav_padding')) . 'px';
    } else {
        $css['global']['.rtl .fusion-is-sticky .fusion-main-menu > ul > li:last-child']['padding-right'] = intval(Avada()->settings->get('nav_padding')) . 'px';
    }
    if (Avada()->settings->get('header_layout') != 'v6') {
        $css['global']['.fusion-is-sticky .fusion-main-menu > ul > li > a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('header_sticky_nav_font_size'));
    }
    if (is_rtl()) {
        $elements = array('.rtl .fusion-is-sticky .fusion-header-v1 .fusion-main-menu > ul > li', '.rtl .fusion-is-sticky .fusion-header-v2 .fusion-main-menu > ul > li', '.rtl .fusion-is-sticky .fusion-header-v3 .fusion-main-menu > ul > li');
        $css['global'][avada_implode($elements)]['padding-right'] = '0';
        $css['global']['.rtl .fusion-is-sticky .fusion-main-menu > ul > li']['padding-left'] = intval(Avada()->settings->get('header_sticky_nav_padding')) . 'px';
        $css['global']['.rtl .fusion-is-sticky .fusion-main-menu > ul > li:last-child']['padding-left'] = '0';
    }
    /**
     * Mobile Menu Styles
     */
    $css['global']['.fusion-mobile-selector']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_background_color'));
    $css['global']['.fusion-mobile-selector']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_border_color'));
    $css['global']['.fusion-mobile-selector']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('mobile_menu_font_size'));
    $css['global']['.fusion-mobile-selector']['height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    $css['global']['.fusion-mobile-selector']['line-height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    $css['global']['.fusion-mobile-selector']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_font_color'));
    $elements = array('.fusion-selector-down');
    if (is_rtl()) {
        $elements[] = '.rtl .fusion-selector-down';
    }
    $css['global'][avada_implode($elements)]['height'] = intval(Avada()->settings->get('mobile_menu_nav_height') - 2) . 'px';
    $css['global'][avada_implode($elements)]['line-height'] = intval(Avada()->settings->get('mobile_menu_nav_height') - 2) . 'px';
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_border_color'));
    $elements = array('.fusion-selector-down:before');
    if (is_rtl()) {
        $elements[] = '.rtl .fusion-selector-down:before';
    }
    $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_toggle_color'));
    if (false !== strpos(Avada()->settings->get('mobile_menu_font_size'), 'px') && 35 < intval(Avada()->settings->get('mobile_menu_font_size'))) {
        $css['global']['.fusion-selector-down']['font-size'] = '30px';
    }
    $elements = array('.fusion-mobile-nav-holder > ul', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder > ul');
    $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_border_color'));
    $css['global']['.fusion-mobile-nav-item .fusion-open-submenu']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_font_color'));
    $css['global']['.fusion-mobile-nav-item a']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_font_color'));
    $css['global']['.fusion-mobile-nav-item a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('mobile_menu_font_size'));
    $css['global']['.fusion-mobile-nav-item a']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_background_color'));
    $css['global']['.fusion-mobile-nav-item a']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_border_color'));
    $css['global']['.fusion-mobile-nav-item a']['height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    $css['global']['.fusion-mobile-nav-item a']['line-height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    $css['global']['.fusion-mobile-nav-item a:hover']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_hover_color'));
    $css['global']['.fusion-mobile-nav-item a:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_font_color'));
    $css['global']['.fusion-mobile-current-nav-item > a']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_hover_color'));
    $css['global']['.fusion-mobile-menu-icons']['margin-top'] = intval(Avada()->settings->get('mobile_menu_icons_top_margin')) . 'px';
    $css['global']['.fusion-mobile-menu-icons a']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_toggle_color'));
    $css['global']['.fusion-mobile-menu-icons a:before']['color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_menu_toggle_color'));
    $css['global']['.fusion-open-submenu']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('mobile_menu_font_size'));
    $css['global']['.fusion-open-submenu']['height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    $css['global']['.fusion-open-submenu']['line-height'] = intval(Avada()->settings->get('mobile_menu_nav_height')) . 'px';
    if (false !== strpos(Avada()->settings->get('mobile_menu_font_size'), 'px') && 30 < intval(Avada()->settings->get('mobile_menu_font_size'))) {
        $css['global']['.fusion-open-submenu']['font-size'] = '20px';
    }
    $css['global']['.fusion-open-submenu:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
    /**
     * Shortcodes
     */
    $css['global']['#wrapper .post-content .content-box-heading']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('content_box_title_size'));
    $css['global']['.post-content .content-box-heading']['color'] = Avada_Sanitize::color(Avada()->settings->get('content_box_title_color'));
    $css['global']['.fusion-content-boxes .content-container']['color'] = Avada_Sanitize::color(Avada()->settings->get('content_box_body_color'));
    /**
     * Social Links
     */
    $css['global']['.fusion-social-links-header .fusion-social-networks a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('header_social_links_font_size'));
    $css['global']['.fusion-social-links-header .fusion-social-networks.boxed-icons a']['padding'] = Avada_Sanitize::size(Avada()->settings->get('header_social_links_boxed_padding'));
    $css['global']['.fusion-social-links-header .fusion-social-networks.boxed-icons a']['width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('header_social_links_font_size')) . ' + (2 * ' . Avada_Sanitize::size(Avada()->settings->get('header_social_links_boxed_padding')) . ') + 2px)';
    $css['global']['.fusion-social-links-footer .fusion-social-networks a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('footer_social_links_font_size'));
    $css['global']['.fusion-social-links-footer .fusion-social-networks.boxed-icons a']['padding'] = Avada_Sanitize::size(Avada()->settings->get('footer_social_links_boxed_padding'));
    $css['global']['.fusion-social-links-footer .fusion-social-networks.boxed-icons a']['width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('footer_social_links_font_size')) . ' + (2 * ' . Avada_Sanitize::size(Avada()->settings->get('footer_social_links_boxed_padding')) . ') + 2px)';
    $css['global']['.fusion-sharing-box .fusion-social-networks a']['font-size'] = Avada_Sanitize::size(Avada()->settings->get('sharing_social_links_font_size'));
    $css['global']['.fusion-sharing-box .fusion-social-networks.boxed-icons a']['padding'] = Avada_Sanitize::size(Avada()->settings->get('sharing_social_links_boxed_padding'));
    $css['global']['.fusion-sharing-box h4']['color'] = Avada_Sanitize::color(Avada()->settings->get('sharing_box_tagline_text_color'));
    // Fusion Core social icons
    $css['global']['.fusion-social-links .boxed-icons .fusion-social-networks-wrapper .fusion-social-network-icon']['width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('social_links_font_size')) . ' + (2 * ' . Avada_Sanitize::size(Avada()->settings->get('social_links_boxed_padding')) . ') + 2px)';
    $elements = array('.post-content .fusion-social-links .fusion-social-networks a', '.widget .fusion-social-links .fusion-social-networks a');
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('social_links_font_size'));
    $elements = array('.post-content .fusion-social-links .fusion-social-networks.boxed-icons a', '.widget .fusion-social-links .fusion-social-networks.boxed-icons a');
    $css['global'][avada_implode($elements)]['padding'] = Avada_Sanitize::size(Avada()->settings->get('social_links_boxed_padding'));
    /**
     * Search Page / Error Page - Dynamic Styling
     */
    if (Avada()->settings->get('checklist_icons_color')) {
        $elements = array('.fusion-body .error-menu li:before', '.fusion-body .error-menu li:after');
        $css['global'][avada_implode($elements)]['background-color'] = Avada()->settings->get('checklist_circle_color');
        $css['global'][avada_implode($elements)]['color'] = Avada()->settings->get('checklist_icons_color');
    }
    if (class_exists('WooCommerce')) {
        /**
         * Woocommerce - Dynamic Styling
         */
        $css['global']['.product-images .crossfade-images']['background'] = Avada_Sanitize::color(Avada()->settings->get('title_border_color'));
        $css['global']['.products .product-list-view']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
        $elements = array('.products .product-list-view .product-excerpt-container', '.products .product-list-view .product-details-container');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('sep_color'));
        $css['global']['.order-dropdown']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $css['global']['.order-dropdown > li:after']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_border_color'));
        $elements = array('.order-dropdown a', '.order-dropdown a:hover');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $elements = array('.order-dropdown .current-li', '.order-dropdown ul li a');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_bg_color'));
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_border_color'));
        $css['global']['.order-dropdown ul li a:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $css['global']['.order-dropdown ul li a:hover']['background-color'] = Avada_Sanitize::color(fusion_color_luminance(Avada()->settings->get('woo_dropdown_bg_color'), 0.1));
        $css['global']['.catalog-ordering .order li a']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $css['global']['.catalog-ordering .order li a']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_bg_color'));
        $css['global']['.catalog-ordering .order li a']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_border_color'));
        $css['global']['.fusion-grid-list-view']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_border_color'));
        $css['global']['.fusion-grid-list-view li']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_bg_color'));
        $css['global']['.fusion-grid-list-view li']['border-color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_border_color'));
        $css['global']['.fusion-grid-list-view a']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $css['global']['.fusion-grid-list-view li:hover']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        $css['global']['.fusion-grid-list-view li:hover']['background-color'] = Avada_Sanitize::color(fusion_color_luminance(Avada()->settings->get('woo_dropdown_bg_color'), 0.1));
        $css['global']['.fusion-grid-list-view li.active-view']['background-color'] = Avada_Sanitize::color(fusion_color_luminance(Avada()->settings->get('woo_dropdown_bg_color'), 0.1));
        $css['global']['.fusion-grid-list-view li.active-view a i']['color'] = Avada_Sanitize::color(Avada()->settings->get('woo_dropdown_text_color'));
        if (is_rtl()) {
            $woo_message_direction = 'right';
        } else {
            $woo_message_direction = 'left';
        }
        $elements = array('.woocommerce-message:before', '.woocommerce-info:before');
        $css['global'][avada_implode($elements)]['margin-' . $woo_message_direction] = 'calc(-' . Avada_Sanitize::size(Avada()->settings->get('body_typography', 'font-size')) . ' - 3px)';
        $elements = array('.woocommerce-message', '.woocommerce-info');
        $css['global'][avada_implode($elements)]['padding-' . $woo_message_direction] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('body_typography', 'font-size')) . ' + 3px)';
    }
    if (class_exists('Tribe__Events__Main')) {
        $elements = array('.tribe-grid-allday .tribe-events-week-allday-single, .tribe-grid-allday .tribe-events-week-allday-single:hover, .tribe-grid-body .tribe-events-week-hourly-single', '.datepicker.dropdown-menu .datepicker-days table tr td.active:hover');
        $color = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
        $rgb = fusion_hex2rgb($color);
        $rgba = 'rgba( ' . $rgb[0] . ',' . $rgb[1] . ',' . $rgb[2] . ',' . '0.7' . ')';
        $css['global'][avada_implode($elements)]['background-color'] = $rgba;
        $elements = array('.fusion-tribe-primary-info .tribe-events-list-event-title a', '.fusion-events-single-title-content', '.fusion-tribe-primary-info .tribe-events-list-event-title a', '.datepicker.dropdown-menu table tr td.day', '.datepicker.dropdown-menu table tr td span.month', '.tribe-events-venue-widget .tribe-venue-widget-thumbnail .tribe-venue-widget-venue-name', ".tribe-mini-calendar div[id*='daynum-'] a, .tribe-mini-calendar div[id*='daynum-'] span");
        $color = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
        $rgb = fusion_hex2rgb($color);
        $rgba = 'rgba( ' . $rgb[0] . ',' . $rgb[1] . ',' . $rgb[2] . ',' . '0.85' . ')';
        $css['global'][avada_implode($elements)]['background-color'] = $rgba;
        $elements = array('.tribe-events-list .tribe-events-event-cost', '.tribe-events-list .tribe-events-event-cost span', '.fusion-tribe-events-headline', '#tribe-events .tribe-events-day .tribe-events-day-time-slot h5', '.tribe-mobile-day-date', '.datepicker.dropdown-menu table thead tr:first-child', '.datepicker.dropdown-menu table thead tr:first-child th:hover', '.datepicker.dropdown-menu .datepicker-days table tr td.active', '.datepicker.dropdown-menu .datepicker-days table tr td:hover', '.tribe-grid-header', '.datepicker.dropdown-menu table tr td span.month.active', '.datepicker.dropdown-menu table tr td span.month:hover', '.tribe-grid-body .tribe-events-week-hourly-single:hover', '.tribe-events-venue-widget .tribe-venue-widget-venue-name', '.tribe-mini-calendar .tribe-mini-calendar-nav td', ".tribe-mini-calendar div[id*='daynum-'] a:hover", '.tribe-mini-calendar td.tribe-events-has-events:hover a', '.fusion-body .tribe-mini-calendar td.tribe-events-has-events:hover a:hover', '.fusion-body .tribe-mini-calendar td.tribe-events-has-events a:hover', '.tribe-mini-calendar td.tribe-events-has-events.tribe-events-present a:hover', '.tribe-mini-calendar td.tribe-events-has-events.tribe-mini-calendar-today a:hover', ".tribe-mini-calendar .tribe-mini-calendar-today div[id*='daynum-'] a", ".tribe-mini-calendar .tribe-mini-calendar-today div[id*='daynum-'] a");
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
        $elements = array('.tribe-grid-header', '.tribe-events-grid .tribe-grid-header .tribe-grid-content-wrap .column', '.tribe-grid-allday .tribe-events-week-allday-single, .tribe-grid-allday .tribe-events-week-allday-single:hover, .tribe-grid-body .tribe-events-week-hourly-single, .tribe-grid-body .tribe-events-week-hourly-single:hover');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('primary_color'));
        $elements = array('.tribe-events-calendar thead th', '.tribe-events-calendar td.tribe-events-present div[id*=tribe-events-daynum-]', '.tribe-events-calendar td.tribe-events-present div[id*=tribe-events-daynum-]>a', '.tribe-events-calendar div[id*=tribe-events-daynum-]', '.tribe-events-calendar div[id*=tribe-events-daynum-] a', '.tribe-events-calendar td.tribe-events-past div[id*=tribe-events-daynum-]', '.tribe-events-calendar td.tribe-events-past div[id*=tribe-events-daynum-]>a', '#tribe-events-content .tribe-events-tooltip h4', '.tribe-events-list-separator-month', '.fusion-tribe-primary-info .tribe-events-list-event-title', '.fusion-tribe-primary-info .tribe-events-list-event-title a', '.tribe-events-list .tribe-events-event-cost', '#tribe-events .fusion-tribe-events-headline h3', '#tribe-events .fusion-tribe-events-headline h3 a', '#tribe-events .tribe-events-day .tribe-events-day-time-slot h5', '.tribe-mobile-day .tribe-mobile-day-date', '.datepicker.dropdown-menu table thead tr:first-child', '.datepicker.dropdown-menu table tr td.day', '.fusion-events-single-title-content h2', '.fusion-events-single-title-content h3', '.fusion-events-single-title-content span', '.tribe-grid-header', '.tribe-grid-allday .tribe-events-week-allday-single, .tribe-grid-allday .tribe-events-week-allday-single:hover, .tribe-grid-body .tribe-events-week-hourly-single, .tribe-grid-body .tribe-events-week-hourly-single:hover', '.datepicker.dropdown-menu .datepicker-days table tr td.active:hover', '.datepicker.dropdown-menu table tr td span.month', '.datepicker.dropdown-menu table tr td span.month.active:hover', '.recurringinfo', '.fusion-events-featured-image .event-is-recurring', '.fusion-events-featured-image .event-is-recurring:hover', '.fusion-events-featured-image .event-is-recurring a', '.single-tribe_events .fusion-events-featured-image .recurringinfo .tribe-events-divider', '.tribe-events-venue-widget .tribe-venue-widget-venue-name, .tribe-events-venue-widget .tribe-venue-widget-venue-name a, #slidingbar-area .tribe-events-venue-widget .tribe-venue-widget-venue-name a', '.tribe-events-venue-widget .tribe-venue-widget-venue-name, .tribe-events-venue-widget .tribe-venue-widget-venue-name a:hover, #slidingbar-area .tribe-events-venue-widget .tribe-venue-widget-venue-name a:hover', '.tribe-mini-calendar .tribe-mini-calendar-nav td', ".tribe-mini-calendar div[id*='daynum-'] a, .tribe-mini-calendar div[id*='daynum-'] span", "#slidingbar-area .tribe-mini-calendar div[id*='daynum-'] a", ".tribe-mini-calendar div[id*='daynum-'] a:hover", '.tribe-mini-calendar .tribe-events-has-events:hover', '.tribe-mini-calendar .tribe-events-has-events:hover a', '.tribe-mini-calendar .tribe-events-has-events:hover a:hover', '.tribe-mini-calendar .tribe-events-has-events a:hover', '.tribe-mini-calendar .tribe-events-has-events.tribe-events-present a:hover', '.tribe-mini-calendar td.tribe-events-has-events.tribe-mini-calendar-today a:hover', '.tribe-mini-calendar .tribe-events-has-events.tribe-mini-calendar-today a', '.tribe-mini-calendar .tribe-events-has-events.tribe-mini-calendar-today a', ".tribe-mini-calendar .tribe-events-othermonth.tribe-mini-calendar-today div[id*='daynum-'] a");
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('primary_overlay_text_color'));
        $elements = array('#tribe-events .tribe-events-list .tribe-events-event-meta .author > div', '.fusion-body #tribe-events .tribe-events-list .tribe-events-event-meta .author > div:last-child', '.events-list #tribe-events-footer, .single-tribe_events #tribe-events-footer, #tribe-events #tribe-events-footer', '.tribe-grid-allday', '.tribe-events-grid .tribe-grid-content-wrap .column', '.tribe-week-grid-block div', '#tribe-events #tribe-geo-results .type-tribe_events:last-child', '.events-archive.events-gridview #tribe-events-content table .type-tribe_events', '.tribe-events-viewmore', '.fusion-events-before-title h2', '#tribe-events .tribe-events-list .type-tribe_events', '#tribe-events .tribe-events-list-separator-month+.type-tribe_events.tribe-events-first');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_border_color'));
        $elements = array('.tribe-bar-views-inner', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a', '#tribe_events_filters_wrapper .tribe-events-filters-group-heading');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_bar_bg_color'));
        $elements = array('#tribe_events_filters_wrapper .tribe-events-filters-group-heading', '.tribe-events-filter-group', '.tribe-events-filter-group:after', '#tribe_events_filters_wrapper .tribe-events-filter-group label', '.tribe-events-filters-horizontal .tribe-events-filter-group:before', '.tribe-events-filters-horizontal .tribe-events-filter-group:after');
        $css['global'][avada_implode($elements)]['border-bottom-color'] = fusion_adjust_brightness(Avada_Sanitize::color(Avada()->settings->get('ec_bar_bg_color')), -25);
        $elements = array('#tribe-bar-form', '#tribe-events-bar:before', '#tribe-events-bar:after', '#tribe-events-content-wrapper #tribe_events_filters_wrapper.tribe-events-filters-horizontal:before', '#tribe-events-content-wrapper #tribe_events_filters_wrapper.tribe-events-filters-horizontal:after', '#tribe-bar-collapse-toggle', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:hover', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option.tribe-bar-active a:hover', '#tribe-events-content-wrapper #tribe_events_filters_wrapper.tribe-events-filters-horizontal', '#tribe-events-content-wrapper #tribe_events_filters_wrapper.tribe-events-filters-vertical .tribe-events-filters-content', '#tribe-events-content-wrapper #tribe_events_filters_wrapper:before', '#tribe-events-content-wrapper #tribe_events_filters_wrapper:after', '.tribe-events-filter-group.tribe-events-filter-autocomplete', '.tribe-events-filter-group.tribe-events-filter-multiselect', '.tribe-events-filter-group.tribe-events-filter-range', '.tribe-events-filter-group.tribe-events-filter-select', '#tribe_events_filters_wrapper .tribe-events-filters-group-heading:hover', '#tribe_events_filters_wrapper .tribe-events-filter-group label', '#tribe_events_filters_wrapper .closed .tribe-events-filters-group-heading:hover');
        $css['global'][avada_implode($elements)]['background-color'] = fusion_adjust_brightness(Avada_Sanitize::color(Avada()->settings->get('ec_bar_bg_color')), 10);
        $elements = array('.tribe-events-filters-horizontal .tribe-events-filter-group');
        $css['global'][avada_implode($elements)]['border-color'] = fusion_adjust_brightness(Avada_Sanitize::color(Avada()->settings->get('ec_bar_bg_color')), -25);
        $elements = array('.tribe-events-filter-group:after');
        $css['global'][avada_implode($elements)]['border-bottom-color'] = fusion_adjust_brightness(Avada_Sanitize::color(Avada()->settings->get('ec_bar_bg_color')), 10);
        $elements = array('#tribe-bar-form label', '.tribe-bar-disabled #tribe-bar-form label', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:hover', '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option.tribe-bar-active a:hover', '#tribe_events_filters_wrapper .tribe-events-filters-label', '#tribe_events_filters_wrapper .tribe-events-filters-group-heading', '#tribe_events_filters_wrapper .tribe-events-filters-group-heading:after', '#tribe_events_filters_wrapper .tribe-events-filters-content > label', '#tribe_events_filters_wrapper label span');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('ec_bar_text_color'));
        $elements = array('.tribe-events-calendar div[id*=tribe-events-daynum-]', '.tribe-events-calendar div[id*=tribe-events-daynum-] a', '.tribe-events-grid .tribe-grid-header .tribe-week-today');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_calendar_heading_bg_color'));
        $elements = array('#tribe-events-content .tribe-events-calendar td.tribe-events-othermonth', '.tribe-events-calendar td.tribe-events-past div[id*=tribe-events-daynum-]', '.tribe-events-calendar td.tribe-events-past div[id*=tribe-events-daynum-]>a');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(fusion_adjust_brightness(Avada()->settings->get('ec_calendar_heading_bg_color'), 40));
        $elements = array('#tribe-events-content .tribe-events-calendar td');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_calendar_bg_color'));
        $elements = array('#tribe-events-content .tribe-events-calendar td.tribe-events-othermonth');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(fusion_adjust_brightness(Avada()->settings->get('ec_calendar_bg_color'), 80));
        $elements = array('#tribe-events-content .tribe-events-calendar td.tribe-events-othermonth');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(fusion_adjust_brightness(Avada()->settings->get('ec_calendar_bg_color'), 80));
        $elements = array('#tribe-events-content .tribe-events-calendar td', '#tribe-events-content table.tribe-events-calendar');
        $css['global'][avada_implode($elements)]['border-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_border_color'));
        $elements = array('#tribe-events-content .tribe-events-calendar td:hover', '.tribe-week-today');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(fusion_adjust_brightness(Avada()->settings->get('ec_calendar_bg_color'), 60));
        $elements = array('.tribe-grid-allday');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(fusion_adjust_brightness(Avada()->settings->get('ec_calendar_bg_color'), 70));
        $elements = array('.recurring-info-tooltip', '#tribe-events-content .tribe-events-tooltip');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_tooltip_bg_color'));
        $elements = array('.tribe-events-tooltip:before', '.tribe-events-right .tribe-events-tooltip:before');
        $css['global'][avada_implode($elements)]['border-top-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_tooltip_bg_color'));
        $elements = array('.tribe-grid-body .tribe-events-tooltip:before', '.tribe-grid-body .tribe-events-tooltip:after');
        $css['global'][avada_implode($elements)]['border-right-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_tooltip_bg_color'));
        $elements = array('.tribe-grid-body .tribe-events-right .tribe-events-tooltip:before', '.tribe-grid-body .tribe-events-right .tribe-events-tooltip:after');
        $css['global'][avada_implode($elements)]['border-left-color'] = Avada_Sanitize::color(Avada()->settings->get('ec_tooltip_bg_color'));
        $elements = array('#tribe-events-content .tribe-events-tooltip');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('ec_tooltip_body_color'));
        $elements = array('.tribe-countdown-timer', '.tribe-countdown-text');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('countdown_background_color'));
        $elements = array('.tribe-countdown-timer .tribe-countdown-number');
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('countdown_counter_box_color'));
        $elements = array('.tribe-countdown-timer .tribe-countdown-number .fusion-tribe-counterdown-over', '.tribe-countdown-timer .tribe-countdown-number .tribe-countdown-under');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('countdown_counter_text_color'));
        $elements = array('.tribe-events-countdown-widget .tribe-countdown-text, .tribe-events-countdown-widget .tribe-countdown-text a', '#slidingbar-area .tribe-events-countdown-widget .tribe-countdown-text, #slidingbar-area .tribe-events-countdown-widget .tribe-countdown-text a', '.tribe-events-countdown-widget .tribe-countdown-text, .tribe-events-countdown-widget .tribe-countdown-text a:hover', '#slidingbar-area .tribe-events-countdown-widget .tribe-countdown-text, #slidingbar-area .tribe-events-countdown-widget .tribe-countdown-text a:hover');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('countdown_heading_text_color'));
    }
    // Non-responsive mode
    if (!Avada()->settings->get('responsive')) {
        if ('Top' == Avada()->settings->get('header_position')) {
            $elements = array('html', 'body');
            $css['global'][avada_implode($elements)]['overflow-x'] = 'hidden';
        } else {
            $css['global']['.ua-mobile #wrapper']['width'] = 'auto !important';
        }
        $media_query = '@media screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        $css[$media_query]['.fullwidth-box']['background-attachment'] = 'scroll !important';
        $css[$media_query]['.no-mobile-totop .to-top-container']['display'] = 'none';
        $css[$media_query]['.no-mobile-slidingbar #slidingbar-area']['display'] = 'none';
        $css[$media_query]['.fusion-main-menu > ul > li']['padding-right'] = intval(Avada()->settings->get('mobile_nav_padding')) . 'px';
        $media_query = '@media screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point') - 18) . 'px)';
        $elements = array('body.admin-bar #wrapper #slidingbar-area', '.admin-bar p.demo_store');
        $css[$media_query][avada_implode($elements)]['top'] = '46px';
        $css[$media_query]['body.body_blank.admin-bar']['top'] = '45px';
        $css[$media_query]['html #wpadminbar']['z-index'] = '99999 !important';
        $css[$media_query]['html #wpadminbar']['position'] = 'fixed !important';
    }
    // Responsive mode
    if (Avada()->settings->get('responsive')) {
        /* =================================================================================================
        		Media Queries
        		----------------------------------------------------------------------------------------------------
        			00 Side Width / Layout Responsive Styles
        				# General Styles
        				# Grid System
        			01 Side Header Responsive Styles
        			02 Top Header Responsive Styles
        			03 Mobile Menu Responsive Styles
        			04 @media only screen and ( max-width: $content_break_point )
        				# Layout
        				# General Styles
        				# Page Title Bar
        				# Blog Layouts
        				# Author Page - Info
        				# Shortcodes
        				# Events Calendar
        				# Woocommerce
        				# Not restructured mobile.css styles
        			05 @media only screen and ( min-width: $content_break_point )
        				# Shortcodes
        			06 @media only screen and ( max-width: 640px )
        				# Layout
        				# General Styles
        				# Page Title Bar
        				# Blog Layouts
        				# Footer Styles
        				# Filters
        				# Not restructured mobile.css styles
        			07 @media only screen and ( min-device-width: 320px ) and ( max-device-width: 640px )
        			08 @media only screen and ( max-width: 480px )
        			09 media.css CSS
        			10 iPad Landscape Responsive Styles
        				# Footer Styles
        			11 iPad Portrait Responsive Styles
        				# Layout
        				# Footer Styles
        		================================================================================================= */
        $side_header_width = 'Top' == Avada()->settings->get('header_position') ? 0 : intval(Avada()->settings->get('side_header_width'));
        /* Side Width / Layout Responsive Styles
        		================================================================================================= */
        if (!$site_width_percent) {
            // Site width without units (px)
            $site_width_media_query = '@media only screen and (max-width: ' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ')';
            // Side Header + Site Width
            $side_header_width_without_units = intval(Avada()->settings->get('side_header_width'));
            $side_header_fwc_breakpoint = Avada_Helper::merge_to_pixels(array(Avada_Sanitize::size(Avada()->settings->get('site_width')), intval(Avada()->settings->get('side_header_width')), '60px')) . 'px';
            $site_header_and_width_media_query = '@media only screen and (max-width: ' . $side_header_fwc_breakpoint . ')';
            if ($hundredplr_padding) {
                $elements = array('.width-100 .nonhundred-percent-fullwidth', '.width-100 .fusion-section-separator');
                $css[$site_width_media_query][avada_implode($elements)]['padding-left'] = $hundredplr_padding . '!important';
                $css[$site_width_media_query][avada_implode($elements)]['padding-right'] = $hundredplr_padding . '!important';
                $elements = array('.width-100 .fullwidth-box', '.width-100 .fusion-section-separator');
                $css[$site_width_media_query][avada_implode($elements)]['margin-left'] = $hundredplr_padding_negative_margin . '!important';
                $css[$site_width_media_query][avada_implode($elements)]['margin-right'] = $hundredplr_padding_negative_margin . '!important';
            }
            // For header left and right, we need to apply padding at:
            // Site width + side header width + 30px * 2 ( 30 extra for it not to jump so harshly )
            if (in_array(Avada()->settings->get('header_position'), array('Left', 'Right'))) {
                $elements = array('.width-100 .nonhundred-percent-fullwidth', '.width-100 .fusion-section-separator');
                $css[$site_header_and_width_media_query][avada_implode($elements)]['padding-left'] = $hundredplr_padding . '!important';
                $css[$site_header_and_width_media_query][avada_implode($elements)]['padding-right'] = $hundredplr_padding . '!important';
            }
        }
        // # Grid System
        $main_break_point = (int) Avada()->settings->get('grid_main_break_point');
        if (640 < $main_break_point) {
            $breakpoint_range = $main_break_point - 640;
        } else {
            $breakpoint_range = 360;
        }
        $breakpoint_interval = $breakpoint_range / 5;
        $six_columns_breakpoint = $main_break_point + $side_header_width;
        $five_columns_breakpoint = $six_columns_breakpoint - $breakpoint_interval;
        $four_columns_breakpoint = $five_columns_breakpoint - $breakpoint_interval;
        $three_columns_breakpoint = $four_columns_breakpoint - $breakpoint_interval;
        $two_columns_breakpoint = $three_columns_breakpoint - $breakpoint_interval;
        $one_column_breakpoint = $two_columns_breakpoint - $breakpoint_interval;
        $six_columns_media_query = '@media only screen and (min-width: ' . $five_columns_breakpoint . 'px) and (max-width: ' . $six_columns_breakpoint . 'px)';
        $five_columns_media_query = '@media only screen and (min-width: ' . $four_columns_breakpoint . 'px) and (max-width: ' . $five_columns_breakpoint . 'px)';
        $four_columns_media_query = '@media only screen and (min-width: ' . $three_columns_breakpoint . 'px) and (max-width: ' . $four_columns_breakpoint . 'px)';
        $three_columns_media_query = '@media only screen and (min-width: ' . $two_columns_breakpoint . 'px) and (max-width: ' . $three_columns_breakpoint . 'px)';
        $two_columns_media_query = '@media only screen and (max-width: ' . $two_columns_breakpoint . 'px)';
        $one_column_media_query = '@media only screen and (max-width: ' . $one_column_breakpoint . 'px)';
        $ipad_portrait_media_query = '@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)';
        // Six Column Breakpoint
        $elements = array('.grid-layout-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$six_columns_media_query][avada_implode($elements)]['width'] = '20% !important';
        $elements = array('.fusion-blog-layout-grid-5 .fusion-post-grid', '.fusion-portfolio-five .fusion-portfolio-post');
        $css[$six_columns_media_query][avada_implode($elements)]['width'] = '25% !important';
        // Five Column Breakpoint
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$five_columns_media_query][avada_implode($elements)]['width'] = '20% !important';
        $elements = array('.fusion-blog-layout-grid-5 .fusion-post-grid', '.fusion-portfolio-five .fusion-portfolio-post');
        $css[$five_columns_media_query][avada_implode($elements)]['width'] = '33.3333333333% !important';
        $elements = array('.fusion-blog-layout-grid-4 .fusion-post-grid', '.fusion-portfolio-four .fusion-portfolio-post');
        $css[$five_columns_media_query][avada_implode($elements)]['width'] = '33.3333333333% !important';
        // Four Column Breakpoint
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$four_columns_media_query][avada_implode($elements)]['width'] = '25% !important';
        $elements = array('.fusion-blog-layout-grid-5 .fusion-post-grid', '.fusion-blog-layout-grid-4 .fusion-post-grid', '.fusion-blog-layout-grid-3 .fusion-post-grid', '.fusion-portfolio-five .fusion-portfolio-post', '.fusion-portfolio-four .fusion-portfolio-post', '.fusion-portfolio-three .fusion-portfolio-post', '.fusion-portfolio-masonry .fusion-portfolio-post');
        $css[$four_columns_media_query][avada_implode($elements)]['width'] = '50% !important';
        // Three Column Breakpoint
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$three_columns_media_query][avada_implode($elements)]['width'] = '33.33% !important';
        $elements = array('.fusion-blog-layout-grid-5 .fusion-post-grid', '.fusion-blog-layout-grid-4 .fusion-post-grid', '.fusion-blog-layout-grid-3 .fusion-post-grid', '.fusion-portfolio-five .fusion-portfolio-post', '.fusion-portfolio-four .fusion-portfolio-post', '.fusion-portfolio-three .fusion-portfolio-post', '.fusion-portfolio-masonry .fusion-portfolio-post');
        $css[$three_columns_media_query][avada_implode($elements)]['width'] = '50% !important';
        // Two Column Breakpoint
        $elements = array('.fusion-blog-layout-grid .fusion-post-grid', '.fusion-portfolio-post');
        $css[$two_columns_media_query][avada_implode($elements)]['width'] = '100% !important';
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$two_columns_media_query][avada_implode($elements)]['width'] = '50% !important';
        // One Column Breakpoint
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$one_column_media_query][avada_implode($elements)]['width'] = '100% !important';
        // iPad Portrait Column Breakpoint
        $elements = array('.fusion-blog-layout-grid-6 .fusion-post-grid', '.fusion-portfolio-six .fusion-portfolio-post');
        $css[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '33.3333333333% !important';
        $elements = array('.fusion-blog-layout-grid-5 .fusion-post-grid', '.fusion-blog-layout-grid-4 .fusion-post-grid', '.fusion-blog-layout-grid-3 .fusion-post-grid', '.fusion-portfolio-five .fusion-portfolio-post', '.fusion-portfolio-four .fusion-portfolio-post', '.fusion-portfolio-three .fusion-portfolio-post', '.fusion-portfolio-masonry .fusion-portfolio-post');
        $css[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '50% !important';
        /* Side Header Only Responsive Styles
        		================================================================================================= */
        $side_header_media_query = '@media only screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        $side_header_min_media_query = '@media only screen and (min-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        if ('Boxed' == Avada()->settings->get('layout')) {
            $css[$side_header_media_query]['body.side-header #wrapper']['margin-left'] = 'auto !important';
            $css[$side_header_media_query]['body.side-header #wrapper']['margin-right'] = 'auto !important';
        } else {
            $css[$side_header_media_query]['body.side-header #wrapper']['margin-left'] = '0 !important';
            $css[$side_header_media_query]['body.side-header #wrapper']['margin-right'] = '0 !important';
        }
        $elements = array('#side-header', '.side-header-background');
        $css[$side_header_media_query][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_header_bg_color'));
        $css[$side_header_media_query]['.layout-boxed-mode .side-header-wrapper']['background-color'] = 'transparent';
        $css[$side_header_media_query]['#side-header']['transition'] = 'background-color 0.25s ease-in-out';
        $css[$side_header_media_query]['#side-header.fusion-is-sticky']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('header_sticky_bg_color'));
        $css[$side_header_media_query]['#side-header']['position'] = 'static';
        $css[$side_header_media_query]['#side-header']['height'] = 'auto';
        $css[$side_header_media_query]['#side-header']['width'] = '100% !important';
        $css[$side_header_media_query]['#side-header']['padding'] = '20px 30px !important';
        $css[$side_header_media_query]['#side-header']['margin'] = '0 !important';
        $css[$side_header_media_query]['#side-header .side-header-background']['display'] = 'none';
        $css[$side_header_media_query]['#side-header .side-header-border']['display'] = 'none';
        $css[$side_header_media_query]['#side-header .side-header-wrapper']['padding-bottom'] = '0';
        $css[$side_header_media_query]['#side-header .side-header-wrapper']['position'] = 'relative';
        if (is_rtl()) {
            $css[$side_header_media_query]['body.rtl #side-header']['position'] = 'static !important';
        }
        $elements = array('#side-header .header-social', '#side-header .header-v4-content');
        $css[$side_header_media_query][avada_implode($elements)]['display'] = 'none';
        $css[$side_header_media_query]['#side-header .fusion-logo']['margin'] = '0 !important';
        $css[$side_header_media_query]['#side-header .fusion-logo']['float'] = 'left';
        $css[$side_header_media_query]['#side-header .side-header-content']['padding'] = '0 !important';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-classic .fusion-logo']['float'] = 'none';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-classic .fusion-logo']['text-align'] = 'center';
        $elements = array('body.side-header #wrapper #side-header.header-shadow .side-header-border:before', 'body #wrapper .header-shadow:after');
        $css[$side_header_media_query][avada_implode($elements)]['position'] = 'static';
        $css[$side_header_media_query][avada_implode($elements)]['height'] = 'auto';
        $css[$side_header_media_query][avada_implode($elements)]['box-shadow'] = 'none';
        $elements = array('#side-header .fusion-main-menu', '#side-header .side-header-content-1-2', '#side-header .side-header-content-3');
        $css[$side_header_media_query][avada_implode($elements)]['display'] = 'none';
        $css[$side_header_media_query]['#side-header .fusion-logo']['margin'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-classic .fusion-main-menu-container .fusion-mobile-nav-holder']['display'] = 'block';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-classic .fusion-main-menu-container .fusion-mobile-nav-holder']['margin-top'] = '20px';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-classic .fusion-main-menu-container .fusion-mobile-sticky-nav-holder']['display'] = 'none';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo']['float'] = 'left';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo']['margin'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-left']['float'] = 'left';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-right']['float'] = 'right';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-center']['float'] = 'left';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-mobile-menu-icons']['display'] = 'block';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-right .fusion-mobile-menu-icons']['float'] = 'left';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-right .fusion-mobile-menu-icons']['position'] = 'static';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-right .fusion-mobile-menu-icons a']['float'] = 'left';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-right .fusion-mobile-menu-icons :first-child']['margin-left'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-left .fusion-mobile-menu-icons']['float'] = 'right';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-logo-menu-left .fusion-mobile-menu-icons a:last-child']['margin-left'] = '0';
        $elements = array('#side-header.fusion-mobile-menu-design-modern .fusion-main-menu-container .fusion-mobile-nav-holder', '#side-header.fusion-mobile-menu-design-modern .side-header-wrapper > .fusion-secondary-menu-search');
        $css[$side_header_media_query][avada_implode($elements)]['padding-top'] = '20px';
        $css[$side_header_media_query][avada_implode($elements)]['margin-left'] = '-30px';
        $css[$side_header_media_query][avada_implode($elements)]['margin-right'] = '-30px';
        $css[$side_header_media_query][avada_implode($elements)]['margin-bottom'] = '-20px';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-main-menu-container .fusion-mobile-nav-holder > ul']['display'] = 'block';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-main-menu-container .fusion-mobile-nav-holder > ul']['border-right'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-main-menu-container .fusion-mobile-nav-holder > ul']['border-left'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-mobile-menu-design-modern .fusion-main-menu-container .fusion-mobile-nav-holder > ul']['border-bottom'] = '0';
        $css[$side_header_media_query]['#side-header.fusion-is-sticky.fusion-sticky-menu-1 .fusion-mobile-nav-holder']['display'] = 'none';
        $css[$side_header_media_query]['#side-header.fusion-is-sticky.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder']['display'] = 'none';
        if (('Boxed' == Avada()->settings->get('layout') && 'wide' != get_post_meta($c_pageID, 'pyre_page_bg_layout', true) || 'boxed' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) && 'Top' != Avada()->settings->get('header_position')) {
            if ('Right' == Avada()->settings->get('header_position')) {
                $css[$side_header_min_media_query]['body.side-header-right #side-header']['position'] = 'absolute';
                $css[$side_header_min_media_query]['body.side-header-right #side-header']['top'] = '0';
                //$css[ $side_header_min_media_query ]['body.side-header-right #side-header .side-header-wrapper']['position'] = 'fixed';
                $css[$side_header_min_media_query]['body.side-header-right #side-header .side-header-wrapper']['width'] = intval(Avada()->settings->get('side_header_width')) . 'px';
            }
        }
        /* Top Header Only Responsive Styles
        		================================================================================================= */
        $mobile_header_media_query = '@media only screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        $mobile_header_min_media_query = '@media only screen and (min-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-header']['padding'] = '0px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-header .fusion-row']['padding-left'] = '0px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-header .fusion-row']['padding-right'] = '0px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header']['max-width'] = '100%';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header']['text-align'] = 'center';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header']['margin-top'] = '10px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header']['margin-bottom'] = '8px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header a']['margin-right'] = '20px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-social-links-header a']['margin-bottom'] = '5px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-alignleft']['border-bottom'] = '1px solid transparent';
        $elements = array('.fusion-mobile-menu-design-modern .fusion-alignleft', '.fusion-mobile-menu-design-modern .fusion-alignright');
        $css[$mobile_header_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$mobile_header_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$mobile_header_media_query][avada_implode($elements)]['display'] = 'block';
        $elements = array('.fusion-body .fusion-mobile-menu-design-modern .fusion-secondary-header .fusion-alignleft', '.fusion-body .fusion-mobile-menu-design-modern .fusion-secondary-header .fusion-alignright');
        $css[$mobile_header_media_query][avada_implode($elements)]['text-align'] = 'center';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu > ul > li']['display'] = 'inline-block';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu > ul > li']['vertical-align'] = 'middle';
        $css[$mobile_header_media_query]['.fusion-body .fusion-mobile-menu-design-modern .fusion-secondary-menu > ul > li']['float'] = 'none';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu > ul > li']['text-align'] = 'left';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-cart']['border-right'] = '0';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon']['background-color'] = 'transparent';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon']['padding-left'] = '10px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon']['padding-right'] = '7px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon']['min-width'] = '100%';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon:after']['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-modern .fusion-secondary-menu .fusion-secondary-menu-icon', '.fusion-mobile-menu-design-modern .fusion-secondary-menu .fusion-secondary-menu-icon:hover', '.fusion-mobile-menu-design-modern .fusion-secondary-menu-icon:before');
        $css[$mobile_header_media_query][avada_implode($elements)]['color'] = Avada_Sanitize::color(Avada()->settings->get('snav_color'));
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-header-tagline']['margin-top'] = '10px';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-header-tagline']['float'] = 'none';
        $css[$mobile_header_media_query]['.fusion-mobile-menu-design-modern .fusion-header-tagline']['line-height'] = '24px';
        if ((1 > Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_bg_color')) && !get_post_meta($c_pageID, 'pyre_header_bg_opacity', true) || '' != get_post_meta($c_pageID, 'pyre_header_bg_opacity', true) && 1 > get_post_meta($c_pageID, 'pyre_header_bg_opacity', true)) && !is_search() && !is_404() && !is_author() && (!is_archive() || class_exists('WooCommerce') && is_shop())) {
            $elements = array('.fusion-header', '.fusion-secondary-header');
            $css[$mobile_header_min_media_query][avada_implode($elements)]['border-top'] = 'none';
            $elements = array('.fusion-header-v1 .fusion-header', '.fusion-secondary-main-menu');
            $css[$mobile_header_min_media_query][avada_implode($elements)]['border'] = 'none';
            if ('boxed' == fusion_get_option('layout', 'page_bg_layout', $c_pageID)) {
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['position'] = 'absolute';
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['z-index'] = '10000';
                if ($site_width_percent) {
                    $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['width'] = Avada_Sanitize::size(Avada()->settings->get('site_width'));
                } else {
                    $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['width'] = '100%';
                    $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['max-width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + 60px)';
                }
            } else {
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['position'] = 'absolute';
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['left'] = '0';
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['right'] = '0';
                $css[$mobile_header_min_media_query]['.fusion-header-wrapper']['z-index'] = '10000';
            }
        }
        /* Mobile Menu Responsive Styles
        		================================================================================================= */
        $mobile_menu_media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + intval(Avada()->settings->get('side_header_break_point'))) . 'px)';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-header']['padding-left'] = '0 !important';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-secondary-header']['padding-right'] = '0 !important';
        $css[$mobile_menu_media_query]['.fusion-header .fusion-row']['padding-left'] = '0';
        $css[$mobile_menu_media_query]['.fusion-header .fusion-row']['padding-right'] = '0';
        $elements = array('.fusion-header-wrapper .fusion-header', '.fusion-header-wrapper .fusion-secondary-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada()->settings->get('mobile_header_bg_color'));
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-row']['padding-left'] = '0';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-row']['padding-right'] = '0';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-row']['max-width'] = '100%';
        $elements = array('.fusion-footer-widget-area > .fusion-row', '.fusion-footer-copyright-area > .fusion-row');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-left'] = '0';
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-right'] = '0';
        $css[$mobile_menu_media_query]['.fusion-secondary-header .fusion-row']['display'] = 'block';
        $css[$mobile_menu_media_query]['.fusion-secondary-header .fusion-alignleft']['margin-right'] = '0';
        $css[$mobile_menu_media_query]['.fusion-secondary-header .fusion-alignright']['margin-left'] = '0';
        $css[$mobile_menu_media_query]['body.fusion-body .fusion-secondary-header .fusion-alignright > *']['float'] = 'none';
        $css[$mobile_menu_media_query]['body.fusion-body .fusion-secondary-header .fusion-alignright .fusion-social-links-header .boxed-icons']['margin-bottom'] = '5px';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-header', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-header', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-header');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '20px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-bottom'] = '20px';
        $css[$mobile_menu_media_query]['.fusion-header-v4 .fusion-logo']['display'] = 'block';
        $css[$mobile_menu_media_query]['.fusion-header-v4.fusion-mobile-menu-design-modern .fusion-logo .fusion-logo-link']['max-width'] = '75%';
        $css[$mobile_menu_media_query]['.fusion-header-v4.fusion-mobile-menu-design-modern .fusion-mobile-menu-icons']['position'] = 'absolute';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-logo', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-logo', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-logo', '.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-logo a', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-logo a', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-logo a');
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$mobile_menu_media_query][avada_implode($elements)]['text-align'] = 'center';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin'] = '0 !important';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-main-menu', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-main-menu', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-mobile-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-top'] = '20px';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic .fusion-secondary-header']['padding'] = '10px';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic .fusion-secondary-header .fusion-mobile-nav-holder']['margin-top'] = '0';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-header', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-header');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '20px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-bottom'] = '20px';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-secondary-main-menu', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-secondary-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '6px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-bottom'] = '6px';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-main-menu', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-mobile-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-logo', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-logo', '.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-logo a', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-logo a');
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$mobile_menu_media_query][avada_implode($elements)]['text-align'] = 'center';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin'] = '0 !important';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .searchform', '.fusion-mobile-menu-design-classic.fusion-header-v5 .searchform');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$mobile_menu_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin'] = '0';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-top'] = '13px';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v4 .search-table', '.fusion-mobile-menu-design-classic.fusion-header-v5 .search-table');
        $css[$mobile_menu_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-logo a']['float'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-header-banner']['margin-top'] = '10px';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-secondary-main-menu .searchform']['display'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic .fusion-alignleft']['margin-bottom'] = '10px';
        $elements = array('.fusion-mobile-menu-design-classic .fusion-alignleft', '.fusion-mobile-menu-design-classic .fusion-alignright');
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$mobile_menu_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$mobile_menu_media_query][avada_implode($elements)]['line-height'] = 'normal';
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-contact-info']['text-align'] = 'center';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-contact-info']['line-height'] = 'normal';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-secondary-menu']['display'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-social-links-header']['max-width'] = '100%';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-social-links-header']['margin-top'] = '5px';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-social-links-header']['text-align'] = 'center';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-social-links-header a']['margin-bottom'] = '5px';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['float'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['text-align'] = 'center';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['margin-top'] = '10px';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['line-height'] = '24px';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['margin-left'] = 'auto';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-tagline']['margin-right'] = 'auto';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['float'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['text-align'] = 'center';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['margin'] = '0 auto';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['width'] = '100%';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['margin-top'] = '20px';
        $css[$mobile_menu_media_query]['.fusion-header-wrapper .fusion-mobile-menu-design-classic .fusion-header-banner']['clear'] = 'both';
        $elements = array('.fusion-mobile-menu-design-modern .ubermenu-responsive-toggle', '.fusion-mobile-menu-design-modern .ubermenu-sticky-toggle-wrapper');
        $css[$mobile_menu_media_query][avada_implode($elements)]['clear'] = 'both';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-main-menu', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-main-menu', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-main-menu', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-main-menu', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-header', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-header', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-header', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-header', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-header');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '20px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-bottom'] = '20px';
        $elements = avada_map_selector($elements, ' .fusion-row');
        $css[$mobile_menu_media_query][avada_implode($elements)]['width'] = '100%';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-logo');
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin'] = '0 !important';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .modern-mobile-menu-expanded .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v2 .modern-mobile-menu-expanded .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v3 .modern-mobile-menu-expanded .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v4 .modern-mobile-menu-expanded .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-header-v5 .modern-mobile-menu-expanded .fusion-logo');
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-bottom'] = '20px !important';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-mobile-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '20px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '-30px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '-30px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-bottom'] = 'calc(-20px - ' . Avada_Sanitize::get_value_with_unit(Avada()->settings->get('header_padding', 'bottom')) . ')';
        $elements = avada_map_selector($elements, ' > ul');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-mobile-sticky-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-mobile-menu-icons', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-mobile-menu-icons', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-mobile-menu-icons', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-mobile-menu-icons', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-mobile-menu-icons');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-logo a']['float'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-logo .searchform']['float'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-logo .searchform']['display'] = 'none';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-header-banner']['margin-top'] = '10px';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-logo']['float'] = 'left';
        if (is_rtl()) {
            $css[$mobile_menu_media_query]['.rtl .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-logo']['float'] = 'right';
            $css[$mobile_menu_media_query]['.rtl .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-mobile-menu-icons']['float'] = 'left';
            $css[$mobile_menu_media_query]['.rtl .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-mobile-menu-icons a']['float'] = 'left';
            $css[$mobile_menu_media_query]['.rtl .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-mobile-menu-icons a']['margin-left'] = '0';
            $css[$mobile_menu_media_query]['.rtl .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-logo-center .fusion-mobile-menu-icons a']['margin-right'] = '15px';
        }
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-mobile-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-mobile-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['padding-top'] = '0';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '-30px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '-30px';
        $css[$mobile_menu_media_query][avada_implode($elements)]['margin-bottom'] = '0';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-secondary-main-menu', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-secondary-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['position'] = 'static';
        $css[$mobile_menu_media_query][avada_implode($elements)]['border'] = '0';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-secondary-main-menu .fusion-mobile-nav-holder > ul', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-secondary-main-menu .fusion-mobile-nav-holder > ul');
        $css[$mobile_menu_media_query][avada_implode($elements)]['border'] = '0';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-secondary-main-menu .searchform', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-secondary-main-menu .searchform');
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'none';
        $elements = array('.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-sticky-header-wrapper', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-sticky-header-wrapper');
        $css[$mobile_menu_media_query][avada_implode($elements)]['position'] = 'fixed';
        $css[$mobile_menu_media_query][avada_implode($elements)]['width'] = '100%';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-logo-right.fusion-header-v4 .fusion-logo', '.fusion-mobile-menu-design-modern.fusion-logo-right.fusion-header-v5 .fusion-logo');
        $css[$mobile_menu_media_query][avada_implode($elements)]['float'] = 'right';
        $elements = array('.fusion-mobile-menu-design-modern.fusion-sticky-menu-only.fusion-header-v4 .fusion-secondary-main-menu', '.fusion-mobile-menu-design-modern.fusion-sticky-menu-only.fusion-header-v5 .fusion-secondary-main-menu');
        $css[$mobile_menu_media_query][avada_implode($elements)]['position'] = 'static';
        $elements = array('.fusion-mobile-menu-design-classic.fusion-header-v1 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v2 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v3 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v4 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-classic.fusion-header-v5 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-mobile-sticky-nav-holder', '.fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-mobile-sticky-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v1.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v2.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v3.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v4.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v5.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v1.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v2.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v3.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v4.fusion-sticky-menu-1 .fusion-mobile-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-modern.fusion-header-v5.fusion-sticky-menu-1 .fusion-mobile-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-item', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-item', '.fusion-mobile-menu-design-classic .fusion-mobile-selector', '.fusion-mobile-menu-design-modern .fusion-mobile-selector');
        if (in_array(Avada()->settings->get('mobile_menu_text_align'), array('left', 'right', 'center'))) {
            $css[$mobile_menu_media_query][avada_implode($elements)]['text-align'] = esc_attr(Avada()->settings->get('mobile_menu_text_align'));
        }
        if ('right' == Avada()->settings->get('mobile_menu_text_align')) {
            $elements = array('.fusion-mobile-menu-design-classic .fusion-selector-down', '.fusion-mobile-menu-design-modern .fusion-selector-down');
            $css[$mobile_menu_media_query][avada_implode($elements)]['left'] = '7px';
            $css[$mobile_menu_media_query][avada_implode($elements)]['right'] = '0px';
            $css[$mobile_menu_media_query][avada_implode($elements)]['border-left'] = '0px';
            $css[$mobile_menu_media_query][avada_implode($elements)]['border-right-width'] = '1px';
            $css[$mobile_menu_media_query][avada_implode($elements)]['border-right-style'] = 'solid';
            $elements = avada_map_selector($elements, ':before');
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '0';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '12px';
            $elements = array('.fusion-mobile-menu-design-classic .fusion-open-submenu', '.fusion-mobile-menu-design-modern .fusion-open-submenu');
            $css[$mobile_menu_media_query][avada_implode($elements)]['right'] = 'auto';
            $css[$mobile_menu_media_query][avada_implode($elements)]['left'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item .fusion-open-submenu']['padding-left'] = '30px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item .fusion-open-submenu']['padding-right'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item a']['padding-left'] = '30px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item a']['padding-right'] = '30px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li a']['padding-left'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li a']['padding-right'] = '39px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li a']['padding-left'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li a']['padding-right'] = '48px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li a']['padding-left'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li a']['padding-right'] = '57px';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li li a']['padding-left'] = '0';
            $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder .fusion-mobile-nav-item li li li li a']['padding-right'] = '66px';
        }
        if ('right' == Avada()->settings->get('mobile_menu_text_align') && !is_rtl() || 'right' != Avada()->settings->get('mobile_menu_text_align') && is_rtl()) {
            $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder li.fusion-mobile-nav-item a:before', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li.fusion-mobile-nav-item a:before');
            $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
            $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder li.fusion-mobile-nav-item li a', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li.fusion-mobile-nav-item li a');
            $css[$mobile_menu_media_query][avada_implode($elements)]['padding-right'] = '39px';
            $elements = avada_map_selector($elements, ':after');
            $css[$mobile_menu_media_query][avada_implode($elements)]['content'] = '"-"';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '0';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '2px';
            $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li a', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li a');
            $css[$mobile_menu_media_query][avada_implode($elements)]['padding-right'] = '48px';
            $elements = avada_map_selector($elements, ':after');
            $css[$mobile_menu_media_query][avada_implode($elements)]['content'] = '"--"';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '0';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '2px';
            $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li li a', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li li a');
            $css[$mobile_menu_media_query][avada_implode($elements)]['padding-right'] = '57px';
            $elements = avada_map_selector($elements, ':after');
            $css[$mobile_menu_media_query][avada_implode($elements)]['content'] = '"---"';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '0';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '2px';
            $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li li li a', '.fusion-mobile-menu-design-modern .fusion-mobile-nav-holder li.fusion-mobile-nav-item li li li li a');
            $css[$mobile_menu_media_query][avada_implode($elements)]['padding-right'] = '66px';
            $elements = avada_map_selector($elements, ':after');
            $css[$mobile_menu_media_query][avada_implode($elements)]['content'] = '"----"';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-right'] = '0';
            $css[$mobile_menu_media_query][avada_implode($elements)]['margin-left'] = '2px';
        }
        $elements = array('.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v1.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v2.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v3.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v4.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder', '.fusion-is-sticky .fusion-mobile-menu-design-classic.fusion-header-v5.fusion-sticky-menu-1 .fusion-mobile-sticky-nav-holder');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$mobile_menu_media_query]['.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder .fusion-secondary-menu-icon']['text-align'] = 'inherit';
        $elements = array('.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder .fusion-secondary-menu-icon:before', '.fusion-mobile-menu-design-classic .fusion-mobile-nav-holder .fusion-secondary-menu-icon:after');
        $css[$mobile_menu_media_query][avada_implode($elements)]['display'] = 'none';
        /* @media only screen and ( max-width: $content_break_point )
        		================================================================================================= */
        $content_break_point_media_query = '@media only screen and (max-width: ' . intval(Avada()->settings->get('content_break_point')) . 'px)';
        $content_media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + intval(Avada()->settings->get('content_break_point'))) . 'px)';
        $content_min_media_query = '@media only screen and (min-width: ' . (intval($side_header_width) + intval(Avada()->settings->get('content_break_point'))) . 'px)';
        // # Layout
        if (Avada()->settings->get('smooth_scrolling')) {
            if (Avada()->settings->get('responsive')) {
                $css[$content_min_media_query]['.no-overflow-y body']['padding-right'] = '9px';
                $css[$content_min_media_query]['.no-overflow-y #slidingbar-area']['right'] = '9px';
            }
        }
        if (!Avada()->settings->get('breadcrumb_mobile')) {
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar .fusion-breadcrumbs']['display'] = 'none';
        }
        $css[$content_media_query]['.no-overflow-y']['overflow-y'] = 'visible !important';
        // #content, .sidebar widths
        $css[$content_media_query]['#content']['width'] = '100% !important';
        $css[$content_media_query]['#content']['margin-left'] = '0px !important';
        $css[$content_media_query]['.sidebar']['width'] = '100% !important';
        $css[$content_media_query]['.sidebar']['float'] = 'none !important';
        $css[$content_media_query]['.sidebar']['margin-left'] = '0 !important';
        $css[$content_media_query]['.sidebar']['clear'] = 'both';
        $css[$content_media_query]['.fusion-layout-column']['margin-left'] = '0';
        $css[$content_media_query]['.fusion-layout-column']['margin-right'] = '0';
        $elements = array('.fusion-layout-column:nth-child(5n)', '.fusion-layout-column:nth-child(4n)', '.fusion-layout-column:nth-child(3n)', '.fusion-layout-column:nth-child(2n)');
        $css[$content_media_query][avada_implode($elements)]['margin-left'] = '0';
        $css[$content_media_query][avada_implode($elements)]['margin-right'] = '0';
        $css[$content_media_query]['.fusion-layout-column.fusion-spacing-no']['margin-bottom'] = '0';
        $css[$content_media_query]['.fusion-body .fusion-layout-column.fusion-spacing-no']['width'] = '100%';
        $css[$content_media_query]['.fusion-body .fusion-layout-column.fusion-spacing-yes']['width'] = '100%';
        $elements = array('.fusion-columns-5 .fusion-column:first-child', '.fusion-columns-4 .fusion-column:first-child', '.fusion-columns-3 .fusion-column:first-child', '.fusion-columns-2 .fusion-column:first-child', '.fusion-columns-1 .fusion-column:first-child');
        $css[$content_media_query][avada_implode($elements)]['margin-left'] = '0';
        $css[$content_media_query]['.fusion-columns .fusion-column']['width'] = '100% !important';
        $css[$content_media_query]['.fusion-columns .fusion-column']['float'] = 'none';
        $css[$content_media_query]['.fusion-columns .fusion-column:not(.fusion-column-last)']['margin'] = '0 0 50px';
        $css[$content_media_query]['.fusion-columns .fusion-column']['box-sizing'] = 'border-box';
        if (is_rtl()) {
            $css[$content_media_query]['.rtl .fusion-column']['float'] = 'none';
        }
        $elements = array('.col-sm-12', '.col-sm-6', '.col-sm-4', '.col-sm-3', '.col-sm-2', '.fusion-columns-5 .col-lg-2', '.fusion-columns-5 .col-md-2', '.fusion-columns-5 .col-sm-2', '.avada-container .columns .col', '.footer-area .fusion-columns .fusion-column', '#slidingbar-area .columns .col');
        $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
        if (get_post_meta($c_pageID, 'pyre_fallback', true)) {
            $css[$content_media_query]['#sliders-container']['display'] = 'none';
            $css[$content_media_query]['#fallback-slide']['display'] = 'block';
        }
        // # General Styles
        $css[$content_media_query]['.fusion-filters']['border-bottom'] = '0';
        $css[$content_media_query]['.fusion-body .fusion-filter']['float'] = 'none';
        $css[$content_media_query]['.fusion-body .fusion-filter']['margin'] = '0';
        $css[$content_media_query]['.fusion-body .fusion-filter']['border-bottom'] = '1px solid #E7E6E6';
        // Mobile Logo
        if (Avada()->settings->get('mobile_logo', 'url')) {
            $elements = array('.fusion-mobile-logo-1 .fusion-standard-logo', '#side-header .fusion-mobile-logo-1 .fusion-standard-logo');
            $css[$mobile_header_media_query][avada_implode($elements)]['display'] = 'none';
            $elements = array('.fusion-mobile-logo-1 .fusion-mobile-logo-1x', '#side-header .fusion-mobile-logo-1 .fusion-mobile-logo-1x');
            $css[$mobile_header_media_query][avada_implode($elements)]['display'] = 'inline-block';
        }
        $css[$content_media_query]['.fusion-secondary-menu-icon']['min-width'] = '100%';
        // # Page Title Bar
        if ('auto' != Avada()->settings->get('page_title_mobile_height')) {
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-top'] = '5px';
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-bottom'] = '5px';
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['min-height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('page_title_mobile_height')) . ' - 10px)';
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['height'] = 'auto';
        } else {
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-top'] = '10px';
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-bottom'] = '10px';
            $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['height'] = 'auto';
            $css[$content_media_query]['.fusion-page-title-row']['height'] = 'auto';
        }
        $elements = array('.fusion-page-title-bar-left .fusion-page-title-captions', '.fusion-page-title-bar-right .fusion-page-title-captions', '.fusion-page-title-bar-left .fusion-page-title-secondary', '.fusion-page-title-bar-right .fusion-page-title-secondary');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$content_media_query][avada_implode($elements)]['line-height'] = 'normal';
        $css[$content_media_query]['.fusion-page-title-bar-left .fusion-page-title-secondary']['text-align'] = 'left';
        $css[$content_media_query]['.fusion-page-title-bar-left .searchform']['display'] = 'block';
        $css[$content_media_query]['.fusion-page-title-bar-left .searchform']['max-width'] = '100%';
        $css[$content_media_query]['.fusion-page-title-bar-right .fusion-page-title-secondary']['text-align'] = 'right';
        $css[$content_media_query]['.fusion-page-title-bar-right .searchform']['max-width'] = '100%';
        if ('auto' != Avada()->settings->get('page_title_mobile_height')) {
            $css[$content_media_query]['.fusion-page-title-row']['display'] = 'table';
            $css[$content_media_query]['.fusion-page-title-row']['width'] = '100%';
            $css[$content_media_query]['.fusion-page-title-row']['min-height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('page_title_mobile_height')) . ' - 20px)';
            $css[$content_media_query]['.fusion-page-title-bar-center .fusion-page-title-row']['width'] = 'auto';
            $css[$content_media_query]['.fusion-page-title-wrapper']['display'] = 'table-cell';
            $css[$content_media_query]['.fusion-page-title-wrapper']['vertical-align'] = 'middle';
        }
        $css[$content_media_query]['.fusion-contact-info']['padding'] = '1em 30px';
        $css[$content_media_query]['.fusion-contact-info']['line-height'] = '1.5em';
        if (get_post_meta($c_pageID, 'pyre_page_title_mobile_height', true)) {
            if ('auto' != get_post_meta($c_pageID, 'pyre_page_title_mobile_height', true)) {
                $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['height'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_page_title_mobile_height', true));
                $css[$content_media_query]['.fusion-page-title-row']['display'] = 'table';
                $css[$content_media_query]['.fusion-page-title-wrapper']['display'] = 'table-cell';
                $css[$content_media_query]['.fusion-page-title-wrapper']['vertical-align'] = 'middle';
            } else {
                $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-top'] = '10px';
                $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['padding-bottom'] = '10px';
                $css[$content_media_query]['.fusion-body .fusion-page-title-bar']['height'] = 'auto';
            }
        }
        // # Blog Layouts
        // Blog medium alternate layout
        $elements = array('.fusion-body .fusion-blog-layout-medium-alternate .fusion-post-content', '.fusion-body .fusion-blog-layout-medium-alternate .has-post-thumbnail .fusion-post-content');
        $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$content_media_query][avada_implode($elements)]['clear'] = 'both';
        $css[$content_media_query][avada_implode($elements)]['margin'] = '0';
        $css[$content_media_query][avada_implode($elements)]['padding-top'] = '20px';
        // # Author Page - Info
        $css[$content_media_query]['.fusion-author .fusion-social-networks']['display'] = 'block';
        $css[$content_media_query]['.fusion-body .fusion-author .fusion-social-networks']['text-align'] = 'center';
        $css[$content_media_query]['.fusion-author .fusion-social-networks']['margin-top'] = '10px';
        $css[$content_media_query]['.fusion-author-tagline']['display'] = 'block';
        $css[$content_media_query]['.fusion-author-tagline']['float'] = 'none';
        $css[$content_media_query]['.fusion-author-tagline']['text-align'] = 'center';
        $css[$content_media_query]['.fusion-author-tagline']['max-width'] = '100%';
        // # Shortcodes
        $elements = array('.fusion-content-boxes.content-boxes-clean-vertical .content-box-column', '.fusion-content-boxes.content-boxes-clean-horizontal .content-box-column');
        $css[$content_media_query][avada_implode($elements)]['border-right-width'] = '1px';
        $elements = array('.fusion-content-boxes .content-box-shortcode-timeline');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-countdown', '.fusion-countdown .fusion-countdown-heading-wrapper', '.fusion-countdown .fusion-countdown-counter-wrapper', '.fusion-countdown .fusion-countdown-link-wrapper');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$content_media_query]['.fusion-countdown .fusion-countdown-heading-wrapper']['text-align'] = 'center';
        $css[$content_media_query]['.fusion-countdown .fusion-countdown-counter-wrapper']['margin-top'] = '20px';
        $css[$content_media_query]['.fusion-countdown .fusion-countdown-counter-wrapper']['margin-bottom'] = '10px';
        $css[$content_media_query]['.fusion-countdown .fusion-dash-title']['display'] = 'block';
        $css[$content_media_query]['.fusion-body .fusion-countdown .fusion-dash-title']['padding'] = '0';
        $css[$content_media_query]['.fusion-countdown .fusion-dash-title']['font-size'] = '16px';
        $css[$content_media_query]['.fusion-countdown .fusion-countdown-link-wrapper']['text-align'] = 'center';
        // Tagline Box
        $css[$content_media_query]['.fusion-reading-box-container .reading-box.reading-box-center']['text-align'] = 'left';
        $css[$content_media_query]['.fusion-reading-box-container .reading-box.reading-box-right']['text-align'] = 'left';
        $css[$content_media_query]['.fusion-reading-box-container .fusion-desktop-button']['display'] = 'none';
        $css[$content_media_query]['.fusion-reading-box-container .fusion-mobile-button']['display'] = 'block';
        $css[$content_media_query]['.fusion-reading-box-container .fusion-mobile-button.continue-center']['display'] = 'block';
        // # Events Calendar
        if (class_exists('Tribe__Events__Main')) {
            $css[$content_media_query]['.tribe-events-single ul.tribe-related-events li']['margin-right'] = '0';
            $css[$content_media_query]['.tribe-events-single ul.tribe-related-events li']['width'] = '100%';
            $css[$content_break_point_media_query]['.tribe-bar-collapse #tribe-bar-collapse-toggle']['width'] = '59%';
        }
        $retina_media_query = '@media only screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px) and (-webkit-min-device-pixel-ratio: 1.5), only screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px) and (min-resolution: 144dpi), only screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px) and (min-resolution: 1.5dppx)';
        $elements = array('.fusion-mobile-logo-1 .fusion-mobile-logo-1x', '#side-header .fusion-mobile-logo-1 .fusion-mobile-logo-1x');
        $css[$retina_media_query][avada_implode($elements)]['display'] = 'none';
        $elements = array('.fusion-mobile-logo-1 .fusion-mobile-logo-2x', '#side-header .fusion-mobile-logo-1 .fusion-mobile-logo-2x');
        $css[$retina_media_query][avada_implode($elements)]['display'] = 'inline-block';
        // # WooCommerce
        if (class_exists('WooCommerce')) {
            if ('horizontal' == Avada()->settings->get('woocommerce_product_tab_design')) {
                $elements = array('#wrapper .woocommerce-tabs .tabs', '#wrapper .woocommerce-tabs .panel');
                $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
                $css[$content_media_query][avada_implode($elements)]['margin-left'] = 'auto';
                $css[$content_media_query][avada_implode($elements)]['margin-right'] = 'auto';
                $css[$content_media_query][avada_implode($elements)]['width'] = '100% !important';
                $elements = array('.woocommerce-tabs .tabs', '.woocommerce-side-nav');
                $css[$content_media_query][avada_implode($elements)]['margin-bottom'] = '25px';
                $css[$content_media_query]['.woocommerce-tabs > .tabs']['border'] = 'none';
                $css[$content_media_query]['.woocommerce-tabs > .wc-tab']['border-top'] = '1px solid';
                $css[$content_media_query]['.woocommerce-tabs > .tabs .active']['border-top'] = 'none';
                $css[$content_media_query]['.woocommerce-tabs > .tabs .active']['border-left'] = 'none';
                $css[$content_media_query]['.woocommerce-tabs > .tabs .active']['border-right'] = 'none';
                $css[$content_media_query]['.woocommerce-tabs > .tabs .active a']['background-color'] = 'transparent';
                $css[$content_media_query]['.woocommerce-tabs > .tabs li']['float'] = 'none';
                $css[$content_media_query]['.woocommerce-tabs > .tabs li']['border-bottom'] = '1px solid';
                $css[$content_media_query]['.woocommerce-tabs > .tabs li a']['padding'] = '10px 0';
            }
        }
        // # Not restructured mobile.css styles
        $css[$content_media_query]['#wrapper']['width'] = 'auto !important';
        $css[$content_media_query]['.create-block-format-context']['display'] = 'none';
        $css[$content_media_query]['.review']['float'] = 'none';
        $css[$content_media_query]['.review']['width'] = '100%';
        $elements = array('.fusion-copyright-notice', '.fusion-body .fusion-social-links-footer');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$content_media_query][avada_implode($elements)]['text-align'] = 'center';
        $css[$content_media_query]['.fusion-social-links-footer']['width'] = 'auto';
        $css[$content_media_query]['.fusion-social-links-footer .fusion-social-networks']['display'] = 'inline-block';
        $css[$content_media_query]['.fusion-social-links-footer .fusion-social-networks']['float'] = 'none';
        $css[$content_media_query]['.fusion-social-links-footer .fusion-social-networks']['margin-top'] = '0';
        $css[$content_media_query]['.fusion-copyright-notice']['padding'] = '0 0 15px';
        $elements = array('.fusion-copyright-notice:after', '.fusion-social-networks:after');
        $css[$content_media_query][avada_implode($elements)]['content'] = '""';
        $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$content_media_query][avada_implode($elements)]['clear'] = 'both';
        $elements = array('.fusion-social-networks li', '.fusion-copyright-notice li');
        $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$content_media_query][avada_implode($elements)]['display'] = 'inline-block';
        $css[$content_media_query]['.fusion-title']['margin-top'] = '0px !important';
        $css[$content_media_query]['.fusion-title']['margin-bottom'] = '20px !important';
        $css[$content_media_query]['.tfs-slider .fusion-title']['margin-bottom'] = '0 !important';
        $css[$content_media_query]['#main .cart-empty']['float'] = 'none';
        $css[$content_media_query]['#main .cart-empty']['text-align'] = 'center';
        $css[$content_media_query]['#main .cart-empty']['border-top'] = '1px solid';
        $css[$content_media_query]['#main .cart-empty']['border-bottom'] = 'none';
        $css[$content_media_query]['#main .cart-empty']['width'] = '100%';
        $css[$content_media_query]['#main .cart-empty']['line-height'] = 'normal !important';
        $css[$content_media_query]['#main .cart-empty']['height'] = 'auto !important';
        $css[$content_media_query]['#main .cart-empty']['margin-bottom'] = '10px';
        $css[$content_media_query]['#main .cart-empty']['padding-top'] = '10px';
        $css[$content_media_query]['#main .return-to-shop']['float'] = 'none';
        $css[$content_media_query]['#main .return-to-shop']['border-top'] = 'none';
        $css[$content_media_query]['#main .return-to-shop']['border-bottom'] = '1px solid';
        $css[$content_media_query]['#main .return-to-shop']['width'] = '100%';
        $css[$content_media_query]['#main .return-to-shop']['text-align'] = 'center';
        $css[$content_media_query]['#main .return-to-shop']['line-height'] = 'normal !important';
        $css[$content_media_query]['#main .return-to-shop']['height'] = 'auto !important';
        $css[$content_media_query]['#main .return-to-shop']['padding-bottom'] = '10px';
        if (class_exists('WooCommerce')) {
            $css[$content_media_query]['.woocommerce .checkout_coupon']['-webkit-justify-content'] = 'center';
            $css[$content_media_query]['.woocommerce .checkout_coupon']['-ms-justify-content'] = 'center';
            $css[$content_media_query]['.woocommerce .checkout_coupon']['justify-content'] = 'center';
            $css[$content_media_query]['.woocommerce .checkout_coupon']['-webkit-flex-wrap'] = 'wrap';
            $css[$content_media_query]['.woocommerce .checkout_coupon']['-ms-flex-wrap'] = 'wrap';
            $css[$content_media_query]['.woocommerce .checkout_coupon']['flex-wrap'] = 'wrap';
            $css[$content_media_query]['.woocommerce .checkout_coupon .promo-code-heading']['margin-bottom'] = '5px';
            $css[$content_media_query]['.woocommerce .checkout_coupon .coupon-contents']['margin'] = '0';
        }
        $css[$content_media_query]['#content.full-width']['margin-bottom'] = '0';
        $css[$content_media_query]['.sidebar .social_links .social li']['width'] = 'auto';
        $css[$content_media_query]['.sidebar .social_links .social li']['margin-right'] = '5px';
        $css[$content_media_query]['#comment-input']['margin-bottom'] = '0';
        $css[$content_media_query]['#comment-input input']['width'] = '100%';
        $css[$content_media_query]['#comment-input input']['float'] = 'none !important';
        $css[$content_media_query]['#comment-input input']['margin-bottom'] = '10px';
        $css[$content_media_query]['#comment-textarea textarea']['width'] = '100%';
        $css[$content_media_query]['.widget.facebook_like iframe']['width'] = '100% !important';
        $css[$content_media_query]['.widget.facebook_like iframe']['max-width'] = 'none !important';
        $css[$content_media_query]['.pagination']['margin-top'] = '40px';
        $css[$content_media_query]['.portfolio-one .portfolio-item .image']['float'] = 'none';
        $css[$content_media_query]['.portfolio-one .portfolio-item .image']['width'] = 'auto';
        $css[$content_media_query]['.portfolio-one .portfolio-item .image']['height'] = 'auto';
        $css[$content_media_query]['.portfolio-one .portfolio-item .image']['margin-bottom'] = '20px';
        $css[$content_media_query]['h5.toggle span.toggle-title']['width'] = '80%';
        $css[$content_media_query]['#wrapper .sep-boxed-pricing .panel-wrapper']['padding'] = '0';
        $elements = array('#wrapper .full-boxed-pricing .column', '#wrapper .sep-boxed-pricing .column');
        $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$content_media_query][avada_implode($elements)]['margin-bottom'] = '10px';
        $css[$content_media_query][avada_implode($elements)]['margin-left'] = '0';
        $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$content_media_query]['.share-box']['height'] = 'auto';
        $css[$content_media_query]['#wrapper .share-box h4']['float'] = 'none';
        $css[$content_media_query]['#wrapper .share-box h4']['line-height'] = '20px !important';
        $css[$content_media_query]['#wrapper .share-box h4']['margin-top'] = '0';
        $css[$content_media_query]['#wrapper .share-box h4']['padding'] = '0';
        $css[$content_media_query]['.share-box ul']['float'] = 'none';
        $css[$content_media_query]['.share-box ul']['overflow'] = 'hidden';
        $css[$content_media_query]['.share-box ul']['padding'] = '0 25px';
        $css[$content_media_query]['.share-box ul']['padding-bottom'] = '15px';
        $css[$content_media_query]['.share-box ul']['margin-top'] = '0px';
        $css[$content_media_query]['.project-content .project-description']['float'] = 'none !important';
        $css[$content_media_query]['.single-avada_portfolio .portfolio-half .project-content .project-description h3']['margin-top'] = '24px';
        $css[$content_media_query]['.project-content .fusion-project-description-details']['margin-bottom'] = '50px';
        $elements = array('.project-content .project-description', '.project-content .project-info');
        $css[$content_media_query][avada_implode($elements)]['width'] = '100% !important';
        $css[$content_media_query]['.portfolio-half .flexslider']['width'] = '100% !important';
        $css[$content_media_query]['.portfolio-half .project-content']['width'] = '100% !important';
        $css[$content_media_query]['#style_selector']['display'] = 'none';
        $elements = array('.ls-avada .ls-nav-prev', '.ls-avada .ls-nav-next');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'none !important';
        $css[$content_media_query]['#footer .social-networks']['width'] = '100%';
        $css[$content_media_query]['#footer .social-networks']['margin'] = '0 auto';
        $css[$content_media_query]['#footer .social-networks']['position'] = 'relative';
        $css[$content_media_query]['#footer .social-networks']['left'] = '-11px';
        $css[$content_media_query]['.tab-holder .tabs']['height'] = 'auto !important';
        $css[$content_media_query]['.tab-holder .tabs']['width'] = '100% !important';
        $css[$content_media_query]['.shortcode-tabs .tab-hold .tabs li']['width'] = '100% !important';
        $elements = array('body .shortcode-tabs .tab-hold .tabs li', 'body.dark .sidebar .tab-hold .tabs li');
        $css[$content_media_query][avada_implode($elements)]['border-right'] = 'none !important';
        $css[$content_media_query]['.error-message']['line-height'] = '170px';
        $css[$content_media_query]['.error-message']['margin-top'] = '20px';
        $css[$content_media_query]['.error_page .useful_links']['width'] = '100%';
        $css[$content_media_query]['.error-page .useful_links']['padding-left'] = '0';
        $css[$content_media_query]['.fusion-google-map']['width'] = '100% !important';
        $css[$content_media_query]['.social_links_shortcode .social li']['width'] = '10% !important';
        $css[$content_media_query]['#wrapper .ei-slider']['width'] = '100% !important';
        $css[$content_media_query]['#wrapper .ei-slider']['height'] = '200px !important';
        $css[$content_media_query]['.fusion-progressbar']['margin-bottom'] = '10px !important';
        $css[$content_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['min-height'] = 'inherit !important';
        $css[$content_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-bottom'] = '20px';
        $css[$content_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-left'] = '3%';
        $css[$content_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-right'] = '3%';
        $elements = array('#wrapper .content-boxes-icon-on-top .content-box-column', '#wrapper .content-boxes-icon-boxed .content-box-column');
        $css[$content_media_query][avada_implode($elements)]['margin-bottom'] = '55px';
        $css[$content_media_query]['.fusion-counters-box .fusion-counter-box']['margin-bottom'] = '20px';
        $css[$content_media_query]['.fusion-counters-box .fusion-counter-box']['padding'] = '0 15px';
        $css[$content_media_query]['.fusion-counters-box .fusion-counter-box:last-child']['margin-bottom'] = '0';
        $css[$content_media_query]['.popup']['display'] = 'none !important';
        $css[$content_media_query]['.share-box .social-networks']['text-align'] = 'left';
        if (class_exists('WooCommerce')) {
            $css[$content_media_query]['.fusion-body .products li']['width'] = '225px';
            $elements = array('.products li', '#wrapper .catalog-ordering > ul', '#main .products li:nth-child(3n)', '#main .products li:nth-child(4n)', '#main .has-sidebar .products li', '.avada-myaccount-data .addresses .col-1', '.avada-myaccount-data .addresses .col-2', '.avada-customer-details .addresses .col-1', '.avada-customer-details .addresses .col-2');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none !important';
            $css[$content_media_query][avada_implode($elements)]['margin-left'] = 'auto !important';
            $css[$content_media_query][avada_implode($elements)]['margin-right'] = 'auto !important';
            $elements = array('.avada-myaccount-data .addresses .col-1', '.avada-myaccount-data .addresses .col-2', '.avada-customer-details .addresses .col-1', '.avada-customer-details .addresses .col-2');
            $css[$content_media_query][avada_implode($elements)]['margin'] = '0 !important';
            $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
            $css[$content_media_query]['#wrapper .catalog-ordering']['margin-bottom'] = '50px';
            $css[$content_media_query]['#wrapper .orderby-order-container']['display'] = 'block';
            $css[$content_media_query]['#wrapper .order-dropdown > li:hover > ul']['display'] = 'block';
            $css[$content_media_query]['#wrapper .order-dropdown > li:hover > ul']['position'] = 'relative';
            $css[$content_media_query]['#wrapper .order-dropdown > li:hover > ul']['top'] = '0';
            $css[$content_media_query]['#wrapper .orderby-order-container']['margin'] = '0 auto';
            $css[$content_media_query]['#wrapper .orderby-order-container']['width'] = '225px';
            $css[$content_media_query]['#wrapper .orderby-order-container']['float'] = 'none';
            $css[$content_media_query]['#wrapper .orderby.order-dropdown']['width'] = '176px';
            $css[$content_media_query]['#wrapper .orderby.order-dropdown li a']['max-width'] = '100%';
            $css[$content_media_query]['#wrapper .orderby.order-dropdown']['z-index'] = '101';
            $css[$content_media_query]['#wrapper .sort-count.order-dropdown']['display'] = 'block';
            $css[$content_media_query]['#wrapper .sort-count.order-dropdown']['width'] = '225px';
            $css[$content_media_query]['#wrapper .sort-count.order-dropdown ul a']['width'] = '225px';
            $css[$content_media_query]['#wrapper .catalog-ordering .order']['margin'] = '0';
            $css[$content_media_query]['.catalog-ordering .fusion-grid-list-view']['display'] = 'block';
            $css[$content_media_query]['.catalog-ordering .fusion-grid-list-view']['width'] = '78px';
            $elements = array('.woocommerce #customer_login .login .form-row', '.woocommerce #customer_login .login .lost_password');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
            $elements = array('.woocommerce #customer_login .login .inline', '.woocommerce #customer_login .login .lost_password');
            $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
            $css[$content_media_query][avada_implode($elements)]['margin-left'] = '0';
            $css[$content_media_query]['.avada-myaccount-data .my_account_orders .order-number']['padding-right'] = '8px';
            $css[$content_media_query]['.avada-myaccount-data .my_account_orders .order-actions']['padding-left'] = '8px';
            $css[$content_media_query]['.shop_table .product-name']['width'] = '35%';
            $css[$content_media_query]['form.checkout .shop_table tfoot th']['padding-right'] = '20px';
            $elements = array('#wrapper .product .images', '#wrapper .product .summary.entry-summary', '#wrapper .woocommerce-tabs .tabs', '#wrapper .woocommerce-tabs .panel', '#wrapper .woocommerce-side-nav', '#wrapper .woocommerce-content-box', '#wrapper .shipping-coupon', '#wrapper .cart-totals-buttons', '#wrapper #customer_login .col-1', '#wrapper #customer_login .col-2', '#wrapper .woocommerce form.checkout #customer_details .col-1', '#wrapper .woocommerce form.checkout #customer_details .col-2');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
            $css[$content_media_query][avada_implode($elements)]['margin-left'] = 'auto';
            $css[$content_media_query][avada_implode($elements)]['margin-right'] = 'auto';
            $css[$content_media_query][avada_implode($elements)]['width'] = '100% !important';
            $elements = array('#customer_login .col-1', '.coupon');
            $css[$content_media_query][avada_implode($elements)]['margin-bottom'] = '20px';
            $css[$content_media_query]['.shop_table .product-thumbnail']['float'] = 'none';
            $css[$content_media_query]['.product-info']['margin-left'] = '0';
            $css[$content_media_query]['.product-info']['margin-top'] = '10px';
            $css[$content_media_query]['.product .entry-summary div .price']['float'] = 'none';
            $css[$content_media_query]['.product .entry-summary .woocommerce-product-rating']['float'] = 'none';
            $css[$content_media_query]['.product .entry-summary .woocommerce-product-rating']['margin-left'] = '0';
            $elements = array('.woocommerce-tabs .tabs', '.woocommerce-side-nav');
            $css[$content_media_query][avada_implode($elements)]['margin-bottom'] = '25px';
            $css[$content_media_query]['.woocommerce-tabs .panel']['width'] = '91% !important';
            $css[$content_media_query]['.woocommerce-tabs .panel']['padding'] = '4% !important';
            $css[$content_media_query]['#reviews li .avatar']['display'] = 'none';
            $css[$content_media_query]['#reviews li .comment-text']['width'] = '90% !important';
            $css[$content_media_query]['#reviews li .comment-text']['margin-left'] = '0 !important';
            $css[$content_media_query]['#reviews li .comment-text']['padding'] = '5% !important';
            $css[$content_media_query]['html .woocommerce .woocommerce-container .social-share']['display'] = 'block';
            $css[$content_media_query]['.woocommerce-container .social-share']['overflow'] = 'hidden';
            $css[$content_media_query]['.woocommerce-container .social-share li']['display'] = 'block';
            $css[$content_media_query]['.woocommerce-container .social-share li']['float'] = 'left';
            $css[$content_media_query]['.woocommerce-container .social-share li']['margin'] = '0 auto';
            $css[$content_media_query]['.woocommerce-container .social-share li']['border-right'] = '0 !important';
            $css[$content_media_query]['.woocommerce-container .social-share li']['border-left'] = '0 !important';
            $css[$content_media_query]['.woocommerce-container .social-share li']['padding-left'] = '0 !important';
            $css[$content_media_query]['.woocommerce-container .social-share li']['padding-right'] = '0 !important';
            $css[$content_media_query]['.woocommerce-container .social-share li']['width'] = '50%';
            $css[$content_media_query]['.has-sidebar .woocommerce-container .social-share li']['width'] = '50%';
            $css[$content_media_query]['.myaccount_user_container span']['width'] = '100%';
            $css[$content_media_query]['.myaccount_user_container span']['float'] = 'none';
            $css[$content_media_query]['.myaccount_user_container span']['display'] = 'block';
            $css[$content_media_query]['.myaccount_user_container span']['padding'] = '5px 0px';
            $css[$content_media_query]['.myaccount_user_container span']['border-right'] = 0;
            $css[$content_media_query]['.myaccount_user_container span.username']['margin-top'] = '10px';
            $css[$content_media_query]['.myaccount_user_container span.view-cart']['margin-bottom'] = '10px';
            if (is_rtl()) {
                $css[$content_media_query]['.rtl .myaccount_user_container span']['border-left'] = '0';
            }
            $elements = array('.shop_table .product-thumbnail img', '.shop_table .product-thumbnail .product-info', '.shop_table .product-thumbnail .product-info p');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
            $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
            $css[$content_media_query][avada_implode($elements)]['margin'] = '0 !important';
            $css[$content_media_query][avada_implode($elements)]['padding'] = '0';
            $css[$content_media_query]['.shop_table .product-thumbnail']['padding'] = '10px 0px';
            $css[$content_media_query]['.product .images']['margin-bottom'] = '30px';
            $css[$content_media_query]['#customer_login_box .button']['float'] = 'left';
            $css[$content_media_query]['#customer_login_box .button']['margin-bottom'] = '15px';
            $css[$content_media_query]['#customer_login_box .remember-box']['clear'] = 'both';
            $css[$content_media_query]['#customer_login_box .remember-box']['display'] = 'block';
            $css[$content_media_query]['#customer_login_box .remember-box']['padding'] = '0';
            $css[$content_media_query]['#customer_login_box .remember-box']['width'] = '125px';
            $css[$content_media_query]['#customer_login_box .remember-box']['float'] = 'left';
            $css[$content_media_query]['#customer_login_box .lost_password']['float'] = 'left';
        }
        if (defined('WPCF7_PLUGIN')) {
            $elements = array('.wpcf7-form .wpcf7-text', '.wpcf7-form .wpcf7-quiz', '.wpcf7-form .wpcf7-number', '.wpcf7-form textarea');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none !important';
            $css[$content_media_query][avada_implode($elements)]['width'] = '100% !important';
            $css[$content_media_query][avada_implode($elements)]['box-sizing'] = 'border-box';
        }
        if (class_exists('GFForms')) {
            $elements = array('.gform_wrapper .right_label input.medium', '.gform_wrapper .right_label select.medium', '.gform_wrapper .left_label input.medium', '.gform_wrapper .left_label select.medium');
            $css[$content_media_query][avada_implode($elements)]['width'] = '35% !important';
        }
        $elements = array('.product .images #slider .flex-direction-nav', '.product .images #carousel .flex-direction-nav');
        $css[$content_media_query][avada_implode($elements)]['display'] = 'none !important';
        if (class_exists('WooCommerce')) {
            $elements = array('.myaccount_user_container span.msg', '.myaccount_user_container span:last-child');
            $css[$content_media_query][avada_implode($elements)]['padding-left'] = '0 !important';
            $css[$content_media_query][avada_implode($elements)]['padding-right'] = '0 !important';
        }
        $css[$content_media_query]['.fullwidth-box']['background-attachment'] = 'scroll !important';
        $css[$content_media_query]['#toTop']['bottom'] = '30px';
        $css[$content_media_query]['#toTop']['border-radius'] = '4px';
        $css[$content_media_query]['#toTop']['height'] = '40px';
        $css[$content_media_query]['#toTop']['z-index'] = '10000';
        $css[$content_media_query]['#toTop:before']['line-height'] = '38px';
        $css[$content_media_query]['#toTop:hover']['background-color'] = '#333333';
        $css[$content_media_query]['.no-mobile-totop .to-top-container']['display'] = 'none';
        $css[$content_media_query]['.no-mobile-slidingbar #slidingbar-area']['display'] = 'none';
        $css[$content_media_query]['.no-mobile-slidingbar.mobile-logo-pos-left .mobile-menu-icons']['margin-right'] = '0';
        if (is_rtl()) {
            $css[$content_media_query]['.rtl.no-mobile-slidingbar.mobile-logo-pos-right .mobile-menu-icons']['margin-left'] = '0';
        }
        $css[$content_media_query]['.tfs-slider .slide-content-container .btn']['min-height'] = '0 !important';
        $css[$content_media_query]['.tfs-slider .slide-content-container .btn']['padding-left'] = '30px';
        $css[$content_media_query]['.tfs-slider .slide-content-container .btn']['padding-right'] = '30px !important';
        $css[$content_media_query]['.tfs-slider .slide-content-container .btn']['height'] = '26px !important';
        $css[$content_media_query]['.tfs-slider .slide-content-container .btn']['line-height'] = '26px !important';
        $css[$content_media_query]['.fusion-soundcloud iframe']['width'] = '100%';
        $elements = array('.ua-mobile .fusion-page-title-bar', '.ua-mobile .footer-area', '.ua-mobile body', '.ua-mobile #main');
        $css[$content_media_query][avada_implode($elements)]['background-attachment'] = 'scroll !important';
        if (class_exists('RevSliderFront')) {
            $css[$content_media_query]['.fusion-revslider-mobile-padding']['padding-left'] = '30px !important';
            $css[$content_media_query]['.fusion-revslider-mobile-padding']['padding-right'] = '30px !important';
        }
        // # Events Calendar
        if (class_exists('Tribe__Events__Main')) {
            if (!is_rtl()) {
                $css[$content_media_query]['.tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail']['float'] = 'left';
                $css[$content_media_query]['.tribe-events-single ul.tribe-related-events li .tribe-related-event-info']['padding-left'] = '10px';
                $css[$content_media_query]['.tribe-events-single ul.tribe-related-events li .tribe-related-event-info']['padding-right'] = '0';
            }
            if ((Avada()->settings->get('main_padding', 'top') || Avada()->settings->get('main_padding', 'top') == '0') && !get_post_meta($c_pageID, 'pyre_main_top_padding', true) && get_post_meta($c_pageID, 'pyre_main_top_padding', true) != '0') {
                $css['global']['.tribe-mobile #main']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('main_padding', 'top'));
            } elseif (get_post_meta($c_pageID, 'pyre_main_top_padding', true)) {
                $css['global']['.tribe-mobile #main']['padding-top'] = get_post_meta($c_pageID, 'pyre_main_top_padding', true);
            } else {
                $css['global']['.tribe-mobile #main']['padding-top'] = '55px';
            }
            // Filter
            $elements = array('#tribe-events-bar #tribe-bar-views .tribe-bar-views-inner label', '#tribe-events-bar #tribe-bar-views .tribe-bar-views-inner .tribe-bar-views-option a');
            $css[$content_media_query][avada_implode($elements)]['padding-left'] = '15px';
            $css[$content_media_query][avada_implode($elements)]['padding-right'] = '15px';
            $elements = array('#tribe-events-bar .tribe-bar-filters .tribe-bar-date-filter', '#tribe-events-bar .tribe-bar-filters .tribe-bar-search-filter', '#tribe-events-bar .tribe-bar-filters .tribe-bar-geoloc-filter', '#tribe-events-bar .tribe-bar-filters .tribe-bar-submit');
            $css[$content_media_query][avada_implode($elements)]['padding-left'] = '0';
            $css[$content_media_query][avada_implode($elements)]['padding-right'] = '0';
            $css[$content_media_query][avada_implode($elements)]['padding-top'] = '15px';
            $css[$content_media_query][avada_implode($elements)]['padding-bottom'] = '15px';
            // Title and Navigation
            $css[$content_media_query]['#tribe-events-content #tribe-events-header']['margin-bottom'] = '30px';
            $elements = array('.tribe-events-list .fusion-events-before-title', '.tribe-events-month .fusion-events-before-title', '.tribe-events-week .fusion-events-before-title', '.tribe-events-day .fusion-events-before-title');
            $css[$content_media_query][avada_implode($elements)]['height'] = '100px';
            $css[$content_media_query]['.tribe-events-list.tribe-events-map .fusion-events-before-title']['height'] = 'auto';
            $css[$content_media_query]['#tribe-events-content #tribe-events-header .tribe-events-sub-nav li']['margin-top'] = '-40px';
            // Events Archive
            // List View
            $css[$content_media_query]['.tribe-events-loop .tribe-events-event-meta']['padding'] = '0';
            $css[$content_media_query]['#tribe-events .tribe-events-list .tribe-events-event-meta .author > div']['display'] = 'block';
            $css[$content_media_query]['#tribe-events .tribe-events-list .tribe-events-event-meta .author > div']['border-right'] = 'none';
            $css[$content_media_query]['#tribe-events .tribe-events-list .tribe-events-event-meta .author > div']['width'] = '100%';
            $elements = array('#tribe-events .tribe-events-list .fusion-tribe-primary-info', '#tribe-events .tribe-events-list .fusion-tribe-secondary-info', '#tribe-events .tribe-events-list .fusion-tribe-no-featured-image .fusion-tribe-events-headline');
            $css[$content_media_query][avada_implode($elements)]['width'] = '100%';
            $elements = array('.tribe-events-list .tribe-events-venue-details', '.tribe-events-list .time-details');
            $css[$content_media_query][avada_implode($elements)]['margin'] = '0';
            // Month View
            $css[$content_media_query]['.tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a']['background'] = 'none';
            // Photo View
            $css[$content_media_query]['.tribe-events-list .time-details']['padding'] = '0';
            // Single Event Page
            $elements = array('.fusion-events-featured-image .fusion-events-single-title-content h2', '.fusion-events-featured-image .fusion-events-single-title-content .tribe-events-schedule');
            $css[$content_media_query][avada_implode($elements)]['float'] = 'none';
            $elements = array('#tribe-events .tribe-events-list .type-tribe_events .tribe-events-event-image');
            $css[$content_media_query][avada_implode($elements)]['display'] = 'none';
            $elements = array('#tribe-events .tribe-events-list .type-tribe_events .fusion-tribe-events-event-image-responsive');
            $css[$content_media_query][avada_implode($elements)]['display'] = 'block';
        }
        if (class_exists('WooCommerce')) {
            //$css[ $content_media_query ]['.fusion-woo-slider .fusion-carousel-title-on-rollover .fusion-rollover-title']['display'] = 'none';
            $css[$content_media_query]['.fusion-woo-slider .fusion-carousel-title-on-rollover .fusion-rollover-categories']['display'] = 'none';
            $css[$content_media_query]['.fusion-woo-slider .fusion-carousel-title-on-rollover .price']['display'] = 'none';
        }
        /* @media only screen and ( min-width: $content_break_point )
        		================================================================================================= */
        $content_min_media_query = '@media only screen and (min-width: ' . (intval($side_header_width) + intval(Avada()->settings->get('content_break_point'))) . 'px)';
        // # Shortcodes
        // Tagline Box
        $css[$content_min_media_query]['.fusion-reading-box-container .reading-box.reading-box-center']['text-align'] = 'center';
        $css[$content_min_media_query]['.fusion-reading-box-container .reading-box.reading-box-right']['text-align'] = 'right';
        $css[$content_min_media_query]['.fusion-reading-box-container .fusion-desktop-button']['display'] = 'block';
        $css[$content_min_media_query]['.fusion-reading-box-container .fusion-mobile-button']['display'] = 'none';
        $css[$content_min_media_query]['.fusion-reading-box-container .continue-center']['display'] = 'inline-block';
        /* @media only screen and and (max-device-width : 740px) and (orientation : landscape)
        		================================================================================================= */
        $seven_fourty_media_query = '@media only screen and (max-device-width : 740px) and (orientation : landscape)';
        // # Footer Styles
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $css[$seven_fourty_media_query][avada_implode($elements)]['height'] = 'auto';
            $css[$seven_fourty_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $css[$seven_fourty_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $css[$seven_fourty_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $css[$seven_fourty_media_query]['.fusion-footer']['height'] = 'auto';
        }
        /* @media only screen and ( max-width: 640px )
        		================================================================================================= */
        $six_fourty_media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + 640) . 'px)';
        // # Page Title Bar
        $css[$six_fourty_media_query]['.fusion-body .fusion-page-title-bar']['max-height'] = 'none';
        $css[$six_fourty_media_query]['.fusion-body .fusion-page-title-bar h1']['margin'] = '0';
        $css[$six_fourty_media_query]['.fusion-body .fusion-page-title-secondary']['margin-top'] = '2px';
        // # Blog Layouts
        // Blog general styles
        $elements = array('.fusion-blog-layout-large .fusion-meta-info .fusion-alignleft', '.fusion-blog-layout-medium .fusion-meta-info .fusion-alignleft', '.fusion-blog-layout-large .fusion-meta-info .fusion-alignright', '.fusion-blog-layout-medium .fusion-meta-info .fusion-alignright');
        $css[$six_fourty_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$six_fourty_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$six_fourty_media_query][avada_implode($elements)]['margin'] = '0';
        $css[$six_fourty_media_query][avada_implode($elements)]['width'] = '100%';
        // Blog medium layout
        $css[$six_fourty_media_query]['.fusion-body .fusion-blog-layout-medium .fusion-post-slideshow']['float'] = 'none';
        $css[$six_fourty_media_query]['.fusion-body .fusion-blog-layout-medium .fusion-post-slideshow']['margin'] = '0 0 20px 0';
        $css[$six_fourty_media_query]['.fusion-body .fusion-blog-layout-medium .fusion-post-slideshow']['height'] = 'auto';
        $css[$six_fourty_media_query]['.fusion-body .fusion-blog-layout-medium .fusion-post-slideshow']['width'] = 'auto';
        // Blog large alternate layout
        $css[$six_fourty_media_query]['.fusion-blog-layout-large-alternate .fusion-date-and-formats']['margin-bottom'] = '55px';
        $css[$six_fourty_media_query]['.fusion-body .fusion-blog-layout-large-alternate .fusion-post-content']['margin'] = '0';
        // Blog medium alternate layout
        $css[$six_fourty_media_query]['.fusion-blog-layout-medium-alternate .has-post-thumbnail .fusion-post-slideshow']['display'] = 'inline-block';
        $css[$six_fourty_media_query]['.fusion-blog-layout-medium-alternate .has-post-thumbnail .fusion-post-slideshow']['float'] = 'none';
        $css[$six_fourty_media_query]['.fusion-blog-layout-medium-alternate .has-post-thumbnail .fusion-post-slideshow']['margin-right'] = '0';
        $css[$six_fourty_media_query]['.fusion-blog-layout-medium-alternate .has-post-thumbnail .fusion-post-slideshow']['max-width'] = '197px';
        // Blog grid layout
        $css[$six_fourty_media_query]['.fusion-blog-layout-grid .fusion-post-grid']['position'] = 'static';
        $css[$six_fourty_media_query]['.fusion-blog-layout-grid .fusion-post-grid']['width'] = '100%';
        // # Footer Styles
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $css[$six_fourty_media_query][avada_implode($elements)]['height'] = 'auto';
            $css[$six_fourty_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $css[$six_fourty_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $css[$six_fourty_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $css[$six_fourty_media_query]['.fusion-footer']['height'] = 'auto';
        }
        // # Not restructured mobile.css styles
        $elements = array('.wooslider-direction-nav', '.wooslider-pauseplay', '.flex-direction-nav');
        $css[$six_fourty_media_query][avada_implode($elements)]['display'] = 'none';
        $css[$six_fourty_media_query]['.share-box ul li']['margin-bottom'] = '10px';
        $css[$six_fourty_media_query]['.share-box ul li']['margin-right'] = '15px';
        $css[$six_fourty_media_query]['.buttons a']['margin-right'] = '5px';
        $elements = array('.ls-avada .ls-nav-prev', '.ls-avada .ls-nav-next');
        $css[$six_fourty_media_query][avada_implode($elements)]['display'] = 'none !important';
        $css[$six_fourty_media_query]['#wrapper .ei-slider']['width'] = '100% !important';
        $css[$six_fourty_media_query]['#wrapper .ei-slider']['height'] = '200px !important';
        $css[$six_fourty_media_query]['.fusion-progressbar']['margin-bottom'] = '10px !important';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['min-height'] = 'inherit !important';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-bottom'] = '20px';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-left'] = '3% !important';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-right'] = '3% !important';
        $elements = array('#wrapper .content-boxes-icon-on-top .content-box-column', '#wrapper .content-boxes-icon-boxed .content-box-column');
        $css[$six_fourty_media_query][avada_implode($elements)]['margin-bottom'] = '55px';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-box-column .heading h2']['margin-top'] = '-5px';
        $css[$six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-box-column .more']['margin-top'] = '12px';
        $css[$six_fourty_media_query]['.page-template-contact-php .fusion-google-map']['height'] = '270px !important';
        $css[$six_fourty_media_query]['.share-box .social-networks li']['margin-right'] = '20px !important';
        $css[$six_fourty_media_query]['.timeline-icon']['display'] = 'none !important';
        $css[$six_fourty_media_query]['.timeline-layout']['padding-top'] = '0 !important';
        $css[$six_fourty_media_query]['.fusion-counters-circle .counter-circle-wrapper']['display'] = 'block';
        $css[$six_fourty_media_query]['.fusion-counters-circle .counter-circle-wrapper']['margin-right'] = 'auto';
        $css[$six_fourty_media_query]['.fusion-counters-circle .counter-circle-wrapper']['margin-left'] = 'auto';
        $css[$six_fourty_media_query]['.post-content .wooslider .wooslider-control-thumbs']['margin-top'] = '-10px';
        $css[$six_fourty_media_query]['body .wooslider .overlay-full.layout-text-left .slide-excerpt']['padding'] = '20px !important';
        $css[$six_fourty_media_query]['.content-boxes-icon-boxed .col']['box-sizing'] = 'border-box';
        $css[$six_fourty_media_query]['.social_links_shortcode li']['height'] = '40px !important';
        $css[$six_fourty_media_query]['.products-slider .es-nav span']['transform'] = 'scale(0.5) !important';
        if (class_exists('WooCommerce')) {
            $css[$six_fourty_media_query]['.shop_table .product-quantity']['display'] = 'none';
            $css[$six_fourty_media_query]['.shop_table .filler-td']['display'] = 'none';
            $css[$six_fourty_media_query]['.my_account_orders .order-status']['display'] = 'none';
            $css[$six_fourty_media_query]['.my_account_orders .order-date']['display'] = 'none';
            $css[$six_fourty_media_query]['.my_account_orders .order-number time']['display'] = 'block !important';
            $css[$six_fourty_media_query]['.my_account_orders .order-number time']['font-size'] = '10px';
            $css[$six_fourty_media_query]['.my_account_orders .order-number time']['line-height'] = 'normal';
        }
        $media_query = '@media only screen and (min-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        if (class_exists('bbPress')) {
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar']['width'] = '80px !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar']['height'] = '80px !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-avatar']['width'] = '80px !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-navigation']['margin-left'] = '110px !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-navigation .first-col']['width'] = '47% !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-navigation .second-col']['margin-left'] = '53% !important';
            $css[$six_fourty_media_query]['#bbpress-forums #bbp-single-user-details #bbp-user-navigation .second-col']['width'] = '47% !important';
        }
        $css[$six_fourty_media_query]['.portfolio-masonry .portfolio-item']['width'] = '100% !important';
        $elements = array('.table-1 table', '.tkt-slctr-tbl-wrap-dv table');
        $css[$six_fourty_media_query][avada_implode($elements)]['border-collapse'] = 'collapse';
        $css[$six_fourty_media_query][avada_implode($elements)]['border-spacing'] = '0';
        $css[$six_fourty_media_query][avada_implode($elements)]['width'] = '100%';
        $elements = array('.table-1 td', '.table-1 th', '.tkt-slctr-tbl-wrap-dv td', '.tkt-slctr-tbl-wrap-dv th');
        $css[$six_fourty_media_query][avada_implode($elements)]['white-space'] = 'nowrap';
        $css[$six_fourty_media_query]['.table-2 table']['border-collapse'] = 'collapse';
        $css[$six_fourty_media_query]['.table-2 table']['border-spacing'] = '0';
        $css[$six_fourty_media_query]['.table-2 table']['width'] = '100%';
        $elements = array('.table-2 td', '.table-2 th');
        $css[$six_fourty_media_query][avada_implode($elements)]['white-space'] = 'nowrap';
        $elements = array('.page-title-bar', '.footer-area', 'body', '#main');
        $css[$six_fourty_media_query][avada_implode($elements)]['background-attachment'] = 'scroll !important';
        $css[$six_fourty_media_query]['.tfs-slider[data-animation="slide"]']['height'] = 'auto !important';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['display'] = 'block';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['float'] = 'none';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['line-height'] = '20px !important';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['margin-top'] = '0';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['padding'] = '0';
        $css[$six_fourty_media_query]['#wrapper .share-box h4']['margin-bottom'] = '10px';
        $css[$six_fourty_media_query]['.fusion-sharing-box .fusion-social-networks']['float'] = 'none';
        $css[$six_fourty_media_query]['.fusion-sharing-box .fusion-social-networks']['display'] = 'block';
        $css[$six_fourty_media_query]['.fusion-sharing-box .fusion-social-networks']['width'] = '100%';
        $css[$six_fourty_media_query]['.fusion-sharing-box .fusion-social-networks']['text-align'] = 'left';
        $css[$six_fourty_media_query]['#content']['width'] = '100% !important';
        $css[$six_fourty_media_query]['#content']['margin-left'] = '0px !important';
        $css[$six_fourty_media_query]['.sidebar']['width'] = '100% !important';
        $css[$six_fourty_media_query]['.sidebar']['float'] = 'none !important';
        $css[$six_fourty_media_query]['.sidebar']['margin-left'] = '0 !important';
        $css[$six_fourty_media_query]['.sidebar']['clear'] = 'both';
        $css[$six_fourty_media_query]['.fusion-hide-on-mobile']['display'] = 'none';
        // Blog timeline layout
        $css[$six_fourty_media_query]['.fusion-blog-layout-timeline']['padding-top'] = '0';
        $css[$six_fourty_media_query]['.fusion-blog-layout-timeline .fusion-post-timeline']['float'] = 'none';
        $css[$six_fourty_media_query]['.fusion-blog-layout-timeline .fusion-post-timeline']['width'] = '100%';
        $css[$six_fourty_media_query]['.fusion-blog-layout-timeline .fusion-timeline-date']['margin-bottom'] = '0';
        $css[$six_fourty_media_query]['.fusion-blog-layout-timeline .fusion-timeline-date']['margin-top'] = '2px';
        $elements = array('.fusion-timeline-icon', '.fusion-timeline-line', '.fusion-timeline-circle', '.fusion-timeline-arrow');
        $css[$six_fourty_media_query][avada_implode($elements)]['display'] = 'none';
        if (class_exists('WooCommerce')) {
            if ('clean' == Avada()->settings->get('woocommerce_product_box_design')) {
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons']['height'] = 'auto';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons']['margin-top'] = '0';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons *']['display'] = 'block';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons *']['text-align'] = 'center';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons *']['float'] = 'none !important';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons *']['max-width'] = '100%';
                $css[$six_fourty_media_query]['.fusion-woo-slider .fusion-clean-product-image-wrapper .fusion-product-buttons *']['margin-top'] = '0';
            }
        }
        /* @media only screen and ( max-width: 480px )
        		================================================================================================= */
        if (class_exists('bbPress')) {
            $four_eigthy_media_query = '@media only screen and (max-width: 480px)';
            $css[$four_eigthy_media_query]['#bbpress-forums .bbp-body div.bbp-reply-author']['width'] = '71% !important';
            $css[$four_eigthy_media_query]['.bbp-arrow']['display'] = 'none';
            $css[$four_eigthy_media_query]['div.bbp-submit-wrapper']['float'] = 'right !important';
        }
        if (class_exists('GFForms')) {
            $four_eigthy_media_query = '@media all and (max-width: 480px), all and (max-device-width: 480px)';
            $elements = array('body.fusion-body .gform_wrapper .ginput_container', 'body.fusion-body .gform_wrapper div.ginput_complex', 'body.fusion-body .gform_wrapper div.gf_page_steps', 'body.fusion-body .gform_wrapper div.gf_page_steps div', 'body.fusion-body .gform_wrapper .ginput_container input.small', 'body.fusion-body .gform_wrapper .ginput_container input.medium', 'body.fusion-body .gform_wrapper .ginput_container input.large', 'body.fusion-body .gform_wrapper .ginput_container select.small', 'body.fusion-body .gform_wrapper .ginput_container select.medium', 'body.fusion-body .gform_wrapper .ginput_container select.large', 'body.fusion-body .gform_wrapper .ginput_container textarea.small', 'body.fusion-body .gform_wrapper .ginput_container textarea.medium', 'body.fusion-body .gform_wrapper .ginput_container textarea.large', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="text"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="url"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="email"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="tel"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="number"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_right input[type="password"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="text"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="url"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="email"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="tel"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="number"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_left input[type="password"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="text"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="url"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="email"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="tel"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="number"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full input[type="password"]', 'body.fusion-body .gform_wrapper .ginput_complex .ginput_full select', 'body.fusion-body .gform_wrapper input.gform_button.button', 'body.fusion-body .gform_wrapper input[type="submit"]', 'body.fusion-body .gform_wrapper .gfield_time_hour input', 'body.fusion-body .gform_wrapper .gfield_time_minute input', 'body.fusion-body .gform_wrapper .gfield_date_month input', 'body.fusion-body .gform_wrapper .gfield_date_day input', 'body.fusion-body .gform_wrapper .gfield_date_year input', '.gfield_time_ampm .gravity-select-parent', 'body.fusion-body .gform_wrapper .ginput_complex input[type="text"]', 'body.fusion-body .gform_wrapper .ginput_complex input[type="url"]', 'body.fusion-body .gform_wrapper .ginput_complex input[type="email"]', 'body.fusion-body .gform_wrapper .ginput_complex input[type="tel"]', 'body.fusion-body .gform_wrapper .ginput_complex input[type="number"]', 'body.fusion-body .gform_wrapper .ginput_complex input[type="password"]', 'body.fusion-body .gform_wrapper .ginput_complex .gravity-select-parent', 'body.fusion-body .gravity-select-parent');
            $css[$four_eigthy_media_query][avada_implode($elements)]['width'] = '100% !important';
            $elements = array('.gform_wrapper .gform_page_footer input[type="button"]', '.gform_wrapper .gform_button', '.gform_wrapper .button');
            $css[$four_eigthy_media_query][avada_implode($elements)]['-webkit-box-sizing'] = 'border-box';
            $css[$four_eigthy_media_query][avada_implode($elements)]['box-sizing'] = 'border-box';
        }
        /* @media only screen and (min-device-width: 320px) and (max-device-width: 640px)
        		================================================================================================= */
        $three_twenty_six_fourty_media_query = '@media only screen and (min-device-width: 320px) and (max-device-width: 640px)';
        // # Layout
        $css[$three_twenty_six_fourty_media_query]['#wrapper']['width'] = 'auto !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper']['overflow-x'] = 'hidden !important';
        $css[$three_twenty_six_fourty_media_query]['.fusion-columns .fusion-column']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.fusion-columns .fusion-column']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.fusion-columns .fusion-column']['margin'] = '0 0 50px';
        $css[$three_twenty_six_fourty_media_query]['.fusion-columns .fusion-column']['box-sizing'] = 'border-box';
        $elements = array('.footer-area .fusion-columns .fusion-column', '#slidingbar-area .fusion-columns .fusion-column');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['float'] = 'left';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['width'] = '98% !important';
        $css[$three_twenty_six_fourty_media_query]['.fullwidth-box']['background-attachment'] = 'scroll !important';
        $css[$three_twenty_six_fourty_media_query]['.no-mobile-totop .to-top-container']['display'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.no-mobile-slidingbar #slidingbar-area']['display'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.review']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.review']['width'] = '100%';
        $elements = array('.social-networks', '.copyright');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['padding'] = '0 0 15px';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['text-align'] = 'center';
        $elements = array('.copyright:after', '.social-networks:after');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['content'] = '""';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['display'] = 'block';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['clear'] = 'both';
        $elements = array('.social-networks li', '.copyright li');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['display'] = 'inline-block';
        $css[$three_twenty_six_fourty_media_query]['.continue']['display'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.mobile-button']['display'] = 'block !important';
        $css[$three_twenty_six_fourty_media_query]['.mobile-button']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.title']['margin-top'] = '0px !important';
        $css[$three_twenty_six_fourty_media_query]['.title']['margin-bottom'] = '20px !important';
        $css[$three_twenty_six_fourty_media_query]['#content']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['#content']['float'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['#content']['margin-left'] = '0 !important';
        $css[$three_twenty_six_fourty_media_query]['#content']['margin-bottom'] = '50px';
        $css[$three_twenty_six_fourty_media_query]['#content.full-width']['margin-bottom'] = '0';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['float'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar .social_links .social li']['width'] = 'auto';
        $css[$three_twenty_six_fourty_media_query]['.sidebar .social_links .social li']['margin-right'] = '5px';
        $css[$three_twenty_six_fourty_media_query]['#comment-input']['margin-bottom'] = '0';
        $css[$three_twenty_six_fourty_media_query]['#comment-input input']['width'] = '90%';
        $css[$three_twenty_six_fourty_media_query]['#comment-input input']['float'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['#comment-input input']['margin-bottom'] = '10px';
        $css[$three_twenty_six_fourty_media_query]['#comment-textarea textarea']['width'] = '90%';
        $css[$three_twenty_six_fourty_media_query]['.widget.facebook_like iframe']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.widget.facebook_like iframe']['max-width'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['.pagination']['margin-top'] = '40px';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-one .portfolio-item .image']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-one .portfolio-item .image']['width'] = 'auto';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-one .portfolio-item .image']['height'] = 'auto';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-one .portfolio-item .image']['margin-bottom'] = '20px';
        $css[$three_twenty_six_fourty_media_query]['h5.toggle span.toggle-title']['width'] = '80%';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .sep-boxed-pricing .panel-wrapper']['padding'] = '0';
        $elements = array('#wrapper .full-boxed-pricing .column', '#wrapper .sep-boxed-pricing .column');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['margin-bottom'] = '10px';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['margin-left'] = '0';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['width'] = '100%';
        $css[$three_twenty_six_fourty_media_query]['.share-box']['height'] = 'auto';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .share-box h4']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .share-box h4']['line-height'] = '20px !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .share-box h4']['margin-top'] = '0';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .share-box h4']['padding'] = '0';
        $css[$three_twenty_six_fourty_media_query]['.share-box ul']['float'] = 'none';
        $css[$three_twenty_six_fourty_media_query]['.share-box ul']['overflow'] = 'hidden';
        $css[$three_twenty_six_fourty_media_query]['.share-box ul']['padding'] = '0 25px';
        $css[$three_twenty_six_fourty_media_query]['.share-box ul']['padding-bottom'] = '25px';
        $css[$three_twenty_six_fourty_media_query]['.share-box ul']['margin-top'] = '0px';
        $css[$three_twenty_six_fourty_media_query]['.project-content .project-description']['float'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['.project-content .fusion-project-description-details']['margin-bottom'] = '50px';
        $elements = array('.project-content .project-description', '.project-content .project-info');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-half .flexslider']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.portfolio-half .project-content']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['#style_selector']['display'] = 'none';
        $elements = array('.ls-avada .ls-nav-prev', '.ls-avada .ls-nav-next');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['display'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['#footer .social-networks']['width'] = '100%';
        $css[$three_twenty_six_fourty_media_query]['#footer .social-networks']['margin'] = '0 auto';
        $css[$three_twenty_six_fourty_media_query]['#footer .social-networks']['position'] = 'relative';
        $css[$three_twenty_six_fourty_media_query]['#footer .social-networks']['left'] = '-11px';
        $css[$three_twenty_six_fourty_media_query]['.recent-works-items a']['max-width'] = '64px';
        $elements = array('.footer-area .flickr_badge_image img', '#slidingbar-area .flickr_badge_image img');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['max-width'] = '64px';
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['padding'] = '3px !important';
        $css[$three_twenty_six_fourty_media_query]['.tab-holder .tabs']['height'] = 'auto !important';
        $css[$three_twenty_six_fourty_media_query]['.tab-holder .tabs']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.shortcode-tabs .tab-hold .tabs li']['width'] = '100% !important';
        $elements = array('body .shortcode-tabs .tab-hold .tabs li', 'body.dark .sidebar .tab-hold .tabs li');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['border-right'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['.error_page .useful_links']['width'] = '100%';
        $css[$three_twenty_six_fourty_media_query]['.error_page .useful_links']['padding-left'] = '0';
        $css[$three_twenty_six_fourty_media_query]['.fusion-google-map']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.social_links_shortcode .social li']['width'] = '10% !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .ei-slider']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .ei-slider']['height'] = '200px !important';
        $css[$three_twenty_six_fourty_media_query]['.fusion-progressbar']['margin-bottom'] = '10px !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['min-height'] = 'inherit !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-bottom'] = '20px';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-left'] = '3% !important';
        $css[$three_twenty_six_fourty_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-right'] = '3% !important';
        $elements = array('#wrapper .content-boxes-icon-on-top .content-box-column', '#wrapper .content-boxes-icon-boxed .content-box-column');
        $css[$three_twenty_six_fourty_media_query][avada_implode($elements)]['margin-bottom'] = '55px';
        $css[$three_twenty_six_fourty_media_query]['.share-box .social-networks']['text-align'] = 'left';
        $css[$three_twenty_six_fourty_media_query]['#content']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['#content']['margin-left'] = '0px !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['width'] = '100% !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['float'] = 'none !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['margin-left'] = '0 !important';
        $css[$three_twenty_six_fourty_media_query]['.sidebar']['clear'] = 'both';
        /* media.css CSS - to be split to the corresponding sections above
        		================================================================================================= */
        $media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + 1000) . 'px)';
        $css[$media_query]['.no-csstransforms .sep-boxed-pricing .column']['margin-left'] = '1.5% !important';
        if (class_exists('WooCommerce')) {
            $media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + 965) . 'px)';
            $css[$media_query]['.coupon .input-text']['width'] = '100% !important';
            $css[$media_query]['.coupon .button']['margin-top'] = '20px';
            $media_query = '@media only screen and (max-width: ' . (intval($side_header_width) + 900) . 'px)';
            $elements = array('.woocommerce #customer_login .login .form-row', '.woocommerce #customer_login .login .lost_password');
            $css[$media_query][avada_implode($elements)]['float'] = 'none';
            $elements = array('.woocommerce #customer_login .login .inline', '.woocommerce #customer_login .login .lost_password');
            $css[$media_query][avada_implode($elements)]['display'] = 'block';
            $css[$media_query][avada_implode($elements)]['margin-left'] = '0';
            $css[$media_query][avada_implode($elements)]['margin-right'] = '0';
        }
        $media_query = '@media only screen and (min-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
        $css[$media_query]['body.side-header-right.layout-boxed-mode #side-header']['position'] = 'absolute';
        $css[$media_query]['body.side-header-right.layout-boxed-mode #side-header']['top'] = '0';
        $css[$media_query]['body.side-header-right.layout-boxed-mode #side-header .side-header-wrapper']['position'] = 'absolute';
        $media_query = '@media screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point') - 18) . 'px)';
        $elements = array('body.admin-bar #wrapper #slidingbar-area', 'body.layout-boxed-mode.side-header-right #slidingbar-area', '.admin-bar p.demo_store');
        $css[$media_query][avada_implode($elements)]['top'] = '46px';
        $css[$media_query]['body.body_blank.admin-bar']['top'] = '45px';
        $css[$media_query]['html #wpadminbar']['z-index'] = '99999 !important';
        $css[$media_query]['html #wpadminbar']['position'] = 'fixed !important';
        $media_query = '@media screen and (max-width: ' . intval(Avada()->settings->get('side_header_break_point')) - 32 . 'px)';
        $css[$media_query]['.fusion-tabs.vertical-tabs .tab-pane']['max-width'] = 'none !important';
        $media_query = '@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)';
        $css[$media_query]['#wrapper .ei-slider']['width'] = '100%';
        $media_query = '@media only screen and (min-device-width: 320px) and (max-device-width: 480px)';
        $css[$media_query]['#wrapper .ei-slider']['width'] = '100%';
        /* iPad Landscape Responsive Styles
        		================================================================================================= */
        $ipad_landscape_media_query = '@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)';
        // #Layout
        $css[$ipad_landscape_media_query]['.fullwidth-box']['background-attachment'] = 'scroll !important';
        $css[$ipad_landscape_media_query]['.fusion-main-menu > ul > li']['padding-right'] = intval(Avada()->settings->get('mobile_nav_padding')) . 'px';
        $css[$ipad_landscape_media_query]['#wrapper .fusion-page-title-bar']['height'] = Avada_Sanitize::size(Avada()->settings->get('page_title_height')) . ' !important';
        // # Footer Styles
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $css[$ipad_landscape_media_query][avada_implode($elements)]['height'] = 'auto';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $css[$ipad_landscape_media_query]['.fusion-footer']['height'] = 'auto';
        }
        if ('footer_area_bg_parallax' == Avada()->settings->get('footer_special_effects')) {
            $css[$ipad_landscape_media_query]['.fusion-footer-widget-area']['background-attachment'] = 'static';
            $css[$ipad_landscape_media_query]['.fusion-footer-widget-area']['margin'] = '0';
            $css[$ipad_landscape_media_query]['#main']['margin-bottom'] = '0';
        }
        $css[$ipad_landscape_media_query]['#wrapper .ei-slider']['width'] = '100%';
        $elements = array('.fullwidth-box', '.page-title-bar', '.fusion-footer-widget-area', 'body', '#main');
        $css[$ipad_landscape_media_query][avada_implode($elements)]['background-attachment'] = 'scroll !important';
        if (Avada()->settings->get('footerw_bg_image') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_parallax_effect', 'footer_area_bg_parallax', 'footer_sticky_with_parallax_bg_image'))) {
            $css[$ipad_landscape_media_query]['.fusion-body #wrapper']['background-color'] = 'transparent';
        }
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $css[$ipad_landscape_media_query][avada_implode($elements)]['height'] = 'auto';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $css[$ipad_landscape_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $css[$ipad_landscape_media_query]['.fusion-footer']['height'] = 'auto';
        }
        if (Avada()->settings->get('footer_special_effects') == 'footer_area_bg_parallax') {
            $css[$ipad_landscape_media_query]['.fusion-footer-widget-area']['background-attachment'] = 'static';
            $css[$ipad_landscape_media_query]['.fusion-footer-widget-area']['margin'] = '0';
            $css[$ipad_landscape_media_query]['#main']['margin-bottom'] = '0';
        }
        /* iPad Portrait Responsive Styles
        		================================================================================================= */
        $ipad_portrait_media_query = '@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)';
        if (Avada()->settings->get('footerw_bg_image') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_parallax_effect', 'footer_area_bg_parallax', 'footer_sticky_with_parallax_bg_image'))) {
            $css[$ipad_portrait_media_query]['.fusion-body #wrapper']['background-color'] = 'transparent';
        }
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $css[$ipad_portrait_media_query][avada_implode($elements)]['height'] = 'auto';
            $css[$ipad_portrait_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $css[$ipad_portrait_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $css[$ipad_portrait_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $css[$ipad_portrait_media_query]['.fusion-footer']['height'] = 'auto';
        }
        if ('footer_area_bg_parallax' == Avada()->settings->get('footer_special_effects')) {
            $css[$ipad_portrait_media_query]['.fusion-footer-widget-area']['background-attachment'] = 'static';
            $css[$ipad_portrait_media_query]['.fusion-footer-widget-area']['margin'] = '0';
            $css[$ipad_portrait_media_query]['#main']['margin-bottom'] = '0';
        }
        // # Layout
        $elements = array('.fusion-columns-5 .fusion-column:first-child', '.fusion-columns-4 .fusion-column:first-child', '.fusion-columns-3 .fusion-column:first-child', '.fusion-columns-2 .fusion-column:first-child', '.fusion-columns-1 .fusion-column:first-child');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = '0';
        $elements = array('.fusion-column:nth-child(5n)', '.fusion-column:nth-child(4n)', '.fusion-column:nth-child(3n)', '.fusion-column:nth-child(2n)', '.fusion-column');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper']['width'] = 'auto !important';
        $ipad_portrait[$ipad_portrait_media_query]['.create-block-format-context']['display'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.columns .col']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.columns .col']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.columns .col']['margin'] = '0 0 20px';
        $ipad_portrait[$ipad_portrait_media_query]['.columns .col']['box-sizing'] = 'border-box';
        $ipad_portrait[$ipad_portrait_media_query]['.fullwidth-box']['background-attachment'] = 'scroll !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-main-menu > ul > li']['padding-right'] = intval(Avada()->settings->get('mobile_nav_padding')) . 'px';
        if (!Avada()->settings->get('breadcrumb_mobile')) {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-body .fusion-page-title-bar .fusion-breadcrumbs']['display'] = 'none';
        }
        // # Footer Styles
        if (Avada()->settings->get('footer_sticky_height') && in_array(Avada()->settings->get('footer_special_effects'), array('footer_sticky', 'footer_sticky_with_parallax_bg_image'))) {
            $elements = array('html', 'body', '#boxed-wrapper', '#wrapper');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['height'] = 'auto';
            $ipad_portrait[$ipad_portrait_media_query]['.above-footer-wrapper']['min-height'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.above-footer-wrapper']['margin-bottom'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.above-footer-wrapper:after']['height'] = 'auto';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-footer']['height'] = 'auto';
        }
        if ('footer_area_bg_parallax' == Avada()->settings->get('footer_special_effects')) {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-footer-widget-area']['background-attachment'] = 'static';
            $css[$ipad_portrait_media_query]['.fusion-footer-widget-area']['margin'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['#main']['margin-bottom'] = '0';
        }
        $ipad_portrait[$ipad_portrait_media_query]['.review']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.review']['width'] = '100%';
        $elements = array('.fusion-social-networks', '.fusion-social-links-footer');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['display'] = 'block';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['text-align'] = 'center';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-links-footer']['width'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-links-footer .fusion-social-networks']['display'] = 'inline-block';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-links-footer .fusion-social-networks']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks']['padding'] = '0 0 15px';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-author .fusion-author-ssocial .fusion-author-tagline']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-author .fusion-author-ssocial .fusion-author-tagline']['text-align'] = 'center';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-author .fusion-author-ssocial .fusion-author-tagline']['max-width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-author .fusion-author-ssocial .fusion-social-networks']['text-align'] = 'center';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-author .fusion-author-ssocial .fusion-social-networks .fusion-social-network-icon:first-child']['margin-left'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks:after']['content'] = '""';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks:after']['display'] = 'block';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks:after']['clear'] = 'both';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks li']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-social-networks li']['display'] = 'inline-block';
        $elements = array('.fusion-reading-box-container .reading-box.reading-box-center', '.fusion-reading-box-container .reading-box.reading-box-right');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['text-align'] = 'left';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-reading-box-container .continue']['display'] = 'block';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-reading-box-container .mobile-button']['display'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-reading-box-container .mobile-button']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-title']['margin-top'] = '0px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-title']['margin-bottom'] = '20px !important';
        if (class_exists('WooCommerce')) {
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['text-align'] = 'center';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['border-top'] = '1px solid';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['border-bottom'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['width'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['line-height'] = 'normal !important';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['height'] = 'auto !important';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['margin-bottom'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['#main .cart-empty']['padding-top'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['border-top'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['border-bottom'] = '1px solid';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['width'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['text-align'] = 'center';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['line-height'] = 'normal !important';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['height'] = 'auto !important';
            $ipad_portrait[$ipad_portrait_media_query]['#main .return-to-shop']['padding-bottom'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .promo-code-heading']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .promo-code-heading']['margin-bottom'] = '10px !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .promo-code-heading']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .promo-code-heading']['text-align'] = 'center';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-contents']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-contents']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-contents']['margin'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['width'] = 'auto !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['text-align'] = 'center';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['margin-right'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-input']['margin-bottom'] = '10px !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-button']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-button']['margin-right'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-button']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce .checkout_coupon .coupon-button']['text-align'] = 'center';
        }
        // Page Title Bar
        if ('auto' != Avada()->settings->get('page_title_mobile_height')) {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-body .fusion-page-title-bar']['height'] = Avada_Sanitize::size(Avada()->settings->get('page_title_mobile_height'));
        } else {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-body .fusion-page-title-bar']['padding-top'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-body .fusion-page-title-bar']['padding-bottom'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-body .fusion-page-title-bar']['height'] = 'auto';
        }
        $elements = array('.fusion-page-title-bar-left .fusion-page-title-captions', '.fusion-page-title-bar-right .fusion-page-title-captions', '.fusion-page-title-bar-left .fusion-page-title-secondary', '.fusion-page-title-bar-right .fusion-page-title-secondary');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['display'] = 'block';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['line-height'] = 'normal';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-bar-left .fusion-page-title-secondary']['text-align'] = 'left';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-bar-left .searchform']['display'] = 'block';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-bar-left .searchform']['max-width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-bar-right .fusion-page-title-secondary']['text-align'] = 'right';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-bar-right .searchform']['max-width'] = '100%';
        if ('auto' != Avada()->settings->get('page_title_mobile_height')) {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-row']['display'] = 'table';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-row']['width'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-row']['height'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-row']['min-height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('page_title_mobile_height')) . ' -20px)';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-wrapper']['display'] = 'table-cell';
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-page-title-wrapper']['vertical-align'] = 'middle';
        }
        if (get_post_meta($c_pageID, 'pyre_page_title_height', true)) {
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .fusion-page-title-bar']['height'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_page_title_height', true)) . ' !important';
        }
        $ipad_portrait[$ipad_portrait_media_query]['.products .product-list-view']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.products .product-list-view']['min-width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.sidebar .social_links .social li']['width'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query]['.sidebar .social_links .social li']['margin-right'] = '5px';
        $ipad_portrait[$ipad_portrait_media_query]['#comment-input']['margin-bottom'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['#comment-input input']['width'] = '90%';
        $ipad_portrait[$ipad_portrait_media_query]['#comment-input input']['float'] = 'none !important';
        $ipad_portrait[$ipad_portrait_media_query]['#comment-input input']['margin-bottom'] = '10px';
        $ipad_portrait[$ipad_portrait_media_query]['#comment-textarea textarea']['width'] = '90%';
        $ipad_portrait[$ipad_portrait_media_query]['.pagination']['margin-top'] = '40px';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-one .portfolio-item .image']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-one .portfolio-item .image']['width'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-one .portfolio-item .image']['height'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-one .portfolio-item .image']['margin-bottom'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['h5.toggle span.toggle-title']['width'] = '80%';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .sep-boxed-pricing .panel-wrapper']['padding'] = '0';
        $elements = array('#wrapper .full-boxed-pricing .column', '#wrapper .sep-boxed-pricing .column');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '10px';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = '0';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box']['height'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .share-box h4']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .share-box h4']['line-height'] = '20px !important';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .share-box h4']['padding'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box ul']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box ul']['overflow'] = 'hidden';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box ul']['padding'] = '0 25px';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box ul']['padding-bottom'] = '15px';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box ul']['margin-top'] = '0px';
        $ipad_portrait[$ipad_portrait_media_query]['.project-content .project-description']['float'] = 'none !important';
        $ipad_portrait[$ipad_portrait_media_query]['.project-content .fusion-project-description-details']['margin-bottom'] = '50px';
        $elements = array('.project-content .project-description', '.project-content .project-info');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-half .flexslider']['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.portfolio-half .project-content']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['#style_selector']['display'] = 'none';
        $elements = array('.portfolio-tabs', '.faq-tabs');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['height'] = 'auto';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['border-bottom-width'] = '1px';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['border-bottom-style'] = 'solid';
        $elements = array('.portfolio-tabs li', '.faq-tabs li');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '30px';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['border-bottom'] = '0';
        $elements = array('.ls-avada .ls-nav-prev', '.ls-avada .ls-nav-next');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['display'] = 'none !important';
        $elements = array('nav#nav', 'nav#sticky-nav');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['#footer .social-networks']['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['#footer .social-networks']['margin'] = '0 auto';
        $ipad_portrait[$ipad_portrait_media_query]['#footer .social-networks']['position'] = 'relative';
        $ipad_portrait[$ipad_portrait_media_query]['#footer .social-networks']['left'] = '-11px';
        $ipad_portrait[$ipad_portrait_media_query]['.tab-holder .tabs']['height'] = 'auto !important';
        $ipad_portrait[$ipad_portrait_media_query]['.tab-holder .tabs']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.shortcode-tabs .tab-hold .tabs li']['width'] = '100% !important';
        $elements = array('body .shortcode-tabs .tab-hold .tabs li', 'body.dark .sidebar .tab-hold .tabs li');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['border-right'] = 'none !important';
        $ipad_portrait[$ipad_portrait_media_query]['.error-message']['line-height'] = '170px';
        $ipad_portrait[$ipad_portrait_media_query]['.error-message']['margin-top'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['.error_page .useful_links']['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.error_page .useful_links']['padding-left'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-google-map']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.social_links_shortcode .social li']['width'] = '10% !important';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .ei-slider']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .ei-slider']['height'] = '200px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-progressbar']['margin-bottom'] = '10px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-blog-layout-medium-alternate .fusion-post-content']['float'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-blog-layout-medium-alternate .fusion-post-content']['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-blog-layout-medium-alternate .fusion-post-content']['margin-top'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['min-height'] = 'inherit !important';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-bottom'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-left'] = '3%';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .content-boxes-icon-boxed .content-wrapper-boxed']['padding-right'] = '3%';
        $elements = array('#wrapper .content-boxes-icon-on-top .content-box-column', '#wrapper .content-boxes-icon-boxed .content-box-column');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '55px';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-counters-box .fusion-counter-box']['margin-bottom'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-counters-box .fusion-counter-box']['padding'] = '0 15px';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-counters-box .fusion-counter-box:last-child']['margin-bottom'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.popup']['display'] = 'none !important';
        $ipad_portrait[$ipad_portrait_media_query]['.share-box .social-networks']['text-align'] = 'left';
        if (class_exists('WooCommerce')) {
            $elements = array('.catalog-ordering .order', '.avada-myaccount-data .addresses .col-1', '.avada-myaccount-data .addresses .col-2', '.avada-customer-details .addresses .col-1', '.avada-customer-details .addresses .col-2', '#wrapper .catalog-ordering > .fusion-grid-list-view');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = 'auto !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = 'auto !important';
            $elements = array('.avada-myaccount-data .addresses .col-1', '.avada-myaccount-data .addresses .col-2', '.avada-customer-details .addresses .col-1', '.avada-customer-details .addresses .col-2');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100%';
            $css[$ipad_portrait_media_query]['#wrapper .catalog-ordering']['margin-bottom'] = '50px';
            $css[$ipad_portrait_media_query]['#wrapper .orderby-order-container']['display'] = 'block';
            $css[$ipad_portrait_media_query]['#wrapper .order-dropdown > li:hover > ul']['display'] = 'block';
            $css[$ipad_portrait_media_query]['#wrapper .order-dropdown > li:hover > ul']['position'] = 'relative';
            $css[$ipad_portrait_media_query]['#wrapper .order-dropdown > li:hover > ul']['top'] = '0';
            $css[$ipad_portrait_media_query]['#wrapper .orderby-order-container']['margin'] = '0 auto';
            $css[$ipad_portrait_media_query]['#wrapper .orderby-order-container']['width'] = '225px';
            $css[$ipad_portrait_media_query]['#wrapper .orderby-order-container']['float'] = 'none';
            $css[$ipad_portrait_media_query]['#wrapper .orderby.order-dropdown']['width'] = '176px';
            $css[$ipad_portrait_media_query]['#wrapper .sort-count.order-dropdown']['display'] = 'block';
            $css[$ipad_portrait_media_query]['#wrapper .sort-count.order-dropdown']['width'] = '225px';
            $css[$ipad_portrait_media_query]['#wrapper .sort-count.order-dropdown ul a']['width'] = '225px';
            $css[$ipad_portrait_media_query]['#wrapper .catalog-ordering .order']['margin'] = '0';
            $css[$ipad_portrait_media_query]['.catalog-ordering .fusion-grid-list-view']['display'] = 'block';
            $css[$ipad_portrait_media_query]['.catalog-ordering .fusion-grid-list-view']['width'] = '78px';
            $elements = array('.products-2 li:nth-child(2n+1)', '.products-3 li:nth-child(3n+1)', '.products-4 li:nth-child(4n+1)', '.products-5 li:nth-child(5n+1)', '.products-6 li:nth-child(6n+1)');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['clear'] = 'none !important';
            $ipad_portrait[$ipad_portrait_media_query]['#main .products li:nth-child(3n+1)']['clear'] = 'both !important';
            $elements = array('.products li', '#main .products li:nth-child(3n)', '#main .products li:nth-child(4n)');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '32.3% !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '1% !important';
            $elements = array('.woocommerce #customer_login .login .form-row', '.woocommerce #customer_login .login .lost_password');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none';
            $elements = array('.woocommerce #customer_login .login .inline', '.woocommerce #customer_login .login .lost_password');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.avada-myaccount-data .my_account_orders .order-number']['padding-right'] = '8px';
            $ipad_portrait[$ipad_portrait_media_query]['.avada-myaccount-data .my_account_orders .order-actions']['padding-left'] = '8px';
            $ipad_portrait[$ipad_portrait_media_query]['.shop_table .product-name']['width'] = '35%';
            $elements = array('#wrapper .woocommerce-side-nav', '#wrapper .woocommerce-content-box', '#wrapper .shipping-coupon', '#wrapper .cart_totals', '#wrapper #customer_login .col-1', '#wrapper #customer_login .col-2', '#wrapper .woocommerce form.checkout #customer_details .col-1', '#wrapper .woocommerce form.checkout #customer_details .col-2');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = 'auto';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = 'auto';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100% !important';
            $elements = array('#customer_login .col-1', '.coupon');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '20px';
            $ipad_portrait[$ipad_portrait_media_query]['.shop_table .product-thumbnail']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.product-info']['margin-left'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.product-info']['margin-top'] = '10px';
            $ipad_portrait[$ipad_portrait_media_query]['.product .entry-summary div .price']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.product .entry-summary .woocommerce-product-rating']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.product .entry-summary .woocommerce-product-rating']['margin-left'] = '0';
            $elements = array('.woocommerce-tabs .tabs', '.woocommerce-side-nav');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '25px';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-tabs .panel']['width'] = '91% !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-tabs .panel']['padding'] = '4% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#reviews li .avatar']['display'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#reviews li .comment-text']['width'] = '90% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#reviews li .comment-text']['margin-left'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query]['#reviews li .comment-text']['padding'] = '5% !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share']['overflow'] = 'hidden';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['float'] = 'left';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['margin'] = '0 auto';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['border-right'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['border-left'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['padding-left'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['padding-right'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query]['.woocommerce-container .social-share li']['width'] = '25%';
            $ipad_portrait[$ipad_portrait_media_query]['.has-sidebar .woocommerce-container .social-share li']['width'] = '50%';
            $ipad_portrait[$ipad_portrait_media_query]['.myaccount_user_container span']['width'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query]['.myaccount_user_container span']['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['.myaccount_user_container span']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['.myaccount_user_container span']['padding'] = '10px 0px';
            $ipad_portrait[$ipad_portrait_media_query]['.myaccount_user_container span']['border-right'] = '0';
            if (is_rtl()) {
                $ipad_portrait[$ipad_portrait_media_query]['.rtl .myaccount_user_container span']['border-left'] = '0';
            }
            $elements = array('.shop_table .product-thumbnail img', '.shop_table .product-thumbnail .product-info', '.shop_table .product-thumbnail .product-info p');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100%';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['.shop_table .product-thumbnail']['padding'] = '10px 0px';
            $ipad_portrait[$ipad_portrait_media_query]['.product .images']['margin-bottom'] = '30px';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .button']['float'] = 'left';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .button']['margin-bottom'] = '15px';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .remember-box']['clear'] = 'both';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .remember-box']['display'] = 'block';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .remember-box']['padding'] = '0';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .remember-box']['width'] = '125px';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .remember-box']['float'] = 'left';
            $ipad_portrait[$ipad_portrait_media_query]['#customer_login_box .lost_password']['float'] = 'left';
            $elements = array('#wrapper .product .images', '#wrapper .product .summary.entry-summary');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '50% !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .product .summary.entry-summary']['width'] = '48% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .product .summary.entry-summary']['margin-left'] = '2% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .woocommerce-tabs .tabs']['width'] = '24% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .woocommerce-tabs .tabs']['float'] = 'left !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .woocommerce-tabs .panel']['float'] = 'right !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .woocommerce-tabs .panel']['width'] = '70% !important';
            $ipad_portrait[$ipad_portrait_media_query]['#wrapper .woocommerce-tabs .panel']['padding'] = '4% !important';
            $elements = array('.product .images #slider .flex-direction-nav', '.product .images #carousel .flex-direction-nav');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['display'] = 'none !important';
            $elements = array('.myaccount_user_container span.msg', '.myaccount_user_container span:last-child');
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-left'] = '0 !important';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-right'] = '0 !important';
        }
        $ipad_portrait[$ipad_portrait_media_query]['body #small-nav']['visibility'] = 'visible !important';
        $elements = array();
        if (class_exists('GFForms')) {
            $elements[] = '.gform_wrapper .ginput_complex .ginput_left';
            $elements[] = '.gform_wrapper .ginput_complex .ginput_right';
            $elements[] = '.gform_wrapper .gfield input[type="text"]';
            $elements[] = '.gform_wrapper .gfield textarea';
        }
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-form .wpcf7-text';
            $elements[] = '.wpcf7-form .wpcf7-quiz';
            $elements[] = '.wpcf7-form .wpcf7-number';
            $elements[] = '.wpcf7-form textarea';
        }
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'none !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '100% !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['box-sizing'] = 'border-box';
        $ipad_portrait[$ipad_portrait_media_query]['#nav-uber #megaMenu']['width'] = '100%';
        $ipad_portrait[$ipad_portrait_media_query]['.fullwidth-box']['background-attachment'] = 'scroll';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop']['bottom'] = '30px';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop']['border-radius'] = '4px';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop']['height'] = '40px';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop']['z-index'] = '10000';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop:before']['line-height'] = '38px';
        $ipad_portrait[$ipad_portrait_media_query]['#toTop:hover']['background-color'] = '#333333';
        $ipad_portrait[$ipad_portrait_media_query]['.no-mobile-totop .to-top-container']['display'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.no-mobile-slidingbar #slidingbar-area']['display'] = 'none';
        $ipad_portrait[$ipad_portrait_media_query]['.tfs-slider .slide-content-container .btn']['min-height'] = '0 !important';
        $ipad_portrait[$ipad_portrait_media_query]['.tfs-slider .slide-content-container .btn']['padding-left'] = '20px';
        $ipad_portrait[$ipad_portrait_media_query]['.tfs-slider .slide-content-container .btn']['padding-right'] = '20px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.tfs-slider .slide-content-container .btn']['height'] = '26px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.tfs-slider .slide-content-container .btn']['line-height'] = '26px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-soundcloud iframe']['width'] = '100%';
        $elements = array('.fusion-columns-2 .fusion-column', '.fusion-columns-2 .fusion-flip-box-wrapper', '.fusion-columns-4 .fusion-column', '.fusion-columns-4 .fusion-flip-box-wrapper');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '50% !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left !important';
        $elements = array('.fusion-columns-2 .fusion-column:nth-of-type(3n)', '.fusion-columns-4 .fusion-column:nth-of-type(3n)', '.fusion-columns-2 .fusion-flip-box-wrapper:nth-of-type(3n)');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['clear'] = 'both';
        $elements = array('.fusion-columns-3 .fusion-column', '.fusion-columns-3 .fusion-flip-box-wrapper', '.fusion-columns-5 .fusion-column', '.fusion-columns-5 .fusion-flip-box-wrapper', '.fusion-columns-6 .fusion-column', '.fusion-columns-6 .fusion-flip-box-wrapper', '.fusion-columns-5 .col-lg-2', '.fusion-columns-5 .col-md-2', '.fusion-columns-5 .col-sm-2');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['width'] = '33.33% !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left !important';
        $elements = array('.fusion-columns-3 .fusion-column:nth-of-type(4n)', '.fusion-columns-3 .fusion-flip-box-wrapper:nth-of-type(4n)', '.fusion-columns-5 .fusion-column:nth-of-type(4n)', '.fusion-columns-5 .fusion-flip-box-wrapper:nth-of-type(4n)', '.fusion-columns-6 .fusion-column:nth-of-type(4n)', '.fusion-columns-6 .fusion-flip-box-wrapper:nth-of-type(4n)');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['clear'] = 'both';
        $elements = array('.footer-area .fusion-column', '#slidingbar .fusion-column');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '40px';
        $elements = array('.fusion-layout-column.fusion-one-sixth', '.fusion-layout-column.fusion-five-sixth', '.fusion-layout-column.fusion-one-fifth', '.fusion-layout-column.fusion-two-fifth', '.fusion-layout-column.fusion-three-fifth', '.fusion-layout-column.fusion-four-fifth', '.fusion-layout-column.fusion-one-fourth', '.fusion-layout-column.fusion-three-fourth', '.fusion-layout-column.fusion-one-third', '.fusion-layout-column.fusion-two-third', '.fusion-layout-column.fusion-one-half');
        if (is_rtl()) {
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['position'] = 'relative';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'right';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-left'] = '4%';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '0%';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '20px';
        } else {
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['position'] = 'relative';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['float'] = 'left';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-right'] = '4%';
            $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['margin-bottom'] = '20px';
        }
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-sixth']['width'] = '13.3333%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-five-sixth']['width'] = '82.6666%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-fifth']['width'] = '16.8%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-two-fifth']['width'] = '37.6%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-three-fifth']['width'] = '58.4%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-four-fifth']['width'] = '79.2%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-fourth']['width'] = '22%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-three-fourth']['width'] = '74%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-third']['width'] = '30.6666%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-two-third']['width'] = '65.3333%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-half']['width'] = '48%';
        // No spacing Columns
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-spacing-no']['margin-left'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-spacing-no']['margin-right'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-sixth.fusion-spacing-no']['width'] = '16.6666666667%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-five-sixth.fusion-spacing-no']['width'] = '83.333333333%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-fifth.fusion-spacing-no']['width'] = '20%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-two-fifth.fusion-spacing-no']['width'] = '40%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-three-fifth.fusion-spacing-no']['width'] = '60%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-four-fifth.fusion-spacing-no']['width'] = '80%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-fourth.fusion-spacing-no']['width'] = '25%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-three-fourth.fusion-spacing-no']['width'] = '75%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-third.fusion-spacing-no']['width'] = '33.33333333%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-two-third.fusion-spacing-no']['width'] = '66.66666667%';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-one-half.fusion-spacing-no']['width'] = '50%';
        if (is_rtl()) {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-column-last']['clear'] = 'left';
        } else {
            $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-column-last']['clear'] = 'right';
        }
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-column-last']['zoom'] = '1';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-column-last']['margin-left'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-layout-column.fusion-column-last']['margin-right'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-column.fusion-spacing-no']['margin-bottom'] = '0';
        $ipad_portrait[$ipad_portrait_media_query]['.fusion-column.fusion-spacing-no']['width'] = '100% !important';
        $elements = array('.ua-mobile .page-title-bar', '.ua-mobile .fusion-footer-widget-area', '.ua-mobile body', '.ua-mobile #main');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['background-attachment'] = 'scroll !important';
        if (get_post_meta($c_pageID, 'pyre_fallback', true)) {
            $ipad_portrait[$ipad_portrait_media_query]['#sliders-container']['display'] = 'none';
            $ipad_portrait[$ipad_portrait_media_query]['#fallback-slide']['display'] = 'block';
        }
        $elements = array('.fusion-secondary-header .fusion-row', '.fusion-header .fusion-row', '.footer-area > .fusion-row', '#footer > .fusion-row', '#header-sticky .fusion-row');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-left'] = '0px !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-right'] = '0px !important';
        $ipad_portrait[$ipad_portrait_media_query]['.error-message']['font-size'] = '130px';
        $elements = array('.fusion-secondary-header .fusion-row', '.fusion-header .fusion-row', '.footer-area > .fusion-row', '#footer > .fusion-row');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-left'] = '0px !important';
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['padding-right'] = '0px !important';
        $ipad_portrait[$ipad_portrait_media_query]['#wrapper .ei-slider']['width'] = '100%';
        $elements = array('.fullwidth-box', '.page-title-bar', '.fusion-footer-widget-area', 'body', '#main');
        $ipad_portrait[$ipad_portrait_media_query][avada_implode($elements)]['background-attachment'] = 'scroll !important';
        // Filter for editing the iPad Portrait Media Query Styles
        $ipad_portrait = apply_filters('avada_ipad_portrait_styles', $ipad_portrait);
        $css = array_merge($css, $ipad_portrait);
        // End iPad Portrait Media Query Styles
    }
    if (!Avada()->settings->get('responsive')) {
        $css['global']['.ua-mobile #wrapper']['width'] = '100% !important';
        $css['global']['.ua-mobile #wrapper']['overflow'] = 'hidden !important';
        $css['global']['.ua-mobile #slidingbar-area']['width'] = Avada_Sanitize::size(Avada()->settings->get('site_width'));
        $css['global']['.ua-mobile #slidingbar-area']['left'] = '0';
    }
    // WPML Flag positioning on the main menu when header is on the Left/Right.
    if (class_exists('SitePress') && 'Top' != Avada()->settings->get('header_position')) {
        $css['global']['.fusion-main-menu > ul > li > a .iclflag']['margin-top'] = '14px !important';
    }
    /**
     * IE11
     */
    if (strpos(false !== $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0')) {
        $elements = array('.avada-select-parent .select-arrow', '.select-arrow');
        if (defined('WPCF7_PLUGIN')) {
            $elements[] = '.wpcf7-select-parent .select-arrow';
        }
        $css['global'][avada_implode($elements)]['height'] = '33px';
        $css['global'][avada_implode($elements)]['line-height'] = '33px';
        $css['global']['.gravity-select-parent .select-arrow']['height'] = '24px';
        $css['global']['.gravity-select-parent .select-arrow']['line-height'] = '24px';
        if (class_exists('GFForms')) {
            $elements = array('#wrapper .gf_browser_ie.gform_wrapper .button', '#wrapper .gf_browser_ie.gform_wrapper .gform_footer input.button');
            $css['global'][avada_implode($elements)]['padding'] = '0 20px';
        }
    }
    /**
     * IE11 hack
     */
    $media_query = '@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)';
    $elements = array('.avada-select-parent .select-arrow', '.select-arrow');
    if (defined('WPCF7_PLUGIN')) {
        '.wpcf7-select-parent .select-arrow';
    }
    $css['global'][avada_implode($elements)]['height'] = '33px';
    $css['global'][avada_implode($elements)]['line-height'] = '33px';
    $css[$media_query]['.gravity-select-parent .select-arrow']['height'] = '24px';
    $css[$media_query]['.gravity-select-parent .select-arrow']['line-height'] = '24px';
    if (class_exists('GFForms')) {
        $elements = array('#wrapper .gf_browser_ie.gform_wrapper .button', '#wrapper .gf_browser_ie.gform_wrapper .gform_footer input.button');
        $css[$media_query][avada_implode($elements)]['padding'] = '0 20px';
    }
    $css[$media_query]['.fusion-imageframe, .imageframe-align-center']['font-size'] = '0px';
    $css[$media_query]['.fusion-imageframe, .imageframe-align-center']['line-height'] = 'normal';
    if ($site_width_percent) {
        $elements = array('.fusion-secondary-header', '.header-v4 #small-nav', '.header-v5 #small-nav', '#main');
        $css['global'][avada_implode($elements)]['padding-left'] = '0px';
        $css['global'][avada_implode($elements)]['padding-right'] = '0px';
        if ('100%' == Avada()->settings->get('site_width')) {
            $elements = array('#slidingbar .fusion-row', '#sliders-container .tfs-slider .slide-content-container', '#main .fusion-row', '.fusion-page-title-bar', '.fusion-header', '.fusion-footer-widget-area', '.fusion-footer-copyright-area', '.fusion-secondary-header');
            $css['global'][avada_implode($elements)]['padding-left'] = $hundredplr_padding;
            $css['global'][avada_implode($elements)]['padding-right'] = $hundredplr_padding;
        }
        $elements = array('.width-100 .fullwidth-box', '.width-100 .fullwidth-box .fusion-row .fusion-full-width-sep');
        $css['global'][avada_implode($elements)]['margin-left'] = $hundredplr_padding_negative_margin;
        $css['global'][avada_implode($elements)]['margin-right'] = $hundredplr_padding_negative_margin;
        $css['global']['#main.width-100 > .fusion-row']['padding-left'] = '0';
        $css['global']['#main.width-100 > .fusion-row']['padding-right'] = '0';
    }
    if ('Boxed' == Avada()->settings->get('layout')) {
        $elements = array('html', 'body');
        $background_color = get_post_meta($c_pageID, 'pyre_page_bg_color', true) ? get_post_meta($c_pageID, 'pyre_page_bg_color', true) : Avada_Sanitize::color(Avada()->settings->get('bg_color'));
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color($background_color);
        if (get_post_meta($c_pageID, 'pyre_page_bg', true)) {
            $css['global']['body']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_page_bg', true)) . '")';
            $css['global']['body']['background-repeat'] = get_post_meta($c_pageID, 'pyre_page_bg_repeat', true);
            if ('yes' == get_post_meta($c_pageID, 'pyre_page_bg_full', true)) {
                $css['global']['body']['background-attachment'] = 'fixed';
                $css['global']['body']['background-position'] = 'center center';
                $css['global']['body']['background-size'] = 'cover';
            }
        } elseif ('' != Avada()->settings->get('bg_image', 'url')) {
            $css['global']['body']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('bg_image', 'url')) . '")';
            $css['global']['body']['background-repeat'] = esc_attr(Avada()->settings->get('bg_repeat'));
            if (Avada()->settings->get('bg_full')) {
                $css['global']['body']['background-attachment'] = 'fixed';
                $css['global']['body']['background-position'] = 'center center';
                $css['global']['body']['background-size'] = 'cover';
            }
        }
        if (Avada()->settings->get('bg_pattern_option') && Avada()->settings->get('bg_pattern') && !(get_post_meta($c_pageID, 'pyre_page_bg_color', true) || get_post_meta($c_pageID, 'pyre_page_bg', true))) {
            $elements = array('html', 'body');
            $css['global'][avada_implode($elements)]['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_template_directory_uri() . '/assets/images/patterns/' . esc_attr(Avada()->settings->get('bg_pattern')) . '.png') . '")';
            $css['global'][avada_implode($elements)]['background-repeat'] = 'repeat';
        }
        $elements = array('#wrapper', '.fusion-footer-parallax');
        $css['global'][avada_implode($elements)]['max-width'] = $site_width_percent ? Avada_Sanitize::size(Avada()->settings->get('site_width')) : 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + 60px)';
        $css['global'][avada_implode($elements)]['margin'] = '0 auto';
        $css['global']['.wrapper_blank']['display'] = 'block';
        if (Avada()->settings->get('responsive') && $site_width_percent) {
            $elements = array('#main .fusion-row', '.fusion-footer-widget-area .fusion-row', '#slidingbar-area .fusion-row', '.fusion-footer-copyright-area .fusion-row', '.fusion-page-title-row', '.fusion-secondary-header .fusion-row', '#small-nav .fusion-row', '.fusion-header .fusion-row');
            $css['global'][avada_implode($elements)]['max-width'] = 'none';
            $css['global'][avada_implode($elements)]['padding'] = '0 10px';
        }
    }
    if ('Wide' == Avada()->settings->get('layout')) {
        $css['global']['#wrapper']['width'] = '100%';
        $css['global']['#wrapper']['max-width'] = 'none';
    }
    if ('boxed' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) {
        $elements = array('html', 'body');
        $background_color = get_post_meta($c_pageID, 'pyre_page_bg_color', true) ? get_post_meta($c_pageID, 'pyre_page_bg_color', true) : Avada_Sanitize::color(Avada()->settings->get('bg_color'));
        $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color($background_color);
        if (get_post_meta($c_pageID, 'pyre_page_bg', true)) {
            $css['global']['body']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_page_bg', true)) . '")';
            $css['global']['body']['background-repeat'] = get_post_meta($c_pageID, 'pyre_page_bg_repeat', true);
            if ('yes' == get_post_meta($c_pageID, 'pyre_page_bg_full', true)) {
                $css['global']['body']['background-attachment'] = 'fixed';
                $css['global']['body']['background-position'] = 'center center';
                $css['global']['body']['background-size'] = 'cover';
            }
        } elseif ('' != Avada()->settings->get('bg_image', 'url')) {
            $css['global']['body']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('bg_image', 'url')) . '")';
            $css['global']['body']['background-repeat'] = esc_attr(Avada()->settings->get('bg_repeat'));
            if (Avada()->settings->get('bg_full')) {
                $css['global']['body']['background-attachment'] = 'fixed';
                $css['global']['body']['background-position'] = 'center center';
                $css['global']['body']['background-size'] = 'cover';
            }
        }
        if (Avada()->settings->get('bg_pattern_option') && Avada()->settings->get('bg_pattern') && !(get_post_meta($c_pageID, 'pyre_page_bg_color', true) || get_post_meta($c_pageID, 'pyre_page_bg', true))) {
            $css['global']['body']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_template_directory_uri() . '/assets/images/patterns/' . esc_attr(Avada()->settings->get('bg_pattern')) . '.png') . '")';
            $css['global']['body']['background-repeat'] = 'repeat';
        }
        $elements = array('#wrapper', '.fusion-footer-parallax');
        $css['global'][avada_implode($elements)]['width'] = $site_width_percent ? Avada_Sanitize::size(Avada()->settings->get('site_width')) : 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + 60px)';
        $css['global'][avada_implode($elements)]['margin'] = '0 auto';
        $css['global'][avada_implode($elements)]['max-width'] = '100%';
        $css['global']['.wrapper_blank']['display'] = 'block';
    }
    if ('wide' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) {
        $css['global']['#wrapper']['width'] = '100%';
        $css['global']['#wrapper']['max-width'] = 'none';
    }
    if (get_post_meta($c_pageID, 'pyre_page_bg', true) || '' != Avada()->settings->get('bg_image', 'url')) {
        $css['global']['html']['background'] = 'none';
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_bar_bg', true)) {
        $css['global']['.fusion-page-title-bar']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_page_title_bar_bg', true)) . '")';
    } elseif ('' != Avada()->settings->get('page_title_bg', 'url')) {
        $css['global']['.fusion-page-title-bar']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('page_title_bg', 'url')) . '")';
    }
    $css['global']['.fusion-page-title-bar']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('page_title_bg_color'));
    if (get_post_meta($c_pageID, 'pyre_page_title_bar_bg_color', true)) {
        $css['global']['.fusion-page-title-bar']['background-color'] = get_post_meta($c_pageID, 'pyre_page_title_bar_bg_color', true);
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_bar_borders_color', true)) {
        $css['global']['.fusion-page-title-bar']['border-color'] = get_post_meta($c_pageID, 'pyre_page_title_bar_borders_color', true);
    }
    if ('' != Avada()->settings->get('header_bg_image', 'url')) {
        // Top bar semi transparent for header 3, move header background to wrapper
        if (in_array(Avada()->settings->get('header_layout'), array("v2", "v3")) && 'Top' == Avada()->settings->get('header_position') && Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_top_bg_color')) < 1) {
            if (intval(Avada()->settings->get('sec_menu_lh')) > 43) {
                $top_bar_height = intval(Avada()->settings->get('sec_menu_lh')) / 2 . 'px';
            } else {
                $top_bar_height = "21.5px";
            }
            $css['global']['body .fusion-header-wrapper .fusion-header']['background-color'] = 'transparent';
            $css['global']['.fusion-header-wrapper, .fusion-is-sticky .fusion-header']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('header_bg_image', 'url')) . '")';
            if (in_array(Avada()->settings->get('header_bg_repeat'), array('repeat-y', 'no-repeat'))) {
                $css['global']['.fusion-header-wrapper']['background-position'] = 'center center';
                $css['global']['.fusion-is-sticky .fusion-header']['background-position'] = '50% calc(50% - ' . $top_bar_height . ')';
            }
            $css['global']['.fusion-header-wrapper']['background-repeat'] = esc_attr(Avada()->settings->get('header_bg_repeat'));
            if (Avada()->settings->get('header_bg_full')) {
                $css['global']['.fusion-header-wrapper, .fusion-is-sticky .fusion-header']['background-attachment'] = 'scroll';
                $css['global']['.fusion-header-wrapper']['background-position'] = 'center center';
                $css['global']['.fusion-is-sticky .fusion-header']['background-position'] = '50% calc(50% - ' . $top_bar_height . ')';
                $css['global']['.fusion-header-wrapper, .fusion-is-sticky .fusion-header']['background-size'] = 'cover';
            }
            if (Avada()->settings->get('header_bg_parallax')) {
                $css['global']['.fusion-header-wrapper, .fusion-is-sticky .fusion-header']['background-attachment'] = 'fixed';
                $css['global']['.fusion-header-wrapper, .fusion-is-sticky .fusion-header']['background-position'] = 'top center';
            }
        } else {
            $css['global']['#side-header']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('header_bg_image', 'url')) . '")';
            $css['global']['.fusion-header']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('header_bg_image', 'url')) . '")';
            if (in_array(Avada()->settings->get('header_bg_repeat'), array('repeat-y', 'no-repeat'))) {
                $css['global']['#side-header']['background-position'] = 'center center';
                $css['global']['.fusion-header']['background-position'] = 'center center';
            }
            $css['global']['#side-header']['background-repeat'] = esc_attr(Avada()->settings->get('header_bg_repeat'));
            $css['global']['.fusion-header']['background-repeat'] = esc_attr(Avada()->settings->get('header_bg_repeat'));
            if (Avada()->settings->get('header_bg_full')) {
                if ('Top' == Avada()->settings->get('header_position')) {
                    $css['global']['#side-header']['background-attachment'] = 'scroll';
                    $css['global']['.fusion-header']['background-attachment'] = 'scroll';
                }
                $css['global']['#side-header']['background-position'] = 'center center';
                $css['global']['.fusion-header']['background-position'] = 'center center';
                $css['global']['#side-header']['background-size'] = 'cover';
                $css['global']['.fusion-header']['background-size'] = 'cover';
            }
            if (Avada()->settings->get('header_bg_parallax') && 'Top' == Avada()->settings->get('header_position')) {
                $css['global']['#side-header']['background-attachment'] = 'fixed';
                $css['global']['.fusion-header']['background-attachment'] = 'fixed';
                $css['global']['#side-header']['background-position'] = 'top center';
                $css['global']['.fusion-header']['background-position'] = 'top center';
            }
        }
        $css['global']['.side-header-background']['background'] = 'none';
    }
    $elements = array('.fusion-header', '.layout-boxed-mode .side-header-wrapper', '.side-header-background');
    $header_bg_opacity = 1;
    if ('' != get_post_meta($c_pageID, 'pyre_header_bg_opacity', true)) {
        $header_bg_opacity = get_post_meta($c_pageID, 'pyre_header_bg_opacity', true);
    } elseif (1 > Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_bg_color'))) {
        $header_bg_opacity = Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_bg_color'));
    }
    if (get_post_meta($c_pageID, 'pyre_header_bg_color', true)) {
        $header_bg_color_rgb = fusion_hex2rgb(get_post_meta($c_pageID, 'pyre_header_bg_color', true));
        if (get_post_meta($c_pageID, 'pyre_header_bg_color', true)) {
            $css['global'][avada_implode($elements)]['background-color'] = get_post_meta($c_pageID, 'pyre_header_bg_color', true);
            if (function_exists('is_shop') && is_shop() && !is_search() || !is_archive() && !is_404() && !is_search()) {
                $css['global'][avada_implode($elements)]['background-color'] = 'rgba(' . $header_bg_color_rgb[0] . ',' . $header_bg_color_rgb[1] . ',' . $header_bg_color_rgb[2] . ',' . $header_bg_opacity . ')';
            }
        }
    } else {
        $header_bg_color = Avada()->settings->get('header_bg_color');
        if ('' != $header_bg_opacity) {
            if (1 > Avada_Color::get_alpha_from_rgba($header_bg_color)) {
                $header_bg_color = Avada_Color::rgba2hex($header_bg_color);
            }
        }
        $css['global'][avada_implode($elements)]['background-color'] = $header_bg_color;
        if (function_exists('is_shop') && is_shop() && !is_search() || !is_archive() && !is_404() && !is_search()) {
            $css['global'][avada_implode($elements)]['background-color'] = Avada_Sanitize::color(Avada_Color::get_rgba($header_bg_color, $header_bg_opacity));
        }
    }
    $header_bg_color_rgb = Avada_Sanitize::color(Avada()->settings->get('menu_h45_bg_color'));
    $css['global']['.fusion-secondary-main-menu']['background-color'] = Avada_Sanitize::color(Avada()->settings->get('menu_h45_bg_color'));
    $elements = array('.fusion-header', '#side-header');
    if (get_post_meta($c_pageID, 'pyre_header_bg', true)) {
        $css['global'][avada_implode($elements)]['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_header_bg', true)) . '")';
        if (in_array(get_post_meta($c_pageID, 'pyre_header_bg_repeat', true), array('repeat-y', 'no-repeat'))) {
            $css['global'][avada_implode($elements)]['background-position'] = 'center center';
        }
        $css['global'][avada_implode($elements)]['background-repeat'] = get_post_meta($c_pageID, 'pyre_header_bg_repeat', true);
        if ('yes' == get_post_meta($c_pageID, 'pyre_header_bg_full', true)) {
            if ('Top' == Avada()->settings->get('header_position')) {
                $css['global'][avada_implode($elements)]['background-attachment'] = 'fixed';
            }
            $css['global'][avada_implode($elements)]['background-position'] = 'center center';
            $css['global'][avada_implode($elements)]['background-size'] = 'cover';
        }
        if (Avada()->settings->get('header_bg_parallax') && 'Top' == Avada()->settings->get('header_position')) {
            $css['global'][avada_implode($elements)]['background-attachment'] = 'fixed';
            $css['global'][avada_implode($elements)]['background-position'] = 'top center';
        }
        $css['global']['.side-header-background']['background'] = 'none';
    }
    /**
     * If the header opacity is < 1, then do not display the header background image.
     */
    if ('' != get_post_meta($c_pageID, 'pyre_header_bg_opacity', true)) {
        $header_bg_opacity = get_post_meta($c_pageID, 'pyre_header_bg_opacity', true);
    } else {
        $header_bg_opacity = Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_bg_color'));
    }
    if (1 > $header_bg_opacity) {
        $css['global']['.fusion-header-wrapper .fusion-header']['background-image'] = 'url()';
    }
    if ('no' == get_post_meta($c_pageID, 'pyre_avada_rev_styles', true) || Avada()->settings->get('avada_rev_styles') && 'yes' != get_post_meta($c_pageID, 'pyre_avada_rev_styles', true)) {
        $css['global']['.rev_slider_wrapper']['position'] = 'relative';
        if (class_exists('RevSliderFront')) {
            $header_bg_opacity = Avada_Color::get_alpha_from_rgba(Avada()->settings->get('header_bg_color'));
            if ('1' == $header_bg_opacity && !get_post_meta($c_pageID, 'pyre_header_bg_opacity', true) || get_post_meta($c_pageID, 'pyre_header_bg_opacity', true) && 1 == get_post_meta($c_pageID, 'pyre_header_bg_opacity', true)) {
                $css['global']['.rev_slider_wrapper .shadow-left']['position'] = 'absolute';
                $css['global']['.rev_slider_wrapper .shadow-left']['pointer-events'] = 'none';
                $css['global']['.rev_slider_wrapper .shadow-left']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_template_directory_uri() . '/assets/images/shadow-top.png') . '")';
                $css['global']['.rev_slider_wrapper .shadow-left']['background-repeat'] = 'no-repeat';
                $css['global']['.rev_slider_wrapper .shadow-left']['background-position'] = 'top center';
                $css['global']['.rev_slider_wrapper .shadow-left']['height'] = '42px';
                $css['global']['.rev_slider_wrapper .shadow-left']['width'] = '100%';
                $css['global']['.rev_slider_wrapper .shadow-left']['top'] = '0';
                $css['global']['.rev_slider_wrapper .shadow-left']['z-index'] = '99';
                $css['global']['.rev_slider_wrapper .shadow-left']['top'] = '-1px';
            }
            $css['global']['.rev_slider_wrapper .shadow-right']['position'] = 'absolute';
            $css['global']['.rev_slider_wrapper .shadow-right']['pointer-events'] = 'none';
            $css['global']['.rev_slider_wrapper .shadow-right']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_template_directory_uri() . '/assets/images/shadow-bottom.png') . '")';
            $css['global']['.rev_slider_wrapper .shadow-right']['background-repeat'] = 'no-repeat';
            $css['global']['.rev_slider_wrapper .shadow-right']['background-position'] = 'bottom center';
            $css['global']['.rev_slider_wrapper .shadow-right']['height'] = '32px';
            $css['global']['.rev_slider_wrapper .shadow-right']['width'] = '100%';
            $css['global']['.rev_slider_wrapper .shadow-right']['bottom'] = '0';
            $css['global']['.rev_slider_wrapper .shadow-right']['z-index'] = '99';
        }
        $css['global']['.avada-skin-rev']['border-top'] = '1px solid #d2d3d4';
        $css['global']['.avada-skin-rev']['border-bottom'] = '1px solid #d2d3d4';
        $css['global']['.avada-skin-rev']['box-sizing'] = 'content-box';
        $css['global']['.tparrows']['border-radius'] = '0';
        if (class_exists('RevSliderFront')) {
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows');
            $css['global'][avada_implode($elements)]['opacity'] = '0.8 !important';
            $css['global'][avada_implode($elements)]['position'] = 'absolute';
            $css['global'][avada_implode($elements)]['top'] = '50% !important';
            $css['global'][avada_implode($elements)]['margin-top'] = '-31px !important';
            $css['global'][avada_implode($elements)]['width'] = '63px !important';
            $css['global'][avada_implode($elements)]['height'] = '63px !important';
            $css['global'][avada_implode($elements)]['background'] = 'none';
            $css['global'][avada_implode($elements)]['background-color'] = 'rgba(0, 0, 0, 0.5)';
            $css['global'][avada_implode($elements)]['color'] = '#fff';
            $css['global'][avada_implode($elements)]['border-radius'] = '0';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows:before']['content'] = '"\\e61e"';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows:before']['-webkit-font-smoothing'] = 'antialiased';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows:before']['content'] = '"\\e620"';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows:before']['-webkit-font-smoothing'] = 'antialiased';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows:before', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows:before');
            $css['global'][avada_implode($elements)]['position'] = 'absolute';
            $css['global'][avada_implode($elements)]['padding'] = '0';
            $css['global'][avada_implode($elements)]['width'] = '100%';
            $css['global'][avada_implode($elements)]['line-height'] = '63px';
            $css['global'][avada_implode($elements)]['text-align'] = 'center';
            $css['global'][avada_implode($elements)]['font-size'] = '25px';
            $css['global'][avada_implode($elements)]['font-family'] = "'icomoon'";
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows:before']['margin-left'] = '-2px';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows:before']['margin-left'] = '-1px';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['left'] = 'auto';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['right'] = '0';
            $elements = array('.no-rgba .rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows', '.no-rgba .rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows');
            $css['global'][avada_implode($elements)]['background-color'] = '#ccc';
            $elements = array('.rev_slider_wrapper:hover .rev_slider .tp-leftarrow.tparrows', '.rev_slider_wrapper:hover .rev_slider .tp-rightarrow.tparrows');
            $css['global'][avada_implode($elements)]['display'] = 'block';
            $css['global'][avada_implode($elements)]['opacity'] = '0.8 !important';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows:hover', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows:hover');
            $css['global'][avada_implode($elements)]['opacity'] = '1 !important';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows']['background-position'] = '19px 19px';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows']['left'] = '0';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows']['margin-left'] = '0';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows']['z-index'] = '100';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['background-position'] = '29px 19px';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['right'] = '0';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['margin-left'] = '0';
            $css['global']['.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows']['z-index'] = '100';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows.hidearrows', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows.hidearrows');
            $css['global'][avada_implode($elements)]['opacity'] = '0';
            // Additional arrow styles
            $css['global']['.rev_slider_wrapper .rev_slider .tparrows.hades .tp-arr-allwrapper']['width'] = '63px';
            $css['global']['.rev_slider_wrapper .rev_slider .tparrows.hades .tp-arr-allwrapper']['height'] = '63px';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows.hebe:before', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows.hebe:before');
            $css['global'][avada_implode($elements)]['position'] = 'relative';
            $css['global'][avada_implode($elements)]['width'] = 'auto';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows.zeus', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows.zeus');
            $css['global'][avada_implode($elements)]['min-width'] = '63px';
            $css['global'][avada_implode($elements)]['min-height'] = '63px';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows.zeus .tp-title-wrap', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows.zeus .tp-title-wrap');
            $css['global'][avada_implode($elements)]['border-radius'] = '0';
            $elements = array('.rev_slider_wrapper .rev_slider .tp-leftarrow.tparrows.metis', '.rev_slider_wrapper .rev_slider .tp-rightarrow.tparrows.metis');
            $css['global'][avada_implode($elements)]['padding'] = '0';
        }
        $css['global']['.tp-bullets .bullet.last']['clear'] = 'none';
    }
    if ('' != Avada()->settings->get('content_bg_image', 'url') && !get_post_meta($c_pageID, 'pyre_wide_page_bg_color', true)) {
        $css['global']['#main']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('content_bg_image', 'url')) . '")';
        $css['global']['#main']['background-repeat'] = esc_attr(Avada()->settings->get('content_bg_repeat'));
        if (Avada()->settings->get('content_bg_full')) {
            $css['global']['#main']['background-attachment'] = 'fixed';
            $css['global']['#main']['background-position'] = 'center center';
            $css['global']['#main']['background-size'] = 'cover';
        }
    }
    if ((Avada()->settings->get('main_padding', 'top') || Avada()->settings->get('main_padding', 'top') == '0') && (!get_post_meta($c_pageID, 'pyre_main_top_padding', true) && get_post_meta($c_pageID, 'pyre_main_top_padding', true) !== '0' || !$c_pageID)) {
        $css['global']['#main']['padding-top'] = Avada_Sanitize::size(Avada()->settings->get('main_padding', 'top'));
    }
    if ((Avada()->settings->get('main_padding', 'bottom') || Avada()->settings->get('main_padding', 'bottom') == '0') && (!get_post_meta($c_pageID, 'pyre_main_bottom_padding', true) && get_post_meta($c_pageID, 'pyre_main_bottom_padding', true) !== '0' || !$c_pageID)) {
        $css['global']['#main']['padding-bottom'] = Avada_Sanitize::size(Avada()->settings->get('main_padding', 'bottom'));
    }
    if ('wide' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true) && get_post_meta($c_pageID, 'pyre_wide_page_bg_color', true)) {
        $elements = array('html', 'body', '#wrapper');
        $css['global'][avada_implode($elements)]['background-color'] = get_post_meta($c_pageID, 'pyre_wide_page_bg_color', true);
    }
    if (get_post_meta($c_pageID, 'pyre_wide_page_bg_color', true)) {
        $elements = array('#main', '#wrapper', '.fusion-separator .icon-wrapper');
        if (class_exists('bbPress')) {
            $elements[] = '.bbp-arrow';
        }
        $css['global'][avada_implode($elements)]['background-color'] = get_post_meta($c_pageID, 'pyre_wide_page_bg_color', true);
    }
    if (get_post_meta($c_pageID, 'pyre_wide_page_bg', true)) {
        $elements = array('.wrapper_blank #main', '#main');
        $css['global'][avada_implode($elements)]['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_wide_page_bg', true)) . '")';
        $css['global'][avada_implode($elements)]['background-repeat'] = get_post_meta($c_pageID, 'pyre_wide_page_bg_repeat', true);
        if ('yes' == get_post_meta($c_pageID, 'pyre_wide_page_bg_full', true)) {
            $css['global'][avada_implode($elements)]['background-attachment'] = 'fixed';
            $css['global'][avada_implode($elements)]['background-position'] = 'center center';
            $css['global'][avada_implode($elements)]['background-size'] = 'cover';
        }
    }
    if (get_post_meta($c_pageID, 'pyre_main_top_padding', true) || get_post_meta($c_pageID, 'pyre_main_top_padding', true) === '0') {
        $css['global']['#main']['padding-top'] = get_post_meta($c_pageID, 'pyre_main_top_padding', true);
    }
    if (get_post_meta($c_pageID, 'pyre_main_bottom_padding', true) || get_post_meta($c_pageID, 'pyre_main_bottom_padding', true) === '0') {
        $css['global']['#main']['padding-bottom'] = get_post_meta($c_pageID, 'pyre_main_bottom_padding', true);
    }
    if (get_post_meta($c_pageID, 'pyre_sidebar_bg_color', true)) {
        $css['global']['#main .sidebar']['background-color'] = get_post_meta($c_pageID, 'pyre_sidebar_bg_color', true);
    }
    if (Avada()->settings->get('page_title_bg_full')) {
        $css['global']['.fusion-page-title-bar']['background-size'] = 'cover';
    }
    if ('yes' == get_post_meta($c_pageID, 'pyre_page_title_bar_bg_full', true)) {
        $css['global']['.fusion-page-title-bar']['background-size'] = 'cover';
    } elseif ('no' == get_post_meta($c_pageID, 'pyre_page_title_bar_bg_full', true)) {
        $css['global']['.fusion-page-title-bar']['background-size'] = 'auto';
    }
    if (Avada()->settings->get('page_title_bg_parallax')) {
        $css['global']['.fusion-page-title-bar']['background-attachment'] = 'fixed';
        $css['global']['.fusion-page-title-bar']['background-position'] = 'top center';
    }
    if ('yes' == get_post_meta($c_pageID, 'pyre_page_title_bg_parallax', true)) {
        $css['global']['.fusion-page-title-bar']['background-attachment'] = 'fixed';
        $css['global']['.fusion-page-title-bar']['background-position'] = 'top center';
    } elseif ('no' == get_post_meta($c_pageID, 'pyre_page_title_bg_parallax', true)) {
        $css['global']['.fusion-page-title-bar']['background-attachment'] = 'scroll';
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_height', true)) {
        $css['global']['.fusion-page-title-bar']['height'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_page_title_height', true));
    } else {
        $css['global']['.fusion-page-title-bar']['height'] = Avada_Sanitize::size(Avada()->settings->get('page_title_height'));
    }
    if (is_single() && get_post_meta($c_pageID, 'pyre_fimg_width', true)) {
        if ('auto' != get_post_meta($c_pageID, 'pyre_fimg_width', true)) {
            $css['global']['#post-' . $c_pageID . ' .fusion-post-slideshow']['max-width'] = get_post_meta($c_pageID, 'pyre_fimg_width', true);
        } else {
            $css['global']['.fusion-post-slideshow .flex-control-nav']['position'] = 'relative';
            $css['global']['.fusion-post-slideshow .flex-control-nav']['text-align'] = 'center';
            $css['global']['.fusion-post-slideshow .flex-control-nav']['margin-top'] = '10px';
            $css['global']['#post-' . $c_pageID . ' .fusion-post-slideshow img']['width'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_fimg_width', true));
        }
        $css['global']['#post-' . $c_pageID . ' .fusion-post-slideshow img']['max-width'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_fimg_width', true));
    }
    if (is_single() && get_post_meta($c_pageID, 'pyre_fimg_height', true)) {
        $elements = array('#post-' . $c_pageID . ' .fusion-post-slideshow', '#post-' . $c_pageID . ' .fusion-post-slideshow img');
        $css['global'][avada_implode($elements)]['max-height'] = get_post_meta($c_pageID, 'pyre_fimg_height', true);
        $css['global']['#post-' . $c_pageID . ' .fusion-post-slideshow .slides']['max-height'] = '100%';
    }
    // Page Title Bar Retina
    if (get_post_meta($c_pageID, 'pyre_page_title_bar_bg_retina', true)) {
        $media_query = '@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx)';
        $css[$media_query]['.fusion-page-title-bar']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(get_post_meta($c_pageID, 'pyre_page_title_bar_bg_retina', true)) . '")';
        $css[$media_query]['.fusion-page-title-bar']['background-size'] = 'cover';
    } elseif ('' != Avada()->settings->get('page_title_bg_retina', 'url')) {
        $media_query = '@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx)';
        $css[$media_query]['.fusion-page-title-bar']['background-image'] = 'url("' . Avada_Sanitize::css_asset_url(Avada()->settings->get('page_title_bg_retina', 'url')) . '")';
        $css[$media_query]['.fusion-page-title-bar']['background-size'] = 'cover';
    }
    if ('content_only' == Avada()->settings->get('page_title_bar') && ('default' == get_post_meta($c_pageID, 'pyre_page_title', true) || !get_post_meta($c_pageID, 'pyre_page_title', true)) || 'yes_without_bar' == get_post_meta($c_pageID, 'pyre_page_title', true)) {
        $css['global']['.fusion-page-title-bar']['background'] = 'none';
        $css['global']['.fusion-page-title-bar']['border'] = 'none';
    }
    $elements = array('.width-100 .nonhundred-percent-fullwidth', '.width-100 .fusion-section-separator');
    $css['global'][avada_implode($elements)]['margin-left'] = $hundredplr_padding_negative_margin;
    $css['global'][avada_implode($elements)]['margin-right'] = $hundredplr_padding_negative_margin;
    if ((double) $wp_version < 3.8) {
        $css['global']['#wpadminbar *']['color'] = '#ccc';
        $elements = array('#wpadminbar .hover a', '#wpadminbar .hover a span');
        $css['global'][avada_implode($elements)]['color'] = '#464646';
    }
    if (class_exists('WooCommerce')) {
        $css['global']['.woocommerce-invalid:after']['content'] = __('Please enter correct details for this required field.', 'Avada');
        $css['global']['.woocommerce-invalid:after']['display'] = 'inline-block';
        $css['global']['.woocommerce-invalid:after']['margin-top'] = '7px';
        $css['global']['.woocommerce-invalid:after']['color'] = 'red';
    }
    if ('no' != get_post_meta(get_queried_object_id(), 'pyre_display_header', true)) {
        $elements = array('body.side-header-left #wrapper', '.side-header-left .fusion-footer-parallax');
        $css['global'][avada_implode($elements)]['margin-left'] = intval(Avada()->settings->get('side_header_width')) . 'px';
        $elements = array('body.side-header-right #wrapper', '.side-header-right .fusion-footer-parallax');
        $css['global'][avada_implode($elements)]['margin-right'] = intval(Avada()->settings->get('side_header_width')) . 'px';
        $elements = array('body.side-header-left #side-header #nav > ul > li > ul', 'body.side-header-left #side-header #nav .login-box', 'body.side-header-left #side-header #nav .main-nav-search-form');
        if (class_exists('WooCommerce')) {
            $elements[] = 'body.side-header-left #side-header #nav .cart-contents';
        }
        $css['global'][avada_implode($elements)]['left'] = intval(Avada()->settings->get('side_header_width')) - 1 . 'px';
        if (is_rtl()) {
            $css['global']['body.rtl #boxed-wrapper']['position'] = 'relative';
            $css['global']['body.rtl.layout-boxed-mode.side-header-left #side-header']['position'] = 'absolute';
            $css['global']['body.rtl.layout-boxed-mode.side-header-left #side-header']['left'] = '0';
            $css['global']['body.rtl.layout-boxed-mode.side-header-left #side-header']['top'] = '0';
            $css['global']['body.rtl.layout-boxed-mode.side-header-left #side-header']['margin-left'] = '0px';
            $css['global']['body.rtl.side-header-left #side-header .side-header-wrapper']['position'] = 'fixed';
            $css['global']['body.rtl.side-header-left #side-header .side-header-wrapper']['width'] = intval(Avada()->settings->get('side_header_width')) . 'px';
        }
        if ('Boxed' != Avada()->settings->get('layout') && 'boxed' != get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) {
            $elements = array('body.side-header-left #slidingbar .avada-row', 'body.side-header-right #slidingbar .avada-row');
            $css['global'][avada_implode($elements)]['max-width'] = 'none';
        }
    }
    if (('Boxed' == Avada()->settings->get('layout') && 'wide' != get_post_meta($c_pageID, 'pyre_page_bg_layout', true) || 'boxed' == get_post_meta($c_pageID, 'pyre_page_bg_layout', true)) && 'Top' != Avada()->settings->get('header_position')) {
        $css['global']['#boxed-wrapper']['min-height'] = '100vh';
        if (!$site_width_percent) {
            $elements = array('#boxed-wrapper', '.fusion-body .fusion-footer-parallax');
            $css['global'][avada_implode($elements)]['margin'] = '0 auto';
            $css['global'][avada_implode($elements)]['max-width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + ' . intval(Avada()->settings->get('side_header_width')) . 'px + 60px)';
            $css['global']['#slidingbar-area .fusion-row']['max-width'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + ' . intval(Avada()->settings->get('side_header_width')) . 'px)';
        } else {
            $elements = array('#boxed-wrapper', '#slidingbar-area .fusion-row', '.fusion-footer-parallax');
            $css['global'][avada_implode($elements)]['margin'] = '0 auto';
            $css['global'][avada_implode($elements)]['max-width'][] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' + ' . intval(Avada()->settings->get('side_header_width')) . 'px)';
            $css['global']['#wrapper']['max-width'] = 'none';
        }
        if ('Left' == Avada()->settings->get('header_position')) {
            $css['global']['body.side-header-left #side-header']['left'] = 'auto';
            $css['global']['body.side-header-left #side-header']['margin-left'] = '-' . intval(Avada()->settings->get('side_header_width')) . 'px';
            $css['global']['.side-header-left .fusion-footer-parallax']['margin'] = '0 auto';
            $css['global']['.side-header-left .fusion-footer-parallax']['padding-left'] = intval(Avada()->settings->get('side_header_width')) . 'px';
        } else {
            $css['global']['#boxed-wrapper']['position'] = 'relative';
            $css['global']['body.admin-bar #wrapper #slidingbar-area']['top'] = '0';
            $css['global']['.side-header-right .fusion-footer-parallax']['margin'] = '0 auto';
            $css['global']['.side-header-right .fusion-footer-parallax']['padding-right'] = intval(Avada()->settings->get('side_header_width')) . 'px';
            $media_query = '@media only screen and (min-width: ' . intval(Avada()->settings->get('side_header_break_point')) . 'px)';
            $css[$media_query]['body.side-header-right #side-header']['position'] = 'absolute';
            $css[$media_query]['body.side-header-right #side-header']['top'] = '0';
            $css[$media_query]['body.side-header-right #side-header']['right'] = '0';
            $css[$media_query]['body.side-header-right #side-header .side-header-wrapper']['position'] = 'fixed';
            /*
            $boxed_width = intval( Avada_Sanitize::size( Avada()->settings->get( 'site_width' ) ) ) + intval( Avada()->settings->get( 'side_header_width' ) ) + 60;
            $media_query = '@media only screen and (min-width: ' . $boxed_width . 'px)';
            $css[ $media_query ]['body.side-header-right #side-header']['margin-right'] = '-' . $boxed_width/2 . 'px';
            $css[ $media_query ]['body.side-header-right #side-header']['right'] = '50%';
            */
        }
    }
    if (is_page_template('contact.php') && Avada()->settings->get('gmap_address') && Avada()->settings->get('status_gmap')) {
        $css['global']['.avada-google-map']['width'] = Avada_Sanitize::size(Avada()->settings->get('gmap_dimensions', 'width'));
        $css['global']['.avada-google-map']['margin'] = '0 auto';
        if ('100%' != Avada()->settings->get('gmap_dimensions', 'width')) {
            $margin_top = Avada()->settings->get('gmap_topmargin') ? Avada()->settings->get('gmap_topmargin') : '55px';
            $css['global']['.avada-google-map']['margin-top'] = Avada_Sanitize::size($margin_top);
        }
        $gmap_height = Avada()->settings->get('gmap_dimensions', 'height') ? Avada()->settings->get('gmap_dimensions', 'height') : '415px';
        $css['global']['.avada-google-map']['height'] = Avada_Sanitize::size($gmap_height);
    } elseif (is_page_template('contact-2.php') && Avada()->settings->get('gmap_address') && Avada()->settings->get('status_gmap')) {
        $css['global']['.avada-google-map']['margin'] = '0 auto';
        $css['global']['.avada-google-map']['margin-top'] = '55px';
        $css['global']['.avada-google-map']['height'] = '415px !important';
        $css['global']['.avada-google-map']['width'] = '940px !important';
    }
    if ('yes' == get_post_meta($c_pageID, 'pyre_footer_100_width', true)) {
        $elements = array('.layout-wide-mode .fusion-footer-widget-area > .fusion-row', '.layout-wide-mode .fusion-footer-copyright-area > .fusion-row');
        $css['global'][avada_implode($elements)]['max-width'] = '100% !important';
    } elseif ('no' == get_post_meta($c_pageID, 'pyre_footer_100_width', true)) {
        $elements = array('.layout-wide-mode .fusion-footer-widget-area > .fusion-row', '.layout-wide-mode .fusion-footer-copyright-area > .fusion-row');
        $css['global'][avada_implode($elements)]['max-width'] = Avada_Sanitize::size(Avada()->settings->get('site_width')) . ' !important';
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_font_color', true) && '' != get_post_meta($c_pageID, 'pyre_page_title_font_color', true)) {
        $elements = array('.fusion-page-title-bar h1', '.fusion-page-title-bar h3');
        $css['global'][avada_implode($elements)]['color'] = Avada_Sanitize::color(get_post_meta($c_pageID, 'pyre_page_title_font_color', true));
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_text_size', true) && '' != get_post_meta($c_pageID, 'pyre_page_title_text_size', true)) {
        $css['global']['.fusion-page-title-bar h1']['font-size'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_page_title_text_size', true));
        $css['global']['.fusion-page-title-bar h1']['line-height'] = 'normal';
    }
    if (get_post_meta($c_pageID, 'pyre_page_title_custom_subheader_text_size', true) && '' != get_post_meta($c_pageID, 'pyre_page_title_custom_subheader_text_size', true)) {
        $css['global']['.fusion-page-title-bar h3']['font-size'] = Avada_Sanitize::size(get_post_meta($c_pageID, 'pyre_page_title_custom_subheader_text_size', true));
        $css['global']['.fusion-page-title-bar h3']['line-height'] = 'calc(' . Avada_Sanitize::size(Avada()->settings->get('page_title_subheader_font_size')) . ' + 12px)';
    }
    if ('yes' == get_post_meta($c_pageID, 'pyre_page_title_100_width', true)) {
        $css['global']['.layout-wide-mode .fusion-page-title-row']['max-width'] = '100%';
    }
    $header_width = Avada_Sanitize::size(Avada()->settings->get('header_100_width'));
    if ('yes' == get_post_meta($c_pageID, 'pyre_header_100_width', true)) {
        $header_width = true;
    } elseif ('no' == get_post_meta($c_pageID, 'pyre_header_100_width', true)) {
        $header_width = false;
    }
    if ($header_width) {
        $css['global']['.layout-wide-mode .fusion-header-wrapper .fusion-row']['max-width'] = '100%';
    }
    $button_text_color_brightness = fusion_calc_color_brightness(Avada_Sanitize::color(Avada()->settings->get('button_accent_color')));
    $button_hover_text_color_brightness = fusion_calc_color_brightness(Avada_Sanitize::color(Avada()->settings->get('button_accent_hover_color')));
    $text_shadow_color = 140 < $button_hover_text_color_brightness ? '#333' : '#fff';
    if (!Avada()->settings->get('responsive')) {
        $css['global']['body']['min-width'] = Avada_Sanitize::size(Avada()->settings->get('site_width'));
        if (!$site_width_percent) {
            $css['global']['html']['overflow-x'] = 'auto';
            $css['global']['body']['overflow-x'] = 'auto';
        }
    }
    $elements = array('.fusion-flexslider .flex-direction-nav a', '.fusion-flexslider.flexslider-posts .flex-direction-nav a', '.fusion-flexslider.flexslider-posts-with-excerpt .flex-direction-nav a', '.fusion-flexslider.flexslider-attachments .flex-direction-nav a', '.fusion-slider-sc .flex-direction-nav a');
    $carousel_elements = array('.fusion-carousel .fusion-carousel-nav .fusion-nav-prev', '.fusion-carousel .fusion-carousel-nav .fusion-nav-next');
    $css['global'][avada_implode($elements)]['width'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'width'));
    $css['global'][avada_implode($carousel_elements)]['width'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'width'));
    preg_match_all('!\\d+!', Avada()->settings->get('slider_nav_box_dimensions', 'height'), $matches);
    $half_slider_nav_box_height = $matches[0][0] / 2 . Avada_Sanitize::get_unit(Avada()->settings->get('slider_nav_box_dimensions', 'height'));
    $css['global'][avada_implode($elements)]['height'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'height'));
    $css['global'][avada_implode($elements)]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'height'));
    $css['global'][avada_implode($carousel_elements)]['height'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'height'));
    $css['global'][avada_implode($carousel_elements)]['margin-top'] = '-' . $half_slider_nav_box_height;
    $carousel_elements = array('.fusion-carousel .fusion-carousel-nav .fusion-nav-prev:before', '.fusion-carousel .fusion-carousel-nav .fusion-nav-next:before');
    $css['global'][avada_implode($carousel_elements)]['line-height'] = Avada_Sanitize::size(Avada()->settings->get('slider_nav_box_dimensions', 'height'));
    $css['global'][avada_implode($elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('slider_arrow_size'));
    $css['global'][avada_implode($carousel_elements)]['font-size'] = Avada_Sanitize::size(Avada()->settings->get('slider_arrow_size'));
    $elements = array('.pagination a.inactive', '.page-links a', '.woocommerce-pagination .page-numbers', '.bbp-pagination .bbp-pagination-links a.inactive', '.bbp-topic-pagination .page-numbers');
    $css['global'][avada_implode($elements)]['padding'] = Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'height')) . ' ' . Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'width'));
    $elements = array('.pagination .current', '.page-links > .page-number', '.woocommerce-pagination .current', '.bbp-pagination .bbp-pagination-links .current');
    $css['global'][avada_implode($elements)]['padding'] = Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'height')) . ' ' . Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'width'));
    $elements = array('.pagination .pagination-prev', '.woocommerce-pagination .prev', '.bbp-pagination .bbp-pagination-links .pagination-prev');
    $css['global'][avada_implode($elements)]['padding'] = Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'height')) . ' ' . Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'width'));
    $elements = array('.pagination .pagination-next', '.woocommerce-pagination .next', '.bbp-pagination .bbp-pagination-links .pagination-next', '.bbp-pagination-links span.dots');
    $css['global'][avada_implode($elements)]['padding'] = Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'height')) . ' ' . Avada_Sanitize::size(Avada()->settings->get('pagination_box_padding', 'width'));
    if (!Avada()->settings->get('pagination_text_display')) {
        $elements = array('.fusion-hide-pagination-text .page-text');
        $css['global'][avada_implode($elements)]['display'] = 'none';
        $css['global']['.fusion-hide-pagination-text .pagination-prev, .fusion-hide-pagination-text .pagination-next']['border-width'] = '1px';
        $css['global']['.fusion-hide-pagination-text .pagination-prev, .fusion-hide-pagination-text .pagination-next']['border-style'] = 'solid';
        $css['global']['.fusion-hide-pagination-text .pagination-prev']['margin'] = '0';
        $css['global']['.fusion-hide-pagination-text .pagination-next']['margin-left'] = '5px';
        $css['global']['.fusion-hide-pagination-text .pagination-prev:before, .fusion-hide-pagination-text .pagination-next:after']['line-height'] = 'normal';
        $css['global']['.fusion-hide-pagination-text .pagination-prev:before, .fusion-hide-pagination-text .pagination-next:after']['position'] = 'relative';
        $css['global']['.fusion-hide-pagination-text .pagination-prev:before, .fusion-hide-pagination-text .pagination-next:after']['margin'] = '0';
        $css['global']['.fusion-hide-pagination-text .pagination-prev:before, .fusion-hide-pagination-text .pagination-next:after']['padding'] = '0';
        $css['global']['.fusion-hide-pagination-text .pagination-next:after']['right'] = 'auto';
        if (class_exists('WooCommerce')) {
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev, .fusion-hide-pagination-text .woocommerce-pagination .next']['border-width'] = '1px';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev, .fusion-hide-pagination-text .woocommerce-pagination .next']['border-style'] = 'solid';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev']['margin'] = '0';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .next']['margin-left'] = '5px';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev:before, .fusion-hide-pagination-text .woocommerce-pagination .next:after']['line-height'] = 'normal';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev:before, .fusion-hide-pagination-text .woocommerce-pagination .next:after']['position'] = 'relative';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev:before, .fusion-hide-pagination-text .woocommerce-pagination .next:after']['margin'] = '0';
            $css['global']['.fusion-hide-pagination-text .woocommerce-pagination .prev:before, .fusion-hide-pagination-text .woocommerce-pagination .next:after']['padding'] = '0';
        }
        if (class_exists('bbPress')) {
            $css['global']['.fusion-hide-pagination-text  .bbp-pagination-links .page-text']['display'] = 'none';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next']['border-width'] = '1px';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next']['border-style'] = 'solid';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev']['margin'] = '0';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-next']['margin-left'] = '5px';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev:before, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next:after']['line-height'] = 'normal';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev:before, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next:after']['position'] = 'relative';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev:before, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next:after']['margin'] = '0';
            $css['global']['.fusion-hide-pagination-text .bbp-pagination-links .pagination-prev:before, .fusion-hide-pagination-text .bbp-pagination-links .pagination-next:after']['padding'] = '0';
        }
    }
    // Animations
    $css['@-webkit-keyframes avadaSonarEffect']['0%']['opacity'] = '0.3';
    $css['@-webkit-keyframes avadaSonarEffect']['40%']['opacity'] = '0.5';
    $css['@-webkit-keyframes avadaSonarEffect']['100%']['-webkit-transform'] = 'scale(1.5)';
    $css['@-webkit-keyframes avadaSonarEffect']['100%']['opacity'] = '0';
    $css['@-moz-keyframes avadaSonarEffect']['0%']['opacity'] = '0.3';
    $css['@-moz-keyframes avadaSonarEffect']['40%']['opacity'] = '0.5';
    $css['@-moz-keyframes avadaSonarEffect']['100%']['-moz-transform'] = 'scale(1.5)';
    $css['@-moz-keyframes avadaSonarEffect']['100%']['opacity'] = '0';
    $css['@keyframes avadaSonarEffect']['0%']['opacity'] = '0.3';
    $css['@keyframes avadaSonarEffect']['40%']['opacity'] = '0.5';
    $css['@keyframes avadaSonarEffect']['100%']['transform'] = 'scale(1.5)';
    $css['@keyframes avadaSonarEffect']['100%']['opacity'] = '0';
    return apply_filters('avada_dynamic_css_array', $css);
}
コード例 #25
0
ファイル: background.php プロジェクト: pedrom40/sazoo.org
/**
 * Background settings
 *
 * @var  array  	any existing settings
 * @return array 	existing sections + background
 *
 */
function avada_options_section_background($sections)
{
    $settings = get_option(Avada::get_option_name());
    $sections['background'] = array('label' => esc_html__('Background', 'Avada'), 'id' => 'heading_background', 'priority' => 11, 'icon' => 'el-icon-photo', 'fields' => array('main_content_bg_subsection' => array('label' => esc_html__('Main Content Background', 'Avada'), 'description' => '', 'id' => 'main_content_bg_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('content_bg_color' => array('label' => esc_html__('Main Content Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the main content area which is everything below header and above footer.', 'Avada'), 'id' => 'content_bg_color', 'default' => '#ffffff', 'type' => 'color-alpha'), 'content_bg_image' => array('label' => esc_html__('Background Image For Main Content Area', 'Avada'), 'description' => esc_html__('Select an image to use for the main content area background.', 'Avada'), 'id' => 'content_bg_image', 'default' => '', 'mod' => '', 'type' => 'media'), 'content_bg_full' => array('label' => esc_html__('100% Background Image', 'Avada'), 'description' => esc_html__('Turn on to have the main content background image display at 100% in width and height according to the window size.', 'Avada'), 'id' => 'content_bg_full', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'content_bg_repeat' => array('label' => esc_html__('Background Repeat', 'Avada'), 'description' => esc_html__('Controls how the background image repeats.', 'Avada'), 'id' => 'content_bg_repeat', 'default' => 'no-repeat', 'type' => 'select', 'choices' => array('repeat' => esc_html__('Repeat All', 'Avada'), 'repeat-x' => esc_html__('Repeat Horizontally', 'Avada'), 'repeat-y' => esc_html__('Repeat Vertically', 'Avada'), 'no-repeat' => esc_html__('No Repeat', 'Avada')), 'required' => array(array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'content_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))))), 'boxed_mode_bg_subsection' => array('label' => esc_html__('Boxed Mode Background', 'Avada'), 'description' => '', 'id' => 'boxed_mode_bg_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('bg_image' => array('label' => esc_html__('Background Image For Outer Areas In Boxed Mode', 'Avada'), 'description' => esc_html__('Select an image to use for the outer background area in boxed mode.', 'Avada'), 'id' => 'bg_image', 'default' => '', 'mod' => '', 'type' => 'media'), 'bg_full' => array('label' => esc_html__('100% Background Image', 'Avada'), 'description' => esc_html__('Turn on to have the outer boxed background image display at 100% in width and height according to the window size.', 'Avada'), 'id' => 'bg_full', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'bg_repeat' => array('label' => esc_html__('Background Repeat', 'Avada'), 'description' => esc_html__('Controls how the background image repeats.', 'Avada'), 'id' => 'bg_repeat', 'default' => 'no-repeat', 'type' => 'select', 'choices' => array('repeat' => esc_html__('Repeat All', 'Avada'), 'repeat-x' => esc_html__('Repeat Horizontally', 'Avada'), 'repeat-y' => esc_html__('Repeat Vertically', 'Avada'), 'no-repeat' => esc_html__('No Repeat', 'Avada')), 'required' => array(array('setting' => 'bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')))), 'bg_color' => array('label' => esc_html__('Background Color For Outer Areas In Boxed Mode', 'Avada'), 'description' => esc_html__('Controls the background color of the outer background area in boxed mode.', 'Avada'), 'id' => 'bg_color', 'default' => '#d7d6d6', 'type' => 'color-alpha'), 'bg_pattern_option' => array('label' => esc_html__('Background Pattern', 'Avada'), 'description' => esc_html__('Turn on to display a pattern in the outer background area in boxed mode.', 'Avada'), 'id' => 'bg_pattern_option', 'default' => '0', 'type' => 'switch'), 'bg_pattern' => array('label' => esc_html__('Select a Background Pattern', 'Avada'), 'id' => 'bg_pattern', 'default' => 'pattern1', 'type' => 'radio-image', 'choices' => array('pattern1' => get_template_directory_uri() . '/assets/images/patterns/pattern1.png', 'pattern2' => get_template_directory_uri() . '/assets/images/patterns/pattern2.png', 'pattern3' => get_template_directory_uri() . '/assets/images/patterns/pattern3.png', 'pattern4' => get_template_directory_uri() . '/assets/images/patterns/pattern4.png', 'pattern5' => get_template_directory_uri() . '/assets/images/patterns/pattern5.png', 'pattern6' => get_template_directory_uri() . '/assets/images/patterns/pattern6.png', 'pattern7' => get_template_directory_uri() . '/assets/images/patterns/pattern7.png', 'pattern8' => get_template_directory_uri() . '/assets/images/patterns/pattern8.png', 'pattern9' => get_template_directory_uri() . '/assets/images/patterns/pattern9.png', 'pattern10' => get_template_directory_uri() . '/assets/images/patterns/pattern10.png', 'pattern11' => get_template_directory_uri() . '/assets/images/patterns/pattern11.png', 'pattern12' => get_template_directory_uri() . '/assets/images/patterns/pattern12.png', 'pattern13' => get_template_directory_uri() . '/assets/images/patterns/pattern13.png', 'pattern14' => get_template_directory_uri() . '/assets/images/patterns/pattern14.png', 'pattern15' => get_template_directory_uri() . '/assets/images/patterns/pattern15.png', 'pattern16' => get_template_directory_uri() . '/assets/images/patterns/pattern16.png', 'pattern17' => get_template_directory_uri() . '/assets/images/patterns/pattern17.png', 'pattern18' => get_template_directory_uri() . '/assets/images/patterns/pattern18.png', 'pattern19' => get_template_directory_uri() . '/assets/images/patterns/pattern19.png', 'pattern20' => get_template_directory_uri() . '/assets/images/patterns/pattern20.png', 'pattern21' => get_template_directory_uri() . '/assets/images/patterns/pattern21.png', 'pattern22' => get_template_directory_uri() . '/assets/images/patterns/pattern22.png'), 'required' => array(array('setting' => 'bg_pattern_option', 'operator' => '==', 'value' => '1')))))));
    return $sections;
}
コード例 #26
0
 private function debug($debug_mode = FALSE)
 {
     if ($debug_mode) {
         global $current_user;
         delete_user_meta($current_user->ID, 'avada_update_notice');
         delete_option('avada_version');
         update_option('avada_version', '3.9');
         delete_option('avada_previous_version');
         delete_option(Avada::get_option_name());
         var_dump("Current Version: " . Avada::$version);
         var_dump("DB Version: " . get_option('avada_version', false));
         var_dump("Previous Version: " . get_option('avada_previous_version', false));
         var_dump("Update Notice: " . get_user_meta($current_user->ID, 'avada_update_notice', TRUE));
     }
     return;
 }
コード例 #27
0
 /**
  * Get column width of the current page
  *
  * @var     $column     integer (0=main, 1=sidebar1, 2-sidebar2)
  * @return  integer
  */
 public function get_content_width($column = 0)
 {
     /**
      * The content width
      */
     $options = get_option(Avada::get_option_name());
     $site_width = isset($options['site_width']) ? $options['site_width'] : '1100px';
     if (intval($site_width)) {
         // Site width is using %
         if (false !== strpos($site_width, '%')) {
             $site_width = Avada_Helper::percent_to_pixels($site_width);
         } elseif (false !== strpos($site_width, 'em')) {
             $site_width = Avada_Helper::ems_to_pixels($site_width);
         }
     } else {
         // fallback to 1100px
         $site_width = 1100;
     }
     /**
      * Sidebars width
      */
     $sidebar_1_width = 0;
     $sidebar_2_width = 0;
     if (Avada()->template->has_sidebar() && !Avada()->template->double_sidebars()) {
         if ('tribe_events' == get_post_type()) {
             $sidebar_1_width = Avada()->settings->get('ec_sidebar_width');
         } else {
             $sidebar_1_width = Avada()->settings->get('sidebar_width');
         }
     } elseif (Avada()->template->double_sidebars()) {
         if ('tribe_events' == get_post_type()) {
             $sidebar_1_width = Avada()->settings->get('ec_sidebar_2_1_width');
             $sidebar_2_width = Avada()->settings->get('ec_sidebar_2_2_width');
         } else {
             $sidebar_1_width = Avada()->settings->get('sidebar_2_1_width');
             $sidebar_2_width = Avada()->settings->get('sidebar_2_2_width');
         }
     } elseif (!Avada()->template->has_sidebar() && (is_page_template('side-navigation.php') || is_singular('tribe_events'))) {
         if ('tribe_events' == get_post_type()) {
             $sidebar_1_width = Avada()->settings->get('ec_sidebar_width');
         } else {
             $sidebar_1_width = Avada()->settings->get('sidebar_width');
         }
     }
     if ($sidebar_1_width) {
         if (false !== strpos($sidebar_1_width, '%')) {
             $sidebar_1_width = Avada_Helper::percent_to_pixels($sidebar_1_width, $site_width);
         } elseif (false !== strpos($sidebar_1_width, 'em')) {
             $sidebar_1_width = Avada_Helper::ems_to_pixels($sidebar_1_width);
         } else {
             $sidebar_1_width = intval($sidebar_1_width);
         }
     }
     if ($sidebar_2_width) {
         if (false !== strpos($sidebar_2_width, '%')) {
             $sidebar_2_width = Avada_Helper::percent_to_pixels($sidebar_2_width, $site_width);
         } elseif (false !== strpos($sidebar_1_width, 'em')) {
             $sidebar_2_width = Avada_Helper::ems_to_pixels($sidebar_2_width);
         } else {
             $sidebar_2_width = intval($sidebar_2_width);
         }
     }
     $columns = 1;
     if ($site_width && $sidebar_1_width && $sidebar_2_width) {
         $columns = 3;
     } elseif ($site_width && $sidebar_1_width) {
         $columns = 2;
     }
     $gutter = 1 < $columns ? 80 : 0;
     // $extra_gutter = ( $columns - 1 ) * $gutter;
     $extra_gutter = $gutter;
     $sidebar_1_width = (int) $sidebar_1_width;
     $sidebar_2_width = (int) $sidebar_2_width;
     $content_width = $site_width - $sidebar_1_width - $sidebar_2_width - $extra_gutter;
     return $content_width;
 }
コード例 #28
0
ファイル: footer.php プロジェクト: pedrom40/sazoo.org
/**
 * Footer settings
 *
 * @var  array  	any existing settings
 * @return array 	existing sections + footer
 *
 */
function avada_options_section_footer($sections)
{
    $settings = get_option(Avada::get_option_name(), array());
    $sections['footer'] = array('label' => esc_html__('Footer', 'Avada'), 'id' => 'heading_footer', 'priority' => 9, 'icon' => 'el-icon-arrow-down', 'class' => 'hidden-section-heading', 'fields' => array('footer_content_options_subsection' => array('label' => esc_html__('Footer Content', 'Avada'), 'id' => 'footer_content_options_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('footer_widgets' => array('label' => esc_html__('Footer Widgets', 'Avada'), 'description' => esc_html__('Turn on to display footer widgets.', 'Avada'), 'id' => 'footer_widgets', 'default' => '1', 'type' => 'switch'), 'footer_widgets_columns' => array('label' => esc_html__('Number of Footer Columns', 'Avada'), 'description' => esc_html__('Controls the number of columns in the footer.', 'Avada'), 'id' => 'footer_widgets_columns', 'default' => '4', 'choices' => array('min' => '1', 'max' => '6', 'step' => '1'), 'type' => 'slider', 'required' => array(array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))), 'footer_widgets_center_content' => array('label' => esc_html__('Center Footer Widgets Content', 'Avada'), 'description' => esc_html__('Turn on to center the footer widget content.', 'Avada'), 'id' => 'footer_widgets_center_content', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))), 'footer_special_effects' => array('label' => 'Footer Special Effects', 'description' => esc_html__('Select a special effect for the footer area.', 'Avada'), 'id' => 'footer_special_effects', 'default' => 'none', 'type' => 'radio', 'choices' => array('none' => esc_html__('None', 'Avada'), 'footer_parallax_effect' => array(esc_html__('Footer Parallax Effect', 'Avada'), esc_html__('This enables a fixed footer with parallax scrolling effect.', 'Avada')), 'footer_area_bg_parallax' => array(esc_html__('Parallax Background Image', 'Avada'), esc_html__('This enables a parallax effect on the background image selected in "Background Image For Footer Widget Area" field.', 'Avada')), 'footer_sticky' => array(esc_html__('Sticky Footer', 'Avada'), esc_html__('This enables a sticky footer. The entire footer area will always be "below the fold". On very short pages, it makes sure that the footer sticks at the bottom, just above the fold. IMPORTANT: "Sticky Footer Height" field must be filled in.', 'Avada')), 'footer_sticky_with_parallax_bg_image' => array(esc_html__('Sticky Footer and Parallax Background Image', 'Avada'), esc_html__('This enables a sticky footer together with a parallax effect on the background image. The entire footer area will always be "below the fold". IMPORTANT: "Sticky Footer Height" field must be filled in.', 'Avada')))), 'footer_sticky_height' => array('label' => esc_html__('Sticky Footer Height', 'Avada'), 'description' => sprintf(esc_html__('The entire height of the footer area (widgets + copyright) %1s View tutorial here %2s. Set a static height in px to enable sticky footer effect. Set to 0 to disable.', 'Avada'), '<a href="https://theme-fusion.com/avada-doc/footer-special-effects/" target="_blank">', '</a>'), 'id' => 'footer_sticky_height', 'default' => '0', 'type' => 'slider', 'choices' => array('min' => '0', 'step' => '1', 'max' => '700', 'edit' => 'yes'), 'required' => array(array('setting' => 'footer_special_effects', 'operator' => '!=', 'value' => 'none'), array('setting' => 'footer_special_effects', 'operator' => '!=', 'value' => 'footer_parallax_effect'), array('setting' => 'footer_special_effects', 'operator' => '!=', 'value' => 'footer_area_bg_parallax'))), 'footer_copyright' => array('label' => esc_html__('Copyright Bar', 'Avada'), 'description' => esc_html__('Turn on to display the copyright bar.', 'Avada'), 'id' => 'footer_copyright', 'default' => '1', 'type' => 'switch'), 'footer_copyright_center_content' => array('label' => esc_html__('Center Copyright Content', 'Avada'), 'description' => esc_html__('Turn on to center the copyright bar content.', 'Avada'), 'id' => 'footer_copyright_center_content', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'footer_copyright', 'operator' => '==', 'value' => '1'))), 'footer_text' => array('label' => esc_html__('Copyright Text', 'Avada'), 'description' => esc_html__('Enter the text that displays in the copyright bar. HTML markup can be used.', 'Avada'), 'id' => 'footer_text', 'default' => sprintf(esc_html__('Copyright %1s Avada | All Rights Reserved | Powered by %2s | %3s', 'Avada'), '2012 - ' . date('Y'), '<a href="http://wordpress.org">WordPress</a>', '<a href="http://theme-fusion.com">Theme Fusion</a>'), 'type' => 'textarea', 'sanitize_callback' => array('Kirki_Sanitize', 'unfiltered'), 'required' => array(array('setting' => 'footer_copyright', 'operator' => '==', 'value' => '1'))))), 'footer_background_image_options_subsection' => array('label' => esc_html__('Footer Background Image', 'Avada'), 'id' => 'footer_background_image_options_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('footerw_bg_image' => array('label' => esc_html__('Background Image For Footer Widget Area', 'Avada'), 'description' => esc_html__('Select an image for the footer widget background. If left empty, the footer background color will be used.', 'Avada'), 'id' => 'footerw_bg_image', 'default' => '', 'mod' => '', 'type' => 'media', 'required' => array(array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))), 'footerw_bg_full' => array('label' => esc_html__('100% Background Image', 'Avada'), 'description' => esc_html__('Turn on to have the footer background image display at 100% in width and height according to the window size.', 'Avada'), 'id' => 'footerw_bg_full', 'default' => '0', 'type' => 'switch', 'required' => array(array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')), array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))), 'footerw_bg_repeat' => array('label' => esc_html__('Background Repeat', 'Avada'), 'description' => esc_html__('Controls how the background image repeats.', 'Avada'), 'id' => 'footerw_bg_repeat', 'default' => 'no-repeat', 'type' => 'select', 'choices' => array('repeat' => esc_html__('Repeat All', 'Avada'), 'repeat-x' => esc_html__('Repeat Horizontally', 'Avada'), 'repeat-y' => esc_html__('Repeat Vertically', 'Avada'), 'no-repeat' => esc_html__('No Repeat', 'Avada')), 'required' => array(array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')), array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))), 'footerw_bg_pos' => array('label' => esc_html__('Background Position', 'Avada'), 'description' => esc_html__('Controls how the background image is positioned.', 'Avada'), 'id' => 'footerw_bg_pos', 'default' => 'center center', 'type' => 'select', 'choices' => array('top left' => esc_html__('top left', 'Avada'), 'top center' => esc_html__('top center', 'Avada'), 'top right' => esc_html__('top right', 'Avada'), 'center left' => esc_html__('center left', 'Avada'), 'center center' => esc_html__('center center', 'Avada'), 'center right' => esc_html__('center right', 'Avada'), 'bottom left' => esc_html__('bottom left', 'Avada'), 'bottom center' => esc_html__('bottom center', 'Avada'), 'bottom right' => esc_html__('bottom right', 'Avada')), 'required' => array(array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => ''), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '')), array('setting' => 'footerw_bg_image', 'operator' => '!=', 'value' => array('url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '')), array('setting' => 'footer_widgets', 'operator' => '==', 'value' => '1'))))), 'footer_styling_options_subsection' => array('label' => esc_html__('Footer Styling', 'Avada'), 'id' => 'footer_styling_options_subsection', 'icon' => true, 'type' => 'sub-section', 'fields' => array('footer_100_width' => array('label' => esc_html__('100% Footer Width', 'Avada'), 'description' => esc_html__('Turn on to have the footer area display at 100% width according to the window size. Turn off to follow site width.', 'Avada'), 'id' => 'footer_100_width', 'default' => '0', 'type' => 'switch'), 'footer_area_padding' => array('label' => esc_html__('Footer Padding', 'Avada'), 'description' => esc_html__('Controls the top/right/bottom/left padding for the footer.', 'Avada'), 'id' => 'footer_area_padding', 'choices' => array('top' => true, 'bottom' => true, 'left' => true, 'right' => true, 'units' => array('px', '%')), 'default' => array('top' => '43px', 'bottom' => '40px', 'left' => '0px', 'right' => '0px'), 'type' => 'spacing'), 'footer_bg_color' => array('label' => esc_html__('Footer Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the footer.', 'Avada'), 'id' => 'footer_bg_color', 'default' => '#363839', 'type' => 'color-alpha'), 'footer_border_size' => array('label' => esc_html__('Footer Border Size', 'Avada'), 'description' => esc_html__('Controls the size of the top footer border.', 'Avada'), 'id' => 'footer_border_size', 'default' => '12', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'footer_border_color' => array('label' => esc_html__('Footer Border Color', 'Avada'), 'description' => esc_html__('Controls the border colors of the footer.', 'Avada'), 'id' => 'footer_border_color', 'default' => '#e9eaee', 'type' => 'color-alpha'), 'footer_divider_color' => array('label' => esc_html__('Footer Widget Divider Color', 'Avada'), 'description' => esc_html__('Controls the divider color in the footer widgets.', 'Avada'), 'id' => 'footer_divider_color', 'default' => '#505152', 'type' => 'color-alpha'), 'copyright_padding' => array('label' => esc_html__('Copyright Padding', 'Avada'), 'description' => esc_html__('Controls the top/bottom padding for the copyright area.', 'Avada'), 'id' => 'copyright_padding', 'default' => array('top' => '18px', 'bottom' => '16px'), 'choices' => array('top' => true, 'bottom' => true), 'type' => 'spacing', 'required' => array(array('setting' => 'footer_copyright', 'operator' => '==', 'value' => '1'))), 'copyright_bg_color' => array('label' => esc_html__('Copyright Background Color', 'Avada'), 'description' => esc_html__('Controls the background color of the footer copyright area.', 'Avada'), 'id' => 'copyright_bg_color', 'default' => '#282a2b', 'type' => 'color-alpha', 'required' => array(array('setting' => 'footer_copyright', 'operator' => '==', 'value' => '1'))), 'copyright_border_size' => array('label' => esc_html__('Copyright Border Size', 'Avada'), 'description' => esc_html__('Controls the size of the top copyright border.', 'Avada'), 'id' => 'copyright_border_size', 'default' => '1', 'type' => 'slider', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1')), 'copyright_border_color' => array('label' => esc_html__('Copyright Border Color', 'Avada'), 'description' => esc_html__('Controls the border colors for the footer copyright area.', 'Avada'), 'id' => 'copyright_border_color', 'default' => '#4b4c4d', 'type' => 'color-alpha', 'required' => array(array('setting' => 'footer_copyright', 'operator' => '==', 'value' => '1'))), 'footer_typography_info' => array('label' => esc_html__('Footer Typography', 'Avada'), 'description' => '', 'id' => 'footer_typography_info', 'type' => 'info'), 'footer_headings_typography' => array('id' => 'footer_headings_typography', 'label' => esc_html__('Footer Headings Typography', 'Avada'), 'description' => esc_html__('These settings control the typography for the footer headings.', 'Avada'), 'type' => 'typography', 'choices' => array('font-family' => true, 'font-size' => true, 'font-weight' => true, 'line-height' => true, 'letter-spacing' => true, 'color' => true), 'default' => array('font-family' => 'PT Sans', 'font-size' => '13px', 'font-weight' => '400', 'line-height' => '1.5', 'letter-spacing' => '0', 'color' => '#dddddd')), 'footer_text_color' => array('label' => esc_html__('Footer Font Color', 'Avada'), 'description' => esc_html__('Controls the text color of the footer font.', 'Avada'), 'id' => 'footer_text_color', 'default' => '#8C8989', 'type' => 'color'), 'footer_link_color' => array('label' => esc_html__('Footer Link Color', 'Avada'), 'description' => esc_html__('Controls the text color of the footer link font.', 'Avada'), 'id' => 'footer_link_color', 'default' => '#BFBFBF', 'type' => 'color'), 'copyright_font_size' => array('label' => esc_html__('Copyright Font Size', 'Avada'), 'description' => esc_html__('Controls the font size for the copyright text.', 'Avada'), 'id' => 'copyright_font_size', 'default' => '12px', 'type' => 'dimension', 'choices' => array('units' => array('px', 'em')))))));
    return $sections;
}
コード例 #29
0
ファイル: footer.php プロジェクト: HelloWorldDevs/proudground
				</div>  <!-- fusion-row -->

			</div>  <!-- #main -->




			<?php 
global $social_icons;
if (strpos(Avada()->settings->get('footer_special_effects'), 'footer_sticky') !== FALSE) {
    echo '</div>';
}
// Get the correct page ID
$c_pageID = Avada::c_pageID();
//Check for proudground custom footer
//PRE STYLGREEN FOOTER
if (get_post_meta($c_pageID, 'pyre_use_pg_footer', true) == 'green') {
    echo '<div id="footer-green"><div class="footer-city-image"></div></div>';
} elseif (get_post_meta($c_pageID, 'pyre_use_pg_footer', true) == 'red') {
    echo '<div id="footer-red"><div class="footer-city-image"></div></div>';
} elseif (get_post_meta($c_pageID, 'pyre_use_pg_footer', true) == 'custom') {
    $image = get_field('custom_footer_image', $post->ID);
    echo '<div id="footer-custom" style="background-color:';
    echo get_post_meta($c_pageID, 'custom_footer_bg_color', true);
    echo ';"><div class="footer-city-image" style="background-image: url(';
    echo $image['url'];
    echo ');"></div></div>';
}
// Only include the footer
if (!is_page_template('blank.php')) {
    $footer_parallax_class = '';
コード例 #30
0
 /**
  * Sets the value of a single setting
  */
 public function set($setting, $value)
 {
     $settings = self::$saved_options;
     $settings[$setting] = $value;
     update_option(Avada::get_option_name(), $settings);
 }