20 lines
936 B
PHP
20 lines
936 B
PHP
<?php
|
|
|
|
class Reviews extends Item {
|
|
public string $title = "Отзывы";
|
|
public string $description = "Управление отзывами на сайте.";
|
|
public string $icon = "reviews";
|
|
public bool $visible_content = true;
|
|
public function __construct($item_id)
|
|
{
|
|
parent::__construct($item_id);
|
|
$this->props = array(
|
|
"view" => new Prop($this, "view", "1", "Видимость", true, "plain_text"),
|
|
"name" => new Prop($this, "name", "", "Автор", true, "plain_text"),
|
|
"date" => new Prop($this, "date", "", "Дата написания", true, "plain_text"),
|
|
"photo" => new Prop($this, "photo", "", "Фото автора", false, "plain_image"),
|
|
"score" => new Prop($this, "score", "5", "Оценка", true, "plain_text"),
|
|
"email" => new Prop($this, "email", "", "Email", true, "plain_text"),
|
|
);
|
|
}
|
|
} |