first commit

This commit is contained in:
2024-11-11 15:28:20 +01:00
commit 3f5649dbc7
6231 changed files with 999089 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace front\view;
class GlobelusAdverts
{
public static function last_adverts( $adverts )
{
$tpl = new \Tpl;
$tpl -> adverts = $adverts;
return $tpl -> render( 'globelus/adverts/last-adverts' );
}
public static function main_page_adverts( $adverts )
{
$tpl = new \Tpl;
$tpl -> adverts = $adverts;
return $tpl -> render( 'globelus/adverts/main-page-adverts' );
}
public static function top_firms( $firms )
{
$tpl = new \Tpl;
$tpl -> firms = $firms;
return $tpl -> render( 'globelus/adverts/top-firms' );
}
public static function top_categories( $categories )
{
$tpl = new \Tpl;
$tpl -> categories = $categories;
return $tpl -> render( 'globelus/adverts/top-categories' );
}
public static function top_countries( $countries )
{
$tpl = new \Tpl;
$tpl -> countries = $countries;
return $tpl -> render( 'globelus/adverts/top-countries' );
}
}