Subversion Repositories wimsdev

Rev

Rev 12590 | Rev 13503 | 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. !read themes/$wims_theme/local.phtml
  7. !!read themes/_procs/homemenu.proc
  8. !if $wims_homeref_n0=1 and itemsep isin $wims_rm_0
  9.   !set wims_homeref_n0=0
  10. !endif
  11. !!delete a line itemsep,0 at the beginning without third argument
  12. !set wims_rm_0=!nonempty line $wims_rm_0
  13. !set tmp_=!line 1 of $wims_rm_0
  14. !if itemsep isitemof $(tmp_[1]) and $(tmp_[3])=$empty
  15.   !set wims_rm_0=!line 2 to -1 of $wims_rm_0
  16. !endif
  17. !set tmp_=!line -1 of $wims_rm_0
  18. !if (itemsep isitemof $(tmp_[1]) or $(tmp_[1])=$empty) and $(tmp_[3])=$empty
  19.   !set wims_rm_0=!line 1 to -2 of $wims_rm_0
  20. !endif
  21. !if $wims_homeref_n0+$wims_homeref_n4 + $wims_homeref_n5 >0
  22.   <!-- _widgets/menumodubox.phtml -->
  23.   <div id="wimsmenumodubox">
  24.   !if $wims_homeref_n0>0
  25.     !set started=0
  26.     !for i_=1 to $wims_homeref_n0
  27.       !set 1_=!line $i_ of $wims_rm_0
  28.       !if $(1_[1])$(1_[2]) != $empty
  29.         !set is_link=!item 2 of $1_
  30.         !if $is_link!=0
  31.           !if $started=0
  32.             <$div0 class="wimsmenu menu homeref_n0">
  33.             !set started=1
  34.           !endif
  35.           !set wims_ref_class = !item 1 of $1_
  36.           !set wims_ref_class = !word 1 of $wims_ref_class
  37.           !if " isin $wims_ref_class
  38.            !reset wims_ref_class
  39.          !endif
  40.          <$div1 class="menuitem $wims_ref_class">
  41.          !read $(path)oneitem.phtml $1_
  42.          </$div1>
  43.          !reset wims_ref_class
  44.        !else
  45.          !if $started=1
  46.            </$div0>
  47.          !endif
  48.          !set item_text = !item 3 of $1_
  49.          !if $item_text notsametext $empty
  50.            <h2 class="menu_title">
  51.            !read $(path)oneitem.phtml $1_
  52.            </h2>
  53.          !endif
  54.          <$div0 class="wimsmenu menu homeref_n0">
  55.          !set started=1
  56.        !endif
  57.      !endif
  58.   !next i_
  59.    </$div0><!--wimsmenu-->
  60.  !endif wims_homeref_n0
  61.  
  62.  !if $wims_homeref_n5>0
  63.    <$div0 class="wimsmenu menu homeref_n5">
  64.    !for i_=1 to $wims_homeref_n5
  65.      !!<$div1 class="menuitem ">
  66.      !set 1_=!line $i_ of $wims_rm_5
  67.      !read $(path)oneitem.phtml $1_
  68.       !!</$div1><!-- menuitem-->
  69.    !next i_
  70.    </$div0><!--wimsmenu-->
  71.  !endif wims_homeref_n5
  72.  
  73.  !if $wims_homeref_n4>0
  74.    <$div0 class="wimsmenu menu homeref_n4">
  75.    !for i_=1 to $wims_homeref_n4
  76.      !set 1_=!line $i_ of $wims_rm_4
  77.      !set wims_ref_class = !item 1 of $1_
  78.      !if " isin $wims_ref_class
  79.         !reset wims_ref_class
  80.       !endif
  81.       <$div1 class="menuitem $wims_ref_class">
  82.       !read $(path)oneitem.phtml $1_
  83.       </$div1>
  84.       !reset wims_ref_class
  85.     !next i_
  86.     </$div0><!--wimsmenu-->
  87.   !endif wims_homeref_n4
  88.   </div> <!--/wimsmenumodubox-->
  89.   <!-- end _widgets/menumodubox.phtml -->
  90. !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5
  91.