if ( $main_img = $this -> article['language']['main_image'] ): ?>
endif;
$this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );
if ( $this -> article['show_title'] ): ?>
endif;
if ( $this -> article['show_date_add'] )
echo '

' . date("d/m/Y",strtotime($this -> article['date_add'])) . '
';
// if ( $this -> article['show_date_modify'] )
// echo '
' . $lang['data-modyfikacji'] . ': ' . $this -> article['date_modify'] . '
';
?>
if ( $this -> article['language']['entry'] )
{
// echo $this -> article['language']['entry'];
$string = strip_tags($this -> article['language']['entry']);
if (strlen($string) > 250) {
// truncate string
$stringCut = substr($string, 0, 250);
$endPoint = strrpos($stringCut, ' ');
//if the string doesn't contain any space then it will cut without word basis.
$string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
$string .= '...';
}
echo $string;
if ( $this -> article['language']['text'] )
$more = true;
}
else
{
echo $this -> article['language']['text'];
$more = false;
}
?>
$this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );?>
if ( $this -> article['show_title'] ):?>
endif;?>
if ( $this -> article['language']['entry'] )
{
echo $this -> article['language']['entry'];
if ( $this -> article['language']['text'] )
$more = true;
}
else
{
echo $this -> article['language']['text'];
$more = false;
}
?>
if ( $more ):?>
article['language']['noindex']
):?>rel="nofollow"
endif;?>>
endif;?>
if ( $main_img = $this -> article['language']['main_image'] ):?>
endif;?>
if ( $this -> article['show_date_add'] )
echo '

' . date("d/m/Y",strtotime($this -> article['date_add'])) . '
';
?>