Thread: logoWrapper

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default logoWrapper

    I would like to do some rearranging in my header but can not figure this bit of code out - I do not want to break anything!

    Code:
    Code:
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    Can someone please explain to me what is going on here? Which code snippets can be commented out (or otherwise) or moved etc, etc.
    Thank you,
    autoace

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: logoWrapper

    Quote Originally Posted by autoace View Post
    I would like to do some rearranging in my header but can not figure this bit of code out - I do not want to break anything!

    Code:
    Code:
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    Can someone please explain to me what is going on here? Which code snippets can be commented out (or otherwise) or moved etc, etc.
    What do you want to re-arrange exactly?

    The logoWrapper holds your logo, sales text message and a banner (from admin -> tools -> banner manager) if one is enabled.

    This displays your logo(if one is defined in includes/languages/english/YOUR_TEMPLATE/header.php)
    Code:
    <div id="logo">php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    This sets conditions under which the the tagline/sales text and the banner will be displayed. if the conditions are true they will be displayed otherwise they will not be displayed.
    Code:
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    This will display your tagline/sales text (if defined in includes/languages/english/YOUR_TEMPLATE/header.php)
    Code:
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    This will display a banner (image/or text) (if defined in admin -> configuration -> layout settings -> Banner Display Groups - Header Position 2)
    Code:
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    Not sure if this is what you wanted or not.

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: logoWrapper

    Yes, Clyde - helps alot.
    Thank you,
    autoace

 

 

Similar Threads

  1. logowrapper problem
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Feb 2011, 08:15 PM
  2. LogoWrapper background
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Nov 2009, 07:54 PM
  3. Firefox logoWrapper issue
    By robertrhu in forum General Questions
    Replies: 1
    Last Post: 16 Jul 2009, 12:00 PM
  4. logoWrapper Help
    By SGP in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Sep 2007, 02:40 AM
  5. logoWrapper issue
    By namasa in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 May 2006, 11:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg