first
This commit is contained in:
8
app/modules/event/EventModule.php
Normal file
8
app/modules/event/EventModule.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\event;
|
||||
|
||||
class EventModule extends \kernel\app_modules\event\EventModule
|
||||
{
|
||||
|
||||
}
|
8
app/modules/event/controllers/EventController.php
Normal file
8
app/modules/event/controllers/EventController.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\event\controllers;
|
||||
|
||||
class EventController extends \kernel\app_modules\event\controllers\EventController
|
||||
{
|
||||
|
||||
}
|
12
app/modules/event/manifest.json
Normal file
12
app/modules/event/manifest.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Мероприятия",
|
||||
"version": "0.1",
|
||||
"author": "ITGuild",
|
||||
"slug": "event",
|
||||
"type": "entity",
|
||||
"description": "Мероприятия module",
|
||||
"module_class": "app\\modules\\event\\EventModule",
|
||||
"module_class_file": "{APP}/modules/event/EventModule.php",
|
||||
"routs": "routs/event.php",
|
||||
"migration_path": "migrations"
|
||||
}
|
2
app/modules/event/routs/event.php
Normal file
2
app/modules/event/routs/event.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
include KERNEL_APP_MODULES_DIR . "/event/routs/event.php";
|
8
app/modules/gestalt_profile/Gestalt_profileModule.php
Normal file
8
app/modules/gestalt_profile/Gestalt_profileModule.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\gestalt_profile;
|
||||
|
||||
class Gestalt_profileModule extends \kernel\app_modules\gestalt_profile\Gestalt_profileModule
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\gestalt_profile\controllers;
|
||||
|
||||
class Gestalt_profileController extends \kernel\app_modules\gestalt_profile\controllers\Gestalt_profileController
|
||||
{
|
||||
|
||||
}
|
11
app/modules/gestalt_profile/manifest.json
Normal file
11
app/modules/gestalt_profile/manifest.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Профили психологов",
|
||||
"version": "0.1",
|
||||
"author": "kavalar",
|
||||
"slug": "gestalt_profile",
|
||||
"description": "Профили психологов module",
|
||||
"module_class": "app\\modules\\gestalt_profile\\Gestalt_profileModule",
|
||||
"module_class_file": "{APP}/modules/gestalt_profile/Gestalt_profileModule.php",
|
||||
"routs": "routs/gestalt_profile.php",
|
||||
"migration_path": "migrations"
|
||||
}
|
2
app/modules/gestalt_profile/routs/gestalt_profile.php
Normal file
2
app/modules/gestalt_profile/routs/gestalt_profile.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
include KERNEL_APP_MODULES_DIR . "/gestalt_profile/routs/gestalt_profile.php";
|
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\gestalt_profile_relationship;
|
||||
|
||||
class Gestalt_profile_relationshipModule extends \kernel\app_modules\gestalt_profile_relationship\Gestalt_profile_relationshipModule
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\modules\gestalt_profile_relationship\controllers;
|
||||
|
||||
class GestaltProfileRelationshipController extends \kernel\app_modules\gestalt_profile_relationship\controllers\GestaltProfileRelationshipController
|
||||
{
|
||||
|
||||
}
|
13
app/modules/gestalt_profile_relationship/manifest.json
Normal file
13
app/modules/gestalt_profile_relationship/manifest.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "Профили психологов (связь)",
|
||||
"version": "0.1",
|
||||
"author": "kavalar",
|
||||
"type": "additional_property",
|
||||
"slug": "gestalt_profile_relationship",
|
||||
"description": "Профили психологов (связь) module",
|
||||
"module_class": "app\\modules\\gestalt_profile_relationship\\Gestalt_profile_relationshipModule",
|
||||
"module_class_file": "{APP}/modules/gestalt_profile_relationship/Gestalt_profile_relationshipModule.php",
|
||||
"routs": "routs/gestalt_profile_relationship.php",
|
||||
"migration_path": "migrations",
|
||||
"dependence": "gestalt_profile"
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
include KERNEL_APP_MODULES_DIR . "/gestalt_profile_relationship/routs/gestalt_profile_relationship.php";
|
@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\custom;
|
||||
|
||||
class CustomTheme extends \kernel\app_themes\custom\CustomTheme
|
||||
{
|
||||
|
||||
}
|
8
app/themes/custom/GestaltTheme.php
Normal file
8
app/themes/custom/GestaltTheme.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\custom;
|
||||
|
||||
class GestaltTheme extends \kernel\app_themes\custom\GestaltTheme
|
||||
{
|
||||
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
* @var string $title
|
||||
* @var \kernel\CgView $view
|
||||
*/
|
||||
$assets = new \app\themes\custom\assets\CustomThemesAssets($resources);
|
||||
$assets = new \app\themes\custom\assets\GestaltThemesAssets($resources);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
8
app/themes/gestalt/GestaltTheme.php
Normal file
8
app/themes/gestalt/GestaltTheme.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt;
|
||||
|
||||
class GestaltTheme extends \kernel\app_themes\gestalt\GestaltTheme
|
||||
{
|
||||
|
||||
}
|
18
app/themes/gestalt/assets/GestaltThemesAssets.php
Normal file
18
app/themes/gestalt/assets/GestaltThemesAssets.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\assets;
|
||||
|
||||
use kernel\Assets;
|
||||
|
||||
class GestaltThemesAssets extends Assets
|
||||
{
|
||||
protected function createCSS(): void
|
||||
{
|
||||
$this->registerCSS(slug: "main", resource: "/out/_next/static/css/af2a5715f5fb28bf.css");
|
||||
}
|
||||
|
||||
protected function createJS(): void
|
||||
{
|
||||
$this->registerJS(slug: "webpack", resource: "/js/scripts.js");
|
||||
}
|
||||
}
|
46
app/themes/gestalt/controllers/EventController.php
Normal file
46
app/themes/gestalt/controllers/EventController.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\controllers;
|
||||
|
||||
use kernel\app_modules\event\models\Event;
|
||||
use kernel\Controller;
|
||||
use kernel\EloquentDataProvider;
|
||||
use kernel\helpers\Debug;
|
||||
use kernel\helpers\Url;
|
||||
use kernel\Request;
|
||||
|
||||
class EventController extends Controller
|
||||
{
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/event/";
|
||||
$this->cgView->layout = "main.php";
|
||||
$this->cgView->layoutPath = APP_DIR . "/themes/gestalt/views/layout/";
|
||||
$this->cgView->addVarToLayout("resources", "/resources/themes/gestalt");
|
||||
}
|
||||
|
||||
public function actionIndex(): void
|
||||
{
|
||||
$request = new Request();
|
||||
$dataProvider = (new EloquentDataProvider(Event::query()));
|
||||
$dataProvider->setSort([
|
||||
'id' => 'desc'
|
||||
]);
|
||||
|
||||
$page = $request->get('page', 1); // или request('page', 1) для HTTP-запросов
|
||||
$events = $dataProvider->getManualPaginated($page, 2);
|
||||
|
||||
$pagination = $dataProvider->getPaginationLinks($events['meta']);
|
||||
// Debug::dd($pagination);
|
||||
$this->cgView->render("index.php", ['events' => $events, 'pagination' => $pagination]);
|
||||
}
|
||||
|
||||
public function actionView(int $id): void
|
||||
{
|
||||
$event = Event::with('contacts')->where('id', $id)->first();
|
||||
|
||||
$this->cgView->render("view.php", ['event' => $event]);
|
||||
}
|
||||
|
||||
}
|
28
app/themes/gestalt/controllers/MainController.php
Normal file
28
app/themes/gestalt/controllers/MainController.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\controllers;
|
||||
|
||||
use kernel\Controller;
|
||||
|
||||
class MainController extends Controller
|
||||
{
|
||||
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/main/";
|
||||
$this->cgView->layout = "main.php";
|
||||
$this->cgView->layoutPath = APP_DIR . "/themes/gestalt/views/layout/";
|
||||
$this->cgView->addVarToLayout("resources", "/resources/themes/gestalt");
|
||||
}
|
||||
|
||||
public function actionIndex(): void
|
||||
{
|
||||
$this->cgView->render("index.php");
|
||||
}
|
||||
|
||||
public function actionAbout(): void
|
||||
{
|
||||
$this->cgView->render("about.php");
|
||||
}
|
||||
}
|
46
app/themes/gestalt/controllers/PsychologistController.php
Normal file
46
app/themes/gestalt/controllers/PsychologistController.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\controllers;
|
||||
|
||||
use kernel\app_modules\gestalt_profile\models\Gestalt_profile;
|
||||
use kernel\Controller;
|
||||
use kernel\EloquentDataProvider;
|
||||
use kernel\helpers\Debug;
|
||||
use kernel\Request;
|
||||
|
||||
class PsychologistController extends Controller
|
||||
{
|
||||
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/psychologist/";
|
||||
$this->cgView->layout = "main.php";
|
||||
$this->cgView->layoutPath = APP_DIR . "/themes/gestalt/views/layout/";
|
||||
$this->cgView->addVarToLayout("resources", "/resources/themes/gestalt");
|
||||
}
|
||||
|
||||
public function actionIndex(): void
|
||||
{
|
||||
$request = new Request();
|
||||
$dataProvider = (new EloquentDataProvider(Gestalt_profile::query()));
|
||||
$dataProvider->setSort([
|
||||
'id' => 'desc'
|
||||
]);
|
||||
|
||||
$page = $request->get('page', 1); // или request('page', 1) для HTTP-запросов
|
||||
$psychologists = $dataProvider->getManualPaginated($page, 8);
|
||||
|
||||
$pagination = $dataProvider->getPaginationLinks($psychologists['meta']);
|
||||
|
||||
$this->cgView->render("index.php", ['psychologists' => $psychologists, 'pagination' => $pagination]);
|
||||
}
|
||||
|
||||
public function actionView(int $id): void
|
||||
{
|
||||
$profile = Gestalt_profile::where('id', $id)->first();
|
||||
|
||||
$this->cgView->render("view.php", ['profile' => $profile]);
|
||||
}
|
||||
|
||||
}
|
15
app/themes/gestalt/manifest.json
Normal file
15
app/themes/gestalt/manifest.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "Gestalt",
|
||||
"version": "0.1",
|
||||
"author": "ItGuild",
|
||||
"slug": "gestalt",
|
||||
"type": "theme",
|
||||
"description": "Gestalt theme",
|
||||
"preview": "preview.jpg",
|
||||
"resource": "/resources/themes/gestalt",
|
||||
"resource_path": "{RESOURCES}/themes/gestalt",
|
||||
"theme_class": "app\\themes\\gestalt\\GestaltTheme",
|
||||
"theme_class_file": "{APP}/themes/gestalt/GestaltTheme.php",
|
||||
"routs": "routs/gestalt.php",
|
||||
"dependence": "photo,tag"
|
||||
}
|
16
app/themes/gestalt/routs/gestalt.php
Normal file
16
app/themes/gestalt/routs/gestalt.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use kernel\App;
|
||||
|
||||
|
||||
App::$collector->get('/', [\app\themes\gestalt\controllers\MainController::class, 'actionIndex']);
|
||||
App::$collector->get('/about', [\app\themes\custom\controllers\MainController::class, 'actionAbout']);
|
||||
App::$collector->get('/events', [\app\themes\gestalt\controllers\EventController::class, 'actionIndex']);
|
||||
App::$collector->get('/event/{id}', [\app\themes\gestalt\controllers\EventController::class, 'actionView']);
|
||||
App::$collector->get('/psychologist/{id}', [\app\themes\gestalt\controllers\PsychologistController::class, 'actionView']);
|
||||
App::$collector->get('/psychologists', [\app\themes\gestalt\controllers\PsychologistController::class, 'actionIndex']);
|
||||
//App::$collector->get('/page/{page_number}', [\app\modules\tag\controllers\TagController::class, 'actionIndex']);
|
||||
//App::$collector->get('/create', [\app\modules\tag\controllers\TagController::class, 'actionCreate']);
|
||||
|
||||
|
||||
|
23
app/themes/gestalt/views/event/_main_events_list.php
Normal file
23
app/themes/gestalt/views/event/_main_events_list.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Illuminate\Database\Eloquent\Collection $events
|
||||
*/
|
||||
$relation = new \kernel\EntityRelation();
|
||||
?>
|
||||
|
||||
<div class="flex justify-around flex-wrap gap-y-[10px]">
|
||||
<?php foreach ($events as $event): ?>
|
||||
<?php /** @var \kernel\app_modules\event\models\Event $event */ ?>
|
||||
<a class="border-[1px] border-white rounded-[6px] bg-darkGrey px-[13.5px] pt-[12px] pb-[35px] text-black" href="event/<?= $event->id ?>">
|
||||
<span class="flex w-[288px] h-[177px] bg-white">
|
||||
<?= $relation->getAdditionalPropertyByEntityId('event', $event->id, 'photo', ['cover' => true]) ?>
|
||||
</span>
|
||||
<h5 class="max-w-[267px] font-[500] text-[16px] leading-[18px] mt-[30px] mb-[8px] line-clamp-3 text-ellipsis">
|
||||
<?= $event->title ?>
|
||||
</h5>
|
||||
<p class="max-w-[267px] text-[15px] leading-[17px] line-clamp-3 text-ellipsis">
|
||||
<?= $event->description ?>
|
||||
</p>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
147
app/themes/gestalt/views/event/index.php
Normal file
147
app/themes/gestalt/views/event/index.php
Normal file
@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $resources ;
|
||||
* @var array $pagination ;
|
||||
* @var \kernel\CgView $view
|
||||
* @var array $events
|
||||
*/
|
||||
|
||||
$view->setTitle("IT Guild Micro Framework");
|
||||
$view->setMeta([
|
||||
'description' => 'Default IT Guild Micro Framework theme'
|
||||
]);
|
||||
|
||||
$relation = new \kernel\EntityRelation();
|
||||
?>
|
||||
|
||||
<main>
|
||||
<nav class="max-w-[1083px] px-[25px] mx-auto">
|
||||
<ol class="flex flex-wrap text-middleGrey font-[350] my-[50px]">
|
||||
<li><a href="/">главная</a></li>
|
||||
<li><a href="/events"><span class="mx-[2px]">/</span>мероприятия сообщества</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="flex flex-col gap-[31px] items-center mb-[50px] px-[25px]"><h1
|
||||
class="text-[35px] text-center md:text-[40px] uppercase">Мероприятия сообщества</h1>
|
||||
<p class="text-[17px] md:text-[19px] max-w-[832px] text-center">это добровольное самоорганизующееся сообщество
|
||||
специалистов г. Донецка и Донецкого края в области психологического консультирования и гештальт-терапии.</p>
|
||||
</div>
|
||||
<div class="flex flex-col max-w-[1083px] px-[25px] m-auto">
|
||||
<div class="flex flex-col gap-[30px] items-center md:flex-row md:gap-[84px] mb-[30px]">
|
||||
<div class="undefined px-[36px] py-[7px] bg-white max-w-[225px] min-w-[180px] min-h-[39px] justify-center items-center w-fit cursor-pointer border-blue border-[1px] flex gap-[10px] rounded-[10px]">
|
||||
<p class="text-blue font-[700] text-[16px]">Все мероприятия</p><img alt="chevronDown" loading="lazy"
|
||||
width="11" height="8"
|
||||
decoding="async" data-nimg="1"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</div>
|
||||
<label class="flex items-center text-[14px] text-lightGrey gap-[12px]"><input
|
||||
class="w-[16px] h-[16px] border-white" type="checkbox"/>только мероприятия Донецкого
|
||||
сообщества</label></div>
|
||||
<div class="flex flex-wrap gap-x-[12px] gap-y-[30px] mb-[80px] justify-evenly lg:justify-between">
|
||||
<?php foreach ($events['data'] as $event): ?>
|
||||
<?php /* @var \kernel\app_modules\event\models\Event $event */ ?>
|
||||
<a class="border-[1px] border-white rounded-[6px] bg-darkGrey px-[13.5px] pt-[12px] pb-[35px] text-black"
|
||||
href="/event/<?= $event->id ?>">
|
||||
<span class="flex w-[288px] h-[177px] bg-white">
|
||||
<?= $relation->getAdditionalPropertyByEntityId('event', $event->id, 'photo', ['cover' => true]) ?>
|
||||
</span>
|
||||
<h5 class="max-w-[267px] font-[500] text-[16px] leading-[18px] mt-[30px] mb-[8px] line-clamp-3 text-ellipsis">
|
||||
<?= $event->title ?>
|
||||
</h5>
|
||||
<p class="max-w-[267px] text-[15px] leading-[17px] line-clamp-3 text-ellipsis">
|
||||
<?= $event->description ?>
|
||||
</p>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="mb-[100px] flex justify-between flex-col gap-[50px] md:flex-row">
|
||||
<div class="flex">
|
||||
<button class="mr-[30px]" disabled="">
|
||||
<a href="<?= $pagination['previous'] ?>">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11"
|
||||
decoding="async" data-nimg="1"
|
||||
class="rotate-[90deg] relative top-[-2px]"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</a>
|
||||
</button>
|
||||
<div class="flex gap-[12px] items-center">
|
||||
<?php if ($pagination['previous']): ?>
|
||||
<button class="text-[17px]">
|
||||
<a href="<?= $pagination['previous'] ?>">
|
||||
<?= $pagination['meta']['current_page'] - 1 ?>
|
||||
</a>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<button class="text-blue font-[700] text-[17px]"><?= $pagination['meta']['current_page'] ?></button>
|
||||
<?php if ($pagination['next']): ?>
|
||||
<button class="text-[17px]">
|
||||
<a href="<?= $pagination['next'] ?>">
|
||||
<?= $pagination['meta']['current_page'] + 1 ?>
|
||||
</a>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if ($pagination['meta']['current_page'] <= $pagination['meta']['last_page']
|
||||
&& $pagination['meta']['current_page'] > 4): ?>
|
||||
<span>...</span>
|
||||
<button class="text-[17px]"><?= $pagination['meta']['last_page'] ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<button class=" flex items-center text-[15px] font-[700] ml-auto md:ml-[26px] gap-[11px]">
|
||||
<a href="<?= $pagination['next'] ?>">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="rotate-[-90deg] relative top-[-2px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] text-[16px] text-blue border-[1px] border-blue max-h-[39px] px-[25px] py-[10px] undefined">
|
||||
Показать все мероприятия
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[80px]">
|
||||
<div class="hidden lg:flex bg-blue rounded-[25px] relative max-w-[1033px] w-full m-auto pt-[59.5px] pb-[59.5px] h-[234px] text-center justify-center items-center">
|
||||
<p class="text-white text-[32px] max-w-[671px] font-[700]">Через собственное развитие мы развиваем и
|
||||
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="217" height="254"
|
||||
decoding="async" data-nimg="1"
|
||||
class=" absolute right-0 top-[-20px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/palm.svg"/></div>
|
||||
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
|
||||
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">конференции</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">акредитации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">общие сборы</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">протоколы сборов</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">новости сайта</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">календарь событий</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">сайт мги</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">вопросы и ответы</span></div>
|
||||
</div>
|
||||
<div class="flex gap-[19px] m-auto">
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">Книги</span></div>
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">лекции</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
172
app/themes/gestalt/views/event/view.php
Normal file
172
app/themes/gestalt/views/event/view.php
Normal file
@ -0,0 +1,172 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \kernel\app_modules\event\models\Event $event
|
||||
* @var string $resources ;
|
||||
*/
|
||||
|
||||
$entityRelation = new \kernel\EntityRelation();
|
||||
$profiles = $entityRelation->callModuleMethod('gestalt_profile_relationship', 'getItemsObject', ['entity' => 'event', 'entity_id' => $event->id]);
|
||||
?>
|
||||
|
||||
<main>
|
||||
<nav class="max-w-[1083px] px-[25px] mx-auto">
|
||||
<ol class="flex flex-wrap text-middleGrey font-[350] my-[50px]">
|
||||
<li><a href="/">главная</a></li>
|
||||
<li><a href="/events"><span class="mx-[2px]">/</span>мероприятия сообщества</a></li>
|
||||
<li><a href="/event/<?= $event->id ?>"><span class="mx-[2px]">/</span><?= $event->title ?></a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="bg-blue rounded-[6px] max-w-[1033px] mx-[25px] px-[30px] lg:mx-auto mb-[30px] py-[45px] lg:px-[100px]">
|
||||
<p class="text-white text-[40px] text-center uppercase leading-[48px]">
|
||||
<?= $event->title ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex flex-col m-auto max-w-[1083px] px-[25px] gap-[50px] mb-[80px]">
|
||||
<div class="flex gap-[10px] flex-wrap lg:gap-[23px] justify-between lg:justify-start">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[16px] text-lightBlack border-[1px] rounded-[6px] py-[10px] px-[28px] gap-[10px] items-center">
|
||||
<span class="">
|
||||
<?= $event->type ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[16px] text-lightBlack border-[1px] rounded-[6px] py-[10px] px-[28px] gap-[10px] items-center">
|
||||
<img alt="clock" loading="lazy" width="18" height="18" decoding="async" data-nimg="1"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/clock.svg"/>
|
||||
<span class="">
|
||||
<?= $event->hours_count ?> ч.
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[16px] text-lightBlack border-[1px] rounded-[6px] py-[10px] px-[28px] gap-[10px] items-center">
|
||||
<img alt="date" loading="lazy" width="18" height="18" decoding="async" data-nimg="1"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/date.svg"/>
|
||||
<span class="">
|
||||
<?= $event->dateStartFormated . " - " . $event->dateEndFormated ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[16px] text-lightBlack border-[1px] rounded-[6px] py-[10px] px-[28px] gap-[10px] items-center">
|
||||
<img alt="location" loading="lazy" width="18" height="18" decoding="async" data-nimg="1"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/location.svg"/>
|
||||
<span class="">
|
||||
<?= $event->place ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-center flex-wrap lg:flex-nowrap lg:justify-between gap-[18px]">
|
||||
<?php foreach ($profiles as $profile): ?>
|
||||
<a class=" backdrop-blur-custom border-[1px] border-white rounded-[15px] bg-darkWhite text-black w-fit shadow-custom px-[9px] pt-[11px] pb-[25px] max-w-[370px] w-full sm:max-w-[280px]"
|
||||
href="/psychologist/<?= $profile->profile->id ?>">
|
||||
<img alt="image" loading="lazy" width="260" height="181" decoding="async"
|
||||
data-nimg="1" class="w-full" style="color:transparent;width:100%;height:200px;object-fit:cover;"
|
||||
src="<?= $profile->profile->photo ?? '' ?>"/>
|
||||
<div class="px-[13px]">
|
||||
<h5 class="text-[18px] max-w-full sm:max-w-[190px] font-[400] leading-[20px] max-w-[190px] mt-[16px] mb-[20px]">
|
||||
<?= $profile->profile->fio ?? '' ?>
|
||||
</h5>
|
||||
<span class="text-lightGrey">Работает с темами
|
||||
<p class="text-black text-[13px] leading-[15px] line-clamp-3 text-ellipsis max-w-[220px] mb-[16px] max-w-full sm:max-w-[220px]"></p>
|
||||
</span>
|
||||
<div class="flex gap-[5px] max-w-[220px] flex-wrap items-center max-w-full sm:max-w-[220px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[13px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] min-h-[28px] max-h-[28px] h-full">
|
||||
<span class="">Терапевт</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[13px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] min-h-[28px] max-h-[28px] h-full">
|
||||
<span class="">Супервизор</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[13px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] min-h-[28px] max-h-[28px] h-full">
|
||||
<span class="">Тренер</span>
|
||||
</div>
|
||||
<div class="bg-bgGrey rounded-[6px] w-[28px] h-[28px] flex justify-center items-center"><span
|
||||
class="text-white text-[13px] font-[400] max-h-[15px] flex items-center relative top-[1px]"><span
|
||||
class="relative top-[-0.5px]">+</span>3</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="flex-wrap xl:flex-nowrap flex gap-[21px]">
|
||||
<div class="order-2 xl:order-1 items-center xl:items-start flex py-[30px] flex-col border-white border-[1px] rounded-[6px] w-full xl:min-w-[780px] min-h-[200px] px-[32px] justify-center gap-[12px]">
|
||||
<h4 class="text-black text-[26px] text-center md:text-start uppercase">
|
||||
формат мероприятия
|
||||
</h4>
|
||||
<p class="text-black text-[15px] max-w-[640px]">
|
||||
<?= !empty($event->event_format) ? $event->event_format : "Не указан" ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="order-1 xl:order-2 justify-evenly flex xl:flex-col bg-white rounded-[12px] pt-[25px] pb-[10px] xl:pt-[47px] xl:pb-[34px] w-full xl:pl-[32px] gap-[23px] relative">
|
||||
<div class="flex-col flex text-[18px]">
|
||||
<?php foreach ($event->contacts as $contact): ?>
|
||||
<span><?= $contact->title ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<!-- <div class="flex-col flex text-[15px]">-->
|
||||
<!-- <span>Luchayapochta@mail.ru</span>-->
|
||||
<!-- <span>Luchayapochta@mail.ru</span>-->
|
||||
<!-- </div>-->
|
||||
<div class="absolute bg-white w-[47px] h-[47px] flex rounded-full items-center justify-center top-[-20px]">
|
||||
<a class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img
|
||||
alt="logo_tg" loading="lazy" width="1" height="1" decoding="async" data-nimg="1"
|
||||
class="w-auto h-auto" style="color:transparent" src="<?= $resources ?>/out/images/logo_tg.svg"/> </a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[30px] max-w-[910px] font-[300]">
|
||||
<h3 class="uppercase text-black text-[26px]">
|
||||
содержание
|
||||
</h3>
|
||||
<p class="text-[15px] leading-[24px]">
|
||||
<?= $event->description ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php if (!empty($event->additional_info)): ?>
|
||||
<div class="flex flex-col gap-[30px] max-w-[910px] font-[300]">
|
||||
<h3 class="uppercase text-black text-[26px]">
|
||||
Дополнительная информация
|
||||
</h3>
|
||||
<p class="text-[15px] leading-[24px] ">
|
||||
<?= $event->additional_info ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[80px]">
|
||||
<div class="hidden lg:flex bg-blue rounded-[25px] relative max-w-[1033px] w-full m-auto pt-[59.5px] pb-[59.5px] h-[234px] text-center justify-center items-center">
|
||||
<p class="text-white text-[32px] max-w-[671px] font-[700]">Через собственное развитие мы развиваем и
|
||||
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="217" height="254"
|
||||
decoding="async" data-nimg="1"
|
||||
class=" absolute right-0 top-[-20px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/palm.svg"/></div>
|
||||
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
|
||||
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">конференции</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">акредитации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">общие сборы</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">протоколы сборов</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">новости сайта</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">календарь событий</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">сайт мги</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">вопросы и ответы</span></div>
|
||||
</div>
|
||||
<div class="flex gap-[19px] m-auto">
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">Книги</span></div>
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">лекции</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
114
app/themes/gestalt/views/layout/main.php
Normal file
114
app/themes/gestalt/views/layout/main.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $content
|
||||
* @var string $resources
|
||||
* @var string $title
|
||||
* @var \kernel\CgView $view
|
||||
*/
|
||||
$assets = new \app\themes\gestalt\assets\GestaltThemesAssets($resources);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
||||
<?php $assets->getCSSAsSTR(); ?>
|
||||
<meta name="description" content=""/>
|
||||
<meta name="author" content=""/>
|
||||
<title><?= $title ?></title>
|
||||
<?= $view->getMeta() ?>
|
||||
<link rel="icon" type="image/x-icon" href="<?= $resources ?>/assets/favicon.ico"/>
|
||||
<!-- Font Awesome icons (free version)-->
|
||||
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
|
||||
<!-- Google fonts-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet"
|
||||
type="text/css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
||||
rel="stylesheet" type="text/css"/>
|
||||
<!-- Core theme CSS (includes Bootstrap)-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation-->
|
||||
<header class="flex pt-8 px-[25px] m-auto justify-between items-center max-w-[1083px] relative">
|
||||
<div class="sm:hidden max-w-[95px] w-full"><img alt="burger" loading="lazy" width="23" height="17" decoding="async"
|
||||
data-nimg="1" class="cursor-pointer sm:hidden"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/burger.svg"/></div>
|
||||
<div class="hidden w-full justify-between mt-[10px] gap-[19px] text-[15px] text-dark font-[350] sm:flex sm:max-w-[145px] sm:mt-0 md:gap-[96px]">
|
||||
<a href="/events">События</a><a href="/participants">Участники</a></div>
|
||||
<a class=" " href="/"><img alt="logo" loading="lazy" width="150" height="48" decoding="async" data-nimg="1"
|
||||
style="color:transparent" src="<?= $resources ?>/out/logo.svg"/></a>
|
||||
<div class="flex gap-[13px] sm:gap-[19px]"><a
|
||||
class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img alt="logo_tg"
|
||||
loading="lazy"
|
||||
width="1"
|
||||
height="1"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
class="w-auto h-auto"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/logo_tg.svg"/>
|
||||
</a><a class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img alt="logo_vk"
|
||||
loading="lazy"
|
||||
width="1"
|
||||
height="1"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
class="w-auto h-auto"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/logo_vk.svg"/>
|
||||
</a></div>
|
||||
</header>
|
||||
|
||||
<?= $content ?>
|
||||
|
||||
<!-- Footer-->
|
||||
<footer class="flex flex-col items-center mt-[20px] md:flex-row md:mt-[80px] max-w-[1083px] px-[25px] justify-between pb-8 m-auto">
|
||||
<a href="/public"><img alt="logo" loading="lazy" width="150" height="48" decoding="async" data-nimg="1"
|
||||
style="color:transparent" src="<?= $resources ?>/out/logo.svg"/></a>
|
||||
<div class="max-w-[500px] mt-[40px] md:mt-0 w-full justify-between md:w-fit gap-[25px] lg:gap-[96px] flex text-[15px] text-dark items-center font-[350]">
|
||||
<div class="flex gap-[28px]"><a href="/events">События</a><a href="/participants">Участники</a></div>
|
||||
<div class="flex gap-[28px] md:hidden"><a
|
||||
class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img
|
||||
alt="logo_tg" loading="lazy" width="1" height="1" decoding="async" data-nimg="1" class="w-auto h-auto"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/logo_tg.svg"/> </a><a
|
||||
class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img
|
||||
alt="logo_vk" loading="lazy" width="1" height="1" decoding="async" data-nimg="1" class="w-auto h-auto"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/logo_vk.svg"/> </a></div>
|
||||
</div>
|
||||
<div class="max-w-[500px] w-full justify-between mt-[70px] md:mt-0 md:w-fit flex gap-[25px]"><img alt="oop"
|
||||
loading="lazy"
|
||||
width="83"
|
||||
height="21"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/oppgp.svg"/><img
|
||||
alt="pmg" loading="lazy" width="96" height="27" decoding="async" data-nimg="1" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/pmg.svg"/></div>
|
||||
<div class="max-w-[500px] w-full justify-center hidden md:w-fit md:flex gap-[29px]"><a
|
||||
class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img alt="logo_tg"
|
||||
loading="lazy"
|
||||
width="1"
|
||||
height="1"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
class="w-auto h-auto"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/logo_tg.svg"/>
|
||||
</a><a class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img alt="logo_vk"
|
||||
loading="lazy"
|
||||
width="1"
|
||||
height="1"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
class="w-auto h-auto"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/logo_vk.svg"/>
|
||||
</a></div>
|
||||
</footer>
|
||||
<!-- Bootstrap core JS-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- Core theme JS-->
|
||||
<?php $assets->getJSAsStr(); ?>
|
||||
</body>
|
||||
</html>
|
36
app/themes/gestalt/views/main/about.php
Normal file
36
app/themes/gestalt/views/main/about.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $resources;
|
||||
* @var \kernel\CgView $view
|
||||
*/
|
||||
|
||||
$view->setTitle("Старт Bootstrap");
|
||||
$view->setMeta([
|
||||
'description' => 'Дефолтная bootstrap тема'
|
||||
]);
|
||||
?>
|
||||
<!-- Page Header-->
|
||||
<header class="masthead" style="background-image: url('<?= $resources ?>/assets/img/about-bg.jpeg')">
|
||||
<div class="container position-relative px-4 px-lg-5">
|
||||
<div class="row gx-4 gx-lg-5 justify-content-center">
|
||||
<div class="col-md-10 col-lg-8 col-xl-7">
|
||||
<div class="page-heading">
|
||||
<h1>About Me</h1>
|
||||
<span class="subheading">This is what I do.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- Main Content-->
|
||||
<main class="mb-4">
|
||||
<div class="container px-4 px-lg-5">
|
||||
<div class="row gx-4 gx-lg-5 justify-content-center">
|
||||
<div class="col-md-10 col-lg-8 col-xl-7">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe nostrum ullam eveniet pariatur voluptates odit, fuga atque ea nobis sit soluta odio, adipisci quas excepturi maxime quae totam ducimus consectetur?</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius praesentium recusandae illo eaque architecto error, repellendus iusto reprehenderit, doloribus, minus sunt. Numquam at quae voluptatum in officia voluptas voluptatibus, minus!</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut consequuntur magnam, excepturi aliquid ex itaque esse est vero natus quae optio aperiam soluta voluptatibus corporis atque iste neque sit tempora!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
151
app/themes/gestalt/views/main/index.php
Normal file
151
app/themes/gestalt/views/main/index.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $resources;
|
||||
* @var \kernel\CgView $view
|
||||
*/
|
||||
|
||||
$view->setTitle("IT Guild Micro Framework");
|
||||
$view->setMeta([
|
||||
'description' => 'Default IT Guild Micro Framework theme'
|
||||
]);
|
||||
$last4 = \kernel\app_modules\gestalt_profile\services\Gestalt_profileService::getLast4();
|
||||
?>
|
||||
<style>
|
||||
.circle-image {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
}
|
||||
</style>
|
||||
<main class="pt-[60px] sm:pt-[100px] flex flex-col">
|
||||
<div class="flex flex-col container m-auto text-center text-dark gap-[31px]"><h1
|
||||
class="text-[35px] sm:text-[40px] uppercase">Донецкое гештальт сообщество</h1>
|
||||
<p class="text-[17px] text-dark sm:text-[19px] max-w-[832px] mx-auto">это добровольное самоорганизующееся
|
||||
сообщество специалистов г. Донецка и Донецкого края в области психологического консультирования и
|
||||
гештальт-терапии.</p></div>
|
||||
<div class="mt-[50px] w-full flex-col flex lg:flex-row justify-center sm:mt-[100px] gap-y-[30px] sm:gap-[14px] max-w-[1083px] px-[25px] mx-auto">
|
||||
<div class="relative bg-blue border-[1px] border-white rounded-[25px] px-[25px] pb-[10px] md:pb-[0] md:pr-[48px] md:pl-[0] md:min-w-[650px] min-h-[480px] w-full font-[400]">
|
||||
<img alt="intro" loading="lazy" width="1" height="1" decoding="async" data-nimg="1"
|
||||
class="w-[262px] h-[262px] sm:w-auto sm:h-auto scale-x-flip right-0 md:left-0 md:scale-x-100 absolute"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/intro.svg"/>
|
||||
<h3 class="text-white text-[38px] text-start mt-[214px] md:text-end leading-[41px]"><span
|
||||
class="bg-darkBlue px-[12px] py-[3px] rounded-[18px]">Цель</span> нашего<br/>объединения:</h3>
|
||||
<p class="md:ml-auto text-[16px] mt-[50px] text-start text-white md:text-[18px] leading-[20px] max-w-[400px] font-[700]">
|
||||
взаимное обогащение профессиональными знаниями, идеями и опытом на конференциях и семинарах, в учебных
|
||||
программах и на интенсивах, на специализациях и в супервизорских группах.</p></div>
|
||||
<div class="flex-col md:flex-row min-w-full lg:min-w-min lg:flex-col flex gap-[12px] max-w-[368px]">
|
||||
<div class="flex px-[20px] items-center bg-blue rounded-[25px] min-h-[234px] lg:px-[68px] py-[60px] relative">
|
||||
<p class="text-white font-[500] leading-[23px] text-[20px]">Через собственное развитие мы развиваем и
|
||||
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="1" height="1"
|
||||
decoding="async" data-nimg="1"
|
||||
class="w-auto h-auto absolute right-3 bottom-0"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/palm.svg"/></div>
|
||||
<div class="flex justify-center sm:justify-normal px-[20px] flex-col items-center rounded-[25px] min-h-[234px] lg:px-[68px] pt-[40px] border-[4px] border-white relative">
|
||||
<div class="w-full lg:left-[-20px] flex relative justify-center md:justify-normal">
|
||||
<img alt="avatar" loading="lazy" width="101" height="100" decoding="async" data-nimg="1" class="right-[-85px] md:right-0 relative circle-image" style="color:transparent" src="<?= $last4[0]['photo'] ?? $resources . '/out/images/avatar.png' ?>"/>
|
||||
<img alt="avatar" loading="lazy" width="101" height="100" decoding="async" data-nimg="1" class="right-[-30px] md:right-[55px] z-2 relative circle-image" style="color:transparent" src="<?= $last4[1]['photo'] ?? $resources . '/out/images/avatar.png' ?>"/>
|
||||
<img alt="avatar" loading="lazy" width="101" height="100" decoding="async" data-nimg="1" class="right-[30px] md:right-[105px] z-3 relative circle-image" style="color:transparent" src="<?= \kernel\helpers\Files::isImageByExtension($last4[2]['photo']) ? $last4[2]['photo'] : $resources . '/out/images/user_no_photo.png' ?>"/>
|
||||
<img alt="avatar" loading="lazy" width="101" height="100" decoding="async" data-nimg="1" class="right-[85px] md:right-[155px] z-4 relative circle-image" style="color:transparent" src="<?= $last4[3]['photo'] ?? $resources . '/out/images/avatar.png' ?>"/>
|
||||
</div>
|
||||
<p class="text-blue font-[900] text-[26px]">+ <?= \kernel\app_modules\gestalt_profile\services\Gestalt_profileService::getCount() - 4 ?> учасников</p></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-[50px] flex-col sm:flex-row flex gap-[64px] justify-center container mx-auto">
|
||||
<div class="flex-col flex gap-[35px] items-center"><img alt="oppgp" loading="lazy" width="140" height="37"
|
||||
decoding="async" data-nimg="1" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/oppgp.svg"/>
|
||||
<p class="text-grey max-w-[300px] text-[16px] leading-[17px] text-center font-[700]">Донецкое
|
||||
гештальт-сообщество является частью Всероссийского общества психологов практикующих гештальт-подход (ОПП
|
||||
ГП). </p></div>
|
||||
<div class="flex-col flex gap-[19px] items-center"><img alt="oppgp" loading="lazy" width="177" height="53"
|
||||
decoding="async" data-nimg="1" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/pmg.svg"/>
|
||||
<p class="text-grey max-w-[507px] text-[16px] leading-[17px] text-center font-[700]">В своей работе мы
|
||||
придерживаемся стандартов программы «Московский Гештальт Институт», а также стандартов Европейской
|
||||
Ассоциации Гештальт Терапии, Этического Кодекса Гештальт Терапевта и принципов гуманизма.</p></div>
|
||||
</div>
|
||||
<div class="flex flex-col mt-[100px]">
|
||||
<div class="flex flex-col gap-[10px] md:flex-row items-center lg: max-w-[1083px] px-[25px] mx-auto justify-between w-full mb-[50px]">
|
||||
<div class="order-2 md:order-1 max-w-[225px] min-w-[180px] min-h-[39px] justify-center items-center w-fit cursor-pointer border-blue border-[1px] flex gap-[10px] rounded-[10px]">
|
||||
<p class="text-blue font-[700] text-[16px]">Конференции</p><img alt="chevronDown" loading="lazy"
|
||||
width="11" height="8" decoding="async"
|
||||
data-nimg="1" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/></div>
|
||||
<h3 class="mb-[50px] md:mb-0 order-1 md:order-2 text-blac text-center text-[26px] uppercase">Мероприятия
|
||||
сообщества</h3>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] bg-blue text-[16px] text-white max-h-[39px] px-[25px] py-[10px] hidden md:flex order-3">
|
||||
<a href="/events">Все мероприятия</a>
|
||||
</button>
|
||||
</div>
|
||||
<?php \app\themes\gestalt\widgets\MainEventsList::create()->run(); ?>
|
||||
</div>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] bg-blue text-[16px] text-white max-h-[39px] px-[25px] py-[10px] min-w-[315px] mt-[50px] m-auto md:hidden">
|
||||
<a href="/events">Все мероприятия</a>
|
||||
</button>
|
||||
<div class="flex flex-col mt-[90px] mb-[80px] gap-[56px]">
|
||||
<div class="flex flex-col md:flex-row items-center px-[25px] max-w-[1083px] mx-auto justify-between w-full">
|
||||
<div class="order-2 md:order-1 max-w-[225px] min-w-[180px] min-h-[39px] justify-center items-center w-fit cursor-pointer border-blue border-[1px] flex gap-[10px] rounded-[10px]">
|
||||
<p class="text-blue font-[700] text-[16px]">Тренер</p><img alt="chevronDown" loading="lazy" width="11"
|
||||
height="8" decoding="async" data-nimg="1"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/></div>
|
||||
<div class="flex mb-[50px] order-1 md:order-2 md:mb-0"><img alt="arrow" loading="lazy" width="11"
|
||||
height="11" decoding="async" data-nimg="1"
|
||||
class="rotate-[90deg] relative top-[-2px]"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
<h3 class=" text-black text-center text-[26px] uppercase mx-[23px]">наше сообщество</h3><img alt="arrow"
|
||||
loading="lazy"
|
||||
width="11"
|
||||
height="11"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
class="rotate-[-90deg] relative top-[-2px]"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</div>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] bg-blue text-[16px] text-white max-h-[39px] px-[25px] py-[10px] hidden md:order-3 md:flex">
|
||||
<a href="/psychologists">Все участники</a>
|
||||
</button>
|
||||
</div>
|
||||
<?php \app\themes\gestalt\widgets\MainPsychologistsList::create(['count' => 5])->run(); ?>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] bg-blue text-[16px] text-white max-h-[39px] px-[25px] py-[10px] min-w-[315px] mt-[50px] m-auto md:hidden">
|
||||
Все участники
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
|
||||
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">конференции</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">акредитации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">общие сборы</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">протоколы сборов</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">новости сайта</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">календарь событий</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">сайт мги</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">вопросы и ответы</span></div>
|
||||
</div>
|
||||
<div class="flex gap-[19px] m-auto">
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">Книги</span></div>
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">лекции</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Illuminate\Database\Eloquent\Collection $psychologists
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="flex m-auto justify-center gap-[16px] w-full px-[25px] flex-wrap">
|
||||
<?php foreach ($psychologists as $psychologist): ?>
|
||||
<?php /** @var \kernel\app_modules\gestalt_profile\models\Gestalt_profile $psychologist */ ?>
|
||||
<a class=" backdrop-blur-custom border-[1px] border-white rounded-[15px] bg-darkWhite text-black w-fit shadow-custom px-[9px] pt-[11px] pb-[25px] max-w-[370px] w-full sm:max-w-[280px]"
|
||||
href="/psychologist/<?= $psychologist->id ?>">
|
||||
<img alt="image" loading="lazy" width="260" height="181" decoding="async"
|
||||
data-nimg="1" class="w-full" style="width: 100%; height: 200px; object-fit: cover;color:transparent"
|
||||
src="<?= $psychologist->photo ?? '' ?>"/>
|
||||
<div class="px-[13px]">
|
||||
<h5 class="text-[18px] max-w-full sm:max-w-[190px] font-[400] leading-[20px] max-w-[190px] mt-[16px] mb-[20px]">
|
||||
<?= $psychologist->fio ?? '' ?>
|
||||
</h5>
|
||||
<span class="text-lightGrey">
|
||||
Работает с темами
|
||||
<p class="text-black text-[13px] leading-[15px] line-clamp-3 text-ellipsis max-w-[220px] mb-[16px] max-w-full sm:max-w-[220px]">
|
||||
<?= !empty($psychologist->specialization) ? $psychologist->specialization : 'Нет данных' ?>
|
||||
</p>
|
||||
</span>
|
||||
<div class="flex gap-[5px] max-w-[220px] flex-wrap items-center max-w-full sm:max-w-[220px]">
|
||||
<?php foreach ($psychologist->communityStatusArr as $item): ?>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[13px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] min-h-[28px] max-h-[28px] h-full">
|
||||
<span class="">
|
||||
<?= $item ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php if (count($psychologist->communityStatusArr) > 3): ?>
|
||||
<div class="bg-bgGrey rounded-[6px] w-[28px] h-[28px] flex justify-center items-center"><span
|
||||
class="text-white text-[13px] font-[400] max-h-[15px] flex items-center relative top-[1px]"><span
|
||||
class="relative top-[-0.5px]">+</span>3</span></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @var array $columns
|
||||
*/
|
||||
|
||||
echo '<div class="flex text-[15px] leading-[25px] gap-0 lg:gap-[63px] flex-col lg:flex-row ">';
|
||||
foreach ($columns as $column) {
|
||||
echo '<ul class="list-disc list-inside">';
|
||||
foreach ($column as $item) {
|
||||
echo '<li>' . htmlspecialchars($item) . '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
echo '</div>';
|
154
app/themes/gestalt/views/psychologist/index.php
Normal file
154
app/themes/gestalt/views/psychologist/index.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $resources ;
|
||||
* @var array $psychologists
|
||||
* @var array $pagination ;
|
||||
*/
|
||||
?>
|
||||
|
||||
<main>
|
||||
<nav class="max-w-[1083px] px-[25px] mx-auto">
|
||||
<ol class="flex flex-wrap text-middleGrey font-[350] my-[50px]">
|
||||
<li><a href="/">главная</a></li>
|
||||
<li><a href="/psychologists"><span class="mx-[2px]">/</span>участники</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="flex flex-col gap-[31px] items-center mb-[50px] px-[25px]"><h1
|
||||
class="text-[35px] sm:text-[40px] text-center uppercase">участники сообщества</h1>
|
||||
<p class="text-[19px] sm:text-[19px] max-w-[832px] text-center">это добровольное самоорганизующееся сообщество
|
||||
специалистов г. Донецка и Донецкого края в области психологического консультирования и гештальт-терапии.</p>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[50px] px-[25px]">
|
||||
<div class="flex flex-wrap gap-[10px] justify-center md:justify-start md:gap-[28px] max-w-[1032px] m-auto w-full">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] max-w-[140px] w-full rounded-[6px] border-[1px] text-[16px] text-blue">
|
||||
<span class="">Терапевт</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] max-w-[140px] w-full rounded-[6px] border-[1px] text-[16px] text-blue">
|
||||
<span class="">Супервизор</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] max-w-[140px] w-full rounded-[6px] border-[1px] text-[16px] text-blue">
|
||||
<span class="">Тренер</span></div>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-x-[16px] gap-y-[30px] justify-center max-w-[1350px] m-auto">
|
||||
<?php foreach ($psychologists['data'] as $psychologist): ?>
|
||||
<?php /** @var \kernel\app_modules\gestalt_profile\models\Gestalt_profile $psychologist */ ?>
|
||||
<a class="backdrop-blur-custom border-[1px] border-white rounded-[15px] bg-darkWhite text-black w-fit shadow-custom px-[9px] pt-[11px] pb-[25px] max-w-[370px] w-full sm:max-w-[280px]"
|
||||
href="/participants/<?= $psychologist->id ?>">
|
||||
<img alt="image" loading="lazy" width="260" height="181" decoding="async"
|
||||
data-nimg="1" class="w-full"
|
||||
style="width: 100%; height: 200px; object-fit: cover;color:transparent"
|
||||
src="<?= !empty(\kernel\helpers\Files::isImageByExtension($psychologist->photo)) ? $psychologist->photo : $resources . '/out/images/user_no_photo.png' ?>"/>
|
||||
<div class="px-[13px]">
|
||||
<h5 class="text-[18px] max-w-full sm:max-w-[190px] font-[400] leading-[20px] max-w-[190px] mt-[16px] mb-[20px]">
|
||||
<?= $psychologist->fio ?>
|
||||
</h5>
|
||||
<span class="text-lightGrey">
|
||||
Работает с темами
|
||||
<p class="text-black text-[13px] leading-[15px] line-clamp-3 text-ellipsis max-w-[220px] mb-[16px] max-w-full sm:max-w-[220px]">
|
||||
<?= !empty(trim($psychologist->description_of_professional_activity)) ? $psychologist->description_of_professional_activity : 'Нет данных' ?>
|
||||
</p>
|
||||
</span>
|
||||
<div class="flex gap-[5px] max-w-[220px] flex-wrap items-center max-w-full sm:max-w-[220px]">
|
||||
<?php foreach ($psychologist->communityStatusArr as $item): ?>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[13px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] min-h-[28px] max-h-[28px] h-full">
|
||||
<span class="">
|
||||
<?= $item ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php if (count($psychologist->communityStatusArr) > 3): ?>
|
||||
<div class="bg-bgGrey rounded-[6px] w-[28px] h-[28px] flex justify-center items-center"><span
|
||||
class="text-white text-[13px] font-[400] max-h-[15px] flex items-center relative top-[1px]"><span
|
||||
class="relative top-[-0.5px]">+</span>3</span></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="flex-col md:flex-row gap-[50px] max-w-[1033px] m-auto w-full mb-[100px] flex justify-between">
|
||||
<div class="flex">
|
||||
<button class="mr-[30px]" disabled="">
|
||||
<a href="<?= $pagination['previous'] ?>">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11"
|
||||
decoding="async" data-nimg="1"
|
||||
class="rotate-[90deg] relative top-[-2px]"
|
||||
style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</a>
|
||||
</button>
|
||||
<div class="flex gap-[12px] items-center">
|
||||
<?php if ($pagination['previous']): ?>
|
||||
<button class="text-[17px]">
|
||||
<a href="<?= $pagination['previous'] ?>">
|
||||
<?= $pagination['meta']['current_page'] - 1 ?>
|
||||
</a>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<button class="text-blue font-[700] text-[17px]"><?= $pagination['meta']['current_page'] ?></button>
|
||||
<?php if ($pagination['next']): ?>
|
||||
<button class="text-[17px]">
|
||||
<a href="<?= $pagination['next'] ?>">
|
||||
<?= $pagination['meta']['current_page'] + 1 ?>
|
||||
</a>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if ($pagination['meta']['current_page'] <= $pagination['meta']['last_page']
|
||||
&& $pagination['meta']['current_page'] > 4): ?>
|
||||
<span>...</span>
|
||||
<button class="text-[17px]"><?= $pagination['meta']['last_page'] ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<button class=" flex items-center text-[15px] font-[700] ml-auto md:ml-[26px] gap-[11px]">
|
||||
<a href="<?= $pagination['next'] ?>">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="rotate-[-90deg] relative top-[-2px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/chevronDown.svg"/>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<button class="flex items-center justify-center whitespace-nowrap rounded-[6px] font-[400] bg-blue text-[16px] text-white max-h-[39px] px-[25px] py-[10px] undefined">
|
||||
Показать всех участников
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[80px]">
|
||||
<div class="hidden lg:flex bg-blue rounded-[25px] relative max-w-[1033px] w-full m-auto pt-[59.5px] pb-[59.5px] h-[234px] text-center justify-center items-center">
|
||||
<p class="text-white text-[32px] max-w-[671px] font-[700]">Через собственное развитие мы развиваем и
|
||||
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="217" height="254"
|
||||
decoding="async" data-nimg="1"
|
||||
class=" absolute right-0 top-[-20px]"
|
||||
style="color:transparent" src="/images/palm.svg"/></div>
|
||||
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
|
||||
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">конференции</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">акредитации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">общие сборы</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">протоколы сборов</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">новости сайта</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">календарь событий</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">сайт мги</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">вопросы и ответы</span></div>
|
||||
</div>
|
||||
<div class="flex gap-[19px] m-auto">
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">Книги</span></div>
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">лекции</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
110
app/themes/gestalt/views/psychologist/view.php
Normal file
110
app/themes/gestalt/views/psychologist/view.php
Normal file
@ -0,0 +1,110 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \kernel\app_modules\gestalt_profile\models\Gestalt_profile $profile
|
||||
* @var string $resources ;
|
||||
*/
|
||||
?>
|
||||
|
||||
<main>
|
||||
<nav class="max-w-[1083px] px-[25px] mx-auto">
|
||||
<ol class="flex flex-wrap text-middleGrey font-[350] my-[50px]">
|
||||
<li><a href="/">главная</a></li>
|
||||
<li><a href="/psychologists"><span class="mx-[2px]">/</span>участники</a></li>
|
||||
<li><a href="/psychologist/<?= $profile->id ?>"><span class="mx-[2px]">/</span><?= $profile->fio ?? '' ?> </a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class=" flex flex-wrap justify-center gap-[35px] px-[25px] max-w-[1083px] m-auto">
|
||||
<div class="bg-white p-[15px] w-fit rounded-[6px] mr-auto"><img alt="human" loading="lazy" width="335"
|
||||
height="355" decoding="async" data-nimg="1"
|
||||
class=""
|
||||
style="color:transparent"
|
||||
src="<?= $profile->photo ?? $resources . '/out/images/mok_human.svg' ?>"/>
|
||||
</div>
|
||||
<div class="flex flex-col w-full lg:w-auto">
|
||||
<h2
|
||||
class="uppercase lg:text-start lg:max-w-[390px] text-[40px] leading-[48px]">
|
||||
<?= $profile->fio ?>
|
||||
</h2>
|
||||
<div class="flex gap-[17px] mt-[8px] mb-[25px]">
|
||||
<img alt="location" loading="lazy" width="18" height="22"
|
||||
decoding="async" data-nimg="1"
|
||||
style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/location.svg"/>
|
||||
<span class="text-lightBlack text-[18px]">
|
||||
<?= $profile->city ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[8px] mb-[70px] lg:mb-[23px]"><span class="text-blue text-[16px]">Статус в сообществе:</span>
|
||||
<div class="flex gap-[13px]">
|
||||
<?php foreach ($profile->communityStatusArr as $item): ?>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit text-[14px] px-[9.5px] rounded-[6px] border-[0.5px] text-blue font-[400] max-w-[114px] w-full min-h-[34px] h-full">
|
||||
<span class=""><?= $item ?></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-[35px] pb-[10px] pt-[35px] sm:py-[47.5px] sm:px-[53px] gap-[20px] sm:gap-[52px] bg-white text-[20px] flex flex-col sm:flex-row rounded-[12px] relative">
|
||||
<div class="flex gap-[13px]"><img alt="phone" loading="lazy" width="18" height="18" decoding="async"
|
||||
data-nimg="1" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/phone.svg"/><span><?= $profile->phone ?? '' ?></span></div>
|
||||
<div class="flex gap-[13px]"><img alt="phone" loading="lazy" width="18" height="18" decoding="async"
|
||||
data-nimg="1" style="color:transparent" src="<?= $resources ?>/out/images/mail.svg"/><span><?= $profile->email ?? '' ?></span>
|
||||
</div>
|
||||
<div class="flex absolute top-[-20px] min-w-[47px] h-[47px] bg-white items-center justify-center rounded-full sm:right-[-25px] sm:top-[38px]">
|
||||
<a class="flex justify-center items-center w-[41px] h-[41px] bg-blue rounded-full" href=""><img
|
||||
alt="logo_tg" loading="lazy" width="1" height="1" decoding="async" data-nimg="1"
|
||||
class="w-auto h-auto" style="color:transparent" src="<?= $resources ?>/out/images/logo_tg.svg"/> </a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col rounded-[6px] border-[1px] border-white max-w-[1032px] mx-[25px] lg:mx-auto pt-[41px] px-[34px] pb-[30px] gap-[12px] mb-[50px] mt-[36px]">
|
||||
<h3 class="uppercase text-[26px]">Специализация</h3>
|
||||
<?php \app\themes\gestalt\widgets\SpecializationListWidget::create(['items' => $profile->specializationArr])->run(); ?>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[30px] mx-[25px] lg:max-w-[910px] lg:mx-auto mb-[100px] ">
|
||||
<h3 class="uppercase text-black text-[26px]">Описание профессиональной деятельности</h3>
|
||||
<?= $profile->description_of_professional_activity ?? '' ?>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[80px]">
|
||||
<div class="hidden lg:flex bg-blue rounded-[25px] relative max-w-[1033px] w-full m-auto pt-[59.5px] pb-[59.5px] h-[234px] text-center justify-center items-center">
|
||||
<p class="text-white text-[32px] max-w-[671px] font-[700]">Через собственное развитие мы развиваем и
|
||||
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="217" height="254"
|
||||
decoding="async" data-nimg="1"
|
||||
class=" absolute right-0 top-[-20px]" style="color:transparent"
|
||||
src="<?= $resources ?>/out/images/palm.svg"/></div>
|
||||
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
|
||||
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">конференции</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">акредитации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">открытые сертификации</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">общие сборы</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">протоколы сборов</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">новости сайта</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">календарь событий</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">сайт мги</span></div>
|
||||
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
|
||||
<span class="">вопросы и ответы</span></div>
|
||||
</div>
|
||||
<div class="flex gap-[19px] m-auto">
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">Книги</span></div>
|
||||
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
|
||||
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
|
||||
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
|
||||
class="text-[26px] text-black uppercase">лекции</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
24
app/themes/gestalt/widgets/MainEventsList.php
Normal file
24
app/themes/gestalt/widgets/MainEventsList.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\widgets;
|
||||
|
||||
use kernel\app_modules\event\models\Event;
|
||||
use kernel\Widget;
|
||||
|
||||
class MainEventsList extends Widget
|
||||
{
|
||||
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/event/";
|
||||
}
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$events = Event::query()->limit(5)->get();
|
||||
|
||||
$this->cgView->render('_main_events_list.php', ['events' => $events]);
|
||||
}
|
||||
|
||||
}
|
29
app/themes/gestalt/widgets/MainPsychologistsList.php
Normal file
29
app/themes/gestalt/widgets/MainPsychologistsList.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\widgets;
|
||||
|
||||
use kernel\app_modules\gestalt_profile\models\Gestalt_profile;
|
||||
use kernel\Widget;
|
||||
|
||||
/**
|
||||
* @property array $data
|
||||
*/
|
||||
class MainPsychologistsList extends Widget
|
||||
{
|
||||
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/psychologist/";
|
||||
}
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$count = $this->data['count'];
|
||||
|
||||
$psychologists = Gestalt_profile::where("show_on_main", 1)->limit($count)->get();
|
||||
|
||||
$this->cgView->render('_main_psychologists_list.php', ['psychologists' => $psychologists]);
|
||||
}
|
||||
|
||||
}
|
32
app/themes/gestalt/widgets/SpecializationListWidget.php
Normal file
32
app/themes/gestalt/widgets/SpecializationListWidget.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace app\themes\gestalt\widgets;
|
||||
|
||||
use kernel\helpers\Debug;
|
||||
use kernel\Widget;
|
||||
|
||||
/**
|
||||
* @property array $data
|
||||
*/
|
||||
class SpecializationListWidget extends Widget
|
||||
{
|
||||
protected function init(): void
|
||||
{
|
||||
parent::init();
|
||||
$this->cgView->viewPath = APP_DIR . "/themes/gestalt/views/psychologist/";
|
||||
}
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$totalItems = count($this->data['items']);
|
||||
$itemsPerColumn = ceil($totalItems / 3);
|
||||
// Разбиваем массив на три части
|
||||
if (empty($this->data['items'])){
|
||||
return;
|
||||
}
|
||||
$columns = array_chunk($this->data['items'], $itemsPerColumn);
|
||||
|
||||
$this->cgView->render('_specialization_list.php', ['columns' => $columns]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user