Rev 15525 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9792 | obado | 1 | !if $module = home |
15525 | bpr | 2 | !set w_path = ./adm/ |
9792 | obado | 3 | !else |
15525 | bpr | 4 | !set w_path = $empty |
9792 | obado | 5 | !endif |
12590 | obado | 6 | |
11971 | bpr | 7 | !read themes/$wims_theme/local.phtml |
9795 | obado | 8 | !!read themes/_procs/homemenu.proc |
10015 | bpr | 9 | !if $wims_homeref_n0=1 and itemsep isin $wims_rm_0 |
13326 | bpr | 10 | !set wims_homeref_n0=0 |
10015 | bpr | 11 | !endif |
12590 | obado | 12 | !set wims_tot_rm=!append line $wims_rm_0 to $wims_local_menu_items |
13326 | bpr | 13 | !set wims_homeref_n0=!linecnt $wims_tot_rm |
12590 | obado | 14 | !if $wims_homeref_n0+$wims_homeref_n4 + $wims_homeref_n5 + $wims_homeref_local_n0>0 |
13326 | bpr | 15 | <!-- _widgets/menumodubox_accordion.phtml --> |
16 | <div id="wimsmenumodubox" class="accordion"> |
||
17 | !if $wims_homeref_n0 >0 |
||
18 | !set started=0 |
||
19 | !for i_=1 to $wims_homeref_n0 |
||
20 | !set 1_=!line $i_ of $wims_tot_rm |
||
21 | !if $(1_[1])$(1_[2]) != $empty |
||
22 | !set is_link=!item 2 of $1_ |
||
23 | !if $is_link!=0 |
||
24 | !if $started=0 |
||
25 | <$div0 class="wimsmenu menu homeref_n0"> |
||
26 | !set started=1 |
||
27 | !endif |
||
28 | !set wims_ref_class = !item 1 of $1_ |
||
29 | !set wims_ref_class = !word 1 of $wims_ref_class |
||
30 | <$div1 class="menuitem $wims_ref_class"> |
||
15525 | bpr | 31 | !read $(w_path)oneitem.phtml $1_ |
13326 | bpr | 32 | </$div1> |
33 | !reset wims_ref_class |
||
34 | !else |
||
35 | !set item_text = !item 3 of $1_ |
||
36 | !if $item_text notsametext $empty |
||
37 | !if $started=1 |
||
38 | </$div0> |
||
39 | !endif |
||
40 | <h2 class="menu_title"> |
||
15525 | bpr | 41 | !read $(w_path)oneitem.phtml $1_ |
13326 | bpr | 42 | </h2> |
43 | <$div0 class="wimsmenu menu homeref_n0"> |
||
44 | !set started=1 |
||
45 | !else |
||
17170 | bpr | 46 | <hr class="itemsep"> |
13326 | bpr | 47 | !endif |
48 | !endif |
||
9792 | obado | 49 | !endif |
13326 | bpr | 50 | !next i_ |
51 | </$div0><!--wimsmenu--> |
||
9792 | obado | 52 | !endif wims_homeref_n0 |
53 | |||
54 | !if $wims_homeref_n5>0 |
||
13326 | bpr | 55 | <$div0 class="wimsmenu menu homeref_n5"> |
9792 | obado | 56 | !for i_=1 to $wims_homeref_n5 |
13326 | bpr | 57 | !!<$div1 class="menuitem "> |
9792 | obado | 58 | !set 1_=!line $i_ of $wims_rm_5 |
15525 | bpr | 59 | !read $(w_path)oneitem.phtml $1_ |
13326 | bpr | 60 | !!</$div1><!-- menuitem--> |
9792 | obado | 61 | !next i_ |
13326 | bpr | 62 | </$div0><!--wimsmenu--> |
9792 | obado | 63 | !endif wims_homeref_n5 |
64 | |||
65 | !if $wims_homeref_n4>0 |
||
13326 | bpr | 66 | <$div0 class="wimsmenu menu homeref_n4"> |
9792 | obado | 67 | !for i_=1 to $wims_homeref_n4 |
13326 | bpr | 68 | !set 1_=!line $i_ of $wims_rm_4 |
69 | !set wims_ref_class = !item 1 of $1_ |
||
70 | <$div1 class="menuitem $wims_ref_class"> |
||
15525 | bpr | 71 | !read $(w_path)oneitem.phtml $1_ |
13326 | bpr | 72 | </$div1> |
73 | !reset wims_ref_class |
||
9792 | obado | 74 | !next i_ |
13326 | bpr | 75 | </$div0><!--wimsmenu--> |
9792 | obado | 76 | !endif wims_homeref_n4 |
13326 | bpr | 77 | </div> <!--wimsmenumodubox--> |
78 | !if $jquery_defined=yes |
||
12590 | obado | 79 | <script> |
13326 | bpr | 80 | /*<![CDATA[*/ jQuery(function(jq) { |
81 | jq( "#wimsmenumodubox.accordion" ).accordion({ |
||
82 | heightStyle: "content", |
||
83 | collapsible: true |
||
84 | }); |
||
9795 | obado | 85 | });/*]]>*/ |
9792 | obado | 86 | </script> |
13326 | bpr | 87 | !endif |
88 | <!-- end _widgets/menumodubox_accordion.phtml --> |
||
9792 | obado | 89 | !endif wims_homeref_n0+wims_homeref_n4+$wims_homeref_n5 |