Index: classes/wordcamp-coming-soon-page.php
===================================================================
--- classes/wordcamp-coming-soon-page.php	(revision 2769)
+++ classes/wordcamp-coming-soon-page.php	(working copy)
@@ -14,6 +14,7 @@
 		add_filter( 'template_include',   array( $this, 'override_theme_template' ) );
 
 		add_image_size( 'wccsp_image_medium_rectangle', 500, 300 );
+		add_action( 'admin_bar_menu',array( &$this, 'display_coming_soon_notice' ), 1000 );
 	}
 
 	/**
@@ -219,4 +220,56 @@
 		
 		return $contact_form_shortcode;
 	}
+	
+	/**
+     * Display notice in admin bar when coming soon mode is on
+     */
+    function display_coming_soon_notice($str){
+        global  $pagenow,$wp_admin_bar;
+		wp_enqueue_script('jquery');
+		
+       	$settings= $GLOBALS['WCCSP_Settings']->get_settings();
+      	$msg = '';
+		
+		$setting_url=admin_url().'options-general.php?page=wccsp_settings';
+		
+        if($settings['enabled']=='on'){
+			
+				$msg = __('
+				<style>.wc-coming-soon-info{
+					background-color:#0085ba !important;
+				}</style>
+				You are in coming soon mode','coming-soon');
+			
+				if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
+						$class = 'notice notice-error';
+						$message = __( 'You cannot pubilsh posts while in Coming Soon mode. <br />Once the site is ready for a public audience, please <a href="' . $setting_url . '">disable 			Coming Soon mode</a> and then publish this post.', 'sample-text-domain' );
+						
+						echo "
+						<script>
+							jQuery(document).ready(function(){
+								  jQuery('#publish').click(function() 
+								  {
+											alert('You cannot pubilsh posts while in Coming Soon mode. Once the site is ready for a public audience, please disable Coming Soon mode and then publish this post.');
+											setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100);
+											jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96');
+											setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100);
+											return false;
+								  });
+						  });
+						  </script>";
+						
+						printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message ); 
+					}
+     	   }
+		
+        $wp_admin_bar->add_menu( array(
+            'id'     => 'wordcamp-coming-soon-info',
+            'href' => $setting_url,
+            'parent' => 'top-secondary',
+            'title'  => $msg,
+            'meta'   => array( 'class' => 'wc-coming-soon-info' ),
+        ) );
+		
+    }
 } // end WordCamp_Coming_Soon_Page
