Subversion Repositories wimsdev

Rev

Rev 10361 | Rev 11971 | 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.       <$div1 class="menuitem $wims_ref_class">
  38.        !read $(path)oneitem.phtml $1_
  39.       </$div1>
  40.       !reset wims_ref_class
  41.      !else
  42.        !if $started=1
  43.          </$div0>
  44.          !if $i_ !=$wims_homeref_n0
  45.            <hr class="itemsep" />
  46.          !endif
  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 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 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 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.      <$div1 class="menuitem $wims_ref_class">
  79.       !read $(path)oneitem.phtml $1_
  80.      </$div1>
  81.      !reset wims_ref_class
  82.     !next i_
  83.    </$div0><!--wimsmenu-->
  84.   !endif wims_homeref_n4
  85.  
  86.   !if $wims_homeref_local_n0>0
  87.    <$div0 class="wimsmenu homeref_local_n0">
  88.     !for i_=1 to $wims_homeref_local_n0
  89.      !set 1_=!line $i_ of $wims_local_menu_items
  90.      !if $(1_[1])=
  91.       <$div1 class="itemsep">&nbsp;</$div1>
  92.      !else
  93.       !set wims_ref_class = !item 1 of $1_
  94.       <$div1 class="menuitem $wims_ref_class">
  95.        !read $(path)oneitem.phtml $1_
  96.       </$div1>
  97.       !reset wims_ref_class
  98.      !endif
  99.     !next i_
  100.    </$div0><!--/wimsmenu-->
  101.   !endif wims_homeref_local_n0
  102.  </div> <!--/wimsmenumodubox-->
  103. <!-- end _widgets/menumodubox.phtml -->
  104. !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5
  105.