diff --git a/template.php b/template.php
index 6b90e20..9b555f3 100755
--- a/template.php
+++ b/template.php
@@ -4,7 +4,7 @@
  * Here we override the default HTML output of drupal.
  * refer to http://drupal.org/node/550722
  */
- 
+
 // Auto-rebuild the theme registry during theme development.
 if (theme_get_setting('clear_registry')) {
   // Rebuild .info data.
@@ -69,6 +69,9 @@ function basic_preprocess_node(&$vars) {
   // Add a striping class.
   $vars['classes_array'][] = 'node-' . $vars['zebra'];
 
+  // Add $unpublished variable.
+  $vars['unpublished'] = (!$vars['status']) ? TRUE : FALSE;
+
   // Merge first/last class (from basic_preprocess_page) into classes array of current node object.
   $node = $vars['node'];
   if (!empty($node->classes_array)) {
@@ -161,7 +164,7 @@ function basic_breadcrumb($variables) {
  * 	The string
  * @return
  * 	The converted string
- */	
+ */
 function basic_id_safe($string) {
   // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
   $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
@@ -183,7 +186,7 @@ function basic_id_safe($string) {
  *  A themed HTML string.
  *
  * @ingroup themeable
- * 
+ *
  */
 function basic_menu_link(array $variables) {
   $element = $variables['element'];
@@ -218,7 +221,7 @@ function basic_preprocess_menu_local_task(&$variables) {
 /**
  * Duplicate of theme_menu_local_tasks() but adds clearfix to tabs.
  */
-function basic_menu_local_tasks(&$variables) {  
+function basic_menu_local_tasks(&$variables) {
   $output = '';
 
   if (!empty($variables['primary'])) {
