-
-
-
+
+
+
+
+
+
@@ -48,7 +100,7 @@
';
@@ -262,8 +267,8 @@ function phptemplate_comment_count($comment_count, $node_url) {
default:
$output = '';
- $output .= '';
- $output .= $comment_count . ' ' . t('comment');
+ $output .= '';
+ $output .= $comment_count .' '. t('comments');
$output .= '';
$output .= '
';
}
@@ -280,7 +285,7 @@ function phptemplate_display_author($name) {
$output = '';
}
else {
- $output = 'By ' .$name . '';
+ $output = ''. t('By') .' '. $name .'';
}
return $output;
}
@@ -322,9 +327,10 @@ function magazeen_preprocess_block(&$vars, $hook) {
function phptemplate_mainwidth_class($right) {
- $mainwidth = 'width940';
- if ( $right ) {$mainwidth = 'width580';}
- print $mainwidth;
+ $mainwidth = 'width940';
+ if ( $right ) {
+ $mainwidth = 'width580';}
+ print $mainwidth;
}
/**
@@ -365,17 +371,17 @@ function magazeen_theme(&$existing, $type, $theme, $path){
);
}
- 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
diff --git a/theme-settings.php b/theme-settings.php
index a559c8f48bb4a9268dba6c691a8f5ab4b145e8b8..518815f7b66f91fda164789ed0e005d8702c07cd 100644
--- a/theme-settings.php
+++ b/theme-settings.php
@@ -1,5 +1,9 @@
TRUE,
'#collapsed' => TRUE,
);
- // 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'],
- );
+ // 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 there no comment'),
- '#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"'),
- ),
- );
+ // 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(
@@ -293,7 +297,8 @@ function phptemplate_settings($saved_settings) {
'#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';