blob: 64dba232019533750d209d8952b39fff5e1c9737 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?php
// get current screen
$screen = get_current_screen();
// set current page
if ($screen->id !== '') {
if (strpos($screen->id, "_page_") !== false)
$current_page = substr($screen->id, strpos($screen->id, "_page_") + 6);
else
$current_page = substr($screen->id, strpos($screen->id, "_category_") + 10);
} else
$current_page = '';
$wpmp_upgrade_pro_link = WMobilePack_Admin::upgrade_pro_link();
?>
<!-- add nav main menu -->
<nav class="menu">
<ul>
<li <?php echo $current_page == 'wmp-options' ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options'), network_admin_url('admin.php'));?>">Quick Start</a>
</li>
<li <?php echo $current_page == 'wmp-options-themes' ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-themes'), network_admin_url('admin.php'));?>">
App Themes
<div class="ribbon">
<div class="indicator"></div>
</div>
</a>
</li>
<li <?php echo $current_page == 'wmp-options-theme-settings' ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-theme-settings'), network_admin_url('admin.php'));?>">Look & Feel</a>
</li>
<li <?php echo ($current_page == 'wmp-options-content' || $current_page == 'wmp-page-details' || $current_page == 'wmp-category-details') ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-content'), network_admin_url('admin.php'));?>">Content</a>
</li>
<li <?php echo $current_page == 'wmp-options-settings' ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-settings'), network_admin_url('admin.php'));?>">Settings</a>
</li>
<li>
<a href="<?php echo $wpmp_upgrade_pro_link;?>" target="_blank">
PRO
<div class="ribbon">
<div class="indicator"></div>
</div>
</a>
</li>
</ul>
</nav>
|