page_id; $page_template = \front\factory\Pages::get_layout_id( $this -> page_id ); ?>
articles ) ) foreach ( $this -> articles as $key => $article ) { if($key == 0) { $tpl = new \Tpl; $tpl -> page_id = $this -> page_id; $tpl -> article = $article; $tpl -> element_id = $key; echo $tpl -> render( '__partials/wideo-i-audio-box' ); echo $tpl -> render( 'articles/article-entry' ); } else { if ( $article['password'] and !\S::get_session( 'article-' . $article['id'] . '-' . $article['password'] ) ) echo \front\view\Articles::password_view( [ 'article' => $article ] ); else { $tpl = new \Tpl; $tpl -> page_id = $this -> page_id; $tpl -> article = $article; $tpl -> element_id = $key; echo $tpl -> render( 'articles/article-entry' ); } } } ?>
articles ) ) foreach ( $this -> articles as $key => $article ) : ?>
articles ) ) foreach ( $this -> articles as $key => $article ) { if( $key == 1) echo '
'; if($key == 0) { $tpl = new \Tpl; $tpl -> page_id = $this -> page_id; $tpl -> article = $article; $tpl -> element_id = $key; echo '
'; echo $tpl -> render( 'articles/article-entry' ); echo \front\view\Newsletter::newsletter(); // include 'templates_user/blog-newsletter-v2.php'; echo '
'; } else { if ( $article['password'] and !\S::get_session( 'article-' . $article['id'] . '-' . $article['password'] ) ) echo \front\view\Articles::password_view( [ 'article' => $article ] ); else { $tpl = new \Tpl; $tpl -> page_id = $this -> page_id; $tpl -> article = $article; $tpl -> element_id = $key; echo $tpl -> render( 'articles/article-entry' ); } } if( $key == count($this -> articles) - 1) echo '
'; } ?>