Files
globelus.pl/templates_user/globelus/firms/firms-list.php
2024-11-11 15:28:20 +01:00

36 lines
1.3 KiB
PHP

<div class="firms-alphabet-filtr">
<?
echo "<a href='/pracodawcy' id='all'>wszystkie</a>";
foreach ( range('a', 'z' ) as $i ):
echo "<a href='/pracodawcy/$i'"; if ( $i == $this -> letter ) echo "class='active'"; echo ">$i</a>";
endforeach;
?>
</div>
<div class="firms-list">
<div class="row">
<? if ( is_array( $this -> firms_list ) and count( $this -> firms_list ) ): foreach ( $this -> firms_list as $firm ):?>
<div class="col-12 col-sm-4">
<a class="firm-entry" href="/pracodawca/<?= $firm['id'];?>/<?= \S::seo( $firm['firm_name_profile'], true );?>">
<h2><?= $firm['firm_name'];?></h2>
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $firm['id'] ) ) ):?>
<img src="/logo/<?= $firm['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</a>
</div>
<? endforeach; endif;?>
</div>
</div>
<?
$this -> letter ? $link = 'pracodawcy/' . $this -> letter : $link = 'pracodawcy';
if ( ( $this -> firms_count / \front\factory\GlobelusFirms::firm_list_limit ) > 1 ):
echo \front\view\Globelus::pager(
$link,
ceil( $this -> firms_count / \front\factory\GlobelusFirms::firm_list_limit ),
$this -> current_page
);
endif;
?>