Rev 14709 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7584 | obado | 1 | !if $module = home |
13171 | obado | 2 | !! use scripts/adm/oneitem.phtml |
15525 | bpr | 3 | !set w_path = ./adm/ |
7584 | obado | 4 | !else |
13171 | obado | 5 | !! use html/oneitem.phtml |
15525 | bpr | 6 | !set w_path = $empty |
7584 | obado | 7 | !endif |
11971 | bpr | 8 | !read themes/$wims_theme/local.phtml |
13503 | bpr | 9 | !set wims_rm_0=!append line $wims_rm_0 to $wims_local_menu_items |
10 | |||
10015 | bpr | 11 | !!read themes/_procs/homemenu.proc |
9863 | bpr | 12 | !if $wims_homeref_n0=1 and itemsep isin $wims_rm_0 |
12789 | bpr | 13 | !set wims_homeref_n0=0 |
9863 | bpr | 14 | !endif |
10213 | bpr | 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 |
||
10285 | bpr | 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 |
||
13503 | bpr | 25 | !set wims_homeref_n0=!linecnt $wims_rm_0 |
11974 | bpr | 26 | !if $wims_homeref_n0+$wims_homeref_n4 + $wims_homeref_n5 >0 |
12789 | bpr | 27 | <!-- _widgets/menumodubox.phtml --> |
13171 | obado | 28 | <nav id="wimsmenumodubox"> |
14709 | obado | 29 | <div class="modubox_content"> |
6042 | obado | 30 | !if $wims_homeref_n0>0 |
12789 | bpr | 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"> |
||
15525 | bpr | 47 | !read $(w_path)oneitem.phtml $1_ |
12789 | bpr | 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 |
||
14709 | obado | 56 | <h2 class="menu_title"><span> |
15525 | bpr | 57 | !read $(w_path)oneitem.phtml $1_ |
14709 | obado | 58 | </span></h2> |
12789 | bpr | 59 | !endif |
60 | <$div0 class="wimsmenu menu homeref_n0"> |
||
61 | !set started=1 |
||
62 | !endif |
||
6042 | obado | 63 | !endif |
6012 | bpr | 64 | !next i_ |
12789 | bpr | 65 | </$div0><!--wimsmenu--> |
6042 | obado | 66 | !endif wims_homeref_n0 |
7565 | bpr | 67 | |
6042 | obado | 68 | !if $wims_homeref_n5>0 |
12789 | bpr | 69 | <$div0 class="wimsmenu menu homeref_n5"> |
6042 | obado | 70 | !for i_=1 to $wims_homeref_n5 |
14656 | bpr | 71 | !if $div0=ul |
14709 | obado | 72 | <li class="menuitem"> |
14656 | bpr | 73 | !endif |
6042 | obado | 74 | !set 1_=!line $i_ of $wims_rm_5 |
15525 | bpr | 75 | !read $(w_path)oneitem.phtml $1_ |
14656 | bpr | 76 | !if $div0=ul |
14709 | obado | 77 | </li> |
14656 | bpr | 78 | !endif |
6042 | obado | 79 | !next i_ |
12789 | bpr | 80 | </$div0><!--wimsmenu--> |
6042 | obado | 81 | !endif wims_homeref_n5 |
7565 | bpr | 82 | |
6042 | obado | 83 | !if $wims_homeref_n4>0 |
12789 | bpr | 84 | <$div0 class="wimsmenu menu homeref_n4"> |
6042 | obado | 85 | !for i_=1 to $wims_homeref_n4 |
12789 | bpr | 86 | !set 1_=!line $i_ of $wims_rm_4 |
87 | !set wims_ref_class = !item 1 of $1_ |
||
88 | !if " isin $wims_ref_class |
||
11328 | bpr | 89 | !reset wims_ref_class |
90 | !endif |
||
12789 | bpr | 91 | <$div1 class="menuitem $wims_ref_class"> |
15525 | bpr | 92 | !read $(w_path)oneitem.phtml $1_ |
12789 | bpr | 93 | </$div1> |
94 | !reset wims_ref_class |
||
6042 | obado | 95 | !next i_ |
12789 | bpr | 96 | </$div0><!--wimsmenu--> |
6042 | obado | 97 | !endif wims_homeref_n4 |
14709 | obado | 98 | </div> |
13171 | obado | 99 | </nav> <!--/wimsmenumodubox --> |
12789 | bpr | 100 | <!-- end _widgets/menumodubox.phtml --> |
5997 | bpr | 101 | !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5 |