| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
breadcrumb code | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() can anyone explain how
Code:
produces: Code:
__________________
v4.1.8 GOLD |
|||||||
#2
|
|||||||
|
|||||||
![]() By asking if $location is true, then open a deprecated FONT element with thea class of NaviagtionPath, then {strip} all the white space in the following $location loop then close the deprecated FONT element then add two line break elements, then close the conditional $location question/logic. Is this what you meant?
__________________
X-Cart version 4.1.7 (unix) |
|||||||
#3
|
|||||||
|
|||||||
![]() I can see very clearly what you have said.
I do not understand this : Code:
__________________
v4.1.8 GOLD |
|||||||
#4
|
|||||||
|
|||||||
![]() well, that's all the fun stuff there!
{section} starts the loop and it's named position and it's trying to figure out where the user's location is in the application. if the $location[position].1 is not where you're at, then it starts an anchor. Otherwise, it's just text, {$location[position].0}. Then it does that logic again to see if it needs to close the anchor. There's also another post here where they talk more about how to modify this bit of code. How well did this answer your question?
__________________
X-Cart version 4.1.7 (unix) |
|||||||
#5
|
|||||||
|
|||||||
![]() Your answers are extremely enlightening! Thanks a lot.
$location is an array of of location strings? {section name=position loop=$location} What is the purpose of section in smarty? loop = $location means to read through elements of the array $location? this loop is sort of like a built in function to obtain the length of the location variable? {if $location[position].1 ne "" }<a href="{$location[position].1|amp}" class="NavigationPath">{/if} if $location[position].1 ne "" mean if not equal to NULL, then print the location variable position with the anchor html code. what does the .1 mean in $location[position].1 ? what does the |amp mean in $location[position].1|amp ? {$location[position].0} -now what does the .0 mean ? {if $location[position].1 ne "" }</a>{/if} {if not %position.last%} > {/if} {/section} i do not understand %position.last% , the % character meaning here.
__________________
v4.1.8 GOLD |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|