<?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.92) {
							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">
					<!-- custom anti spam -->
						<div class="all-good">
							<a href="http://wordpress.org/extend/plugins/peters-custom-anti-spam-image/" target="_blank">Peter's Custom Anti-Spam</a> is fully supported.
						</div>
		
					<!-- wp spam free -->
						<div class="all-good">
							<a href="http://www.hybrid6.com/webgeek/plugins/wp-spamfree" target="_blank">WP Spam Free</a> is fully supported.
						</div>
					
					<!-- flickr rss -->	  
						<div class="all-good">
							<a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a>: Your photos will automatically show on a page called 'Photos' if you have it. Fully supported.
						</div>
					
					<!-- wp cache -->		  
						<div class="sort-of">
							<a href="http://mnm.uib.es/gallir/wp-cache-2/" target="_blank">WP Cache</a> is supported, but requires configuration. Follow <a href="http://www.bravenewcode.com/2009/12/video-tutorial-configuring-wptouch-with-wp-super-cache/" target="_blank">this video tutorial</a> for more information.
						</div>
								
					<!-- wp super cache -->		  
						<div class="sort-of">
							<a href="http://mnm.uib.es/gallir/wp-cache-2/" target="_blank">WP Super Cache</a> is supported, but requires configuration. Follow <a href="http://www.bravenewcode.com/2009/12/video-tutorial-configuring-wptouch-with-wp-super-cache/" target="_blank">this video tutorial</a> for more information.
						</div>
		
					<!-- wp css -->		  
						<div class="sort-of">
							<a href="http://wordpress.org/extend/plugins/wp-css/" target="_blank">WP CSS</a> is supported, but does	not compress WPtouch's CSS. WPtouch files are pre-optimized for mobile devices already.
						</div>
		
					<!-- share this -->		  
						<div class="sort-of">
							<a href="http://wordpress.org/extend/plugins/share-this/" target="_blank">Share This</a> is supported, but requires the WPtouch setting <strong>'Enable Exclusive Mode'</strong> turned on for WPtouch to work properly. We'll try to flush out proper compatibility.</div>
		
					<!-- wordpress admin bar -->		  
						<div class="sort-of">
							<a href="http://www.viper007bond.com/wordpress-plugins/wordpress-admin-bar/" target="_blank">WordPress Admin Bar</a> requires additional configuration to work with WPtouch. Follow <a href="http://www.viper007bond.com/wordpress-plugins/wordpress-admin-bar/#comment-227660" target="_blank">this comment</a> on the official site.
						</div>
		
					<!-- simple captcha -->		  
						<div class="too-bad">
							<a href="http://wordpress.org/extend/plugins/simple-captcha/" target="_blank">WP Simple Captcha</a> is not currently supported.
						</div>
		
					<!-- next gen gallery -->		  
						<div class="too-bad">
							<a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGEN Gallery</a> is not currently supported.
						</div>
		
					<!-- ajaxed pages comments-->		  
						<div class="too-bad">
							<a href="http://wordpress.org/extend/plugins/yaapc/" target="_blank">Yet another ajax paged comments (YAAPC)</a> is not currently supported. WPtouch uses its own ajaxed comments, and will automatically support WP 2.7+ comments out-of-the-box soon.
						</div>
						
						<!-- Lightview Plus -->
						<div class="too-bad">
							<a href="http://wordpress.org/extend/plugins/lightview-plus/" target="_blank">Lightview Plus</a> is not currently supported. Images may not open in a  viewer or separate page.
						</div>
				
				</div>				
		</div><!-- right content -->
	<div class="bnc-clearer"></div>
	</div><!-- postbox -->
</div><!-- metabox -->