Index: block.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/block.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 block.tpl.php
--- block.tpl.php	3 Mar 2009 15:34:11 -0000	1.2
+++ block.tpl.php	5 Mar 2009 10:55:00 -0000
@@ -1,5 +1,9 @@
 <?php
-// $Id: block.tpl.php,v 1.2 2009/03/03 15:34:11 zinv Exp $
+// $Id: block.tpl.php,v 1.3 2009/03/05 16:34:11 zinv Exp $
+/**
+ * @file block.tpl.php
+ * Renders blocks for Magazeen.
+*/
 ?>
 
 <!-- start block.tpl.php -->
Index: comment-form.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/comment-form.tpl.php,v
retrieving revision 1.4
diff -u -r1.4 comment-form.tpl.php
--- comment-form.tpl.php	4 Mar 2009 22:32:06 -0000	1.4
+++ comment-form.tpl.php	5 Mar 2009 10:26:00 -0000
@@ -1,5 +1,9 @@
 <?php
 // $Id: comment-form.tpl.php,v 1.4 2009/03/04 22:32:06 zinv Exp $
+/**
+ * @file comment-form.tpl.php
+ * Renders comment form for Magazeen.
+*/
 ?>
 
 <div class="post-meta clearfix">
Index: comment-wrapper.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/comment-wrapper.tpl.php,v
retrieving revision 1.4
diff -u -r1.4 comment-wrapper.tpl.php
--- comment-wrapper.tpl.php	4 Mar 2009 22:32:06 -0000	1.4
+++ comment-wrapper.tpl.php	5 Mar 2009 10:29:00 -0000
@@ -36,7 +36,13 @@
 <div id="comment-head"></div>
 		<?php if ($node->type != 'forum'): ?>
 			<div class="comment-count">
-				<a href="#comments"><?php print $node->comment_count; if ($node->comment_count > 1) { print ' Comments'; } else { print ' Comment'; } ?></a>
+				<a href="#comments">
+  <?php 
+    print $node->comment_count; 
+    if ($node->comment_count > 1) {
+    print t('Comments'); }
+    else { print t('Comment'); } ?>
+				</a>
 			</div>
 		<?php endif; ?>
 		
Index: comment.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/comment.tpl.php,v
retrieving revision 1.5
diff -u -r1.5 comment.tpl.php
--- comment.tpl.php	4 Mar 2009 22:32:06 -0000	1.5
+++ comment.tpl.php	5 Mar 2009 10:25:00 -0000
@@ -26,7 +26,7 @@
  * @see theme_comment()
  */
 ?>
-<div class="comment<?php print ' '. $zebra; print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">
+<div class="comment<?php print ' '. $zebra; print($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">
 
   <div class="comment-author clearfix">
   	<?php print $picture ?>
Index: node.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/node.tpl.php,v
retrieving revision 1.5
diff -u -r1.5 node.tpl.php
--- node.tpl.php	4 Mar 2009 22:32:06 -0000	1.5
+++ node.tpl.php	5 Mar 2009 10:43:00 -0000
@@ -1,31 +1,81 @@
 <?php
 // $Id: node.tpl.php,v 1.5 2009/03/04 22:32:06 zinv Exp $
+/**
+ * @file node.tpl.php
+ * Renders node for Magazeen.
+*/
 ?>
 
-<div id="post-<?php print $node->nid; ?>" class="post clearfix<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
+<div id="post-<?php print $node->nid; ?>" class="post clearfix 
+  <?php if ($sticky) { 
+    print " sticky"; 
+  } ?>
+  <?php if (!$status) {
+    print " node-unpublished"; } 
+  ?>
+">
 
 	<div class="post-meta clearfix">
 		<h3 class="post-title">
 	  	<a href="<?php print $node_url?>"><?php print $title?></a>
 		</h3>
 		<p class="post-info">
-			<?php if ($type == page) { print phptemplate_display_author($name) ; } else { print '<span>By ' .$name . '</span>';} ?>
-			<?php if ($type == page) { print ''; } else { print '<span class="date">'. $date . '</span>';} ?>
+<?php 
+  if ($type == page) {
+  print phptemplate_display_author($name) ; 
+  } 
+  else {
+    print '<span>'. t('By') .' '. $name .'</span>';
+  } 
+?>
+<?php 
+  if ($type == page) { 
+    print ''; 
+  }
+  else {
+    print '<span class="date">'. $date .'</span>';
+  } 
+?>
 		</p>
 	</div><!-- /post-meta -->
 
   <div class="post-box">
-	  <div class="clearfix post-content <?php if ($teaser == 1) { print "teaser"; } else { print "full"; } ?>">
+	  <div class="clearfix post-content 
+<?php 
+  if ($teaser == 1) { 
+    print t('teaser'); 
+  } 
+  else {
+    print t('full'); 
+  }
+?>">
 
 		  <?php if ($teaser == 1): ?>
 				<?php if ($comment_count > 1): ?>				
 				  <div class="comment-count">
-					  <a title="<?php print $comment_count; if ($comment_count > 1) { print ' Comments'; } else { print ' Comment'; } ?> " href="<?php print $node_url . '#comments' ?>">
-						  <?php print $comment_count; if ($comment_count > 1) { print ' Comments'; } else { print ' Comment'; } ?> 
-						</a>
+					  <a title="
+<?php 
+  print $comment_count; 
+  if ($comment_count > 1) { 
+    print t('Comments'); 
+  } 
+  else { 
+    print t('Comment'); 
+  } 
+?> 					 " href="<?php print $node_url .'#comments' ?>">
+<?php 
+  print $comment_count; 
+  if ($comment_count > 1) { 
+    print t('Comments'); 
+  } 
+  else { 
+    print t('Comment'); 
+  } 
+?> 
+					</a>
 					</div>				
 				<?php else : ?>
-					<?php print phptemplate_comment_count($comment_count,$node_url) ; ?>
+					<?php print phptemplate_comment_count($comment_count, $node_url); ?>
 				<?php endif; ?>	
 					  	
 				<div class="post-image">
@@ -48,7 +98,7 @@
 		<?php if ($teaser == 1): ?>
 			<div class="post-footer clearfix">
 				<div class="continue-reading">
-					<a title="Continue reading &#8220;<?php print $title?>&#8220;" rel="bookmark" href="<?php print $node_url?>">Continue Reading</a>
+					<a title="<?php print t('Continue reading'); ?> &#8220;<?php print $title?>&#8220;" rel="bookmark" href="<?php print $node_url?>"><?php print t('Continue reading'); ?></a>
 				</div>
 	      <?php if ($terms): ?>
 	        <div class="category-menu"><span class="indicator"></span><?php print $terms; ?></div>
Index: page.tpl.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/page.tpl.php,v
retrieving revision 1.6
diff -u -r1.6 page.tpl.php
--- page.tpl.php	4 Mar 2009 22:32:06 -0000	1.6
+++ page.tpl.php	5 Mar 2009 10:55:00 -0000
@@ -1,5 +1,11 @@
 <?php
-// $Id: page.tpl.php,v 1.6 2009/03/04 22:32:06 zinv Exp $
+// $Id: page.tpl.php,v 1.7 2009/03/05 16:32:06 zinv Exp $
+
+/**
+    * @file page.tpl.php
+    * Renders the pages for Magazeen.
+*/
+      
 ?>
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Index: template.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/template.php,v
retrieving revision 1.4
diff -u -r1.4 template.php
--- template.php	4 Mar 2009 22:32:06 -0000	1.4
+++ template.php	5 Mar 2009 10:54:00 -0000
@@ -1,6 +1,10 @@
 <?php
-// $Id: template.php,v 1.4 2009/03/04 22:32:06 zinv Exp $
+// $Id: template.php,v 1.5 2009/03/05 16:32:06 zinv Exp $
 
+/**
+ * @file template.php
+ * Main template file for Magazeen.
+ */
 /*
 * Initialize theme settings
 */
@@ -102,7 +106,7 @@
   }
   $vars['head_title'] = strip_tags($vars['head_title']);                       // Remove any potential html tags
   
-	// Add meta tag on all pages
+  // Add meta tag on all pages
   if (!module_exists('nodewords')) {
     if (theme_get_setting('meta_keywords') !== '') {
       $keywords = '<meta name="keywords" content="'. theme_get_setting('meta_keywords') .'" />';
@@ -162,26 +166,24 @@
  */
 
 function phptemplate_comment_count($comment_count, $node_url) {
-
-	switch (theme_get_setting('display_teaser_comment')) {
-	  case 'hide':
-	    $output = '';
-	    break;
-	  case 'addnew':
-	    $output  = '<div class="comment-count">';
-	    $output .= '<a title="' . $comment_count . ' comments" href="' . $node_url .'#comments" >';
-	    $output .= 'Add new comment';
-	    $output .= '</a>';
-	    $output .= '</div>';
-	    break;
-	
-	  default:
-	    $output  = '<div class="comment-count">';
-	    $output .= '<a title="' . $comment_count . ' comments" href="' . $node_url .'#comments" >';
-	    $output .= $comment_count . ' comments';
-	    $output .= '</a>';
-	    $output .= '</div>';
-	}		
+  switch (theme_get_setting('display_teaser_comment')) {
+     case 'hide':
+        $output = '';
+        break;
+     case 'addnew':
+        $output  = '<div class="comment-count">';
+        $output .= '<a title="'. $comment_count .' '. t('comments') .'" href="'. $node_url .'#comments" >';
+        $output .= t('Add new comment');
+        $output .= '</a>';
+        $output .= '</div>';
+        break;
+     default:
+       $output  = '<div class="comment-count">';
+       $output .= '<a title="'. $comment_count .' '. t('comments') .'" href="'. $node_url .'#comments" >';
+       $output .= $comment_count .' '. t('comments');
+       $output .= '</a>';
+       $output .= '</div>';
+  }
   return $output;
 }
 
@@ -190,14 +192,13 @@
  */
 
 function phptemplate_display_author($name) {
-
-	if (theme_get_setting('display_author') == 0) {
-		$output  = '';
-	}
-	else {
-		$output  = '<span>By ' .$name . '</span>';
-	}
-	return $output;
+  if (theme_get_setting('display_author') == 0) {
+    $output  = '';
+  }
+  else {
+    $output  = '<span>'. t('By') .' '. $name .'</span>';
+  }
+  return $output;
 }
 
 
@@ -206,10 +207,10 @@
  */
 
 function phptemplate_mainwidth_class($dock) {
-
-		$mainwidth = 'width940';
-		if ( $dock ) {$mainwidth = 'width580';}
-    print $mainwidth;
+  $mainwidth = 'width940';
+  if ( $dock ) {
+    $mainwidth = 'width580';}
+  print $mainwidth;
 }
 
 
@@ -228,7 +229,7 @@
 /**
  * Theme FORM.
  */
-function magazeen_theme(){
+function magazeen_theme() {
   return array(
     'comment_form' => array(
       'arguments' => array('form' => NULL),
@@ -237,17 +238,17 @@
   );
 }
 
-	function magazeen_preprocess_comment_form(&$vars) {
-		$vars['submit'] = drupal_render($vars['form']['submit']);
-		$vars['preview'] = drupal_render($vars['form']['preview']);
-		$vars['subject'] = drupal_render($vars['form']['subject']);
-		$vars['comment'] = drupal_render($vars['form']['comment_filter']['comment']);
-		$vars['form']['name']['#title'] = t('Name (required)');
-		$vars['name'] = drupal_render($vars['form']['name']);
-		$vars['form']['mail']['#title'] = t('Mail (will not be published) (required)');
-		$vars['mail'] = drupal_render($vars['form']['mail']);
-		$vars['form']['homepage']['#title'] = t('Website');
-		$vars['homepage'] = drupal_render($vars['form']['homepage']);
-		$vars['comment_preview'] = drupal_render($vars['form']['comment_preview']);
-	}
+function magazeen_preprocess_comment_form(&$vars) {
+  $vars['submit'] = drupal_render($vars['form']['submit']);
+  $vars['preview'] = drupal_render($vars['form']['preview']);
+  $vars['subject'] = drupal_render($vars['form']['subject']);
+  $vars['comment'] = drupal_render($vars['form']['comment_filter']['comment']);
+  $vars['form']['name']['#title'] = t('Name (required)');
+  $vars['name'] = drupal_render($vars['form']['name']);
+  $vars['form']['mail']['#title'] = t('Mail (will not be published) (required)');
+  $vars['mail'] = drupal_render($vars['form']['mail']);
+  $vars['form']['homepage']['#title'] = t('Website');
+  $vars['homepage'] = drupal_render($vars['form']['homepage']);
+  $vars['comment_preview'] = drupal_render($vars['form']['comment_preview']);
+}
 //dsm($vars['form']);
\ No newline at end of file
Index: theme-settings.php
===================================================================
RCS file: /cvs/drupal/contributions/themes/magazeen/theme-settings.php,v
retrieving revision 1.4
diff -u -r1.4 theme-settings.php
--- theme-settings.php	4 Mar 2009 22:32:06 -0000	1.4
+++ theme-settings.php	5 Mar 2009 10:24:00 -0000
@@ -1,5 +1,9 @@
 <?php
 // $Id: theme-settings.php,v 1.4 2009/03/04 22:32:06 zinv Exp $
+/**
+ * @file theme-settings.php
+ * File with theme settings for Magazeen.
+ */
 
 /**
 * Implementation of THEMEHOOK_settings() function.
@@ -82,26 +86,26 @@
     '#collapsible' => TRUE,
     '#collapsed' => FALSE,
   );
-		  // Comment Title
-		  $form['tnt_container']['general_settings']['comment']['comment_title'] = array(
-		    '#type' => 'textfield',
-		    '#title' => t('Comment Title'),
-		    '#description' => t('Customize the title for the comments box'),
-		    '#size' => 60,
-		    '#default_value' => $settings['comment_title'],
-		  );
-
-      // Display Teaser Comment
-      $form['tnt_container']['general_settings']['comment']['display_teaser_comment'] = array(
-        '#type'          => 'select',
-        '#title'         => t('Option to display comment count in teaser if less than 1'),
-        '#default_value' => $settings["display_teaser_comment"],
-        '#options'       => array(
-                              'normal' => t('Display comment count'),
-                              'hide' => t('Don\'t display comment count'),
-                              'addnew' => t('Display "Add new comment"'),
-                            ),
-      );
+  // Comment Title
+  $form['tnt_container']['general_settings']['comment']['comment_title'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Comment Title'),
+    '#description' => t('Customize the title for the comments box'),
+    '#size' => 60,
+    '#default_value' => $settings['comment_title'],
+  );
+
+  // Display Teaser Comment
+  $form['tnt_container']['general_settings']['comment']['display_teaser_comment'] = array(
+    '#type'          => 'select',
+    '#title'         => t('Option to display comment count in teaser if less than 1'),
+    '#default_value' => $settings["display_teaser_comment"],
+    '#options'       => array(
+                          'normal' => t('Display comment count'),
+                          'hide' => t('Don\'t display comment count'),
+                          'addnew' => t('Display "Add new comment"'),
+  ),
+  );
 
   // SEO settings
   $form['tnt_container']['seo'] = array(
@@ -207,7 +211,8 @@
       '#rows' => 6,
       '#default_value' => $settings['meta_description'],
     );
-  } else {
+  } 
+  else {
       $form['tnt_container']['seo']['meta']['#description'] = 'NOTICE: You currently have the "nodewords" module installed and enabled, so the meta tag theme settings have been disabled to prevent conflicts.  If you later wish to re-enable the meta tag theme settings, you must first disable the "nodewords" module.';
       $form['tnt_container']['seo']['meta']['meta_keywords']['#disabled'] = 'disabled';
       $form['tnt_container']['seo']['meta']['meta_description']['#disabled'] = 'disabled';

