first commit
This commit is contained in:
31
templates_user/site/languages.php
Normal file
31
templates_user/site/languages.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<? global $lang_id, $page;?>
|
||||
<div class="lang-change">
|
||||
<div class="over"><?= $lang_id ?> <img src="/upload/filemanager/icons/chevron-thin-down.svg"></div>
|
||||
<? if ( is_array( $this -> languages ) and count( $this -> languages > 1 ) ):?>
|
||||
<ul>
|
||||
<? foreach ( $this -> languages as $lg ):?>
|
||||
<? if ( $lang_id != $lg['id'] && $lg['id'] != 'pl' ):?>
|
||||
<li>
|
||||
<a href="<? if ( $lg['id'] == 'cz' ):?>https://spolehliverecenze.cz/<? else:?><?= \front\factory\Pages::lang_url( $page['id'], $lg['id'], $lg['domain'], $this -> default_domain );?><? endif;?>" title="Język: <?= $lg['name'];?>">
|
||||
<?= $lg['id'] ?>
|
||||
</a>
|
||||
</li>
|
||||
<? endif;?>
|
||||
<? endforeach;?>
|
||||
<? if ( $lang_id != 'pl' && $lg['id'] = 'pl' ):?>
|
||||
<li>
|
||||
<a href="//zaufane.pl" title="Język: <?= $lg['name'];?>">
|
||||
<?= $lg['id'] ?>
|
||||
</a>
|
||||
</li>
|
||||
<? endif;?>
|
||||
</ul>
|
||||
<? endif;?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user