diff --git a/plugins/tps/shops/controllers/BannerControllers.php b/plugins/tps/shops/controllers/BannerControllers.php new file mode 100644 index 0000000..64d1300 --- /dev/null +++ b/plugins/tps/shops/controllers/BannerControllers.php @@ -0,0 +1,19 @@ + + = e(trans('backend::lang.form.create')) ?> + = e(trans('backend::lang.reorder.default_title')) ?> + + diff --git a/plugins/tps/shops/controllers/bannercontrollers/_reorder_toolbar.htm b/plugins/tps/shops/controllers/bannercontrollers/_reorder_toolbar.htm new file mode 100644 index 0000000..742ef90 --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/_reorder_toolbar.htm @@ -0,0 +1,3 @@ +
\ No newline at end of file diff --git a/plugins/tps/shops/controllers/bannercontrollers/config_form.yaml b/plugins/tps/shops/controllers/bannercontrollers/config_form.yaml new file mode 100644 index 0000000..4b7edbf --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/config_form.yaml @@ -0,0 +1,10 @@ +name: BannerControllers +form: $/tps/shops/models/banner/fields.yaml +modelClass: Tps\Shops\Models\Banner +defaultRedirect: tps/shops/bannercontrollers +create: + redirect: 'tps/shops/bannercontrollers/update/:id' + redirectClose: tps/shops/bannercontrollers +update: + redirect: tps/shops/bannercontrollers + redirectClose: tps/shops/bannercontrollers diff --git a/plugins/tps/shops/controllers/bannercontrollers/config_list.yaml b/plugins/tps/shops/controllers/bannercontrollers/config_list.yaml new file mode 100644 index 0000000..449a83d --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/config_list.yaml @@ -0,0 +1,12 @@ +list: $/tps/shops/models/banner/columns.yaml +modelClass: Tps\Shops\Models\Banner +title: BannerControllers +noRecordsMessage: 'backend::lang.list.no_records' +showSetup: true +showCheckboxes: true +recordsPerPage: 20 +toolbar: + buttons: list_toolbar + search: + prompt: 'backend::lang.list.search_prompt' +recordUrl: 'tps/shops/bannercontrollers/update/:id' diff --git a/plugins/tps/shops/controllers/bannercontrollers/config_reorder.yaml b/plugins/tps/shops/controllers/bannercontrollers/config_reorder.yaml new file mode 100644 index 0000000..f1eeb94 --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/config_reorder.yaml @@ -0,0 +1,4 @@ +title: BannerControllers +modelClass: Tps\Shops\Models\Banner +toolbar: + buttons: reorder_toolbar diff --git a/plugins/tps/shops/controllers/bannercontrollers/create.htm b/plugins/tps/shops/controllers/bannercontrollers/create.htm new file mode 100644 index 0000000..716ea36 --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/create.htm @@ -0,0 +1,46 @@ + += e(trans('backend::lang.form.return_to_list')) ?>
+ \ No newline at end of file diff --git a/plugins/tps/shops/controllers/bannercontrollers/index.htm b/plugins/tps/shops/controllers/bannercontrollers/index.htm new file mode 100644 index 0000000..ea43a36 --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/index.htm @@ -0,0 +1 @@ += $this->listRender() ?> diff --git a/plugins/tps/shops/controllers/bannercontrollers/preview.htm b/plugins/tps/shops/controllers/bannercontrollers/preview.htm new file mode 100644 index 0000000..1b36384 --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/preview.htm @@ -0,0 +1,22 @@ + ++ + = e(trans('backend::lang.form.return_to_list')) ?> + +
\ No newline at end of file diff --git a/plugins/tps/shops/controllers/bannercontrollers/reorder.htm b/plugins/tps/shops/controllers/bannercontrollers/reorder.htm new file mode 100644 index 0000000..60812db --- /dev/null +++ b/plugins/tps/shops/controllers/bannercontrollers/reorder.htm @@ -0,0 +1,8 @@ + += e(trans('backend::lang.form.return_to_list')) ?>
+ \ No newline at end of file diff --git a/plugins/tps/shops/models/Banner.php b/plugins/tps/shops/models/Banner.php new file mode 100644 index 0000000..d392231 --- /dev/null +++ b/plugins/tps/shops/models/Banner.php @@ -0,0 +1,23 @@ +engine = 'InnoDB'; + $table->increments('id')->unsigned(); + $table->string('name'); + $table->string('banner_tk'); + $table->string('banner_ru'); + $table->string('banner_en'); + $table->timestamp('created_at')->nullable(); + $table->timestamp('updated_at')->nullable(); + }); + } + + public function down() + { + Schema::dropIfExists('tps_shops_banners'); + } +} diff --git a/plugins/tps/shops/updates/version.yaml b/plugins/tps/shops/updates/version.yaml index 3c93687..b56993d 100644 --- a/plugins/tps/shops/updates/version.yaml +++ b/plugins/tps/shops/updates/version.yaml @@ -99,3 +99,6 @@ 1.0.34: - 'Updated table tps_shops_sales' - builder_table_update_tps_shops_sales_3.php +1.0.35: + - 'Created table tps_shops_banners' + - builder_table_create_tps_shops_banners.php diff --git a/themes/berkarar/assets/css/main2.css b/themes/berkarar/assets/css/main2.css new file mode 100644 index 0000000..16eb140 --- /dev/null +++ b/themes/berkarar/assets/css/main2.css @@ -0,0 +1,10 @@ +section.banner { + align-items: center; + padding-bottom: 40px; + padding-top: 40px; + background-color: #f8f8f8; /* Adjust background color as needed */ +} + +.banner-content img { + width: 100%; +} \ No newline at end of file diff --git a/themes/berkarar/layouts/default.htm b/themes/berkarar/layouts/default.htm index 9d81539..8460060 100644 --- a/themes/berkarar/layouts/default.htm +++ b/themes/berkarar/layouts/default.htm @@ -97,8 +97,11 @@ function onStart(){