Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Current »

TODO-UC: Explain

##
## UltraCart - Mr Teas Template
## http://www.ultracart.com/
##
## Copyright (c) 2015 BPS Info Solutions Inc.
## License located here:
## http://www.ultracart.com/storefront/license/
##
## Designed by Level 2 Design, LLC http://www.level2d.com/
##
## uc:theme-attribute-boolean="Checkout Only Theme"
<!-- breadcrumb -->
#if($theme.attr("Checkout Only Theme", "false") != "true")
 <div class="row no-margin-top">
  <div class="columns small-16 medium-13">
   <div class="breadcrumb">
    <ul>
    #if ($requestURI && $requestURI.contains("/checkout/"))
     <li><a href="/">Home</a></li>
     <li>Checkout</li>
    #else
     #foreach($crumb in $breadcrumbHelper.getBreadcrumbTrail($group))
      #if($crumb.path != $group.path && $crumb.path != "/products/" && $crumb.path != "/info/")
       <li>
          <a href="$baseUrl$crumb.path">$crumb.title</a>
       </li>
      #end
     #end
     #if(!$item)
      #if($group.getTitle().length() > 35)
       <li>$formatHelper.excerpt($group.title, 35)&hellip;</li>
      #else
       <li>$group.title</li>
      #end
     #else
      <li>
       <a href="$baseUrl$group.path">$group.title</a>
      </li>
      #if($item.getTitle().length() > 35)
       <li>$formatHelper.excerpt($item.description, 35)&hellip;</li>
      #else
       <li>$item.description</li>
      #end
     #end
    #end
    </ul>
   </div>
  </div>
 </div>
#end
<!-- /breadcrumb -->

The following Code Block will look at the Theme Attribute; "Checkout Only", and if it's "checked" then END. The breadcrumb will not be displayed.

<!-- breadcrumb -->
#if($theme.attr("Checkout Only Theme", "false") != "true")
 <div class="row no-margin-top">
  <div class="columns small-16 medium-13">
   <div class="breadcrumb">
    <ul>

The following block of code .....

    #if ($requestURI && $requestURI.contains("/checkout/"))
     <li><a href="/">Home</a></li>
     <li>Checkout</li>
    #else
     #foreach($crumb in $breadcrumbHelper.getBreadcrumbTrail($group))
      #if($crumb.path != $group.path && $crumb.path != "/products/" && $crumb.path != "/info/")
       <li>
          <a href="$baseUrl$crumb.path">$crumb.title</a>
       </li>
      #end
     #end

The following block of code....

#if(!$item)
      #if($group.getTitle().length() > 35)
       <li>$formatHelper.excerpt($group.title, 35)&hellip;</li>
      #else
       <li>$group.title</li>
      #end
     #else
      <li>
       <a href="$baseUrl$group.path">$group.title</a>
      </li>
      #if($item.getTitle().length() > 35)
       <li>$formatHelper.excerpt($item.description, 35)&hellip;</li>
      #else
       <li>$item.description</li>
      #end
     #end
    #end
    </ul>
   </div>
  </div>
 </div>
#end
<!-- /breadcrumb -->
  • No labels