Subversion Repositories wimsdev

Rev

Rev 14709 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $module = home
  2.   !! use scripts/adm/oneitem.phtml
  3.   !set w_path = ./adm/
  4. !else
  5.   !! use html/oneitem.phtml
  6.   !set w_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.   <div class="modubox_content">
  30.   !if $wims_homeref_n0>0
  31.     !set started=0
  32.     !for i_=1 to $wims_homeref_n0
  33.       !set 1_=!line $i_ of $wims_rm_0
  34.       !if $(1_[1])$(1_[2]) != $empty
  35.         !set is_link=!item 2 of $1_
  36.         !if $is_link!=0
  37.           !if $started=0
  38.             <$div0 class="wimsmenu menu homeref_n0">
  39.             !set started=1
  40.           !endif
  41.           !set wims_ref_class = !item 1 of $1_
  42.           !set wims_ref_class = !word 1 of $wims_ref_class
  43.           !if " isin $wims_ref_class
  44.            !reset wims_ref_class
  45.          !endif
  46.          <$div1 class="menuitem $wims_ref_class">
  47.            !read $(w_path)oneitem.phtml $1_
  48.          </$div1>
  49.          !reset wims_ref_class
  50.        !else
  51.          !if $started=1
  52.            </$div0>
  53.          !endif
  54.          !set item_text = !item 3 of $1_
  55.          !if $item_text notsametext $empty
  56.            <h2 class="menu_title"><span>
  57.              !read $(w_path)oneitem.phtml $1_
  58.            </span></h2>
  59.          !endif
  60.          <$div0 class="wimsmenu menu homeref_n0">
  61.          !set started=1
  62.        !endif
  63.      !endif
  64.   !next i_
  65.    </$div0><!--wimsmenu-->
  66.  !endif wims_homeref_n0
  67.  
  68.  !if $wims_homeref_n5>0
  69.    <$div0 class="wimsmenu menu homeref_n5">
  70.    !for i_=1 to $wims_homeref_n5
  71.      !if $div0=ul
  72.        <li class="menuitem">
  73.      !endif
  74.      !set 1_=!line $i_ of $wims_rm_5
  75.      !read $(w_path)oneitem.phtml $1_
  76.      !if $div0=ul
  77.        </li>
  78.      !endif
  79.    !next i_
  80.    </$div0><!--wimsmenu-->
  81.  !endif wims_homeref_n5
  82.  
  83.  !if $wims_homeref_n4>0
  84.    <$div0 class="wimsmenu menu homeref_n4">
  85.    !for i_=1 to $wims_homeref_n4
  86.      !set 1_=!line $i_ of $wims_rm_4
  87.      !set wims_ref_class = !item 1 of $1_
  88.      !if " isin $wims_ref_class
  89.         !reset wims_ref_class
  90.       !endif
  91.       <$div1 class="menuitem $wims_ref_class">
  92.         !read $(w_path)oneitem.phtml $1_
  93.       </$div1>
  94.       !reset wims_ref_class
  95.     !next i_
  96.     </$div0><!--wimsmenu-->
  97.   !endif wims_homeref_n4
  98.   </div>
  99.   </nav> <!--/wimsmenumodubox -->
  100.   <!-- end _widgets/menumodubox.phtml -->
  101. !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5
  102.