svn commit: r780081 - in /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce: catalog/miniassocprods.ftl catalog/minilastviewedcategories.ftl content/factoids.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r780081 - in /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce: catalog/miniassocprods.ftl catalog/minilastviewedcategories.ftl content/factoids.ftl

apatel-2
Author: apatel
Date: Fri May 29 19:26:56 2009
New Revision: 780081

URL: http://svn.apache.org/viewvc?rev=780081&view=rev
Log:
use ul/li instead of nested <div>.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/miniassocprods.ftl
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/minilastviewedcategories.ftl
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/factoids.ftl

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/miniassocprods.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/miniassocprods.ftl?rev=780081&r1=780080&r2=780081&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/miniassocprods.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/miniassocprods.ftl Fri May 29 19:26:56 2009
@@ -20,22 +20,19 @@
 <#assign associatedProducts = Static["org.ofbiz.order.shoppingcart.product.ProductDisplayWorker"].getRandomCartProductAssoc(request, true)?if_exists>
 <#if associatedProducts?has_content>
 <div id="miniassocproducts" class="screenlet">
-    <div class="screenlet-header">
-        <div class='boxhead'><b>${uiLabelMap.EcommerceYouMightLike}...</b></div>
-    </div>
+    <div class="screenlet-header boxhead">${uiLabelMap.EcommerceYouMightLike}...</div>
     <div class="screenlet-body">
         <#-- random complementary products -->
+        <ul class="browsecategorylist">
         <#list associatedProducts as miniProduct>
-            <div>
+            <li class="browsecategorytext">
                 ${setRequestAttribute("miniProdQuantity", 1)}
                 ${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
                 ${setRequestAttribute("optProductId", miniProduct.productId)}
                 ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
-            </div>
-            <#if miniProduct_has_next>
-                <div><hr/></div>
-            </#if>
+            </li>
         </#list>
+        </ul>
     </div>
 </div>
 </#if>

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/minilastviewedcategories.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/minilastviewedcategories.ftl?rev=780081&r1=780080&r2=780081&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/minilastviewedcategories.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/minilastviewedcategories.ftl Fri May 29 19:26:56 2009
@@ -29,11 +29,11 @@
             <div class="boxhead">${uiLabelMap.EcommerceLastCategories}</div>
         </div>
         <div class="screenlet-body">
-          <div class="browsecategorylist">
+          <ul class="browsecategorylist">
             <#list lastViewedCategories[0..limit] as categoryId>
                 <#assign category = delegator.findByPrimaryKeyCache("ProductCategory", Static["org.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId))?if_exists>
                 <#if category?has_content>
-                    <div class="browsecategorytext">
+                    <li class="browsecategorytext">
                         <#if catContentWrappers?exists && catContentWrappers[category.productCategoryId]?exists && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME")?exists>
                             <a href="<@ofbizUrl>category/~category_id=${categoryId}</@ofbizUrl>" class="browsecategorybutton">${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME")}</a>
                         <#elseif catContentWrappers?exists && catContentWrappers[category.productCategoryId]?exists && catContentWrappers[category.productCategoryId].get("DESCRIPTION")?exists>
@@ -41,10 +41,10 @@
                         <#else>
                             <a href="<@ofbizUrl>category/~category_id=${categoryId}</@ofbizUrl>" class="browsecategorybutton">${category.description?if_exists}</a>
                         </#if>
-                    </div>
+                    </li>
                 </#if>
             </#list>
-          </div>
+          </ul>
         </div>
     </div>
 </#if>

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/factoids.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/factoids.ftl?rev=780081&r1=780080&r2=780081&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/factoids.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/factoids.ftl Fri May 29 19:26:56 2009
@@ -31,18 +31,16 @@
 </#if>
 
 <div id="factoids" class="screenlet">
-    <div class="screenlet-header">
-        <div class="boxhead">${uiLabelMap.EcommerceFactoids}</div>
-    </div>
+    <div class="screenlet-header boxhead">${uiLabelMap.EcommerceFactoids}</div>
     <div class="screenlet-body">
-      <div class="browsecategorylist">
+      <ul class="browsecategorylist">
         <#assign count_1=0/>
         <@limitedSubContent contentId=factoidRootId viewIndex=0 viewSize=9999 orderBy="contentName" limitSize="2">
-            <div class="browsecategorytext">
+            <li class="browsecategorytext">
               <@renderSubContentCache subContentId=subContentId/>
-            </div>
+            </li>
             <#assign count_1=(count_1 + 1)/>
         </@limitedSubContent>
-      </div>
+      </ul>
     </div>
 </div>