diff --git a/themes/nurgul/assets/no_img.jpg b/themes/nurgul/assets/no_img.jpg new file mode 100644 index 0000000..65149c1 Binary files /dev/null and b/themes/nurgul/assets/no_img.jpg differ diff --git a/themes/nurgul/meta/menus/top-menu.yaml b/themes/nurgul/meta/menus/top-menu.yaml index 06f5a9d..beb5fee 100755 --- a/themes/nurgul/meta/menus/top-menu.yaml +++ b/themes/nurgul/meta/menus/top-menu.yaml @@ -1,9 +1,13 @@ items: - title: 'Baş Sahypa' + nesting: null type: cms-page + url: null code: '' reference: home + cmsPage: null + replace: null viewBag: locale: ru: @@ -14,9 +18,13 @@ items: isExternal: '0' - title: Kategoriýalar + nesting: null type: url url: / code: '' + reference: null + cmsPage: null + replace: null viewBag: locale: ru: @@ -27,9 +35,61 @@ items: isExternal: '0' items: - - title: test + title: 'Gelinlik Güller' type: url - url: / + url: /category/2 + code: '' + viewBag: + locale: + ru: + title: '' + url: '' + isHidden: '0' + cssClass: '' + isExternal: '0' + - + title: 'Sowgatlyk Güller' + type: url + url: /category/3 + code: '' + viewBag: + locale: + ru: + title: '' + url: '' + isHidden: '0' + cssClass: '' + isExternal: '0' + - + title: 'Sebetli güller' + type: url + url: /category/4 + code: '' + viewBag: + locale: + ru: + title: '' + url: '' + isHidden: '0' + cssClass: '' + isExternal: '0' + - + title: 'Bedreli güller' + type: url + url: /category/5 + code: '' + viewBag: + locale: + ru: + title: '' + url: '' + isHidden: '0' + cssClass: '' + isExternal: '0' + - + title: 'Buket güller' + type: url + url: /category/6 code: '' viewBag: locale: @@ -41,9 +101,13 @@ items: isExternal: '0' - title: 'Biz Barada' + nesting: null type: cms-page + url: null code: '' reference: about-us + cmsPage: null + replace: null viewBag: locale: ru: @@ -54,9 +118,13 @@ items: isExternal: '0' - title: 'Habarlaşmak Üçin' + nesting: null type: cms-page + url: null code: '' reference: contact-us + cmsPage: null + replace: null viewBag: locale: ru: diff --git a/themes/nurgul/pages/category.htm b/themes/nurgul/pages/category.htm new file mode 100755 index 0000000..d9fd669 --- /dev/null +++ b/themes/nurgul/pages/category.htm @@ -0,0 +1,96 @@ +title = "Category" +url = "/category/:id" +layout = "main" +== +param('id'); +} +?> +== +{% partial 'loader/loader' id='loader_cat' %} + +
+ +
+
+
+
+
+

+
+ +
+
+
+
+
+
+ + +
+
+
+
+
+
    +
  • +
    + +
    +
  • +
  • +
    + +
    +
    + +
    +
  • +
+
+
+
+
+
+ +
+
+
+ + {% partial 'product/tab-pane' %} +
+
+
+
+
+ +
+
+
+
+
+ + +{% partial 'scripts/getByCat' add='add.cart'|_ query='locale=tm' limit='8' id='cat' catId=catId %} diff --git a/themes/nurgul/pages/login.htm b/themes/nurgul/pages/login.htm index 4142264..0ed99a7 100755 --- a/themes/nurgul/pages/login.htm +++ b/themes/nurgul/pages/login.htm @@ -39,7 +39,7 @@ title = "Login"

{{'dont.have.account'|_}}

{{'register.desc'|_}}

- {{'register.title'|_}} + {{'register.title'|_}}
@@ -65,4 +65,4 @@ title = "Login" }; -{% endput %} \ No newline at end of file +{% endput %} diff --git a/themes/nurgul/partials/product/tab-pane.htm b/themes/nurgul/partials/product/tab-pane.htm new file mode 100755 index 0000000..6eafd19 --- /dev/null +++ b/themes/nurgul/partials/product/tab-pane.htm @@ -0,0 +1,212 @@ +
+
+
+ +
+
+
+ # +
+
    +
  • Hot
  • +
+
+
+
+

Red Rose + Bouquet

+
+ $16 +
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. + Recusandae asperiores sit odit nesciunt, aliquid, deleniti + non et ut dolorem!

+
+
+ +
+
+
+
+ +
+
+
+ # +
+
    +
  • 12%
  • +
+
+
+
+

Red Rose + Bouquet

+
+ $16 + $19 +
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. + Recusandae asperiores sit odit nesciunt, aliquid, deleniti + non et ut dolorem!

+
+
+ +
+
+
+
+ +
+
+
+ # +
+
    +
  • Hot
  • +
+
+
+
+

Red Rose + Bouquet

+
+ $16 +
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. + Recusandae asperiores sit odit nesciunt, aliquid, deleniti + non et ut dolorem!

+
+
+ +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/themes/nurgul/partials/scripts/getByCat.htm b/themes/nurgul/partials/scripts/getByCat.htm new file mode 100755 index 0000000..0c1aae1 --- /dev/null +++ b/themes/nurgul/partials/scripts/getByCat.htm @@ -0,0 +1,65 @@ +{% put scripts %} + + +{% endput %} + +{%partial 'scripts/setModal' %} +{%partial 'scripts/prodCard' %} diff --git a/themes/nurgul/partials/scripts/prodCard.htm b/themes/nurgul/partials/scripts/prodCard.htm index cf9e6c6..081832c 100755 --- a/themes/nurgul/partials/scripts/prodCard.htm +++ b/themes/nurgul/partials/scripts/prodCard.htm @@ -7,11 +7,20 @@ var card = `
-
- +
` + + + (product.images.length > 0 ? + ` Nurgul `+product.name+` ` + : + ` + Nurgul `+product.name+` + + ` + ) + + (product.hasOwnProperty('special_price') ? diff --git a/themes/nurgul/partials/scripts/productDetail.htm b/themes/nurgul/partials/scripts/productDetail.htm index 6f391b1..6b09f7f 100755 --- a/themes/nurgul/partials/scripts/productDetail.htm +++ b/themes/nurgul/partials/scripts/productDetail.htm @@ -34,20 +34,32 @@ function setDetail(product) { var images = product.images; - for (var image of images) { - // console.log(product.hasOwnProperty('special_price')); - $('#product_images').append(`
- Nurgul `+ product.name +` + if (images.length > 0) { + for (var image of images) { + // console.log(product.hasOwnProperty('special_price')); + $('#product_images').append(`
+ Nurgul ` + product.name + `
`); - } + } - for (var image of images) { - // console.log(product.hasOwnProperty('special_price')); - $('#product_large_images').append(`
- - Nurgul `+ product.name +` + for (var image of images) { + // console.log(product.hasOwnProperty('special_price')); + $('#product_large_images').append(``); + } + } else { + $('#product_images').html(`
+ Nurgul ` + product.name + ` +
`); + + $('#product_large_images').html(`
+ + Nurgul ` + product.name + ` + +
`); } // $('#product_images').html(`Nurgul `+ product.name +``);