Subversion Repositories wimsdev

Rev

Rev 11974 | Rev 15525 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $module = home
  2.   !set path = ./adm/
  3. !else
  4.   !set path = $empty
  5. !endif
  6.  
  7. !read themes/$wims_theme/local.phtml
  8. !!read themes/_procs/homemenu.proc
  9. !if $wims_homeref_n0=1 and itemsep isin $wims_rm_0
  10.  !set wims_homeref_n0=0
  11. !endif
  12. !set wims_tot_rm=!append line $wims_rm_0 to $wims_local_menu_items
  13. !if $wims_homeref_n0+$wims_homeref_n4 + $wims_homeref_n5 + $wims_homeref_local_n0>0
  14.  <!-- _widgets/menumodubox_accordion.phtml -->
  15.  <div id="wimsmenumodubox" class="accordion">
  16.   !if $wims_homeref_n0 + $wims_homeref_local_n0 >0
  17.    !set started=0
  18.    !for i_=1 to $wims_homeref_n0 + $wims_homeref_local_n0
  19.     !set 1_=!line $i_ of $wims_tot_rm
  20.     !if $(1_[1])$(1_[2]) != $empty
  21.      !set is_link=!item 2 of $1_
  22.      !if $is_link!=0
  23.       !if $started=0
  24.         <$div0 class="wimsmenu menu homeref_n0">
  25.         !set started=1
  26.       !endif
  27.       !set wims_ref_class = !item 1 of $1_
  28.       !set wims_ref_class = !word 1 of $wims_ref_class
  29.       <$div1 class="menuitem $wims_ref_class">
  30.        !read $(path)oneitem.phtml $1_
  31.       </$div1>
  32.       !reset wims_ref_class
  33.      !else
  34.  
  35.        !set item_text = !item 3 of $1_
  36.        !if $item_text notsametext $empty
  37.          !if $started=1
  38.            </$div0>
  39.          !endif
  40.          <h2 class="menu_title">
  41.           !read $(path)oneitem.phtml $1_
  42.          </h2>
  43.          <$div0 class="wimsmenu menu homeref_n0">
  44.         !set started=1
  45.        !else
  46.         <hr class="itemsep" />
  47.        !endif
  48.      !endif
  49.     !endif
  50.    !next i_
  51.    </$div0><!--wimsmenu-->
  52.   !endif wims_homeref_n0
  53.  
  54.   !if $wims_homeref_n5>0
  55.    <$div0 class="wimsmenu menu homeref_n5">
  56.     !for i_=1 to $wims_homeref_n5
  57.      !!<$div1 class="menuitem ">
  58.       !set 1_=!line $i_ of $wims_rm_5
  59.       !read $(path)oneitem.phtml $1_
  60.      !!</$div1><!-- menuitem-->
  61.     !next i_
  62.    </$div0><!--wimsmenu-->
  63.   !endif wims_homeref_n5
  64.  
  65.   !if $wims_homeref_n4>0
  66.    <$div0 class="wimsmenu menu homeref_n4">
  67.     !for i_=1 to $wims_homeref_n4
  68.      !set 1_=!line $i_ of $wims_rm_4
  69.      !set wims_ref_class = !item 1 of $1_
  70.      <$div1 class="menuitem $wims_ref_class">
  71.       !read $(path)oneitem.phtml $1_
  72.      </$div1>
  73.      !reset wims_ref_class
  74.     !next i_
  75.    </$div0><!--wimsmenu-->
  76.   !endif wims_homeref_n4
  77.  
  78.  </div> <!--wimsmenumodubox-->
  79. !if $jquery_defined=yes
  80.     <script>
  81.         /*<![CDATA[*/ jQuery(function(jq) {
  82.             jq( "#wimsmenumodubox.accordion" ).accordion({
  83.               heightStyle: "content",
  84.               collapsible: true
  85.             });
  86.         });/*]]>*/
  87.     </script>
  88. !endif
  89. <!-- end _widgets/menumodubox_accordion.phtml -->
  90. !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5
  91.