Subversion Repositories wimsdev

Rev

Rev 10370 | Rev 11974 | 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 + $wims_homeref_local_n0>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 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.         !if $i_ !=$wims_homeref_n0
  48.           <hr class="itemsep" />
  49.         !endif
  50.       !endif
  51.       !set item_text = !item 3 of $1_
  52.       !if $item_text notsametext $empty
  53.         <h2 class="menu_title">
  54.          !read $(path)oneitem.phtml $1_
  55.         </h2>
  56.       !endif
  57.       <$div0 class="wimsmenu homeref_n0">
  58.       !set started=1
  59.     !endif
  60.    !endif
  61.   !next i_
  62.   </$div0><!--wimsmenu-->
  63.  !endif wims_homeref_n0
  64.  
  65.  !if $wims_homeref_n5>0
  66.   <$div0 class="wimsmenu homeref_n5">
  67.    !for i_=1 to $wims_homeref_n5
  68.     !!<$div1 class="menuitem ">
  69.      !set 1_=!line $i_ of $wims_rm_5
  70.      !read $(path)oneitem.phtml $1_
  71.     !!</$div1><!-- menuitem-->
  72.    !next i_
  73.   </$div0><!--wimsmenu-->
  74.  !endif wims_homeref_n5
  75.  
  76.  !if $wims_homeref_n4>0
  77.   <$div0 class="wimsmenu homeref_n4">
  78.    !for i_=1 to $wims_homeref_n4
  79.     !set 1_=!line $i_ of $wims_rm_4
  80.     !set wims_ref_class = !item 1 of $1_
  81.     !if " isin $wims_ref_class
  82.         !reset wims_ref_class
  83.       !endif
  84.      <$div1 class="menuitem $wims_ref_class">
  85.       !read $(path)oneitem.phtml $1_
  86.      </$div1>
  87.      !reset wims_ref_class
  88.     !next i_
  89.    </$div0><!--wimsmenu-->
  90.   !endif wims_homeref_n4
  91.  
  92.   !if $wims_homeref_local_n0>0
  93.    <$div0 class="wimsmenu homeref_local_n0">
  94.     !for i_=1 to $wims_homeref_local_n0
  95.      !set 1_=!line $i_ of $wims_local_menu_items
  96.      !if $(1_[1])=
  97.       <$div1 class="itemsep">&nbsp;</$div1>
  98.      !else
  99.       !set wims_ref_class = !item 1 of $1_
  100.       !if " isin $wims_ref_class
  101.        !reset wims_ref_class
  102.      !endif
  103.      <$div1 class="menuitem $wims_ref_class">
  104.       !read $(path)oneitem.phtml $1_
  105.      </$div1>
  106.      !reset wims_ref_class
  107.     !endif
  108.    !next i_
  109.   </$div0><!--/wimsmenu-->
  110.  !endif wims_homeref_local_n0
  111. </div> <!--/wimsmenumodubox-->
  112. <!-- end _widgets/menumodubox.phtml -->
  113. !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5
  114.