From ddcadd1188e9deba0fb121374deb3cc9e060e99c Mon Sep 17 00:00:00 2001 From: Kerim Date: Tue, 19 Jul 2022 10:50:22 +0500 Subject: [PATCH] 30coffee 19.07 --- .../ordersshopaholic/components/Cart.php | 7 +- plugins/rainlab/blog/components/Post.php | 6 + themes/30coffe/content/biz-barada.htm | 3 + themes/30coffe/layouts/master.htm | 106 ++++++++-- themes/30coffe/meta/menus/top_menu.yaml | 68 +++---- themes/30coffe/pages/404.htm | 19 ++ themes/30coffe/pages/biz-barada.htm | 29 +++ themes/30coffe/pages/category-page.htm | 84 ++++++++ themes/30coffe/pages/habar.htm | 45 +++++ themes/30coffe/pages/habarlar.htm | 85 ++++++++ themes/30coffe/pages/habarlashmak.htm | 119 ++++++++++++ themes/30coffe/pages/home.htm | 181 +++++++++++++++++- themes/30coffe/pages/sebet.htm | 100 ++++++++++ themes/30coffe/partials/home/categories.htm | 2 +- themes/30coffe/partials/home/content.htm | 2 +- themes/30coffe/partials/home/posts.htm | 83 +++----- themes/30coffe/partials/home/products.htm | 84 ++++---- themes/30coffe/partials/menu.htm | 42 ++-- 18 files changed, 898 insertions(+), 167 deletions(-) create mode 100644 themes/30coffe/content/biz-barada.htm create mode 100644 themes/30coffe/pages/404.htm create mode 100644 themes/30coffe/pages/biz-barada.htm create mode 100644 themes/30coffe/pages/category-page.htm create mode 100644 themes/30coffe/pages/habar.htm create mode 100644 themes/30coffe/pages/habarlar.htm create mode 100644 themes/30coffe/pages/habarlashmak.htm create mode 100644 themes/30coffe/pages/sebet.htm diff --git a/plugins/lovata/ordersshopaholic/components/Cart.php b/plugins/lovata/ordersshopaholic/components/Cart.php index e1fcccba..ad98e992 100644 --- a/plugins/lovata/ordersshopaholic/components/Cart.php +++ b/plugins/lovata/ordersshopaholic/components/Cart.php @@ -3,6 +3,7 @@ use Lang; use Input; use Cms\Classes\ComponentBase; +use Illuminate\Support\Facades\Redirect; use Kharanenka\Helper\Result; use Lovata\Toolbox\Traits\Helpers\TraitValidationHelper; @@ -12,6 +13,7 @@ use Lovata\OrdersShopaholic\Classes\Item\PaymentMethodItem; use Lovata\OrdersShopaholic\Classes\Item\ShippingTypeItem; use Lovata\OrdersShopaholic\Classes\Processor\CartProcessor; use Lovata\OrdersShopaholic\Classes\Processor\OfferCartPositionProcessor; +use PHP_CodeSniffer\Reports\Info; /** * Class Cart @@ -64,11 +66,12 @@ class Cart extends ComponentBase */ public function onAdd() { + // log("sdfsdfsd"); $arRequestData = Input::get('cart'); - + CartProcessor::instance()->add($arRequestData, OfferCartPositionProcessor::class); Result::setData(CartProcessor::instance()->getCartData()); - + return Result::get(); } diff --git a/plugins/rainlab/blog/components/Post.php b/plugins/rainlab/blog/components/Post.php index 8faa8ff6..942d68f8 100644 --- a/plugins/rainlab/blog/components/Post.php +++ b/plugins/rainlab/blog/components/Post.php @@ -35,6 +35,12 @@ class Post extends ComponentBase 'default' => '{{ :slug }}', 'type' => 'string', ], + 'id' => [ + 'title' => 'Post Id', + 'description' => 'Post Id', + 'default' => '{{ :id }}', + 'type' => 'string', + ], 'categoryPage' => [ 'title' => 'rainlab.blog::lang.settings.post_category', 'description' => 'rainlab.blog::lang.settings.post_category_description', diff --git a/themes/30coffe/content/biz-barada.htm b/themes/30coffe/content/biz-barada.htm new file mode 100644 index 00000000..6845d19a --- /dev/null +++ b/themes/30coffe/content/biz-barada.htm @@ -0,0 +1,3 @@ +

About Our Stqqory

+ +

A restaurant sometimes known as a diner is a place where cooked food is sold to the public, and where people sit down to eat it. It is also a place where people go to enjoy the time and to eat a meal. Some restaurants are a chain, meaning that there are restaurants which have the same name and servqqqe is also a place where people go to enjoy the time and to eat a meal the same food.

\ No newline at end of file diff --git a/themes/30coffe/layouts/master.htm b/themes/30coffe/layouts/master.htm index bce8d2d8..0fef481e 100644 --- a/themes/30coffe/layouts/master.htm +++ b/themes/30coffe/layouts/master.htm @@ -1,7 +1,11 @@ +[localePicker] +forceUrl = 0 + +[Cart] == - - + +{% set obCartPositionList = Cart.get() %} @@ -50,11 +54,58 @@ max-width: 60% !important; margin: auto; } + + + + + #toast-success { + visibility: hidden; /* Hidden by default. Visible on click */ + min-width: 250px; /* Set a default minimum width */ + margin-left: -125px; /* Divide value of min-width by 2 */ + background-color: #333; /* Black background color */ + color: #fff; /* White text color */ + text-align: center; /* Centered text */ + border-radius: 2px; /* Rounded borders */ + padding: 16px; /* Padding */ + position: fixed; /* Sit on top of the screen */ + z-index: 1; /* Add a z-index if needed */ + left: 50%; /* Center the snackbar */ + bottom: 30px; /* 30px from the bottom */ + } + + /* Show the snackbar when clicking on a button (class added with JavaScript) */ + #toast-success.show { + visibility: visible; /* Show the snackbar */ + /* Add animation: Take 0.5 seconds to fade in and out the snackbar. + However, delay the fade out process for 2.5 seconds */ + -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; + animation: fadein 0.5s, fadeout 0.5s 2.5s; + } + + /* Animations to fade the snackbar in and out */ + @-webkit-keyframes fadein { + from {bottom: 0; opacity: 0;} + to {bottom: 30px; opacity: 1;} + } + + @keyframes fadein { + from {bottom: 0; opacity: 0;} + to {bottom: 30px; opacity: 1;} + } + + @-webkit-keyframes fadeout { + from {bottom: 30px; opacity: 1;} + to {bottom: 0; opacity: 0;} + } + + @keyframes fadeout { + from {bottom: 30px; opacity: 1;} + to {bottom: 0; opacity: 0;} + } -
@@ -72,7 +123,7 @@
-