| 1 |
<?php |
| 2 |
// Subpage |
| 3 |
$sub = isset( $_GET['sub'] ) ? $_GET['sub'] : 'getting_started'; |
| 4 |
|
| 5 |
if( !in_array( $sub, array( 'getting_started', 'whats_new', 'support', 'our_plugins' ) ) ) { |
| 6 |
$sub = 'getting_started'; |
| 7 |
} |
| 8 |
|
| 9 |
// Active version |
| 10 |
if( WPUltimatePostGrid::is_premium_active() ) { |
| 11 |
$name = 'WP Ultimate Post Grid Premium'; |
| 12 |
$version = WPUPG_PREMIUM_VERSION; |
| 13 |
} else { |
| 14 |
$name = 'WP Ultimate Post Grid'; |
| 15 |
$version = WPUPG_VERSION; |
| 16 |
} |
| 17 |
$full_name = $name . ' ' . $version; |
| 18 |
|
| 19 |
// Image directory |
| 20 |
$img_dir = WPUltimatePostGrid::get()->coreUrl . '/img/faq/'; |
| 21 |
?> |
| 22 |
|
| 23 |
<div class="wrap about-wrap"> |
| 24 |
|
| 25 |
<h1><?php echo $name; ?></h1> |
| 26 |
|
| 27 |
<div class="about-text">Welcome to version <?php echo $version ?> of the very best grid plugin!</div> |
| 28 |
|
| 29 |
<div class="wpupg-badge">Version <?php echo $version; ?></div> |
| 30 |
|
| 31 |
<h2 class="nav-tab-wrapper"> |
| 32 |
<a href="<?php echo admin_url('edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_faq&sub=getting_started'); ?>" class="nav-tab<?php if( $sub == 'getting_started' ) echo ' nav-tab-active'; ?>"> |
| 33 |
Getting Started |
| 34 |
</a><a href="<?php echo admin_url('edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_faq&sub=whats_new'); ?>" class="nav-tab<?php if( $sub == 'whats_new' ) echo ' nav-tab-active'; ?>"> |
| 35 |
What’s New |
| 36 |
</a><a href="<?php echo admin_url('edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_faq&sub=support'); ?>" class="nav-tab<?php if( $sub == 'support' ) echo ' nav-tab-active'; ?>"> |
| 37 |
I need help! |
| 38 |
</a><a href="<?php echo admin_url('edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_faq&sub=our_plugins'); ?>" class="nav-tab<?php if( $sub == 'our_plugins' ) echo ' nav-tab-active'; ?>"> |
| 39 |
Our Plugins |
| 40 |
</a> |
| 41 |
</h2> |
| 42 |
|
| 43 |
<?php include( WPUltimatePostGrid::get()->coreDir . '/static/faq/'.$sub.'.php' ); ?> |
| 44 |
</div> |