| @@ 7-42 (lines=36) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $templateType; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Set data to delete category. |
|
| 26 | * |
|
| 27 | * @param array $category |
|
| 28 | */ |
|
| 29 | public function delCategory(array $category) |
|
| 30 | { |
|
| 31 | $this->category = new Category($category); |
|
| 32 | ||
| 33 | $this->pageTitle = _('Delete category'); |
|
| 34 | $this->head->setTitle($this->pageTitle); |
|
| 35 | ||
| 36 | $this->path = $this->category->delUrl(); |
|
| 37 | ||
| 38 | $this->templateType = 'del'; |
|
| 39 | ||
| 40 | $this->template = 'categories-del'; |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| @@ 7-40 (lines=34) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $templateType; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @param array $category |
|
| 26 | */ |
|
| 27 | public function edit(array $category) |
|
| 28 | { |
|
| 29 | $this->category = new Category($category); |
|
| 30 | ||
| 31 | $this->pageTitle = _('Edit category'); |
|
| 32 | $this->head->setTitle($this->pageTitle); |
|
| 33 | ||
| 34 | $this->path = $this->category->editUrl(); |
|
| 35 | ||
| 36 | $this->templateType = 'edit'; |
|
| 37 | ||
| 38 | $this->template = 'category-one'; |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| @@ 8-45 (lines=38) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
| 7 | ||
| 8 | class DelView extends AdminView |
|
| 9 | { |
|
| 10 | use CategoryAddon; |
|
| 11 | ||
| 12 | /** |
|
| 13 | * @var Album |
|
| 14 | */ |
|
| 15 | protected $album; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | protected $path; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @var string |
|
| 24 | */ |
|
| 25 | protected $templateType; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Set data to delete album. |
|
| 29 | * |
|
| 30 | * @param array $album |
|
| 31 | */ |
|
| 32 | public function delAlbum(array $album) |
|
| 33 | { |
|
| 34 | $this->album = new Album($album); |
|
| 35 | ||
| 36 | $this->pageTitle = _('Delete album'); |
|
| 37 | $this->head->setTitle($this->pageTitle); |
|
| 38 | ||
| 39 | $this->path = $this->album->delUrl(); |
|
| 40 | ||
| 41 | $this->templateType = 'del'; |
|
| 42 | ||
| 43 | $this->template = 'albums-del'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 8-45 (lines=38) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
| 7 | ||
| 8 | class EditView extends AdminView |
|
| 9 | { |
|
| 10 | use CategoryAddon; |
|
| 11 | ||
| 12 | /** |
|
| 13 | * @var Album |
|
| 14 | */ |
|
| 15 | protected $album; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | protected $path; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @var string |
|
| 24 | */ |
|
| 25 | protected $templateType; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Set data to edit album. |
|
| 29 | * |
|
| 30 | * @param array $album |
|
| 31 | */ |
|
| 32 | public function editAlbum(array $album) |
|
| 33 | { |
|
| 34 | $this->album = new Album($album); |
|
| 35 | ||
| 36 | $this->pageTitle = _('Edit album'); |
|
| 37 | $this->head->setTitle($this->pageTitle); |
|
| 38 | ||
| 39 | $this->path = $this->album->editUrl(); |
|
| 40 | ||
| 41 | $this->templateType = 'edit'; |
|
| 42 | ||
| 43 | $this->template = 'albums-one'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 7-42 (lines=36) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $templateType; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Set data to delete category. |
|
| 26 | * |
|
| 27 | * @param array $category |
|
| 28 | */ |
|
| 29 | public function delCategory(array $category) |
|
| 30 | { |
|
| 31 | $this->category = new Category($category); |
|
| 32 | ||
| 33 | $this->pageTitle = _('Delete category'); |
|
| 34 | $this->head->setTitle($this->pageTitle); |
|
| 35 | ||
| 36 | $this->path = $this->category->delUrl(); |
|
| 37 | ||
| 38 | $this->templateType = 'del'; |
|
| 39 | ||
| 40 | $this->template = 'categories-del'; |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| @@ 7-40 (lines=34) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $templateType; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @param array $category |
|
| 26 | */ |
|
| 27 | public function edit(array $category) |
|
| 28 | { |
|
| 29 | $this->category = new Category($category); |
|
| 30 | ||
| 31 | $this->pageTitle = _('Edit category'); |
|
| 32 | $this->head->setTitle($this->pageTitle); |
|
| 33 | ||
| 34 | $this->path = $this->category->editUrl(); |
|
| 35 | ||
| 36 | $this->templateType = 'edit'; |
|
| 37 | ||
| 38 | $this->template = 'category-one'; |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| @@ 8-45 (lines=38) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
| 7 | ||
| 8 | class DelView extends AdminView |
|
| 9 | { |
|
| 10 | use CategoryAddon; |
|
| 11 | ||
| 12 | /** |
|
| 13 | * @var Article |
|
| 14 | */ |
|
| 15 | protected $article; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | protected $path; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @var string |
|
| 24 | */ |
|
| 25 | protected $templateType; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Set data to delete article. |
|
| 29 | * |
|
| 30 | * @param array $article |
|
| 31 | */ |
|
| 32 | public function delArticle(array $article) |
|
| 33 | { |
|
| 34 | $this->article = new Article($article); |
|
| 35 | ||
| 36 | $this->pageTitle = _('Delete article'); |
|
| 37 | $this->head->setTitle($this->pageTitle); |
|
| 38 | ||
| 39 | $this->path = $this->article->delUrl(); |
|
| 40 | ||
| 41 | $this->templateType = 'del'; |
|
| 42 | ||
| 43 | $this->template = 'articles-del'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 8-45 (lines=38) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
| 7 | ||
| 8 | class EditView extends AdminView |
|
| 9 | { |
|
| 10 | use CategoryAddon; |
|
| 11 | ||
| 12 | /** |
|
| 13 | * @var Article |
|
| 14 | */ |
|
| 15 | protected $article; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | protected $path; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @var string |
|
| 24 | */ |
|
| 25 | protected $templateType; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Set data to edit article. |
|
| 29 | * |
|
| 30 | * @param array $article |
|
| 31 | */ |
|
| 32 | public function editArticle(array $article) |
|
| 33 | { |
|
| 34 | $this->article = new Article($article); |
|
| 35 | ||
| 36 | $this->pageTitle = _('Edit article'); |
|
| 37 | $this->head->setTitle($this->pageTitle); |
|
| 38 | ||
| 39 | $this->path = $this->article->editUrl(); |
|
| 40 | ||
| 41 | $this->templateType = 'edit'; |
|
| 42 | ||
| 43 | $this->template = 'articles-one'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 7-35 (lines=29) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Gallery |
|
| 11 | */ |
|
| 12 | protected $gallery; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * Set data to delete gallery. |
|
| 21 | * |
|
| 22 | * @param array $gallery |
|
| 23 | */ |
|
| 24 | public function delGallery(array $gallery) |
|
| 25 | { |
|
| 26 | $this->gallery = new Gallery($gallery); |
|
| 27 | ||
| 28 | $this->pageTitle = _('Delete gallery'); |
|
| 29 | $this->head->setTitle($this->pageTitle); |
|
| 30 | ||
| 31 | $this->path = $this->gallery->delUrl(); |
|
| 32 | ||
| 33 | $this->template = 'gallery-del'; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 8-45 (lines=38) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
| 7 | ||
| 8 | class EditView extends AdminView |
|
| 9 | { |
|
| 10 | use CategoryAddon; |
|
| 11 | ||
| 12 | /** |
|
| 13 | * @var Gallery |
|
| 14 | */ |
|
| 15 | protected $gallery; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | protected $path; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @var string |
|
| 24 | */ |
|
| 25 | protected $templateType; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Set data to edit gallery. |
|
| 29 | * |
|
| 30 | * @param array $gallery |
|
| 31 | */ |
|
| 32 | public function editGallery(array $gallery) |
|
| 33 | { |
|
| 34 | $this->gallery = new Gallery($gallery); |
|
| 35 | ||
| 36 | $this->pageTitle = _('Edit gallery'); |
|
| 37 | $this->head->setTitle($this->pageTitle); |
|
| 38 | ||
| 39 | $this->path = $this->gallery->editUrl(); |
|
| 40 | ||
| 41 | $this->templateType = 'edit'; |
|
| 42 | ||
| 43 | $this->template = 'gallery-one'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 7-41 (lines=35) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Page |
|
| 11 | */ |
|
| 12 | protected $page; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $templateType; |
|
| 23 | /** |
|
| 24 | * Set data to delete page. |
|
| 25 | * |
|
| 26 | * @param array $page |
|
| 27 | */ |
|
| 28 | public function delPage(array $page) |
|
| 29 | { |
|
| 30 | $this->page = new Page($page); |
|
| 31 | ||
| 32 | $this->pageTitle = _('Delete page'); |
|
| 33 | $this->head->setTitle($this->pageTitle); |
|
| 34 | ||
| 35 | $this->path = $this->page->delUrl(); |
|
| 36 | ||
| 37 | $this->templateType = 'del'; |
|
| 38 | ||
| 39 | $this->template = 'pages-del'; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | ||
| @@ 7-44 (lines=38) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | use PagesAddon; |
|
| 10 | ||
| 11 | /** |
|
| 12 | * @var Page |
|
| 13 | */ |
|
| 14 | protected $page; |
|
| 15 | ||
| 16 | /** |
|
| 17 | * @var string |
|
| 18 | */ |
|
| 19 | protected $path; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * @var string |
|
| 23 | */ |
|
| 24 | protected $templateType; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Set data to edit page. |
|
| 28 | * |
|
| 29 | * @param array $page |
|
| 30 | */ |
|
| 31 | public function editPage(array $page) |
|
| 32 | { |
|
| 33 | $this->page = new Page($page); |
|
| 34 | ||
| 35 | $this->pageTitle = _('Edit page'); |
|
| 36 | $this->head->setTitle($this->pageTitle); |
|
| 37 | ||
| 38 | $this->path = $this->page->editUrl(); |
|
| 39 | ||
| 40 | $this->templateType = 'edit'; |
|
| 41 | ||
| 42 | $this->template = 'pages-one'; |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 7-34 (lines=28) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditorView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var array |
|
| 11 | */ |
|
| 12 | protected $filesList; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var array |
|
| 16 | */ |
|
| 17 | protected $file; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @param array $filesList |
|
| 21 | * @param array $file |
|
| 22 | */ |
|
| 23 | public function editor(array $filesList, array $file) |
|
| 24 | { |
|
| 25 | $this->pageTitle = _('Theme editor'); |
|
| 26 | $this->head->setTitle($this->pageTitle); |
|
| 27 | ||
| 28 | $this->filesList = $filesList; |
|
| 29 | ||
| 30 | $this->file = $file; |
|
| 31 | ||
| 32 | $this->template = 'appearance-editor'; |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| @@ 8-42 (lines=35) @@ | ||
| 5 | use Rudolf\Component\Helpers\Navigation\MenuItemCollection; |
|
| 6 | use Rudolf\Framework\View\AdminView; |
|
| 7 | ||
| 8 | class AddView extends AdminView |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var MenuItem |
|
| 12 | */ |
|
| 13 | protected $item; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * @var array |
|
| 17 | */ |
|
| 18 | protected $types; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @var MenuItemCollection |
|
| 22 | */ |
|
| 23 | protected $items; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @var string |
|
| 27 | */ |
|
| 28 | protected $templateType; |
|
| 29 | ||
| 30 | public function display($data, $types, $items) |
|
| 31 | { |
|
| 32 | $this->pageTitle = _('Menu editor'); |
|
| 33 | $this->head->setTitle($this->pageTitle); |
|
| 34 | $this->item = $data; |
|
| 35 | $this->types = $types; |
|
| 36 | $this->items = $items; |
|
| 37 | ||
| 38 | $this->templateType = 'add'; |
|
| 39 | ||
| 40 | $this->template = 'appearance-menu-item'; |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | protected $item; |
|
| 10 | protected $path; |
|
| 11 | ||
| 12 | public function display($data) |
|
| 13 | { |
|
| 14 | $this->pageTitle = _('Menu editor'); |
|
| 15 | $this->head->setTitle($this->pageTitle); |
|
| 16 | $this->item = $data; |
|
| 17 | ||
| 18 | $this->path = ''; |
|
| 19 | ||
| 20 | $this->template = 'menu-del'; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-26 (lines=20) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | protected $item; |
|
| 10 | protected $types; |
|
| 11 | protected $items; |
|
| 12 | protected $templateType; |
|
| 13 | ||
| 14 | public function display($data, $types, $items) |
|
| 15 | { |
|
| 16 | $this->pageTitle = _('Menu editor'); |
|
| 17 | $this->head->setTitle($this->pageTitle); |
|
| 18 | $this->item = $data; |
|
| 19 | $this->types = $types; |
|
| 20 | $this->items = $items; |
|
| 21 | ||
| 22 | $this->templateType = 'edit'; |
|
| 23 | ||
| 24 | $this->template = 'appearance-menu-item'; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||