<div class="tabs">
<ul class="tabs__caption popular border-top_gray border-bottom_gray kick-bottom-10">
<li class="active">Сейчас</li>
<li>Неделя</li>
<li>Месяц</li>
</ul>
<div class="tabs__content active">
<?php if (count($publicationsTopNow) > 0) : ?>
<?php foreach ($publicationsTopNow as $pub) : ?>
<div class="fat-15 floats-clear block-hover_p tabs__content-item">
<a href="<?= $pub->getUri() ?>">
<div class="float-left width-38p kick-right-10">
<?php if ($pub->getPicture()) : ?>
<img height="74px" width="100%" src="/upload/0x74/<?= $pub->getPicture() ?>">
<?php else : ?>
<img height="74px" width="100%" src="/assets/images/face-10.jpg">
<div class="tabs">
<ul class="tabs__caption popular border-top_gray border-bottom_gray kick-bottom-10">
<li class="active">Сейчас</li>
<li>Неделя</li>
<li>Месяц</li>
</ul>
<div class="tabs__content active">
<?php if (count($publicationsTopNow) > 0) : ?>
<?php foreach ($publicationsTopNow as $pub) : ?>
<div class="fat-15 floats-clear block-hover_p tabs__content-item">
<a href="<?= $pub->getUri() ?>">
<div class="float-left width-38p kick-right-10">
<?php if ($pub->getPicture()) : ?>
<img height="74px" width="100%" src="/upload/0x74/<?= $pub->getPicture() ?>">
<?php else : ?>
<img height="74px" width="100%" src="/assets/images/face-10.jpg">
if ($file = $this->getFile())
{
$variables += $this->variables;
ob_start();
extract($variables, EXTR_SKIP | EXTR_REFS);
include $file;
$content = ob_get_clean();
if ($this->layout instanceof self)
{
$this->layout->sections = $this->sections;
$this->layout->sections['content'] = $content;
$content = fenric('view::publication', $data);
if (fenric(sprintf('view::sections/%s/publication', $p->get('section')))->exists()) {
$content = fenric(sprintf('view::sections/%s/publication', $p->get('section')), $data);
}
$this->response->header('Last-Modified', $publication->getUpdatedAt()->format('D, d M Y H:i:s T'));
$this->response->content($content->render());
$this->hit($publication);
}
/**
* Регистрация уникального «хита»
*/
protected function hit($publication) : void
{
if ($reflector->isSubclassOf(Controller::class))
{
$instance = $reflector->newInstance($request, $response);
if ($instance->preInit())
{
$instance->init();
$instance->render();
return true;
}
}
}
}
}
$pattern = $this->convertRoutePathToRegularExpression($request->root() . $location);
if (preg_match($pattern, $request->path(), $parameters))
{
$request->parameters->upgrade($parameters)->filter();
if ($middleware($request, $response))
{
if ($this->execute($controller, $request, $response))
{
return true;
}
}
}
}
}
}
/**
* Запуск сессии
*/
fenric('request')->session->start();
/**
* Запуск маршрутизатора
*/
fenric('router')->map()->run();
/**
* Отправка ответа клиенту
*/
fenric('response')->send();
/**
* Завершение работы
Software | nginx |
Speed of execution | 0.048s. |
Process owner | www-data |
Load on system | 5% |
Hard drive space | 56.99GB / 98.4GB |