__('Sidebar', 'avenews'), 'id' => 'avenews-sidebar', 'description' => __('The sidebar will display any widgets that are added to this region.', 'avenews'), ); $sidebar_args['homepage_upper_content_area'] = array( 'name' => __( 'Homepage Upper Primary Area', 'avenews' ), 'id' => 'avenews-upper-content-area', 'description' => __( 'The widgets added to this region will only be visible on main sidebar of the HomePage.', 'avenews' ), ); $sidebar_args['homepage_upper_sidebar_area'] = array( 'name' => __( 'Homepage Upper Sidebar Area', 'avenews' ), 'id' => 'avenews-upper-sidebar-area', 'description' => __( 'The widgets added to this region will only be visible on the sidebar of the HomePage.', 'avenews' ), ); $sidebar_args['homepage_fullwidth'] = array( 'name' => __('Homepage Fullwidth', 'avenews'), 'id' => 'avenews-homepage-fullwidth', 'description' => __('Any widgets that are placed in this area will be displayed as fullwidth Homepage section.', 'avenews'), 'before_widget' => '
", ); $sidebar_args['homepage_lower_content_area'] = array( 'name' => __( 'Homepage Lower Primary Area', 'avenews' ), 'id' => 'avenews-lower-content-area', 'description' => __( 'The widgets added to this region will only be visible on main sidebar of the HomePage.', 'avenews' ), ); $sidebar_args['homepage_lower_sidebar_area'] = array( 'name' => __( 'Homepage Lower Sidebar Area', 'avenews' ), 'id' => 'avenews-lower-sidebar-area', 'description' => __( 'The widgets added to this region will only be visible on the sidebar of the HomePage.', 'avenews' ), ); $sidebar_args['offcanvas_sidebar'] = array( 'name' => __('Offcanvas Widget', 'avenews'), 'id' => 'avenews-offcanvas-widget', 'description' => __('Any widgets that are placed in this area will be displayed on the offcanvas sidebar.', 'avenews'), ); /*Get homepage sidebar option from the customizer*/ $front_page_enable_sidebar = avenews_get_option('front_page_enable_sidebar'); if ($front_page_enable_sidebar) { $sidebar_args['homepage_sidebar'] = array( 'name' => __('Homepage Sidebar', 'avenews'), 'id' => 'home-page-sidebar', 'description' => __('The widgets added to this region will only be visible on the sidebar of the homepage.', 'avenews'), ); } $sidebar_args['above_footer'] = array( 'name' => __('Footer Fullwidth', 'avenews'), 'id' => 'fullwidth-footer-widgetarea', 'description' => __('Widgets added to this region will appear above the footer.', 'avenews'), 'before_widget' => '", ); /*Get the footer column from the customizer*/ $footer_column_layout = avenews_get_option('footer_column_layout'); if ($footer_column_layout) { switch ($footer_column_layout) { case "footer_layout_1": $footer_column = 3; break; case "footer_layout_2": $footer_column = 2; break; default: $footer_column = 3; } } else { $footer_column = 3; } $cols = intval(apply_filters('avenews_footer_widget_columns', $footer_column)); for ($j = 1; $j <= $cols; $j++) { $footer = sprintf('footer_%d', $j); $footer_region_name = sprintf(__('Footer Column %1$d', 'avenews'), $j); $footer_region_description = sprintf(__('Widgets added here will appear in column %1$d of the footer.', 'avenews'), $j); $sidebar_args[$footer] = array( 'name' => $footer_region_name, 'id' => sprintf('footer-%d', $j), 'description' => $footer_region_description, ); } $sidebar_args = apply_filters('avenews_sidebar_args', $sidebar_args); foreach ($sidebar_args as $sidebar => $args) { $widget_tags = array( 'before_widget' => '', 'before_title' => '