├── tests └── .gitignore ├── .gitignore ├── media ├── favicon.ico ├── img │ └── logo_20.png ├── js │ └── frontend.js └── css │ ├── frontend.css │ └── empty.css ├── modules ├── subscribe │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── create.php │ │ │ ├── _form.php │ │ │ ├── view.php │ │ │ ├── _menu.php │ │ │ ├── history.php │ │ │ └── index.php │ ├── SubscribeModule.php │ ├── models │ │ ├── History.php │ │ └── Subscriber.php │ └── controllers │ │ └── SendController.php ├── text │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── edit.php │ │ │ ├── create.php │ │ │ ├── _form.php │ │ │ ├── _menu.php │ │ │ └── index.php │ ├── TextModule.php │ ├── models │ │ └── Text.php │ └── api │ │ └── Text.php ├── catalog │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── media │ │ └── css │ │ │ └── fields.css │ ├── views │ │ ├── items │ │ │ ├── create.php │ │ │ ├── edit.php │ │ │ ├── photos.php │ │ │ ├── _submenu.php │ │ │ ├── _menu.php │ │ │ └── _form.php │ │ └── a │ │ │ └── _submenu.php │ ├── assets │ │ └── FieldsAsset.php │ ├── models │ │ ├── ItemData.php │ │ └── Category.php │ ├── CatalogModule.php │ └── api │ │ ├── PhotoObject.php │ │ └── ItemObject.php ├── page │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── edit.php │ │ │ ├── create.php │ │ │ ├── _form.php │ │ │ ├── _menu.php │ │ │ └── index.php │ ├── PageModule.php │ ├── api │ │ ├── Page.php │ │ └── PageObject.php │ └── models │ │ └── Page.php ├── carousel │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── edit.php │ │ │ ├── create.php │ │ │ ├── _menu.php │ │ │ └── _form.php │ ├── api │ │ └── CarouselObject.php │ ├── CarouselModule.php │ └── models │ │ └── Carousel.php ├── gallery │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── photos.php │ │ │ ├── _submenu.php │ │ │ └── _menu.php │ ├── GalleryModule.php │ ├── models │ │ └── Category.php │ ├── controllers │ │ └── AController.php │ └── api │ │ ├── PhotoObject.php │ │ └── CategoryObject.php ├── article │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── items │ │ │ ├── create.php │ │ │ ├── photos.php │ │ │ ├── edit.php │ │ │ ├── _submenu.php │ │ │ └── _menu.php │ ├── controllers │ │ └── AController.php │ ├── models │ │ └── Category.php │ ├── ArticleModule.php │ └── api │ │ ├── PhotoObject.php │ │ └── ArticleObject.php ├── file │ ├── messages │ │ ├── fa │ │ │ ├── api.php │ │ │ └── admin.php │ │ └── ru │ │ │ ├── api.php │ │ │ └── admin.php │ ├── views │ │ └── a │ │ │ ├── edit.php │ │ │ ├── create.php │ │ │ ├── _menu.php │ │ │ └── _form.php │ ├── FileModule.php │ ├── controllers │ │ └── DownloadController.php │ └── api │ │ └── FileObject.php ├── faq │ ├── views │ │ └── a │ │ │ ├── create.php │ │ │ ├── edit.php │ │ │ ├── _form.php │ │ │ └── _menu.php │ ├── messages │ │ ├── fa │ │ │ └── admin.php │ │ └── ru │ │ │ └── admin.php │ ├── FaqModule.php │ ├── api │ │ ├── FaqObject.php │ │ └── Faq.php │ └── models │ │ └── Faq.php ├── news │ ├── views │ │ └── a │ │ │ ├── create.php │ │ │ ├── photos.php │ │ │ ├── edit.php │ │ │ ├── _submenu.php │ │ │ └── _menu.php │ ├── messages │ │ ├── ru │ │ │ └── admin.php │ │ └── fa │ │ │ └── admin.php │ ├── NewsModule.php │ └── api │ │ ├── PhotoObject.php │ │ └── NewsObject.php ├── shopcart │ ├── mail │ │ ├── en │ │ │ ├── new_order.php │ │ │ └── notify_user.php │ │ └── ru │ │ │ ├── new_order.php │ │ │ └── notify_user.php │ ├── controllers │ │ ├── GoodsController.php │ │ └── SendController.php │ ├── ShopcartModule.php │ ├── messages │ │ ├── fa │ │ │ └── admin.php │ │ └── ru │ │ │ └── admin.php │ ├── api │ │ ├── GoodObject.php │ │ └── OrderObject.php │ └── models │ │ └── Good.php ├── guestbook │ ├── mail │ │ ├── en │ │ │ ├── new_post.php │ │ │ └── notify_user.php │ │ └── ru │ │ │ ├── new_post.php │ │ │ └── notify_user.php │ ├── messages │ │ ├── fa │ │ │ └── admin.php │ │ └── ru │ │ │ └── admin.php │ ├── controllers │ │ └── SendController.php │ ├── GuestbookModule.php │ ├── api │ │ └── PostObject.php │ └── views │ │ └── a │ │ └── view.php └── feedback │ ├── mail │ ├── en │ │ ├── new_feedback.php │ │ └── answer.php │ └── ru │ │ ├── answer.php │ │ └── new_feedback.php │ ├── controllers │ └── SendController.php │ ├── messages │ ├── fa │ │ └── admin.php │ └── ru │ │ └── admin.php │ ├── FeedbackModule.php │ └── views │ └── a │ └── view.php ├── assets ├── redactor │ ├── redactor-font.eot │ ├── plugins │ │ ├── clips │ │ │ └── clips.css │ │ ├── textdirection │ │ │ ├── textdirection.js │ │ │ └── index.html │ │ ├── fontsize │ │ │ ├── fontsize.js │ │ │ └── index.html │ │ ├── limiter │ │ │ └── limiter.js │ │ ├── fontfamily │ │ │ └── fontfamily.js │ │ ├── counter │ │ │ └── counter.js │ │ ├── definedlinks │ │ │ └── definedlinks.js │ │ ├── textexpander │ │ │ └── textexpander.js │ │ ├── fontcolor │ │ │ └── index.html │ │ ├── fullscreen │ │ │ └── index.html │ │ └── filemanager │ │ │ └── filemanager.js │ └── lang │ │ ├── zh_cn.js │ │ ├── ko.js │ │ ├── zh_tw.js │ │ └── ja.js ├── photos │ └── photos.css ├── EmptyAsset.php ├── PhotosAsset.php ├── FancyboxAsset.php ├── FrontendAsset.php ├── SwitcherAsset.php ├── RedactorAsset.php ├── AdminAsset.php └── DateTimePickerAsset.php ├── views ├── admins │ ├── edit.php │ ├── create.php │ ├── _form.php │ ├── _menu.php │ └── index.php ├── settings │ ├── edit.php │ ├── create.php │ ├── _form.php │ ├── _menu.php │ └── index.php ├── modules │ ├── create.php │ ├── edit.php │ ├── _form.php │ ├── copy.php │ ├── _menu.php │ ├── _submenu.php │ └── settings.php ├── category │ ├── create.php │ ├── edit.php │ └── _menu.php ├── default │ └── index.php ├── logs │ ├── _menu.php │ └── index.php ├── system │ ├── update.php │ └── index.php ├── install │ ├── error.php │ ├── index.php │ ├── finish.php │ └── _form.php ├── layouts │ ├── empty.php │ └── frontend-toolbar.php └── sign │ └── in.php ├── models ├── TagAssign.php ├── Tag.php ├── CopyModuleForm.php ├── Photo.php ├── SeoText.php └── InstallForm.php ├── controllers ├── DefaultController.php ├── LogsController.php ├── TagsController.php └── SignController.php ├── validators └── EscapeValidator.php ├── README.md ├── components ├── ActiveQueryNS.php ├── ActiveRecord.php ├── API.php └── ActiveQuery.php ├── widgets ├── TagsInput.php ├── SeoForm.php ├── Photos.php ├── Fancybox.php └── views │ └── seo_form.php ├── CHANGELOG.md ├── helpers ├── Data.php ├── Mail.php └── Upload.php ├── behaviors ├── StatusController.php ├── SortableModel.php ├── CalculateNotice.php ├── CacheFlush.php ├── SortableDateController.php └── SortableController.php ├── messages ├── fa │ └── install.php ├── ru │ └── install.php └── uk │ └── install.php ├── config └── easyii.php └── composer.json /tests/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | Thumbs.db 4 | -------------------------------------------------------------------------------- /media/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noumo/easyii/HEAD/media/favicon.ico -------------------------------------------------------------------------------- /media/img/logo_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noumo/easyii/HEAD/media/img/logo_20.png -------------------------------------------------------------------------------- /modules/subscribe/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'عضویت', 4 | ]; -------------------------------------------------------------------------------- /modules/text/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'ایحاد متن', 4 | ]; -------------------------------------------------------------------------------- /modules/catalog/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'ایجاد دسته', 4 | ]; -------------------------------------------------------------------------------- /modules/page/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'Создать страницу', 4 | ]; -------------------------------------------------------------------------------- /modules/page/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать страницу', 4 | ]; -------------------------------------------------------------------------------- /modules/subscribe/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Подписаться', 4 | ]; -------------------------------------------------------------------------------- /modules/text/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать текст', 4 | ]; -------------------------------------------------------------------------------- /modules/carousel/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'ایجاد اسلاید', 4 | ]; -------------------------------------------------------------------------------- /modules/gallery/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'Создать альбом', 4 | ]; -------------------------------------------------------------------------------- /modules/gallery/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать альбом', 4 | ]; -------------------------------------------------------------------------------- /modules/article/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'Создать категорию', 4 | ]; -------------------------------------------------------------------------------- /modules/article/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать категорию', 4 | ]; -------------------------------------------------------------------------------- /modules/carousel/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать карусель', 4 | ]; -------------------------------------------------------------------------------- /modules/catalog/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать категорию', 4 | ]; -------------------------------------------------------------------------------- /assets/redactor/redactor-font.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noumo/easyii/HEAD/assets/redactor/redactor-font.eot -------------------------------------------------------------------------------- /modules/catalog/media/css/fields.css: -------------------------------------------------------------------------------- 1 | #categoryFields{margin-top: 20px;} 2 | #addField, #saveCategoryBtn {margin-left: 8px;} -------------------------------------------------------------------------------- /modules/file/messages/fa/api.php: -------------------------------------------------------------------------------- 1 | 'Создать файл', 4 | 'File not found' => 'Файл не найден' 5 | ]; -------------------------------------------------------------------------------- /modules/file/messages/ru/api.php: -------------------------------------------------------------------------------- 1 | 'Создать файл', 4 | 'File not found' => 'Файл не найден' 5 | ]; -------------------------------------------------------------------------------- /assets/redactor/plugins/clips/clips.css: -------------------------------------------------------------------------------- 1 | .label-red { 2 | color: #fff; 3 | background: #c92020; 4 | padding: 0 7px; 5 | border-radius: 4px; 6 | } -------------------------------------------------------------------------------- /views/admins/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Edit admin'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /views/admins/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Create admin'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /views/settings/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Edit setting'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /assets/photos/photos.css: -------------------------------------------------------------------------------- 1 | #photo-upload { 2 | margin: 20px 0; 3 | } 4 | .photo-description{height: 65px !important; margin-bottom: 5px;} 5 | 6 | #uploading-text{display: none;} -------------------------------------------------------------------------------- /views/modules/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Create module'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /views/settings/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Create setting'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/faq/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/faq', 'Create entry'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/faq/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/faq', 'Edit entry'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/file/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/file', 'Edit file'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/page/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/page', 'Edit page'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/text/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/text', 'Edit text'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/file/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/file', 'Create file'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/news/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/news', 'Create news'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/page/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/page', 'Create page'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/text/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/text', 'Create text'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/carousel/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/carousel', 'Edit carousel'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/carousel/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/carousel', 'Create carousel'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /views/category/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Create category'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model, 'parent' => $parent]) ?> -------------------------------------------------------------------------------- /views/default/index.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Welcome'); 3 | ?> 4 |
= Yii::t('easyii', 'Welcome to control panel, choose which section you want to manage in left menu.') ?>
-------------------------------------------------------------------------------- /modules/subscribe/views/a/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/subscribe', 'Create subscribe'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /views/modules/edit.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 3 | ?> 4 | = $this->render('_menu') ?> 5 | = $this->render('_submenu', ['model' => $model]) ?> 6 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/article/views/items/create.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/article', 'Create article'); 3 | ?> 4 | = $this->render('_menu', ['category' => $category]) ?> 5 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/gallery/views/a/photos.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 5 | ?> 6 | 7 | = $this->render('@easyii/views/category/_menu') ?> 8 | 9 | = Photos::widget(['model' => $model])?> -------------------------------------------------------------------------------- /modules/shopcart/mail/en/new_order.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 | 7 |New order created #= $order->order_id ?>.
8 |You can view it = Html::a('here', $link) ?>.
-------------------------------------------------------------------------------- /modules/guestbook/mail/en/new_post.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 |User = $post->name ?> leaved message in your guestbook.
7 |You can view it = Html::a('here', $link) ?>.
-------------------------------------------------------------------------------- /models/TagAssign.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/catalog', 'Create item'); 3 | ?> 4 | = $this->render('_menu', ['category' => $category]) ?> 5 | = $this->render('_form', ['model' => $model, 'dataForm' => $dataForm]) ?> -------------------------------------------------------------------------------- /modules/feedback/mail/en/new_feedback.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 |User = $feedback->name ?> leaved message in your guestbook.
7 |You can view it = Html::a('here', $link) ?>.
-------------------------------------------------------------------------------- /controllers/DefaultController.php: -------------------------------------------------------------------------------- 1 | render('index'); 9 | } 10 | } -------------------------------------------------------------------------------- /modules/carousel/api/CarouselObject.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 5 | ?> 6 | 7 | = $this->render('_menu') ?> 8 | = $this->render('_submenu', ['model' => $model]) ?> 9 | 10 | = Photos::widget(['model' => $model])?> -------------------------------------------------------------------------------- /modules/news/views/a/edit.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 3 | ?> 4 | = $this->render('_menu') ?> 5 | 6 | context->module->settings['enablePhotos']) echo $this->render('_submenu', ['model' => $model]) ?> 7 | 8 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/page/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'صفحات', 4 | 'Create page' => 'ایجاد صفحه', 5 | 'Edit page' => 'ویرایش صفحه', 6 | 'Page created' => 'صفحه ایجاد شد', 7 | 'Page updated' => 'صفحه ویرایش شد', 8 | 'Page deleted' => 'صفحه حذف شد' 9 | ]; -------------------------------------------------------------------------------- /modules/text/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'متن های وب سایت', 4 | 'Create text' => 'ایجاد متن', 5 | 'Edit text' => 'ویرایش متن', 6 | 'Text created' => 'متن ایجاد شد', 7 | 'Text updated' => 'متن ویرایش شد', 8 | 'Text deleted' => 'متن حذف شد' 9 | ]; -------------------------------------------------------------------------------- /views/category/edit.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Edit category'); 3 | ?> 4 | = $this->render('_menu') ?> 5 | 6 | params['submenu'])) echo $this->render('_submenu', ['model' => $model], $this->context); ?> 7 | = $this->render('_form', ['model' => $model]) ?> -------------------------------------------------------------------------------- /modules/article/views/items/photos.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 5 | ?> 6 | 7 | = $this->render('_menu', ['category' => $model->category]) ?> 8 | = $this->render('_submenu', ['model' => $model]) ?> 9 | 10 | = Photos::widget(['model' => $model])?> -------------------------------------------------------------------------------- /modules/text/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Текстовые блоки', 4 | 'Create text' => 'Создать текст', 5 | 'Edit text' => 'Редактировать текст', 6 | 'Text created' => 'Текст успешно создан', 7 | 'Text updated' => 'Текст обновлен', 8 | 'Text deleted' => 'Текст удален' 9 | ]; -------------------------------------------------------------------------------- /views/logs/_menu.php: -------------------------------------------------------------------------------- 1 | context->action->id; 5 | ?> 6 | 9 |Создан новый заказ #= $order->order_id ?>.
8 |Просмотреть его вы можете = Html::a('здесь', $link) ?>.
9 |Это автоматическое сообщение и на него не нужно отвечать.
-------------------------------------------------------------------------------- /modules/catalog/views/items/photos.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Photos') . ' ' . $model->title; 5 | ?> 6 | 7 | = $this->render('_menu', ['category' => $model->category]) ?> 8 | = $this->render('_submenu', ['model' => $model]) ?> 9 | 10 | = Photos::widget(['model' => $model])?> -------------------------------------------------------------------------------- /modules/gallery/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'گالری', 4 | 'Albums' => 'آلبوم ها', 5 | 'Create album' => 'ایجاد آلبوم', 6 | 'Edit album' => 'ویرایش آلبوم', 7 | 'Album created' => 'آلبوم ایجاد شد', 8 | 'Album updated' => 'آلبوم ویرایش شد', 9 | 'Album deleted' => 'آلبوم حذف شد', 10 | ]; -------------------------------------------------------------------------------- /modules/guestbook/mail/ru/new_post.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 |Пользователь = $post->name ?> оставил сообщение в вашей гостевой книге.
7 |Просмотреть его вы можете = Html::a('здесь', $link) ?>.
8 |Это автоматическое сообщение и на него не нужно отвечатью
-------------------------------------------------------------------------------- /validators/EscapeValidator.php: -------------------------------------------------------------------------------- 1 | $attribute = filter_var($model->$attribute, FILTER_SANITIZE_STRING); 11 | } 12 | } -------------------------------------------------------------------------------- /modules/feedback/mail/en/answer.php: -------------------------------------------------------------------------------- 1 | title = $subject; 3 | ?> 4 |= nl2br($feedback->answer_text) ?>
5 |= Yii::$app->formatter->asDatetime($feedback->time, 'medium') ?> you wrote:
9 |
10 | text) as $line) echo '> '.$line.'
'; ?>
11 |
= nl2br($feedback->answer_text) ?>
5 |= Yii::$app->formatter->asDatetime($feedback->time, 'medium') ?> Вы писали:
9 |
10 | text) as $line) echo '> '.$line.'
'; ?>
11 |
Пользователь = $feedback->name ?> оставил сообщение в вашей гостевой книге.
7 |Просмотреть его вы можете = Html::a('здесь', $link) ?>.
8 |Это автоматическое сообщение и на него не нужно отвечать.
10 | -------------------------------------------------------------------------------- /modules/gallery/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Фотогалерея', 4 | 'Albums' => 'Альбомы', 5 | 'Create album' => 'Создать альбом', 6 | 'Edit album' => 'Редактировать альбом', 7 | 'Album created' => 'Альбом успешно создан', 8 | 'Album updated' => 'Альбом обновлен', 9 | 'Album deleted' => 'Альбом удален', 10 | ]; -------------------------------------------------------------------------------- /modules/carousel/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'اسلایدشو', 4 | 'Create carousel' => 'ایجاد اسلایدشو', 5 | 'Edit carousel' => 'ویرایش اسلایدشو', 6 | 'Carousel created' => 'اسلایدشو ایجاد شد', 7 | 'Carousel updated' => 'اسلایدشو ویرایش شد', 8 | 'Carousel item deleted' => 'آیتم اسلاید حذف شد', 9 | 'Link'=>'لینک', 10 | ]; -------------------------------------------------------------------------------- /modules/file/FileModule.php: -------------------------------------------------------------------------------- 1 | [ 8 | 'en' => 'Files', 9 | 'ru' => 'Файлы', 10 | ], 11 | 'icon' => 'floppy-disk', 12 | 'order_num' => 30, 13 | ]; 14 | } -------------------------------------------------------------------------------- /assets/PhotosAsset.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 | 7 |The administration of = Yii::$app->request->serverName ?> replied to your message in the guestbook.
8 |You can read it = Html::a('here', $link) ?>.
9 |This is an automatically generated email – please do not reply to it.
-------------------------------------------------------------------------------- /modules/guestbook/mail/ru/notify_user.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | ?> 6 | 7 |Администрация сайта = Yii::$app->request->serverName ?> ответила на ваше сообщение в гостевой книге.
8 |Просмотреть его вы можете = Html::a('здесь', $link) ?>.
9 |Это автоматическое сообщение и на него не нужно отвечать.
-------------------------------------------------------------------------------- /modules/text/TextModule.php: -------------------------------------------------------------------------------- 1 | [ 8 | 'en' => 'Text blocks', 9 | 'ru' => 'Текстовые блоки', 10 | ], 11 | 'icon' => 'font', 12 | 'order_num' => 20, 13 | ]; 14 | } -------------------------------------------------------------------------------- /modules/faq/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Вопросы и ответы', 4 | 'Question' => 'Вопрос', 5 | 'Answer' => 'Ответ', 6 | 'Create entry' => 'Создать запись', 7 | 'Edit entry' => 'Редактировать запись', 8 | 'Entry created' => 'Запись успешно создана', 9 | 'Entry updated' => 'Запись обновлена', 10 | 'Entry deleted' => 'Запись удалена' 11 | ]; -------------------------------------------------------------------------------- /modules/page/PageModule.php: -------------------------------------------------------------------------------- 1 | [ 10 | 'en' => 'Pages', 11 | 'ru' => 'Страницы', 12 | ], 13 | 'icon' => 'file', 14 | 'order_num' => 50, 15 | ]; 16 | } -------------------------------------------------------------------------------- /assets/FancyboxAsset.php: -------------------------------------------------------------------------------- 1 | [ 10 | 'en' => 'FAQ', 11 | 'ru' => 'Вопросы и ответы', 12 | ], 13 | 'icon' => 'question-sign', 14 | 'order_num' => 45, 15 | ]; 16 | } -------------------------------------------------------------------------------- /modules/news/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'اخبار', 4 | 'Create news' => 'ایجاد خبر', 5 | 'Edit news' => 'ویرایش خبر', 6 | 'News created' => 'خبر ایجاد شد', 7 | 'News updated' => 'خبر ویرایش شد', 8 | 'News deleted' => 'خبر حذف شد', 9 | 'News image cleared' => 'عکس های خبر پاک شد', 10 | 'Short' => 'کوتاه', 11 | 'Clear image' => 'پاک کردن عکس', 12 | ]; -------------------------------------------------------------------------------- /modules/subscribe/SubscribeModule.php: -------------------------------------------------------------------------------- 1 | [ 8 | 'en' => 'E-mail subscribe', 9 | 'ru' => 'E-mail рассылка', 10 | ], 11 | 'icon' => 'envelope', 12 | 'order_num' => 10, 13 | ]; 14 | } -------------------------------------------------------------------------------- /modules/article/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Статьи', 4 | 'Article' => 'Статья', 5 | 6 | 'Short' => 'Короткий текст', 7 | 8 | 'Create article' => 'Создать статью', 9 | 'Edit article' => 'Редактировать статью', 10 | 'Article created' => 'Новая статья успешно создана', 11 | 'Article updated' => 'Статья обновлена', 12 | 'Article deleted' => 'Статья удалена', 13 | ]; -------------------------------------------------------------------------------- /modules/catalog/assets/FieldsAsset.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Update'); 5 | ?> 6 | 14 |17 | = $result ?> 18 |19 | -------------------------------------------------------------------------------- /modules/file/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'فایل ها', 4 | 'Create file' => 'ایجاد فایل', 5 | 'Edit file' => 'ویرایش فایل', 6 | 'File created' => 'فایل ایجا شد', 7 | 'File updated' => 'فایل ویرایش شد', 8 | 'File error. {0}' => 'فایل خطا', 9 | 'File deleted' => 'فایل حذف شد', 10 | 11 | 'Size' => 'سایز', 12 | 'Downloads' => 'دانلود ها', 13 | 'Download file' => 'دانلود فایل', 14 | ]; -------------------------------------------------------------------------------- /models/Tag.php: -------------------------------------------------------------------------------- 1 | 64], 17 | ]; 18 | } 19 | } -------------------------------------------------------------------------------- /views/modules/_form.php: -------------------------------------------------------------------------------- 1 | 6 | true]); ?> 7 | = $form->field($model, 'name') ?> 8 | = $form->field($model, 'class') ?> 9 | = $form->field($model, 'title') ?> 10 | = $form->field($model, 'icon') ?> 11 | = Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']) ?> 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## EasyiiCMS ## 2 | 3 | Control panel and tools based on php framework Yii2. Easy cms for easy websites. 4 | 5 | This repository is development package (yii2 extension). 6 | 7 | #### You can find full information in links bellow #### 8 | * [Homepage](http://easyiicms.com) 9 | * [Installation](http://easyiicms.com/docs/install) 10 | * [Demo](http://easyiicms.com/demo) 11 | 12 | #### Contacts #### 13 | 14 | Feel free to email me on noumohope@gmail.com 15 | -------------------------------------------------------------------------------- /modules/catalog/models/ItemData.php: -------------------------------------------------------------------------------- 1 | 'Файлы', 4 | 'Create file' => 'Создать файл', 5 | 'Edit file' => 'Редактировать файл', 6 | 'File created' => 'Файл успешно создан', 7 | 'File updated' => 'Файл обновлен', 8 | 'File error. {0}' => 'Ошибка файла. {0}', 9 | 'File deleted' => 'Файл удален', 10 | 11 | 'Size' => 'Размер', 12 | 'Downloads' => 'Скачиваний', 13 | 'Download file' => 'Скачать файл', 14 | ]; -------------------------------------------------------------------------------- /modules/text/views/a/_form.php: -------------------------------------------------------------------------------- 1 | 5 | true, 7 | 'options' => ['class' => 'model-form'] 8 | ]); ?> 9 | = $form->field($model, 'text')->textarea() ?> 10 | = (IS_ROOT) ? $form->field($model, 'slug') : '' ?> 11 | = Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']) ?> 12 | -------------------------------------------------------------------------------- /components/ActiveQueryNS.php: -------------------------------------------------------------------------------- 1 | orderBy('order_num DESC, lft ASC'); 18 | return $this; 19 | } 20 | } -------------------------------------------------------------------------------- /assets/FrontendAsset.php: -------------------------------------------------------------------------------- 1 | 5 | true]); ?> 6 | = $form->field($model, 'username')->textInput($this->context->action->id === 'edit' ? ['disabled' => 'disabled'] : []) ?> 7 | = $form->field($model, 'password')->passwordInput(['value' => '']) ?> 8 | = Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']) ?> 9 | -------------------------------------------------------------------------------- /modules/carousel/CarouselModule.php: -------------------------------------------------------------------------------- 1 | true, 8 | 'enableText' => true, 9 | ]; 10 | 11 | public static $installConfig = [ 12 | 'title' => [ 13 | 'en' => 'Carousel', 14 | 'ru' => 'Карусель', 15 | ], 16 | 'icon' => 'picture', 17 | 'order_num' => 40, 18 | ]; 19 | } -------------------------------------------------------------------------------- /views/modules/copy.php: -------------------------------------------------------------------------------- 1 | title = $model->title; 6 | ?> 7 | = $this->render('_menu') ?> 8 | = $this->render('_submenu', ['model' => $model]) ?> 9 | 10 | true]) ?> 11 | = $form->field($formModel, 'title') ?> 12 | = $form->field($formModel, 'name') ?> 13 | = Html::submitButton(Yii::t('easyii', 'Copy'), ['class' => 'btn btn-primary']) ?> 14 | -------------------------------------------------------------------------------- /widgets/TagsInput.php: -------------------------------------------------------------------------------- 1 | 'form-control']; 9 | public $loadUrl = ['/admin/tags/list']; 10 | public $clientOptions = [ 11 | 'plugins' => ['remove_button'], 12 | 'valueField' => 'name', 13 | 'labelField' => 'name', 14 | 'searchField' => ['name'], 15 | 'create' => true, 16 | ]; 17 | } -------------------------------------------------------------------------------- /modules/gallery/GalleryModule.php: -------------------------------------------------------------------------------- 1 | true, 8 | 'itemsInFolder' => false, 9 | ]; 10 | 11 | public static $installConfig = [ 12 | 'title' => [ 13 | 'en' => 'Photo Gallery', 14 | 'ru' => 'Фотогалерея', 15 | ], 16 | 'icon' => 'camera', 17 | 'order_num' => 90, 18 | ]; 19 | } -------------------------------------------------------------------------------- /modules/guestbook/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'نظرات', 4 | 'Guestbook updated' => 'نظر ویرایش شد', 5 | 'View post' => 'مشاهده پست', 6 | 'Entry deleted' => 'مورد حذف شد', 7 | 'Answer' => 'پاسخ', 8 | 'No answer' => 'بدون پاسخ', 9 | 'Mark all as viewed' => 'همه خوانده شده است', 10 | 'Answer successfully saved' => 'پاسخ با موفقیت ذخیره شد', 11 | 'Mark as new' => 'این مورد جدید است', 12 | 'Notify user about answer' => 'کاربر را از پاسخ آگاه کن' 13 | ]; -------------------------------------------------------------------------------- /modules/subscribe/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'عضویت خبرنامه', 4 | 'Subscribers' => 'اعضای خبرنامه', 5 | 'Create subscribe' => 'ارسال خبرنامه', 6 | 'History' => 'تاریخچه', 7 | 'View subscribe history' => 'مشاهده تاریخچه ثبت نام', 8 | 'Subscriber deleted' => 'عضویت حذف شد', 9 | 'Subscribe successfully created and sent' => 'عضویت ایجاد شده و ارسال شد', 10 | 'Subject' => 'موضوع', 11 | 'Body' => 'متن', 12 | 'Sent' => 'ارسال شد', 13 | 'Unsubscribe' => 'لغو عضویت' 14 | ]; -------------------------------------------------------------------------------- /modules/subscribe/views/a/_form.php: -------------------------------------------------------------------------------- 1 | 6 | true 8 | ]); ?> 9 | = $form->field($model, 'subject') ?> 10 | = $form->field($model, 'body')->widget(Redactor::className(),[ 11 | 'options' => [ 12 | 'minHeight' => 400, 13 | ] 14 | ]) ?> 15 | = Html::submitButton(Yii::t('easyii', 'Send'), ['class' => 'btn btn-primary']) ?> 16 | -------------------------------------------------------------------------------- /assets/SwitcherAsset.php: -------------------------------------------------------------------------------- 1 | js[] = 'switcher.js'; 13 | $this->css[] = 'switcher.css'; 14 | } else { 15 | $this->js[] = 'switcher.min.js'; 16 | $this->css[] = 'switcher.css'; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /controllers/LogsController.php: -------------------------------------------------------------------------------- 1 | LoginForm::find()->desc(), 16 | ]); 17 | 18 | return $this->render('index', [ 19 | 'data' => $data 20 | ]); 21 | } 22 | } -------------------------------------------------------------------------------- /assets/RedactorAsset.php: -------------------------------------------------------------------------------- 1 | js[] = 'redactor.js'; 14 | $this->css[] = 'redactor.css'; 15 | } else { 16 | $this->js[] = 'redactor.min.js'; 17 | $this->css[] = 'redactor.min.css'; 18 | } 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /assets/AdminAsset.php: -------------------------------------------------------------------------------- 1 | \yii\web\View::POS_HEAD 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /modules/guestbook/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Гостевая книга', 4 | 'Guestbook updated' => 'Гостевая книга обновлена', 5 | 'View post' => 'Просмотр записи', 6 | 'Entry deleted' => 'Запись удалена', 7 | 'Answer' => 'Ответ', 8 | 'No answer' => 'Без ответа', 9 | 'Mark all as viewed' => 'Отметить все как прочитанные', 10 | 'Answer successfully saved' => 'Ответ успешно сохранен', 11 | 'Mark as new' => 'Отметить как новое', 12 | 'Notify user about answer' => 'Послать уведомление пользователю об ответе' 13 | ]; -------------------------------------------------------------------------------- /modules/subscribe/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'E-mail рассылка', 4 | 'Subscribers' => 'Подписчики', 5 | 'Create subscribe' => 'Создать рассылку', 6 | 'History' => 'История', 7 | 'View subscribe history' => 'Просмотр истории рассылки', 8 | 'Subscriber deleted' => 'Подписчик удален', 9 | 'Subscribe successfully created and sent' => 'Рассылка успешно создана и отправлена', 10 | 'Subject' => 'Тема', 11 | 'Body' => 'Сообщение', 12 | 'Sent' => 'Отправлено', 13 | 'Unsubscribe' => 'Отписаться от рассылки' 14 | ]; -------------------------------------------------------------------------------- /modules/news/NewsModule.php: -------------------------------------------------------------------------------- 1 | true, 8 | 'enablePhotos' => true, 9 | 'enableShort' => true, 10 | 'shortMaxLength' => 256, 11 | 'enableTags' => true 12 | ]; 13 | 14 | public static $installConfig = [ 15 | 'title' => [ 16 | 'en' => 'News', 17 | 'ru' => 'Новости', 18 | ], 19 | 'icon' => 'bullhorn', 20 | 'order_num' => 70, 21 | ]; 22 | } -------------------------------------------------------------------------------- /media/js/frontend.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $('.easyiicms-edit').each(function(i, element){ 3 | var $this = $(element); 4 | $this.append(''); 5 | }); 6 | $('#easyii-navbar input').switcher({copy: {en: {yes: '', no: ''}}}).on('change', function(){ 7 | var checkbox = $(this); 8 | checkbox.switcher('setDisabled', true); 9 | location.href = checkbox.attr('data-link') + '/' + (checkbox.is(':checked') ? 1 : 0); 10 | });; 11 | }); -------------------------------------------------------------------------------- /modules/shopcart/controllers/GoodsController.php: -------------------------------------------------------------------------------- 1 | delete(); 15 | } else { 16 | $this->error = Yii::t('easyii', 'Not found'); 17 | } 18 | return $this->formatResponse(Yii::t('easyii/shopcart', 'Order deleted')); 19 | } 20 | } -------------------------------------------------------------------------------- /modules/news/views/a/_submenu.php: -------------------------------------------------------------------------------- 1 | context->action->id; 5 | $module = $this->context->module->id; 6 | ?> 7 | 8 | 12 |
17 | = Yii::t('easyii', 'Flush cache') ?> 18 |
19 | 20 |23 | = Yii::t('easyii', 'Clear assets') ?> 24 |
-------------------------------------------------------------------------------- /modules/gallery/api/PhotoObject.php: -------------------------------------------------------------------------------- 1 | thumb($width, $height)); 17 | $a = Html::a($img, $this->image, [ 18 | 'class' => 'easyii-box', 19 | 'rel' => 'album-' . ($this->rel ? $this->rel : $this->model->item_id), 20 | 'title' => $this->description 21 | ]); 22 | return LIVE_EDIT ? API::liveEdit($a, $this->editLink) : $a; 23 | } 24 | 25 | public function getEditLink(){ 26 | return Url::to(['/admin/gallery/a/photos', 'id' => $this->model->item_id]).'#photo-'.$this->id; 27 | } 28 | } -------------------------------------------------------------------------------- /assets/redactor/plugins/fontfamily/fontfamily.js: -------------------------------------------------------------------------------- 1 | if (!RedactorPlugins) var RedactorPlugins = {}; 2 | 3 | RedactorPlugins.fontfamily = function() 4 | { 5 | return { 6 | init: function () 7 | { 8 | var fonts = [ 'Arial', 'Helvetica', 'Georgia', 'Times New Roman', 'Monospace' ]; 9 | var that = this; 10 | var dropdown = {}; 11 | 12 | $.each(fonts, function(i, s) 13 | { 14 | dropdown['s' + i] = { title: s, func: function() { that.fontfamily.set(s); }}; 15 | }); 16 | 17 | dropdown.remove = { title: 'Remove Font Family', func: that.fontfamily.reset }; 18 | 19 | var button = this.button.add('fontfamily', 'Change Font Family'); 20 | this.button.addDropdown(button, dropdown); 21 | 22 | }, 23 | set: function (value) 24 | { 25 | this.inline.format('span', 'style', 'font-family:' + value + ';'); 26 | }, 27 | reset: function() 28 | { 29 | this.inline.removeStyleRule('font-family'); 30 | } 31 | }; 32 | }; -------------------------------------------------------------------------------- /modules/feedback/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'تماس', 4 | 'View feedback' => 'مشاهده تماس', 5 | 'Feedback deleted' => 'تماس حذف شد', 6 | 'Feedback updated' => 'تماس ویرایش شد', 7 | 'Answer' => 'پاسخ', 8 | 'Subject' => 'موضوع', 9 | 'Phone' => 'تلفن', 10 | 'No answer' => 'بدون پاسخ', 11 | 'Hello,' => 'سلام', 12 | 'Answer on your feedback message' => 'پاسخ برای تماس شما', 13 | 'Best regards.' => 'با آرزوی بهترین ها', 14 | 'Answer successfully sent' => 'پاسخ با موفقیت ارسال شد', 15 | 'Mark as answered' => 'زدن علامت پاسخ داده شده', 16 | 'feedback answer' => 'پاسخ تماس', 17 | 'Please fill correct `Admin E-mail` in Settings' => 'لطفا ایمیل ادمین را در تنظیمات درست کنید', 18 | 'Are you sure you want to resend the answer?' => 'آیا مطمئنید می خواهید پاسخ را مجدد ارسال کنید؟', 19 | 'An error has occurred while sending mail' => 'مشکلی در ارسال ایمیل رخ داده است', 20 | ]; -------------------------------------------------------------------------------- /modules/shopcart/messages/fa/admin.php: -------------------------------------------------------------------------------- 1 | 'سفارشات', 4 | 'Order' => 'سفارش', 5 | 'Order updated' => 'سفارش ویرایش شد', 6 | 'Blank' => 'در سبد خرید', 7 | 'Pending' => 'در حال بررسی', 8 | 'Processed' => 'بررسی شده', 9 | 'Sent' => 'ارسال شده', 10 | 'Completed' => 'کامل شده', 11 | 'Declined' => 'کنسل شده', 12 | 'Returned' => 'بازگشت داده شده', 13 | 'Error' => 'خطا', 14 | 'Fails' => 'ناموفق', 15 | 'Address' => 'آدرس', 16 | 'Cost' => 'هزینه', 17 | 'Phone' => 'تلفن', 18 | 'Comment' => 'نظر', 19 | 'Admin remark' => 'تجدید نظر ادمین', 20 | 'Items' => 'آیتم ها', 21 | 'Options' => 'انتخاب ها', 22 | 'Count' => 'تعداد', 23 | 'Discount' => 'تخفیف', 24 | 'Price' => 'قیمت', 25 | 'Total' => 'جمع', 26 | 'View' => 'مشاهده', 27 | 'Order status changed' => 'وضعیت سفارش تغییر یافت', 28 | 'Notify user on E-mail' => 'کاربر را با ایمیل آگاه کن' 29 | ]; -------------------------------------------------------------------------------- /modules/shopcart/messages/ru/admin.php: -------------------------------------------------------------------------------- 1 | 'Заказы', 4 | 'Order' => 'Заказ', 5 | 'Order updated' => 'Заказ обновлен', 6 | 'Blank' => 'Незаполнен', 7 | 'Pending' => 'Ожидает', 8 | 'Processed' => 'В обработке', 9 | 'Sent' => 'Отправлен', 10 | 'Completed' => 'Завершен', 11 | 'Declined' => 'Отклонен', 12 | 'Returned' => 'Вовзрат', 13 | 'Error' => 'Ошибка', 14 | 'Fails' => 'Неудачи', 15 | 'Address' => 'Адрес', 16 | 'Cost' => 'Стоимость', 17 | 'Phone' => 'Телефон', 18 | 'Comment' => 'Комментарий', 19 | 'Admin remark' => 'Пометка', 20 | 'Items' => 'Товары', 21 | 'Options' => 'Опции', 22 | 'Count' => 'Кол-во', 23 | 'Discount' => 'Скидка', 24 | 'Price' => 'Цена', 25 | 'Total' => 'Всего', 26 | 'View' => 'Просмотр', 27 | 'Order status changed' => 'Статус заказа изменен', 28 | 'Notify user on E-mail' => 'Отправить уведомление пользователю на E-mail' 29 | ]; -------------------------------------------------------------------------------- /helpers/Mail.php: -------------------------------------------------------------------------------- 1 | mailer->compose($template, $data) 17 | ->setTo($toEmail) 18 | ->setSubject($data['subject']); 19 | 20 | if(filter_var(Setting::get('robot_email'), FILTER_VALIDATE_EMAIL)){ 21 | $message->setFrom(Setting::get('robot_email')); 22 | } 23 | 24 | if(!empty($options['replyTo']) && filter_var($options['replyTo'], FILTER_VALIDATE_EMAIL)){ 25 | $message->setReplyTo($options['replyTo']); 26 | } 27 | 28 | return $message->send(); 29 | } 30 | } -------------------------------------------------------------------------------- /modules/feedback/FeedbackModule.php: -------------------------------------------------------------------------------- 1 | true, 8 | 'subjectOnNewFeedback' => 'New feedback', 9 | 'templateOnNewFeedback' => '@easyii/modules/feedback/mail/en/new_feedback', 10 | 11 | 'answerTemplate' => '@easyii/modules/feedback/mail/en/answer', 12 | 'answerSubject' => 'Answer on your feedback message', 13 | 'answerHeader' => 'Hello,', 14 | 'answerFooter' => 'Best regards.', 15 | 16 | 'enableTitle' => false, 17 | 'enablePhone' => true, 18 | 'enableCaptcha' => false, 19 | ]; 20 | 21 | public static $installConfig = [ 22 | 'title' => [ 23 | 'en' => 'Feedback', 24 | 'ru' => 'Обратная связь', 25 | ], 26 | 'icon' => 'earphone', 27 | 'order_num' => 60, 28 | ]; 29 | } -------------------------------------------------------------------------------- /modules/guestbook/GuestbookModule.php: -------------------------------------------------------------------------------- 1 | false, 8 | 'enableEmail' => true, 9 | 'preModerate' => false, 10 | 'enableCaptcha' => false, 11 | 'mailAdminOnNewPost' => true, 12 | 'subjectOnNewPost' => 'New message in the guestbook.', 13 | 'templateOnNewPost' => '@easyii/modules/guestbook/mail/en/new_post', 14 | 'frontendGuestbookRoute' => '/guestbook', 15 | 'subjectNotifyUser' => 'Your post in the guestbook answered', 16 | 'templateNotifyUser' => '@easyii/modules/guestbook/mail/en/notify_user' 17 | ]; 18 | 19 | public static $installConfig = [ 20 | 'title' => [ 21 | 'en' => 'Guestbook', 22 | 'ru' => 'Гостевая книга', 23 | ], 24 | 'icon' => 'book', 25 | 'order_num' => 80, 26 | ]; 27 | } -------------------------------------------------------------------------------- /models/Photo.php: -------------------------------------------------------------------------------- 1 | image); 40 | } 41 | } -------------------------------------------------------------------------------- /modules/page/views/a/_form.php: -------------------------------------------------------------------------------- 1 | 8 | true, 10 | 'options' => ['class' => 'model-form'] 11 | ]); ?> 12 | = $form->field($model, 'title') ?> 13 | = $form->field($model, 'text')->widget(Redactor::className(),[ 14 | 'options' => [ 15 | 'minHeight' => 400, 16 | 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 17 | 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 18 | 'plugins' => ['fullscreen'] 19 | ] 20 | ]) ?> 21 | 22 | 23 | = $form->field($model, 'slug') ?> 24 | = SeoForm::widget(['model' => $model]) ?> 25 | 26 | 27 | = Html::submitButton(Yii::t('easyii','Save'), ['class' => 'btn btn-primary']) ?> 28 | -------------------------------------------------------------------------------- /views/install/error.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii/install', 'Installation error'); 5 | ?> 6 |
EasyiiCMS
20 |
21 |
EasyiiCMS
20 |
21 |
EasyiiCMS
22 |
23 | = Yii::t('easyii/install', 'You easily can get keys on') ?> = Yii::t('easyii/install', 'ReCaptcha website') ?>
13 | = Html::submitButton(Yii::t('easyii/install', 'Install'), ['class' => 'btn btn-lg btn-primary btn-block']) ?> 14 | -------------------------------------------------------------------------------- /models/InstallForm.php: -------------------------------------------------------------------------------- 1 | 6], 23 | [['recaptcha_key', 'recaptcha_secret'], 'string'], 24 | [['robot_email', 'admin_email'], 'email'], 25 | [['root_password', 'recaptcha_key', 'recaptcha_secret', 'robot_email', 'admin_email'], 'trim'], 26 | ]; 27 | } 28 | public function attributeLabels() 29 | { 30 | return [ 31 | 'root_password' => Yii::t('easyii/install', 'Root password'), 32 | 'admin_email' => Yii::t('easyii/install', 'Admin E-mail'), 33 | 'robot_email' => Yii::t('easyii/install', 'Robot E-mail') 34 | ]; 35 | } 36 | } -------------------------------------------------------------------------------- /modules/file/api/FileObject.php: -------------------------------------------------------------------------------- 1 | model->title, $this->editLink) : $this->model->title; 17 | } 18 | 19 | public function getFile(){ 20 | return Url::to(['/admin/file/download', 'id' => $this->id]); 21 | } 22 | 23 | public function getLink(){ 24 | return Html::a($this->title, $this->file, ['target' => '_blank']); 25 | } 26 | 27 | public function getBytes(){ 28 | return $this->model->size; 29 | } 30 | 31 | public function getSize(){ 32 | return Yii::$app->formatter->asShortSize($this->model->size, 2); 33 | } 34 | 35 | public function getDate(){ 36 | return Yii::$app->formatter->asDatetime($this->time, 'medium'); 37 | } 38 | 39 | public function getEditLink(){ 40 | return Url::to(['/admin/file/a/edit/', 'id' => $this->id]); 41 | } 42 | } -------------------------------------------------------------------------------- /modules/page/models/Page.php: -------------------------------------------------------------------------------- 1 | 128], 20 | ['slug', 'match', 'pattern' => self::$SLUG_PATTERN, 'message' => Yii::t('easyii', 'Slug can contain only 0-9, a-z and "-" characters (max: 128).')], 21 | ['slug', 'default', 'value' => null], 22 | ['slug', 'unique'], 23 | ]; 24 | } 25 | 26 | public function attributeLabels() 27 | { 28 | return [ 29 | 'title' => Yii::t('easyii', 'Title'), 30 | 'text' => Yii::t('easyii', 'Text'), 31 | 'slug' => Yii::t('easyii', 'Slug'), 32 | ]; 33 | } 34 | 35 | public function behaviors() 36 | { 37 | return [ 38 | 'seoBehavior' => SeoBehavior::className(), 39 | ]; 40 | } 41 | } -------------------------------------------------------------------------------- /modules/text/views/a/_menu.php: -------------------------------------------------------------------------------- 1 | context->action->id; 5 | $module = $this->context->module->id; 6 | ?> 7 | 8 | 19 || # | 14 |= Yii::t('easyii', 'Username') ?> | 15 |16 | |
|---|---|---|
| = $admin->admin_id ?> | 22 |= $admin->username ?> | 23 |24 | |
= Yii::t('easyii', 'No records found') ?>
33 | -------------------------------------------------------------------------------- /modules/shopcart/api/OrderObject.php: -------------------------------------------------------------------------------- 1 | _goods){ 20 | $this->_goods = []; 21 | if($this->id){ 22 | foreach(Good::find()->where(['order_id' => $this->id])->with('item')->all() as $good){ 23 | $this->_goods[] = new GoodObject($good); 24 | } 25 | } 26 | } 27 | return $this->_goods; 28 | } 29 | 30 | public function getCost() 31 | { 32 | if($this->_cost === null) { 33 | $this->_cost = 0; 34 | foreach ($this->goods as $good) { 35 | $this->_cost += $good->price * $good->count; 36 | } 37 | } 38 | return $this->_cost; 39 | } 40 | 41 | public function getStatus() 42 | { 43 | return $this->model->statusName; 44 | } 45 | } -------------------------------------------------------------------------------- /modules/subscribe/views/a/_menu.php: -------------------------------------------------------------------------------- 1 | context->action->id; 5 | $module = $this->context->module->id; 6 | 7 | $historyUrl = Url::to(['/admin/'.$module.'/a/history']); 8 | if($action === 'view'){ 9 | $returnUrl = $this->context->getReturnUrl(); 10 | if(strpos($returnUrl, 'history') !== false){ 11 | $historyUrl = $returnUrl; 12 | } 13 | } 14 | ?> 15 | 33 |11 | = Yii::t('easyii', 'Seo texts')?> 12 |
13 | 14 |The status of your order #= $order->primaryKey ?> changed.
10 |New status: = $order->statusName ?>
11 || Item | 15 |Quantity | 16 |Unit price | 17 |Total | 18 ||
|---|---|---|---|---|
| = $good->item->title ?> = $good->options ? "($good->options)" : '' ?> | 27 |= $good->count ?> | 28 |= $price ?> | 29 |= $unitTotal ?> | 30 ||
| 34 | Total: = $total ?> 35 | | 36 |||||
You can view it = Html::a('here', $link) ?>.
39 |This is an automatically generated email – please do not reply to it.
-------------------------------------------------------------------------------- /modules/shopcart/mail/ru/notify_user.php: -------------------------------------------------------------------------------- 1 | title = $subject; 5 | 6 | $total = 0; 7 | ?> 8 | 9 |Статус вашего заказа #= $order->primaryKey ?> изменен.
10 |Новый статус: = $order->statusName ?>
11 || Товар | 15 |Кол-во | 16 |Цена | 17 |Всего | 18 ||
|---|---|---|---|---|
| = $good->item->title ?> = $good->options ? "($good->options)" : '' ?> | 27 |= $good->count ?> | 28 |= $price ?> | 29 |= $unitTotal ?> | 30 ||
| 34 | Итого: = $total ?> 35 | | 36 |||||
Посмотреть свой заказ на сайте Вы можете = Html::a('здесь', $link) ?>.
39 |Это автоматическое сообщение и на него не нужно отвечать.
-------------------------------------------------------------------------------- /media/css/frontend.css: -------------------------------------------------------------------------------- 1 | #easyii-navbar { 2 | font-family: 'Open Sans', sans-serif !important; 3 | background: #1d212a; 4 | color: #B3B8C3; 5 | } 6 | #easyii-navbar .navbar-left li:first-child { 7 | border-right: 1px solid #111; 8 | } 9 | #easyii-navbar .navbar-text{ 10 | color: #B3B8C3; 11 | } 12 | #easyii-navbar .switcher{ 13 | margin-top: 15px; 14 | border: none; 15 | background: #b3b8c3; 16 | color: #FFF; 17 | height: 20px; 18 | min-width: 40px; 19 | font-size: 11px; 20 | border-radius: 10px; 21 | padding: 1px; 22 | } 23 | #easyii-navbar .switcher .slider{ 24 | background: #f0f3f3; 25 | height: 18px; 26 | border-radius: 10px; 27 | box-shadow: 0 0 2px 1px #999; 28 | } 29 | #easyii-navbar .switcher.is-active{ 30 | background: #27b6af; 31 | } 32 | #easyii-navbar .switcher .textNo{ 33 | color: #fff; 34 | } 35 | /*#easyii-navbar li.live-edit a:hover{ 36 | background: #27b6af; 37 | }*/ 38 | 39 | span.easyiicms-edit{ 40 | display: inline-block; 41 | } 42 | 43 | .easyiicms-edit{ 44 | position: relative; 45 | } 46 | .easyiicms-goedit{ 47 | position: absolute; top: 0; left: 0; 48 | 49 | } 50 | .easyiicms-goedit:hover{ 51 | border: 1px solid #337ab7; 52 | box-shadow: 0 0 10px #337ab7; 53 | background-color: rgba(51, 122, 183, 0.2); 54 | } -------------------------------------------------------------------------------- /views/layouts/frontend-toolbar.php: -------------------------------------------------------------------------------- 1 | registerCss('body {padding-'.$position.': 50px;}'); 10 | ?> 11 | 12 | -------------------------------------------------------------------------------- /messages/fa/install.php: -------------------------------------------------------------------------------- 1 | 'نصب کردن', 5 | 'Install' => 'نصب', 6 | 'Root password' => 'کلمه عبور کاربر Root', 7 | 'Admin E-mail' => 'ایمیل ادمین', 8 | 'Robot E-mail' => 'ایمیل روبوت', 9 | 'Auth time' => 'زمان ثبت نام', 10 | 'Frontend toolbar position' => 'موقعیت نوار ابزار صفحه اصلی', 11 | 'Password to login as root' => 'کلمه عبور برای ورود به عنوان Root', 12 | 'Used as "ReplyTo" in mail messages' => 'استفاده به عنوان ReplyTo در پیام ایمیل', 13 | 'Used as "From" in mail messages' => 'استفاده به عنوان From در پیام ایمیل', 14 | 'Required for using captcha in forms (guestbook, feedback)' => 'استفاده از کپچا در فرم ها', 15 | 'You easily can get keys on' => 'شما می توانید به راحتی کلید ها را بردارید', 16 | 'ReCaptcha website' => 'سایت ReCaptcha', 17 | 'Installation completed' => 'نصب کامل شد', 18 | 'Installation error' => 'خطا در نصب', 19 | 'Cannot connect to database. Please configure `{0}`.' => 'به دیتابیس نمی توان متصل شد لطفادر `{0}` تنظیم کنید.', 20 | 'EasyiiCMS is already installed. If you want to reinstall easyiiCMS, please drop all tables with prefix `easyii_` from your database manually.' => 'EasyiiCMS در حال حاضر نصب شده است. اگر می خواهید نصب را مجدد انجام دهید لطفا تمامی جدول های دیتابیس با _easyii را حذف نمایید.' 21 | ]; 22 | -------------------------------------------------------------------------------- /views/logs/index.php: -------------------------------------------------------------------------------- 1 | title = Yii::t('easyii', 'Logs'); 3 | ?> 4 | 5 | = $this->render('_menu') ?> 6 | 7 | count > 0) : ?> 8 || # | 12 |= Yii::t('easyii', 'Username') ?> | 13 |= Yii::t('easyii', 'Password') ?> | 14 |IP | 15 |USER AGENT | 16 |= Yii::t('easyii', 'Date') ?> | 17 |
|---|---|---|---|---|---|
| = $log->primaryKey ?> | 23 |= $log->username ?> | 24 |= $log->password ?> | 25 |= $log->ip ?> | 26 |= $log->user_agent ?> | 27 |= Yii::$app->formatter->asDatetime($log->time, 'medium') ?> | 28 |
= Yii::t('easyii', 'No records found') ?>
37 | -------------------------------------------------------------------------------- /assets/redactor/plugins/definedlinks/definedlinks.js: -------------------------------------------------------------------------------- 1 | if (!RedactorPlugins) var RedactorPlugins = {}; 2 | 3 | RedactorPlugins.definedlinks = function() 4 | { 5 | return { 6 | init: function() 7 | { 8 | if (!this.opts.definedLinks) return; 9 | 10 | this.modal.addCallback('link', $.proxy(this.definedlinks.load, this)); 11 | 12 | }, 13 | load: function() 14 | { 15 | var $select = $(''); 16 | $('#redactor-modal-link-insert').prepend($select); 17 | 18 | this.definedlinks.storage = {}; 19 | 20 | $.getJSON(this.opts.definedLinks, $.proxy(function(data) 21 | { 22 | $.each(data, $.proxy(function(key, val) 23 | { 24 | this.definedlinks.storage[key] = val; 25 | $select.append($('