Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 4.10 KB | None | 0 0
  1. <vte:box module="box_sections">
  2.     <vte:params>
  3.         <vte:param name="cache" value="0" />
  4.         <vte:param name="id" value="7" />
  5. <!--        <vte:param name="search_ids" value="{VIVVO_MODULES_MORE_NEWS_CATEGORIES}" />-->
  6.     </vte:params>
  7.  
  8.     <vte:template>
  9.  
  10.         <vte:literal>
  11.             <script type="text/javascript">
  12.  
  13.              document.observe("dom:loaded", function() {              
  14.                 var tallest =0;
  15.                 var target =$$('.box_servicios_top')
  16.                 target.each(function(elemento,i) {
  17.                     if(i%2 == 1)
  18.                      elemento.addClassName('box_2') ;
  19.                 thisHeight = elemento.offsetHeight;
  20.                 if(thisHeight > tallest) {
  21.                                 tallest = thisHeight;
  22.                                 }
  23. //                    alert(thisHeight);
  24.                 });
  25.  
  26.                 target.invoke("setStyle", {height: tallest + 'px'});
  27.  
  28.             });
  29.  
  30.             //</script>
  31.         </vte:literal>
  32.  
  33.         <div class="contenedor_box_servicios_top">
  34.             <vte:for from="{categories}" step="1" key="category_index">
  35.                
  36.                 <div class="box_servicios_top">
  37.                     <vte:foreach item = "category" from = "{categories}" loop="1" start="{category_index}" key="col">
  38.  
  39.                         <div class="">
  40. <!--                          <vte:literal>
  41.                            <script type="text/javascript">
  42. //                            document.write("<span class='num'>"+ ++num +"</span>");
  43.                            //</script>
  44.                          </vte:literal>-->
  45.  
  46.                           <vte:if test="{category.image}">
  47.                              <a href="{category.get_href}"> <img class="ima_ser" src="{VIVVO_URL}files.php?file={category.get_image}" alt="{category.get_category_name}" /></a>
  48.                           </vte:if>
  49.  
  50.                         </div>
  51.  
  52.                         <div id="box_more_category_list_{category.get_id}" class="">
  53.                             <h2 class="">
  54.                                 <a href="{category.get_href}"><vte:value select="{category.get_category_name}" /></a>
  55.                             </h2>
  56.                             <vte:if test="{category.subcategories}">
  57.                                 <div class="title_subcategory">
  58.                                     <vte:foreach item = "sub_category" from = "{category.subcategories}" key="index">
  59.                                         <a href="{sub_category.get_href}"><vte:value select="{sub_category.get_category_name}" /></a>
  60.                                     </vte:foreach>
  61.                                 </div>
  62.                             </vte:if>
  63.                             <vte:box module="box_article_list">
  64.                                 <vte:params>
  65.                                     <vte:param name="search_sort_by" value="created" />
  66.                                     <vte:param name="search_limit" value="{VIVVO_MODULES_MORE_NEWS_ARTICLE_NUMBER}" />
  67.                                     <vte:param name="search_cid" value="{category.id}" />
  68.                                     <vte:param name="add_to_printed" value="true" />
  69.                                     <vte:param name="exclude_printed" value="true" />
  70.                                 </vte:params>
  71.                                 <vte:template>
  72.                                     <ul>
  73.                                         <vte:foreach item = "article" from = "{article_list}">
  74.                                             <li><a href="{article.get_href}"><vte:value select="{article.title}" /><vte:if test="{article.get_link}"> <img src="{VIVVO_THEME}img/external.png" alt="{LNG_VISIT_WEBSITE}"/></vte:if></a></li>
  75.                                         </vte:foreach>
  76.                                     </ul>
  77.                                 </vte:template>
  78.                             </vte:box>
  79.                         </div>
  80.                     </vte:foreach>
  81.                 </div>
  82.             </vte:for>
  83.         </div>
  84.     </vte:template>
  85.  
  86. </vte:box>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement