global $lang;?> if ( $this -> scontainer['status'] == 1 ):?>
scontainer['src'] ):?>style="background: url('')" endif;?>> if ( $this -> scontainer['show_title'] == 1 ):?>
Top - adres
endif;?>
if ( $this -> scontainer['languages']['text'] ) echo $this -> scontainer['languages']['text'];?> if ( $this -> scontainer['languages']['html'] ) echo $this -> scontainer['languages']['html'];?>
endif;?>
global $lang;?> if ( $this -> scontainer['status'] == 1 ):?>
scontainer['src'] ):?>style="background: url('')" endif;?>> if ( $this -> scontainer['show_title'] == 1 ):?>
Top - telefon
endif;?>
if ( $this -> scontainer['languages']['text'] ) echo $this -> scontainer['languages']['text'];?> if ( $this -> scontainer['languages']['html'] ) echo $this -> scontainer['languages']['html'];?>
endif;?>
global $lang;?> if ( $this -> scontainer['status'] == 1 ):?>
scontainer['src'] ):?>style="background: url('')" endif;?>> if ( $this -> scontainer['show_title'] == 1 ):?>
Top - email
endif;?>
if ( $this -> scontainer['languages']['text'] ) echo $this -> scontainer['languages']['text'];?> if ( $this -> scontainer['languages']['html'] ) echo $this -> scontainer['languages']['html'];?>
endif;?>
global $lang, $lang_id;?>
$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'] ) echo '

' . $this -> article['language']['title'] . '

'; if ( $this -> article['social_icons'] ): ?> endif; if ( $this -> article['show_date_add'] ) echo '
' . $lang['data-dodania'] . ': ' . $this -> article['date_add'] . '
'; if ( $this -> article['show_date_modify'] ) echo '
' . $lang['data-modyfikacji'] . ': ' . $this -> article['date_modify'] . '
'; if ( $this -> article['tags'] ): echo ''; endif; ?> if ( $this -> article['repeat_entry'] ):?>

Zapraszamy na nasz profil na Facebook (przejdź).

endif;?>
$text = $this -> article['language']['text']; /* artykuł wewnątrz innego artykułu */ preg_match_all( '/ARTYKUL:[0-9]*/', $this -> article['language']['text'], $articles_list ); if ( is_array( $articles_list[0] ) ) foreach( $articles_list[0] as $article_tmp ) { $article_tmp = explode( ':', $article_tmp ); if ( $article_tmp[1] != $this -> article['id'] ) $text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', \front\view\Articles::article_full( $article_tmp[1], $lang_id ), $text ); else $text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', '', $text ); } /* galeria w innym miejscu niż na końcu */ if ( strpos( $this -> article['language']['text'], '[GALERIA]' ) !== false ) { if ( is_array( $this -> article['images'] ) ): $tpl = new \Tpl; $tpl -> article = $this -> article; $tpl -> images = $this -> article['images']; $gallery = $tpl -> render( 'articles/article-gallery' ); endif; $text = preg_replace('/(

\[GALERIA\]|

\[GALERIA\])/', $gallery, $text ); } /* załączniki w innym miejscu niż na końcu */ if ( strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) !== false ) { if ( is_array( $this -> article['files'] ) ): $tpl = new \Tpl; $tpl -> article_id = $this -> article['id']; $tpl -> files = $this -> article['files']; $files = $tpl -> render( 'articles/article-files' ); endif; $text = preg_replace('/(

\[ZALACZNIKI\]|

\[ZALACZNIKI\])/', $files, $text ); } /* slider */ if ( strpos( $text, '[SLIDER]' ) !== false ) { while ( strpos( $text, '[SLIDER]' ) !== false ) { $text_tmp = explode( '[SLIDER]', $text ); $before = $text_tmp[0]; for ( $i = 1; $i images = $images; $tpl -> article_id = $this -> article['id']; $tpl -> i = $i; echo $tpl -> render( 'articles/slider' ); $out .= ob_get_contents(); ob_end_clean(); $out .= $temp[1]; } $text = $before . $out; } } $dom = new DomDocument('1.0', 'UTF-8'); $dom -> loadHTML( '' . "\n" . $text ); $elements = $dom -> getElementsByTagName( 'img' ); foreach ( $elements as $element ) { if ( strpos( $element -> getAttribute( 'class' ), 'zoom' ) !== false ) { $element_tmp = $dom -> createElement( 'a', '' ); $element_tmp -> setAttribute( 'href', $element -> getAttribute( 'src' ) ); $element_tmp -> setAttribute( 'rel', 'article-' . $this -> article['id'] ); $element_tmp -> setAttribute( 'class', 'fancybox' ); $element_tmp_2 = $element -> cloneNode( false ); $element_tmp -> appendChild( $element_tmp_2 ); $element -> parentNode -> replaceChild( $element_tmp, $element ); } } echo $dom -> saveHTML(); ?>
if ( is_array( $this -> article['images'] ) and strpos( $this -> article['language']['text'], '[GALERIA]' ) === false ): $tpl = new \Tpl; $tpl -> article = $this -> article; $tpl -> images = $this -> article['images']; echo $tpl -> render( 'articles/article-gallery' ); endif; if ( is_array( $this -> article['files'] ) and strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) === false ): $tpl = new \Tpl; $tpl -> article_id = $this -> article['id']; $tpl -> files = $this -> article['files']; echo $tpl -> render( 'articles/article-files' ); endif; ?>
global $lang;?> if ( $this -> scontainer['status'] == 1 ):?>
scontainer['src'] ):?>style="background: url('')" endif;?>> if ( $this -> scontainer['show_title'] == 1 ):?>
Stopka - socials
endif;?>
if ( $this -> scontainer['languages']['text'] ) echo $this -> scontainer['languages']['text'];?> if ( $this -> scontainer['languages']['html'] ) echo $this -> scontainer['languages']['html'];?>
endif;?>