From bd158a5233ffd042b5cf45f01338d94be517b72c Mon Sep 17 00:00:00 2001 From: touffies Date: Wed, 6 Nov 2013 17:11:28 +0100 Subject: [PATCH] Add sample product and default message when you install thelia --- .../default/assets/less/thelia/buttons.less | 1 + templates/default/demo/product-new.html | 19 +++++++++++++ templates/default/index.html | 27 ++++++++++++++----- 3 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 templates/default/demo/product-new.html diff --git a/templates/default/assets/less/thelia/buttons.less b/templates/default/assets/less/thelia/buttons.less index 209426efe..6f328162c 100644 --- a/templates/default/assets/less/thelia/buttons.less +++ b/templates/default/assets/less/thelia/buttons.less @@ -46,6 +46,7 @@ &.btn-coupon, &.btn-filter, &.btn-grid, + &.btn-jumbotron, &.btn-list, &.btn-login-mini, &.btn-search, diff --git a/templates/default/demo/product-new.html b/templates/default/demo/product-new.html new file mode 100644 index 000000000..bef08b4df --- /dev/null +++ b/templates/default/demo/product-new.html @@ -0,0 +1,19 @@ +{for $count=1 to 4} +
  • + +
  • +{/for} \ No newline at end of file diff --git a/templates/default/index.html b/templates/default/index.html index 292aa238a..fe38555a7 100644 --- a/templates/default/index.html +++ b/templates/default/index.html @@ -14,19 +14,33 @@
    {images file='assets/img/carousel/slider1.png'}img1{/images}
    - {*
    +
    {images file='assets/img/carousel/slider2.png'}img2{/images}
    {images file='assets/img/carousel/slider3.png'}img3{/images} -
    *} +
    -{* - *} + + + {if {count type="product"} eq 0} +
    +

    Welcome

    +

    + It's really quick to add a product. +

      +
    1. Check NEW under the details tab if you want to see your product in the latest product section.
    2. +
    3. Check SALE under the details tab if you want to see your product in the offer product section.
    4. +
    +

    +

    Add my first product

    +
    + {/if} +
    @@ -92,11 +106,12 @@ {/loop} - + {elseloop rel="product_new"}{include file="demo/product-new.html"}{/elseloop}
    + {ifloop rel="product_promo"}

    {intl l="Offers"} {intl l="+ View All"}

    @@ -107,8 +122,8 @@ {loop name="product_promo" type="product" limit="5" promo="yes"} {include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=false width="218" height="146"} {/loop} -
    + {/ifloop} {/block} \ No newline at end of file