30 lines
1.9 KiB
PHP
30 lines
1.9 KiB
PHP
<? global $lang;?>
|
|
<div class="col-lg-6">
|
|
<div class="article-entry">
|
|
<?
|
|
$this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );
|
|
$main_image = $this -> article['language']['main_image'];
|
|
?>
|
|
<div class="img">
|
|
<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 -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>>
|
|
<img src="<?= $main_image != '' ? $main_image : $img =\front\factory\Articles::get_image( $this -> article );?>" alt="">
|
|
</a>
|
|
</div>
|
|
<div class="article-content">
|
|
|
|
<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 -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>><?= $this -> article['language']['title'];?></a>
|
|
</h3>
|
|
<div class="entry">
|
|
<?
|
|
$content = $this -> article['language']['entry'];
|
|
$content = preg_replace( "/<img[^>]+\>/i", "", $content );
|
|
$content = preg_replace( "/<p[^>]*?><\/p>/", "", $content );
|
|
echo $content;
|
|
?>
|
|
</div>
|
|
|
|
<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;?>" class="more" title="<?= $this -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>>Czytaj więcej</a>
|
|
</div>
|
|
</div>
|
|
</div>
|