Initial commit
This commit is contained in:
20
playarea/datatypes/datatype.reviews.php
Normal file
20
playarea/datatypes/datatype.reviews.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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"),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user