24 lines
1.5 KiB
PHP
24 lines
1.5 KiB
PHP
<?php
|
||
|
||
class Post extends Item {
|
||
public string $title = "Посты";
|
||
public string $description = "Управление постами на сайте.";
|
||
public string $parent_class = "Category";
|
||
public string $icon = "edit_note";
|
||
public function __construct($item_id)
|
||
{
|
||
parent::__construct($item_id);
|
||
$this->props = array(
|
||
"seo_title" => new Prop($this, "seo_title", '', "СЕО-заголовок", false, "plain_text"),
|
||
"seo_description" => new Prop($this, "seo_description", '', "СЕО-описание", false, "plain_text"),
|
||
"seo_keywords" => new Prop($this, "seo_keywords", '', "СЕО-keywords", false, "plain_text"),
|
||
"quick" => new Prop($this, "quick", "", "Сокращенный текст", false, "plain_text"),
|
||
"author" => new Prop($this, "author", "Артём Опарин", "Автор", true, "author"),
|
||
"create_date" => new Prop($this, "create_date", date("d.m.y"), "Дата создания", true, "plain_text"),
|
||
"post_photo" => new Prop($this, "post_photo", "", "Изображение записи", false, "post_photo"),
|
||
"views" => new Prop($this, "views", "0", "Количество просмотров", true, "plain_text"),
|
||
"battery" => new Prop($this, "battery", "0", "Рейтинг", false, "plain_text"),
|
||
"more" => new Prop($this, "more", '', "Смотрите также", false, "plain_links"),
|
||
);
|
||
}
|
||
} |