Statusabfrage (aktiv / inaktiv) Sprachauswahl / Währung in custom-template

NeuArt

Gut bekanntes Mitglied
5. Februar 2010
65
41
Hallo,

kann mir kurz einer sagen, wie ich eine Statusabfrage zur Sprachauswahl / Währung hinzufüge, um per CSS den aktiven und inaktiven Part grafisch voneinander zu unterscheiden?
Der Code für beides derzeitig:

Code:
<!-- SPRACHAUSWAHL START -->
               <li class="lang">{foreach from=$smarty.session.Sprachen item=oSprache}
                           {if $oSprache->kSprache != $smarty.session.kSprache}
                              <p><a href="{$oSprache->cURL}" class="link_lang {$oSprache->cISO}"></a></p>
                           {/if}
                           {/foreach}</li>
                           <!-- SPRACHAUSWAHL ENDE -->
                           
                           <!-- WÄHRUNGSAUSWAHL START -->
                           <li class="currency">
                           {if isset($smarty.session.Waehrungen) && $smarty.session.Waehrungen|@count > 1}
                           {foreach from=$smarty.session.Waehrungen item=oWaehrung}
                                 <a href="{$oWaehrung->cURL}" rel="nofollow">{$oWaehrung->cName}</a>
                              {/foreach}
                              {/if}
                              </li>
                           <!-- WÄHRUNGSAUSWAHL ENDE -->

Besten Dank für eine Antwort im Voraus :)

Beste Grüße,

D.
 

Made in Dortmund

Offizieller Servicepartner
SPBanner
11. August 2014
128
21
Dortmund
AW: Statusabfrage (aktiv / inaktiv) Sprachauswahl / Währung in custom-template

bitteschön :)

Code:
        <!-- WÄHRUNGSAUSWAHL START -->
                           <li class="currency">
                           {if isset($smarty.session.Waehrungen) && $smarty.session.Waehrungen|@count > 1}
                           {foreach from=$smarty.session.Waehrungen item=oWaehrung}
                           {if $oWaehrung->cName == $smarty.session.Waehrung->cName}
                                 <a class="active" href="{$oWaehrung->cURL}" rel="nofollow">{$oWaehrung->cName}</a>
                                 {else}
                                 <a href="{$oWaehrung->cURL}" rel="nofollow">{$oWaehrung->cName}</a>
                                 {/if}
                              {/foreach}
                              {/if}
                              </li>
                           <!-- WÄHRUNGSAUSWAHL ENDE -->
 

NeuArt

Gut bekanntes Mitglied
5. Februar 2010
65
41
AW: Statusabfrage (aktiv / inaktiv) Sprachauswahl / Währung in custom-template

Toll, hätte ich dich auch anrufen können :)
 

Ähnliche Themen