// подключение конфигов, модели
if (!isset($z)) $z = '../';
$data = array ();
require $z."class/c_pages_basic.php";
$model = new C_Pages_Basic($region);
$var = new c_vars($region);
$TITLE = 'Фотоконкурсы';
$actions = DB::factory('contest')->where('status >= 0 AND id_region = '.$model->SITE['region'])->order('bdate DESC')->findAll();
// хлебные крошки
$model->crumbs = '
';
$model->TITLE = $TITLE.'. '.$var->SITE['name_full'];
$model->STYLES[] = $model->PATH['http'].'action/media/css/action.css';
$content = $model->viewInclude(
$model->PATH['root'] . 'action/templates/v_contests.php',
array(
'actions' => $actions,
'socialText' => $socialText,
'model' => $model
)
);
// базовый шаблон
$template = $model->viewInclude(
BASE_V . 'v_index.php',
array(
'model' => $model,
'content' => $content
)
);
echo $template;