|
1 <?php require_once( compat_get_plugin_dir( 'wptouch' ) . '/include/plugin.php' ); ?> |
|
2 <?php global $wptouch_settings; ?> |
|
3 <?php $version = bnc_get_wp_version(); ?> |
|
4 |
|
5 <div class="metabox-holder"> |
|
6 <div class="postbox"> |
|
7 <h3><span class="plugin-options"> </span><?php _e( "Plugin Support & Compatibility", "wptouch" ); ?></h3> |
|
8 |
|
9 <div class="left-content"> |
|
10 <div class="wptouch-version-support"> |
|
11 <?php |
|
12 echo '<p class="wpv">'; |
|
13 echo __( 'WordPress version: ', 'wptouch' ); |
|
14 echo '' . get_bloginfo('version') . ''; |
|
15 echo '</p><p class="wptv">'; |
|
16 echo __( '' . wptouch() . ' support: ', 'wptouch' ); |
|
17 if ($version > 2.91) { |
|
18 echo sprintf(__( "%Unverified%s", "wptouch" ), '<span class="caution">','</span>'); |
|
19 } elseif ($version >= 2.7) { |
|
20 echo sprintf(__( "%sFully Supported%s", "wptouch" ), '<span class="go">','</span>'); |
|
21 } else { |
|
22 echo sprintf(__( "%Unsupported. Upgrade Required.%s", "wptouch" ), '<span class="red">','</span>'); |
|
23 } |
|
24 echo '</p>'; |
|
25 ?> |
|
26 </div> |
|
27 <p><?php _e( "Here you'll find information on additional WPtouch features and their requirements, including those activated with companion plugins.", "wptouch" ); ?></p> |
|
28 <p><?php _e( "For further documentation visit" ); ?> <?php echo sprintf(__( "%sBraveNewCode.%s", "wptouch" ), '<a href="http://www.bravenewcode.com/wptouch/">','</a>'); ?></p> |
|
29 <p><?php echo sprintf( __( "To report an incompatible plugin, let us know in our %sSupport Forums%s.", "wptouch"), '<a href="http://support.bravenewcode.com/">', '</a>' ); ?></p> |
|
30 </div> |
|
31 |
|
32 <div class="right-content"> |
|
33 |
|
34 <h4><?php _e( "WordPress Pages & Feature Support", "wptouch" ); ?></h4> |
|
35 |
|
36 <?php |
|
37 //WordPress Links Page Support |
|
38 $links_page_check = new WP_Query('pagename=links'); |
|
39 if ($links_page_check->post->ID) { |
|
40 echo '<div class="all-good">' . __( "All of your WP links will automatically show on your page called 'Links'.", "wptouch" ) . '</div>'; |
|
41 } else { |
|
42 echo '<div class="too-bad">' . __( "If you create a page called 'Links', all your WP links would display in <em>WPtouch</em> style.", "wptouch" ) . '</div>'; } ?> |
|
43 |
|
44 <?php |
|
45 //WordPress Photos Page with and without FlickRSS Support |
|
46 $photos_page_check = new WP_Query('pagename=photos'); |
|
47 if ($photos_page_check->post->ID && function_exists('get_flickrRSS')) { |
|
48 echo '<div class="all-good">' . __( 'All your <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> images will automatically show on your page called \'Photos\'.', 'wptouch' ) . '</div>'; |
|
49 } elseif ($photos_page_check->post->ID && !function_exists('get_flickrRSS')) { |
|
50 echo '<div class="sort-of">' . __( 'You have a page called \'Photos\', but don\'t have <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> installed.', 'wptouch' ) . '</div>'; |
|
51 } elseif (!$photos_page_check->post->ID && function_exists('get_flickrRSS')) { |
|
52 echo '<div class="sort-of">' . __( 'If you create a page called \'Photos\', all your <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> photos would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>'; |
|
53 } else { |
|
54 |
|
55 echo '<div class="too-bad">' . __( 'If you create a page called \'Photos\', and install the <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> plugin, your photos would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>'; |
|
56 } |
|
57 ?> |
|
58 |
|
59 <?php |
|
60 //WordPress Archives Page Support with checks for Tags Support or Not |
|
61 $archives_page_check = new WP_Query('pagename=archives'); |
|
62 if ($archives_page_check->post->ID) { |
|
63 echo '<div class="all-good">' . __( 'Your tags and your monthly listings will automatically show on your page called \'Archives\'.', 'wptouch' ) . '</div>'; |
|
64 } else { |
|
65 echo '<div class="too-bad">' . __( 'If you had a page called \'Archives\', your tags and monthly listings would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>'; |
|
66 } |
|
67 ?> |
|
68 |
|
69 <h4><?php _e( 'Known Plugin Support & Conflicts', 'wptouch' ); ?></h4> |
|
70 <div id="wptouch-plugin-content" style="display:none"></div> |
|
71 </div><!-- right content --> |
|
72 <div class="bnc-clearer"></div> |
|
73 </div><!-- postbox --> |
|
74 </div><!-- metabox --> |