web/wp-content/plugins/wptouch/html/plugin-compat-area.php
branchwordpress
changeset 123 561aa6d282f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/plugin-compat-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,74 @@
+<?php require_once( compat_get_plugin_dir( 'wptouch' ) . '/include/plugin.php' ); ?>
+<?php global $wptouch_settings; ?>
+<?php $version = bnc_get_wp_version(); ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="plugin-options">&nbsp;</span><?php _e( "Plugin Support &amp; Compatibility", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<div class="wptouch-version-support">
+					<?php
+						echo '<p class="wpv">';
+						echo __( 'WordPress version: ', 'wptouch' );
+						echo '' . get_bloginfo('version') . '';
+						echo '</p><p class="wptv">';
+						echo __( '' . wptouch() . ' support: ', 'wptouch' );
+						if ($version > 2.91) {
+							echo sprintf(__( "%Unverified%s", "wptouch" ), '<span class="caution">','</span>');
+						} elseif ($version >= 2.7) {
+							echo sprintf(__( "%sFully Supported%s", "wptouch" ), '<span class="go">','</span>');
+						} else {
+							echo sprintf(__( "%Unsupported. Upgrade Required.%s", "wptouch" ), '<span class="red">','</span>');
+						} 
+						echo '</p>';
+					?>	
+				</div>
+				<p><?php _e( "Here you'll find information on additional WPtouch features and their requirements, including those activated with companion plugins.", "wptouch" ); ?></p>
+				<p><?php _e( "For further documentation visit" ); ?> <?php echo sprintf(__( "%sBraveNewCode.%s", "wptouch" ), '<a href="http://www.bravenewcode.com/wptouch/">','</a>'); ?></p>
+				<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>
+		</div>
+		
+		<div class="right-content">
+			
+			<h4><?php _e( "WordPress Pages &amp; Feature Support", "wptouch" ); ?></h4>
+			
+				<?php
+					//WordPress Links Page Support
+				$links_page_check = new WP_Query('pagename=links');
+				if ($links_page_check->post->ID) {
+				echo '<div class="all-good">' . __( "All of your WP links will automatically show on your page called 'Links'.", "wptouch" ) . '</div>';
+				} else {
+				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>'; } ?>
+				
+				<?php
+				//WordPress Photos Page with and without FlickRSS Support	 
+				$photos_page_check = new WP_Query('pagename=photos');
+				if ($photos_page_check->post->ID && function_exists('get_flickrRSS')) {
+				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>';
+				} elseif ($photos_page_check->post->ID && !function_exists('get_flickrRSS')) {
+				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>';
+				} elseif (!$photos_page_check->post->ID && function_exists('get_flickrRSS')) {
+				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>';
+				} else {
+				
+				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>';
+				}
+				?>
+				
+				<?php
+				//WordPress Archives Page Support with checks for Tags Support or Not
+				$archives_page_check = new WP_Query('pagename=archives');
+				if ($archives_page_check->post->ID) {
+				echo '<div class="all-good">' . __( 'Your tags and your monthly listings will automatically show on your page called \'Archives\'.', 'wptouch' ) . '</div>';
+				} else {		   
+				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>';
+				}
+				?>
+				
+			<h4><?php _e( 'Known Plugin Support &amp; Conflicts', 'wptouch' ); ?></h4>
+				<div id="wptouch-plugin-content" style="display:none"></div>				
+		</div><!-- right content -->
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file