function avia_sidebar_menu_additions()
 {
     $settings = avia_header_setting();
     $output = "";
     if ($settings['header_position'] != "header_top") {
         /*add social icons*/
         if ($settings['sidebarmenu_social'] != "disabled") {
             $social_args = array('outside' => 'ul', 'inside' => 'li', 'append' => '');
             $social = avia_social_media_icons($social_args, false);
             if ($social) {
                 $output .= "<div class='av-sidebar-social-container'>" . $social . "</div>";
             }
         }
         /*add widgets*/
         if (!empty($settings['sidebarmenu_widgets'])) {
             if ('av-auto-widget-logic' == $settings['sidebarmenu_widgets']) {
             } else {
                 if (is_dynamic_sidebar($settings['sidebarmenu_widgets'])) {
                     ob_start();
                     dynamic_sidebar($settings['sidebarmenu_widgets']);
                     $output .= ob_get_clean();
                     $output = "<aside class='avia-custom-sidebar-widget-area sidebar sidebar_right'>" . $output . "</aside>";
                 }
             }
         }
     }
     echo $output;
 }
Exemple #2
0
				<footer class='container_wrap socket_color' id='socket' <?php 
        avia_markup_helper(array('context' => 'footer'));
        ?>
>
                    <div class='container'>

                        <span class='copyright'><?php 
        echo $copyright . $kriesi_at_backlink;
        ?>
</span>

                        <?php 
        if (avia_get_option('footer_social', 'disabled') != "disabled") {
            $social_args = array('outside' => 'ul', 'inside' => 'li', 'append' => '');
            echo avia_social_media_icons($social_args, false);
        }
        echo "<nav class='sub_menu_socket' " . avia_markup_helper(array('context' => 'nav', 'echo' => false)) . ">";
        $avia_theme_location = 'avia3';
        $avia_menu_class = $avia_theme_location . '-menu';
        $args = array('theme_location' => $avia_theme_location, 'menu_id' => $avia_menu_class, 'container_class' => $avia_menu_class, 'fallback_cb' => '', 'depth' => 1);
        wp_nav_menu($args);
        echo "</nav>";
        ?>

                    </div>

	            <!-- ####### END SOCKET CONTAINER ####### -->
				</footer>

Exemple #3
0
    /*
     * Hook that can be used for plugins and theme extensions (currently:  the woocommerce shopping cart)
     */
    do_action('ava_main_header');
    ?>
				
				<div class='container'>
				
					<?php 
    /*
     *	display the theme logo by checking if the default logo was overwritten in the backend.
     *   the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
     */
    echo avia_logo(AVIA_BASE_URL . 'images/layout/logo.png', false, 'strong');
    if (strpos($headerS, 'social_header') !== false && strpos($headerS, 'bottom_nav_header') !== false) {
        avia_social_media_icons($social_args);
    }
    /*
     *	display the main navigation menu
     *   modify the output in your wordpress admin backend at appearance->menus
     */
    $extraOpen = $extraClose = "";
    if (strpos($headerS, 'bottom_nav_header') !== false) {
        $extraClose = "</div></div><div id='header_main_alternate' class='container_wrap'><div class='container'>";
    }
    echo $extraClose;
    echo "<div class='main_menu' data-selectname='" . __('Select a page', 'avia_framework') . "'>";
    $args = array('theme_location' => 'avia', 'fallback_cb' => 'avia_fallback_menu', 'walker' => new avia_responsive_mega_menu());
    wp_nav_menu($args);
    echo "</div>";
    /*
<?php

$responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
$headerS = avia_header_setting();
$social_args = array('outside' => 'ul', 'inside' => 'li', 'append' => '');
$icons = !empty($headerS['header_social']) ? avia_social_media_icons($social_args, false) : "";
if (isset($headerS['disabled'])) {
    return;
}
?>

<header id='header' class=' header_color <?php 
avia_is_dark_bg('header_color');
echo " " . $headerS['header_class'];
?>
' <?php 
avia_markup_helper(array('context' => 'header', 'post_type' => 'forum'));
?>
>

<?php 
if ($responsive) {
    echo '<a id="advanced_menu_toggle" href="#" ' . av_icon_string('mobile_menu') . '></a>';
    echo '<a id="advanced_menu_hide" href="#" 	' . av_icon_string('close') . '></a>';
}
//subheader, only display when the user chooses a social header
if ($headerS['header_topbar'] == true) {
    ?>
		<div id='header_meta' class='container_wrap container_wrap_meta <?php 
    echo avia_header_class_string(array('header_social', 'header_secondary_menu', 'header_phone_active'), 'av_');
    ?>