|
1 <?php |
|
2 function ocmx_general_options (){ |
|
3 global $options, $general_site_options, $themename, $manualurl, $social_media_options, $auto_advert_options, $custom_advert_options, $menu_options; |
|
4 ocmx_header(); |
|
5 ?> |
|
6 |
|
7 <h2>OCMX Theme Options</h2> |
|
8 |
|
9 <?php if(!$_GET['current_tab']) : $current_tab = "1"; else : $current_tab = $_GET['current_tab']; endif; ?> |
|
10 |
|
11 <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" id="ocmx_form" method="post" enctype="multipart/form-data"> |
|
12 <p class="submit"><input name="save" type="submit" value="Save changes" /></p> |
|
13 <input type="hidden" name="save_options" value="1" /> |
|
14 <input type="hidden" name="general_options" value="1" /> |
|
15 <div id="container"> |
|
16 <div class="content_box"> |
|
17 <div class="ocmx-tabs"> |
|
18 <ul class="tabs clearfix"> |
|
19 <li <?php if($current_tab == 1){echo "class=\"selected\"";} ?>><a href="javascript:;" id="tab_href_1">General Options</a></li> |
|
20 <li <?php if($current_tab == 2){echo "class=\"selected\"";} ?>><a href="javascript:;" id="tab_href_2">Social Options</a></li> |
|
21 <li <?php if($current_tab == 3){echo "class=\"selected\"";} ?>><a href="javascript:;" id="tab_href_3">Menu Structure</a></li> |
|
22 </ul> |
|
23 </div> |
|
24 <div class="ocmx-content"> |
|
25 <div class="header"><div></div></div> |
|
26 <div class="content clearfix"> |
|
27 <div <?php if($current_tab == 1){echo "class=\"selected_tab\"";} else {echo "class=\"no_display\"";} ?> id="tab-1"> |
|
28 <?php fetch_options($general_site_options); ?> |
|
29 <br class="clearboth" /> |
|
30 </div> |
|
31 <div <?php if($current_tab == 2){echo "class=\"selected_tab\"";} else {echo "class=\"no_display\"";} ?> id="tab-2"> |
|
32 <?php fetch_options($social_media_options); ?> |
|
33 <br class="clearboth" /> |
|
34 </div> |
|
35 <div <?php if($current_tab == 3){echo "class=\"selected_tab\"";} else {echo "class=\"no_display\"";} ?> id="tab-3"> |
|
36 <?php |
|
37 fetch_options($menu_options); |
|
38 $defaults = array('type' => 'post', 'child_of' => 0, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false); |
|
39 menu_options($defaults); |
|
40 ?> |
|
41 </div> |
|
42 </div> |
|
43 <div class="footer"><div></div></div> |
|
44 |
|
45 </div> |
|
46 </div> |
|
47 </div> |
|
48 <p class="submit"><input name="save" type="submit" value="Save changes" /></p> |
|
49 |
|
50 <div class="clearfix"></div> |
|
51 </form> |
|
52 |
|
53 <div class="clearfix"></div> |
|
54 |
|
55 <?php |
|
56 |
|
57 }; |
|
58 ?> |