Hi,
ich habe folgenden code und möchte in den jeweiligen cases nur die Inhalte anzeigen lassen, die im backend mit "Deutsch", "Englisch" und "Franzoesisch" gekennzeichnet sind.
Allerding funktioniert meine erste Variante nicht.
PHP-Code:
<?php $strRendersettings = ($this->settings)? 'settings' : 'view'; ?><?php if (count($this->data)): ?>
<ul>
<?php
switch($_SERVER['HTTP_HOST'])
{
case ("dev.domain.de"):
if ($arrItem['text']['new_docs_auswahl'] == "Deutsch"){
foreach ($this->data as $arrItem): ?>
<li class="new_doc_home"><a href="" ><strong><?php echo $arrItem['text']['new_docs_titel']; ?>:</strong><br>
<p><?php echo $arrItem['text']['new_docs_Text']; ?></p></a>
<?php echo $arrItem['text']['new_docs_auswahl']; ?>
</li>
<?php
endforeach;
}
break;
case ("dev.domain.com"):
foreach ($this->data as $arrItem): ?>
<li class="new_doc_home"><a href="" ><strong><?php echo $arrItem['text']['new_docs_titel']; ?>:</strong><br>
<p><?php echo $arrItem['text']['new_docs_Text']; ?></p></a>
<?php echo $arrItem['text']['new_docs_auswahl']; ?>
</li>
<?php
endforeach;
break;
case ("dev.domain.fr"):
foreach ($this->data as $arrItem): ?>
<li class="new_doc_home"><a href="" ><strong><?php echo $arrItem['text']['new_docs_titel']; ?>:</strong><br>
<p><?php echo $arrItem['text']['new_docs_Text']; ?></p></a>
<?php echo $arrItem['text']['new_docs_auswahl']; ?>
</li>
<?php
endforeach;
break;
}
?>
</ul>
<?php else: ?>
<?php endif; ?>
Lesezeichen