288 lines
14 KiB
PHP
288 lines
14 KiB
PHP
<? global $lang, $config, $settings, $lang_id; ?>
|
|
<?
|
|
if ( $this -> page_id == 41 ):
|
|
$class = "article__category--business";
|
|
$url = \front\factory\Pages::lang_url( $this -> page_id, $lang_id );
|
|
$title =" Aktualności";
|
|
endif;
|
|
|
|
?>
|
|
<? if ($this -> page_id == 50 ) : ?>
|
|
<div class="news__big-articles">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[0]); ?>
|
|
<div class="big-articles__article" style="background: url('<?= $main_img; ?>') no-repeat center/cover;">
|
|
<a href="/aktualnosci/" class="article__category" id="title">Aktualności</a>
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[0]['language']['seo_link'] ? $url = $this->articles[0]['language']['seo_link'] : $url = 'a-' . $this->articles[0]['id'] . '-' . \S::seo($this->articles[0]['language']['title']);
|
|
|
|
if ($this->articles[0]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[0]['language']['title']; ?>" <? if ($this->articles[0]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[0]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[0]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[0]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="news__small-articles">
|
|
<? if ( $this -> articles[1] ):?>
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[1]); ?>
|
|
<div class="small-articles__article" style="background: url('<?= $main_img; ?>') no-repeat center/cover;">
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[1]['language']['seo_link'] ? $url = $this->articles[1]['language']['seo_link'] : $url = 'a-' . $this->articles[1]['id'] . '-' . \S::seo($this->articles[1]['language']['title']);
|
|
|
|
if ($this->articles[1]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[1]['language']['title']; ?>" <? if ($this->articles[1]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[1]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
if ($this->articles[1]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[1]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
<? if ( $this -> articles[2] ):?>
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[2]); ?>
|
|
<div class="small-articles__article" style="background: url('<?= $main_img; ?>') no-repeat center/cover;">
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[2]['language']['seo_link'] ? $url = $this->articles[2]['language']['seo_link'] : $url = 'a-' . $this->articles[2]['id'] . '-' . \S::seo($this->articles[2]['language']['title']);
|
|
|
|
if ($this->articles[2]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[2]['language']['title']; ?>" <? if ($this->articles[2]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[2]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[2]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[2]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
<? if ( $this -> articles[3] ):?>
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[3]); ?>
|
|
<div class="small-articles__article" style="background: url('<?= $main_img; ?>') no-repeat center/cover;">
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[3]['language']['seo_link'] ? $url = $this->articles[3]['language']['seo_link'] : $url = 'a-' . $this->articles[3]['id'] . '-' . \S::seo($this->articles[3]['language']['title']);
|
|
|
|
if ($this->articles[3]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[3]['language']['title']; ?>" <? if ($this->articles[3]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[3]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[3]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[3]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
<? if ( $this -> articles[4] ):?>
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[4]); ?>
|
|
<div class="small-articles__article" style="background: url('<?= $main_img; ?>') no-repeat center/cover;">
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[4]['language']['seo_link'] ? $url = $this->articles[4]['language']['seo_link'] : $url = 'a-' . $this->articles[4]['id'] . '-' . \S::seo($this->articles[4]['language']['title']);
|
|
|
|
if ($this->articles[4]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[4]['language']['title']; ?>" <? if ($this->articles[4]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[4]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[4]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[4]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
</div>
|
|
<? else: ?>
|
|
<div class="articles__big-article">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[0]); ?>
|
|
<img src="<?= $main_img; ?>" alt="" class="big-article__img">
|
|
<div class="article__category <?= $class?>">
|
|
<a href="<?= $url?>" id="title"><?= $title;?></a>
|
|
</div>
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[0]['language']['seo_link'] ? $url = $this->articles[0]['language']['seo_link'] : $url = 'a-' . $this->articles[0]['id'] . '-' . \S::seo($this->articles[0]['language']['title']);
|
|
|
|
if ($this->articles[0]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[0]['language']['title']; ?>" <? if ($this->articles[0]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[0]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[0]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[0]['date_add'])) . '</div>';
|
|
?>
|
|
|
|
<div class="entry">
|
|
<?
|
|
if ($this->articles[0]['language']['entry']) {
|
|
echo $this->articles[0]['language']['entry'];
|
|
|
|
if ($this->articles[0]['language']['text'])
|
|
$more = true;
|
|
} else {
|
|
echo $this->articles[0]['language']['text'];
|
|
|
|
$more = false;
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="articles__small-articles">
|
|
|
|
<div class="small-article">
|
|
<div class="small-article__img">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[1]); ?>
|
|
<img src="<?= $main_img; ?>" alt="">
|
|
</div>
|
|
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[1]['language']['seo_link'] ? $url = $this->articles[1]['language']['seo_link'] : $url = 'a-' . $this->articles[1]['id'] . '-' . \S::seo($this->articles[1]['language']['title']);
|
|
|
|
if ($this->articles[1]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[1]['language']['title']; ?>" <? if ($this->articles[1]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[1]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[1]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[1]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<? if($this->articles[2]):?>
|
|
<div class="small-article">
|
|
<div class="small-article__img">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[2]); ?>
|
|
<img src="<?= $main_img; ?>" alt="">
|
|
</div>
|
|
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[2]['language']['seo_link'] ? $url = $this->articles[2]['language']['seo_link'] : $url = 'a-' . $this->articles[2]['id'] . '-' . \S::seo($this->articles[2]['language']['title']);
|
|
|
|
if ($this->articles[2]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[2]['language']['title']; ?>" <? if ($this->articles[2]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[2]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[2]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[2]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
|
|
<? if($this->articles[3]):?>
|
|
<div class="small-article">
|
|
<div class="small-article__img">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[3]); ?>
|
|
<img src="<?= $main_img; ?>" alt="">
|
|
</div>
|
|
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[3]['language']['seo_link'] ? $url = $this->articles[3]['language']['seo_link'] : $url = 'a-' . $this->articles[3]['id'] . '-' . \S::seo($this->articles[3]['language']['title']);
|
|
|
|
if ($this->articles[3]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[3]['language']['title']; ?>" <? if ($this->articles[3]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[3]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[3]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[3]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
|
|
<? if($this->articles[4]):?>
|
|
<div class="small-article">
|
|
<div class="small-article__img">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[4]); ?>
|
|
<img src="<?= $main_img; ?>" alt="">
|
|
</div>
|
|
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[4]['language']['seo_link'] ? $url = $this->articles[4]['language']['seo_link'] : $url = 'a-' . $this->articles[4]['id'] . '-' . \S::seo($this->articles[4]['language']['title']);
|
|
|
|
if ($this->articles[4]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[4]['language']['title']; ?>" <? if ($this->articles[4]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[4]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[4]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[4]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
|
|
<? if($this->articles[5]):?>
|
|
<div class="small-article">
|
|
<div class="small-article__img">
|
|
<? $main_img = \front\factory\Articles::get_image($this->articles[5]); ?>
|
|
<img src="<?= $main_img; ?>" alt="">
|
|
</div>
|
|
|
|
<div id="article-main">
|
|
<?
|
|
$this->articles[5]['language']['seo_link'] ? $url = $this->articles[5]['language']['seo_link'] : $url = 'a-' . $this->articles[5]['id'] . '-' . \S::seo($this->articles[5]['language']['title']);
|
|
|
|
if ($this->articles[5]['show_title']) :
|
|
?>
|
|
<h3 class="article-title">
|
|
<a href="/<? if (\S::get_session('current-lang') != \front\factory\Languages::default_language(\S::get_domain($_SERVER['HTTP_HOST']))) echo \S::get_session('current-lang') . '/'; ?><?= $url; ?>" title="<?= $this->articles[5]['language']['title']; ?>" <? if ($this->articles[5]['language']['noindex']) : ?>rel="nofollow" <? endif; ?>><?= $this->articles[5]['language']['title']; ?></a>
|
|
</h3>
|
|
<?
|
|
endif;
|
|
|
|
if ($this->articles[5]['show_date_add'])
|
|
echo '<div class="date-add">' . '<i class="fa fa-calendar-o "></i>' . date('Y-m-d', strtotime($this->articles[5]['date_add'])) . '</div>';
|
|
?>
|
|
</div>
|
|
</div>
|
|
<? endif;?>
|
|
|
|
</div>
|
|
<? endif; ?>
|