Subversion Repositories wimsdev

Rev

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

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