Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Magento
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Academic Free License (AFL 3.0)
- * that is bundled with this package in the file LICENSE_AFL.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/afl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@magentocommerce.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade Magento to newer
- * versions in the future. If you wish to customize Magento for your
- * needs please refer to http://www.magentocommerce.com for more information.
- *
- * @category design
- * @package base_default
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
- */
- /**
- * @var Mage_Page_Block_Html_Header $this
- */
- ?>
- <div class="em-header-container em-header-wrapper">
- <div class="em-header container_24 ">
- <div class="em-header-content">
- <div class="grid_24 header-top">
- <div class="em-quick-access">
- <div class="em-toplink">
- <p class="welcome-msg"><?php echo $this->getWelcome() ?> <?php echo $this->getAdditionalHtml() ?></p>
- <?php echo $this->getChildHtml('topLinks') ?>
- <?php echo $this->getChildHtml('galagiftshop_header_ad');?>
- <?php echo $this->getChildHtml('store_language') ?>
- <?php echo $this->getChildHtml('header.currency') ?>
- <?php echo $this->getChildHtml('store_switcher');?>
- </div>
- </div>
- </div>
- <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('header-phone')->toHtml(); ?>
- <div class="clear"></div>
- <div class="grid_24 header-bottom">
- <div class="header-bottom-content">
- <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
- <ul class="link-bottom">
- <?php if (Mage::getSingleton('customer/session')->isLoggedIn()==0): ?>
- <li class="register"><a title="<?php echo $this->__('Register') ?>" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'customer/account/create'; ?>"><?php echo $this->__('Register') ?></a></li>
- <li class="login"><a title="<?php echo $this->__('Sign in') ?>" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'customer/account/login/'; ?>" ><?php echo $this->__('Sign in') ?></a></li>
- <?php else: ?>
- <li class="contacts"><a title="<?php echo $this->__('Contact Us') ?>" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'contacts'; ?>"><?php echo $this->__('Contact') ?></a></li>
- <li class="logout"><a title="<?php echo $this->__('Log out') ?>" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'customer/account/logout'; ?>"><?php echo $this->__('Log out') ?></a></li>
- <?php endif ?>
- </ul>
- <div>
- </div>
- <div class="em-top-search"><?php echo $this->getChildHtml('topSearch') ?>
- </div>
- <?php echo $this->getChildHtml('cart_sidebar'); ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- </div>
- <div>
- </div>
- <?php if(Mage::helper("galagiftshopsettings/mainmenu")->gettype() != 'default_hor' && Mage::helper("galagiftshopsettings/mainmenu")->gettype() != 'default_ver'): ?>
- <?php
- $idmenu = Mage::helper("galagiftshopsettings")->getGeneral_MainMenu();
- $model = Mage::getModel('megamenupro/megamenupro')->load($idmenu)->getData();
- ?>
- <?php if($model['type'] == 0):?>
- <div class="em-header-menu">
- <div class="container_24 em-menu">
- <div class="header-menu-content">
- <div id="sticky-anchor"></div>
- <div class="grid_24 em-menu-content">
- <div class="header-menu">
- <?php echo Mage::helper("galagiftshopsettings/mainmenu")->getmenu(); ?>
- </div>
- <?php echo $this->getChildHtml('topContainer'); ?>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <script type="text/javascript">//<![CDATA[
- jQuery(window).bind('emadaptchange',function(){
- function fixedtopMenu() {
- var $=jQuery;
- if (FREEZED_TOP_MENU !=0 && isPhone == false){
- var sticky_navigation = function(){
- var scroll_top = $(window).scrollTop();
- var div_top = $('#sticky-anchor').offset().top;
- if($('body').hasClass('adapt-0') == false){
- if (scroll_top > div_top) {
- $('.em-menu-content').addClass('fixed-top');
- } else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- }else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- //sticky_navigation();
- $(window).scroll(function() {
- sticky_navigation();
- });
- }
- if($('body').hasClass('adapt-0') == true){
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- fixedtopMenu();
- });
- jQuery(window).bind('load',function(){
- function persistentMenu() {
- var $ = jQuery;
- var sticky_navigation = function(){
- var scroll_top = $(window).scrollTop();
- var div_top = $('#sticky-anchor').offset().top;
- if($('body').hasClass('adapt-0') == false){
- if (scroll_top > div_top) {
- $('.em-menu-content').addClass('fixed-top');
- } else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- }else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- if($('body').hasClass('adapt-0') == true){
- $('.em-menu-content').removeClass('fixed-top');
- }
- $(window).scroll(function() {
- sticky_navigation();
- });
- };
- if (FREEZED_TOP_MENU !=0 && isPhone == false){persistentMenu();}
- });
- //]]>
- </script>
- </div>
- <?php endif;?>
- <?php elseif(Mage::helper("galagiftshopsettings/mainmenu")->gettype() == 'default_hor') : ?>
- <div class="em-header-menu">
- <div class="container_24 em-menu">
- <div class="header-menu-content">
- <div id="sticky-anchor"></div>
- <div class="grid_24 em-menu-content">
- <div class="header-menu">
- <?php echo $this->getChildHtml('topMenu') ?>
- <?php echo $this->getChildHtml('topContainer'); ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <script type="text/javascript">//<![CDATA[
- jQuery(window).bind('emadaptchange',function(){
- function fixedtopMenu() {
- var $=jQuery;
- if (FREEZED_TOP_MENU !=0 && isPhone == false){
- var sticky_navigation = function(){
- var scroll_top = $(window).scrollTop();
- var div_top = $('#sticky-anchor').offset().top;
- if($('body').hasClass('adapt-0') == false){
- if (scroll_top > div_top) {
- $('.em-menu-content').addClass('fixed-top');
- } else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- }else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- //sticky_navigation();
- $(window).scroll(function() {
- sticky_navigation();
- });
- }
- if($('body').hasClass('adapt-0') == true){
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- fixedtopMenu();
- });
- jQuery(window).bind('load',function(){
- function persistentMenu() {
- var $ = jQuery;
- var sticky_navigation = function(){
- var scroll_top = $(window).scrollTop();
- var div_top = $('#sticky-anchor').offset().top;
- if($('body').hasClass('adapt-0') == false){
- if (scroll_top > div_top) {
- $('.em-menu-content').addClass('fixed-top');
- } else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- }else {
- $('.em-menu-content').removeClass('fixed-top');
- }
- };
- if($('body').hasClass('adapt-0') == true){
- $('.em-menu-content').removeClass('fixed-top');
- }
- $(window).scroll(function() {
- sticky_navigation();
- });
- };
- if (FREEZED_TOP_MENU !=0 && isPhone == false){persistentMenu();}
- });
- //]]>
- </script>
- </div>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement