Files
BiveEngine/playarea/datatypes/datatype.post.php
2025-12-24 19:19:01 +03:00

24 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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"),
);
}
}