Buongiorno a tutti, sto lavorando su un tema Wordpress pro STOCKHOLM-HUGO
Sto impazzendo per tagliere il logo e ho paura di toccare qualcosa che non devo!
Non so dove mettere le manixxxxx
div class="q_logo_vertical">
<a href="<?php echo esc_url(home_url('/')); ?>">
<img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/>
<img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/>
<img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/>
</a>
</div>
</div>
<div class="header_inner_left">
<?php if($centered_logo && $header_bottom_appearance !== "stick menu_bottom") {
dynamic_sidebar( 'header_left_from_logo' );
} ?>
<div class="logo_wrapper">
<?php
if (isset($qode_options['logo_image']) && $qode_options['logo_image'] != ""){ $logo_image = $qode_options['logo_image'];}else{ $logo_image = get_template_directory_uri().'/img/logo.png'; };
if (isset($qode_options['logo_image_light']) && $qode_options['logo_image_light'] != ""){ $logo_image_light = $qode_options['logo_image_light'];}else{ $logo_image_light = get_template_directory_uri().'/img/logo.png'; };
if (isset($qode_options['logo_image_dark']) && $qode_options['logo_image_dark'] != ""){ $logo_image_dark = $qode_options['logo_image_dark'];}else{ $logo_image_dark = get_template_directory_uri().'/img/logo_black.png'; };
if (isset($qode_options['logo_image_sticky']) && $qode_options['logo_image_sticky'] != ""){ $logo_image_sticky = $qode_options['logo_image_sticky'];}else{ $logo_image_sticky = get_template_directory_uri().'/img/logo_black.png'; };
if (isset($qode_options['logo_image_popup']) && $qode_options['logo_image_popup'] != ""){ $logo_image_popup = $qode_options['logo_image_popup'];}else{ $logo_image_popup = get_template_directory_uri().'/img/logo_white.png'; };
if (isset($qode_options['logo_image_fixed_hidden']) && $qode_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $qode_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden = get_template_directory_uri().'/img/logo.png'; };
?>
<div class="q_logo"><a href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
<?php if($header_bottom_appearance == "fixed_hiding") { ?>
<div class="q_logo_hidden"><a href="<?php echo esc_url(home_url('/')); ?>"><img alt="Logo" src="<?php echo esc_url($logo_image_fixed_hidden); ?>" style="height: 100%;"></a></div>
<?php } ?>
</div>
<?php if($header_bottom_appearance == "stick menu_bottom" && is_active_sidebar('header_fixed_right')){ ?>
<div class="header_fixed_right_area">
<?php dynamic_sidebar('header_fixed_right'); ?>
</div>
<?php } ?>
<?php if($centered_logo && $header_bottom_appearance !== "stick menu_bottom") {
dynamic_sidebar( 'header_right_from_logo' );
} ?>
</div>
<?php if($header_bottom_appearance == "stick_with_left_right_menu") { ?>
<nav class="main_menu drop_down right_side <?php echo esc_attr($menu_dropdown_appearance_class); ?>">
<?php
<?php if($header_bottom_appearance != "stick menu_bottom" && $header_bottom_appearance != "stick_with_left_right_menu"){ ?>
<?php if($header_bottom_appearance == "fixed_hiding") { ?> <div class="holeder_for_hidden_menu"> <?php } //only for fixed with hiding menu ?>
<?php if(!$centered_logo) { ?>
<div class="header_inner_right">
<div class="side_menu_button_wrapper right">
<?php if(is_active_sidebar('header_bottom_right')) { ?>
<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
<?php } ?>
<?php if(is_active_sidebar('woocommerce_dropdown')) {
dynamic_sidebar('woocommerce_dropdown');
} ?>
<div class="side_menu_button">
<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
<a class="search_button <?php echo esc_attr($search_type); ?>" href="javascript:void(0)">
<i class="fa fa-search"></i>
</a>
<?php } ?>
<?php if($enable_popup_menu == "yes"){ ?>
<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size); ?>"><span class="popup_menu_inner"><i class="line"> </i></span></a>
<?php } ?>
<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
<a class="side_menu_button_link <?php echo esc_attr($header_button_size); ?>" href="#">
<i class="fa fa-bars"></i>
</a><?php } ?>
</div>
</div>
</div>
<?php } ?>
<?php if($centered_logo == true && $enable_border_top_bottom_menu == true) { ?> <div class="main_menu_and_widget_holder"> <?php } //only for logo is centered ?>
<nav class="main_menu drop_down <?php echo esc_attr($menu_dropdown_appearance_class); ?> <?php if($menu_position == "" && $header_bottom_appearance != "stick menu_bottom"){ echo ' right';} ?>">
<?php
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type1_walker_nav_menu()
));
?>
</nav>
<?php if($centered_logo) { ?>
<div class="header_inner_right">
<div class="side_menu_button_wrapper right">
<?php if(is_active_sidebar('header_bottom_right')) { ?>
<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
<?php } ?>
<?php if(is_active_sidebar('woocommerce_dropdown')) {
dynamic_sidebar('woocommerce_dropdown');
} ?>
<div class="side_menu_button">
<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
<a class="search_button <?php echo esc_attr($search_type); ?>" href="javascript:void(0)">
<i class="fa fa-search"></i>
</a>
<?php } ?>
<?php if($enable_popup_menu == "yes"){ ?>
<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size); ?>"><span class="popup_menu_inner"><i class="line"> </i></span></a>
<?php } ?>
<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
<a class="side_menu_button_link <?php echo esc_attr($header_button_size); ?>" href="#">
<i class="fa fa-bars"></i>
</a>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<?php if($centered_logo == true && $enable_border_top_bottom_menu == true) { ?> </div> <?php } //only for logo is centered ?>
<?php if($header_bottom_appearance == "fixed_hiding") { ?> </div> <?php } //only for fixed with hiding menu ?>
<?php }else if($header_bottom_appearance == "stick menu_bottom"){ ?>
<div class="header_menu_bottom">
<div class="header_menu_bottom_inner">
<?php if($centered_logo) { ?>
<div class="main_menu_header_inner_right_holder with_center_logo">
<?php } else { ?>
<div class="main_menu_header_inner_right_holder">
<?php } ?>
<nav class="main_menu drop_down <?php echo esc_attr($menu_dropdown_appearance_class); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => 'clearfix',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type1_walker_nav_menu()
));
?>
</nav>
<div class="header_inner_right">
<div class="side_menu_button_wrapper right">
<?php if(is_active_sidebar('header_bottom_right')) { ?>
<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
<?php } ?>
<?php if(is_active_sidebar('woocommerce_dropdown')) {
dynamic_sidebar('woocommerce_dropdown');
} ?>
<div class="side_menu_button">
<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
<a class="search_button <?php echo esc_attr($search_type); ?>" href="javascript:void(0)">
<i class="fa fa-search"></i>
</a>
<?php } ?>
<?php if($enable_popup_menu == "yes"){ ?>
<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size); ?>"><span class="popup_menu_inner"><i class="line"> </i></span></a>
<?php } ?>
<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
<a class="side_menu_button_link <?php echo esc_attr($header_button_size); ?>" href="#">
<i class="fa fa-bars"></i>
</a>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<nav class="mobile_menu">
<?php
if($header_bottom_appearance == "stick_with_left_right_menu") {
echo '<ul>';
wp_nav_menu( array( 'theme_location' => 'left-top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => '',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type4_walker_nav_menu(),
'items_wrap' => '%3$s'
));
wp_nav_menu( array( 'theme_location' => 'right-top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => '',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type4_walker_nav_menu(),
'items_wrap' => '%3$s'
));
echo '</ul>';
}else{
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type2_walker_nav_menu()
));
}
?>
</nav>
<?php if($header_in_grid){ ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</header>
<?php } else{?>
<header class="page_header <?php if($display_header_top == "yes"){ echo 'has_top'; } if($header_top_area_scroll == "yes"){ echo ' scroll_top'; }?> <?php if($centered_logo){ echo " centered_logo"; } ?> <?php echo esc_attr($header_bottom_appearance); ?> <?php echo esc_attr($header_style); ?> <?php if(is_active_sidebar('header_fixed_right')) { echo 'has_header_fixed_right'; } ?>">
<?php if(isset($qode_toolbar)) include("toolbar.php") ?>
<div class="header_inner clearfix">
<div class="header_bottom clearfix" <?php echo wp_kses($header_color_per_page, array('style')); ?> >
<?php if($header_in_grid){ ?>
<div class="container">
<div class="container_inner clearfix" <?php echo wp_kses($header_bottom_border_style, array('style')); ?>>
<?php } ?>
<div class="header_inner_left">
<?php if(qode_is_main_menu_set()) { ?>
<div class="mobile_menu_button"><span><i class="fa fa-bars"></i></span></div>
<?php } ?>
<div class="logo_wrapper">
<?php
if (isset($qode_options['logo_image']) && $qode_options['logo_image'] != ""){ $logo_image = $qode_options['logo_image'];}else{ $logo_image = get_template_directory_uri().'/img/logo.png'; };
if (isset($qode_options['logo_image_light']) && $qode_options['logo_image_light'] != ""){ $logo_image_light = $qode_options['logo_image_light'];}else{ $logo_image_light = get_template_directory_uri().'/img/logo.png'; };
if (isset($qode_options['logo_image_dark']) && $qode_options['logo_image_dark'] != ""){ $logo_image_dark = $qode_options['logo_image_dark'];}else{ $logo_image_dark = get_template_directory_uri().'/img/logo_black.png'; };
if (isset($qode_options['logo_image_sticky']) && $qode_options['logo_image_sticky'] != ""){ $logo_image_sticky = $qode_options['logo_image_sticky'];}else{ $logo_image_sticky = get_template_directory_uri().'/img/logo_black.png'; };
if (isset($qode_options['logo_image_popup']) && $qode_options['logo_image_popup'] != ""){ $logo_image_popup = $qode_options['logo_image_popup'];}else{ $logo_image_popup = get_template_directory_uri().'/img/logo_white.png'; };
?>
<div class="q_logo"><a href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
</div>
</div>
<?php if($header_in_grid){ ?>
</div>
</div>
<?php } ?>
<nav class="mobile_menu">
<?php
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type2_walker_nav_menu()
));
?>
</nav>
</div>
</div>
</header>
<?php } ?>
<?php if($qode_options['show_back_button'] == "yes") { ?>
<a id='back_to_top' href='#'>
<span class="fa-stack">
<span class="arrow_carrot-up"></span>
</span>
</a>
<?php } ?>
<?php if($enable_popup_menu == "yes"){ ?>
<div class="popup_menu_holder_outer">
<div class="popup_menu_holder">
<div class="popup_menu_holder_inner">
<nav class="popup_menu">
<?php
wp_nav_menu( array( 'theme_location' => 'popup-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new qode_type3_walker_nav_menu()
));
?>
</nav>
</div>
</div>
</div>
<?php } ?>
<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes" && $search_type == "fullscreen_search"){ ?>
<div class="fullscreen_search_holder">
<div class="fullscreen_search_table">
<div class="fullscreen_search_cell">
<div class="fullscreen_search_inner">
<form role="search" id="searchform" action="<?php echo esc_url(home_url('/')); ?>" class="fullscreen_search_form" method="get">
<div class="form_holder">
<input type="text" placeholder="<?php _e("Type in what you're looking for", 'qode'); ?>" name="s" class="qode_search_field" autocomplete="off" />
<input type="submit" class="search_submit" value="" />
</div>
</form>
</div>
</div>
</div>
<div class="qode_search_close">
<a href="#" class="fullscreen_search_close">
<i class="line"> </i>
</a>
</div>
</div>
<?php } ?>
<?php
$content_class = "";
$is_title_area_visible = true;
if(get_post_meta($id, "qode_show-page-title", true) == 'yes') {
$is_title_area_visible = true;
} elseif(get_post_meta($id, "qode_show-page-title", true) == 'no') {
$is_title_area_visible = false;
} elseif(get_post_meta($id, "qode_show-page-title", true) == '' && (isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'yes')) {
$is_title_area_visible = true;
} elseif(get_post_meta($id, "qode_show-page-title", true) == '' && (isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'no')) {
$is_title_area_visible = false;
} elseif(isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'yes') {
$is_title_area_visible = true;
}
$header_transparency_search = true;
if((is_search() || is_404()) && isset($qode_options['header_background_transparency_initial']) && $qode_options['header_background_transparency_initial'] !== "" && $qode_options['header_background_transparency_initial'] !== "1"){
$header_transparency_search = false;
}
//this isn't used because contact page map isn't on top anymore.
$is_contact_page_with_solid_header_and_map = qode_is_contact_page_template() && $qode_options['enable_google_map'] === 'yes' && ($header_transparency === '' || $header_transparency == 1);
if(qode_is_content_below_header()){
if($qode_options['header_bottom_appearance'] == "stick_with_left_right_menu" || $qode_options['header_bottom_appearance'] == "regular" || $qode_options['header_bottom_appearance'] == "stick" || $qode_options['header_bottom_appearance'] == "stick menu_bottom"){
$content_class = "content_top_margin_none";
} else{
$content_class = "content_top_margin";
}
} else {
if((get_post_meta($id, "qode_revolution-slider", true) == "" && $is_title_area_visible && ($header_transparency === '' || $header_transparency == 1)) || ((is_search() || is_404()) && $is_title_area_visible && $header_transparency_search)){
if($qode_options['header_bottom_appearance'] == "fixed" || $qode_options['header_bottom_appearance'] == "fixed_hiding"){
$content_class = "content_top_margin";
}else {
$content_class = "content_top_margin_none";
}
}
}
?>
<?php
if(isset($qode_options['paspartu']) && $qode_options['paspartu'] == 'yes') { ?>
<div class="paspartu_top"></div>
<div class="paspartu_bottom"></div>
<div class="paspartu_left"></div>
<div class="paspartu_right"></div>
<?php } ?>
<div class="content <?php echo esc_attr($content_class); ?>">
<?php
$animation = get_post_meta($id, "qode_show-animation", true);
if (!empty($_SESSION['qode_animation']) && $animation == "")
$animation = $_SESSION['qode_animation'];
?>
<?php if($qode_options['page_transitions'] == "1" || $qode_options['page_transitions'] == "2" || $qode_options['page_transitions'] == "3" || $qode_options['page_transitions'] == "4" || ($animation == "updown") || ($animation == "fade") || ($animation == "updown_fade") || ($animation == "leftright")){ ?>
<div class="meta">
<?php do_action('qode_ajax_meta'); ?>
<span id="qode_page_id"><?php echo esc_html(get_queried_object_id()); ?></span>
<div class="body_classes"><?php echo esc_html(implode( ',', get_body_class())); ?></div>
</div>
<?php } ?>
<div class="content_inner <?php echo esc_attr($animation);?> ">
<?php if($qode_options['page_transitions'] == "1" || $qode_options['page_transitions'] == "2" || $qode_options['page_transitions'] == "3" || $qode_options['page_transitions'] == "4" || ($animation == "updown") || ($animation == "fade") || ($animation == "updown_fade") || ($animation == "leftright")){ ?>
<?php do_action('qode_visual_composer_custom_shortcodce_css');?>
<?php } ?>