Subversion Repositories wimsdev

Rev

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