示例#1
0
 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;
 }
示例#2
0
 */
wp_head();
?>

</head>




<body id="top" <?php 
body_class($style . " " . $avia_config['font_stack'] . " " . $blank);
avia_markup_helper(array('context' => 'body'));
?>
>

	<div id='wrap_all'>

	<?php 
if (!$blank) {
    //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
    get_template_part('includes/helper', 'main-menu');
}
?>
	
	<div id='main' data-scroll-offset='<?php 
echo avia_header_setting('header_scroll_offset');
?>
'>

	<?php 
do_action('ava_after_main_container');
示例#3
0
<?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_');
    ?>
示例#4
0
<?php

global $avia_config;
$style = $avia_config['box_class'];
$responsive = avia_get_option('responsive_layout', 'responsive');
$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
$headerS = !$blank ? avia_header_setting() : "";
$headerMenu = $responsive ? avia_get_option('header_menu', 'mobile_drop_down') : "";
?>

<!DOCTYPE html>
<html <?php 
language_attributes();
?>
 class="<?php 
echo " html_{$style} " . $responsive . " " . $headerS;
?>
 ">
<head>
<meta charset="<?php 
bloginfo('charset');
?>
" />
<?php 
/*
 * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
 * located in framework/php/function-set-avia-frontend.php
 */
if (function_exists('avia_set_follow')) {
    echo avia_set_follow();
}
示例#5
0
 function avia_header_html_custom_height()
 {
     $settings = avia_header_setting();
     if ($settings['header_size'] == "custom") {
         $size = $settings['header_custom_size'];
         $bottom_bar = $settings['bottom_menu'] == true ? 36 : 0;
         $top_bar = $settings['header_topbar'] == true ? 30 : 0;
         $html = "";
         $html .= "\n<style type='text/css' media='screen'>\n";
         $html .= "\t#header_main .container, .main_menu ul:first-child > li a{ height:{$size}px; line-height: {$size}px; }\n";
         $html .= "\t.html_header_top.html_header_sticky #top #wrap_all #main{ padding-top:" . ((int) $size + $bottom_bar + $top_bar) . "px; } \n";
         $html .= "</style>\n";
         echo $html;
     }
 }