ver. 0.285: Tpl → Shared\Tpl namespace, CurlServer removal, thumb.php fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 00:13:59 +01:00
parent fc7d18123d
commit 28b30c1e56
144 changed files with 385 additions and 285 deletions

View File

@@ -8,7 +8,7 @@ class Articles
*/
public static function fullArticle( $article )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->article = $article;
return $tpl->render( 'articles/article' );
}
@@ -22,14 +22,14 @@ class Articles
if ( is_array( $articles ) ) foreach ( $articles as $article )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->article = $article;
$out .= $tpl->render( 'articles/article-miniature' );
}
if ( $ls > 1 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->ls = $ls;
$tpl->bs = $bs ? $bs : 1;
$tpl->page = $page;
@@ -44,14 +44,14 @@ class Articles
*/
public static function entryArticlesList( $articles, $ls, $bs, $page )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->page_id = $page['id'];
$tpl->articles = $articles;
$out = $tpl->render( 'articles/articles-entries' );
if ( $ls > 1 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->ls = $ls;
$tpl->bs = $bs ? $bs : 1;
$tpl->page = $page;
@@ -70,14 +70,14 @@ class Articles
if ( is_array( $articles ) ) foreach ( $articles as $article )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->article = $article;
$out .= $tpl->render( 'articles/article-full' );
}
if ( $ls > 1 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->ls = $ls;
$tpl->bs = $bs ? $bs : 1;
$tpl->page = $page;
@@ -92,7 +92,7 @@ class Articles
*/
public static function news( $page_id, $articles )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->page_id = $page_id;
$tpl->articles = $articles;
return $tpl->render( 'articles/news' );
@@ -103,7 +103,7 @@ class Articles
*/
public static function newsList( $articles )
{
return \Tpl::view( 'articles/news-list', [
return \Shared\Tpl\Tpl::view( 'articles/news-list', [
'articles' => $articles
] );
}

View File

@@ -5,7 +5,7 @@ class Banners
{
public static function banners($banners)
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->banners = $banners;
return $tpl->render('banner/banners');
}
@@ -13,7 +13,7 @@ class Banners
public static function mainBanner($banner)
{
if (!\Shared\Helpers\Helpers::get_session('banner_close') && is_array($banner)) {
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl->banner = $banner;
return $tpl->render('banner/main-banner');
}

View File

@@ -5,7 +5,7 @@ class Languages
{
public static function render( $languages )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> languages = $languages;
return $tpl -> render( 'site/languages' );
}

View File

@@ -5,7 +5,7 @@ class Newsletter
{
public static function render()
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
return $tpl -> render( 'newsletter/newsletter' );
}
}