PluginProbe
WP Ultimate Post Grid / 1.5
WP Ultimate Post Grid v1.5
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / static / faq.php

faq.php in WP Ultimate Post Grid 1.5, at static/faq.php

44 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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&#8217;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>