+
-
+
@@ -113,7 +113,7 @@
diff --git a/style.css b/style.css
index 05c9c8984a8a84d8879240d765f67462b4e605cb..dbbf90f91212b74e70a3264752aff7becfa78394 100644
--- a/style.css
+++ b/style.css
@@ -564,7 +564,7 @@ h3.post-title {
bottom:0;
right:0;
position:absolute;
- border-bottom:0.4em solid #889398;
+ border-bottom:.4em solid #889398;
}
.post-info span {
@@ -828,6 +828,7 @@ h3.post-title {
margin:.2em 0 0 0;
width:auto;
height:auto;
+ float:left;
}
.author a:link,
@@ -854,7 +855,7 @@ h3.post-title-small {
padding:.5em 0;
width:20em;
height:auto;
- border-bottom:.23em solid #30393d;
+ border-bottom:.2em solid #30393d;
}
.comment-form {
@@ -869,7 +870,7 @@ h3.post-title-small {
.box .comment-form .form-submit {
margin:0 0 1.5em 0;
width:11em;
- height:2.3em;
+ height:27px;
background:url( images/submit-comment.gif) no-repeat top center;
display:inline-block;
outline:0;
@@ -938,7 +939,7 @@ h3.post-title-small {
}
.page-node .post-title {
- border-bottom:0.15em solid #30393D;
+ border-bottom:0.14em solid #30393D;
}
.page-comment .full {
@@ -950,10 +951,6 @@ h3.post-title-small {
border:none;
}
-.page-comment .comment-form .form-submit {
- height:1.9em;
-}
-
/** Side Bar **/
.sidebar {
float:right;
@@ -1434,10 +1431,10 @@ div.view div.views-admin-links a{
html.js input.form-autocomplete {
background-image: url(images/throbber.gif);
background-repeat: no-repeat;
- background-position: 100% .6em; /* LTR */
+ background-position: 100% .7em; /* LTR */
}
html.js input.throbbing {
- background-position: 100% -1.1em; /* LTR */
+ background-position: 100% -1.05em; /* LTR */
}
fieldset,
diff --git a/template.php b/template.php
index 5b0c659568745dee862949510ed6f0809f4a97c0..bb37529147acfa8eb7d23266730a47078e1613c3 100644
--- a/template.php
+++ b/template.php
@@ -15,6 +15,7 @@ if (is_null(theme_get_setting('user_notverified_display'))) {
'breadcrumb_display' => 0,
'user_notverified_display' => 1,
'comment_title' => 'Leave a Response',
+ 'display_author' => 1,
'display_teaser_comment' => 'normal',
'front_page_title_display' => 'title_slogan',
'page_title_display_custom' => '',
@@ -157,40 +158,54 @@ function phptemplate_username($object) {
}
/**
- * Display or hide comment count
+ * Display comment count
*/
function phptemplate_comment_count($comment_count, $node_url) {
-switch (theme_get_setting('display_teaser_comment')) {
- case 'hide':
- $output = '';
- break;
- case 'addnew':
- $output = '
';
- $output .= '';
- $output .= 'Add new comment';
- $output .= '';
- $output .= '
';
- break;
-
- default:
- $output = '';
- $output .= '';
- $output .= $comment_count . ' comments';
- $output .= '';
- $output .= '
';
-}
-
+ switch (theme_get_setting('display_teaser_comment')) {
+ case 'hide':
+ $output = '';
+ break;
+ case 'addnew':
+ $output = '';
+ $output .= '';
+ $output .= 'Add new comment';
+ $output .= '';
+ $output .= '
';
+ break;
+
+ default:
+ $output = '';
+ $output .= '';
+ $output .= $comment_count . ' comments';
+ $output .= '';
+ $output .= '
';
+ }
return $output;
}
+/**
+ * Display author name in page
+ */
+
+function phptemplate_display_author($name) {
+
+ if (theme_get_setting('display_author') == 0) {
+ $output = '';
+ }
+ else {
+ $output = 'By ' .$name . '';
+ }
+ return $output;
+}
+
/**
* Adds 'width940' or 'width580' classes to the main content as needed.
*/
-function mainwidth_class( $dock ) {
+function phptemplate_mainwidth_class($dock) {
$mainwidth = 'width940';
if ( $dock ) {$mainwidth = 'width580';}
diff --git a/theme-settings.php b/theme-settings.php
index 444665fc3a9a6e385a3fc3104102b83279fc2df5..80900bef544bf62b852d748e0d13a5319c0d7960 100644
--- a/theme-settings.php
+++ b/theme-settings.php
@@ -19,6 +19,7 @@ function phptemplate_settings($saved_settings) {
'breadcrumb_display' => 0,
'user_notverified_display' => 1,
'comment_title' => 'Leave a Response',
+ 'display_author' => 1,
'display_teaser_comment' => 'normal',
'front_page_title_display' => 'title_slogan',
'page_title_display_custom' => '',
@@ -61,6 +62,19 @@ function phptemplate_settings($saved_settings) {
'#default_value' => $settings['user_notverified_display'],
);
+ // Page setting
+ $form['tnt_container']['general_settings']['page'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Page setting'),
+ '#collapsible' => TRUE,
+ '#collapsed' => FALSE,
+ );
+ $form['tnt_container']['general_settings']['page']['display_author'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Display author name in pages'),
+ '#default_value' => $settings['display_author'],
+ );
+
// Comment
$form['tnt_container']['general_settings']['comment'] = array(
'#type' => 'fieldset',
@@ -89,7 +103,6 @@ function phptemplate_settings($saved_settings) {
),
);
-
// SEO settings
$form['tnt_container']['seo'] = array(
'#type' => 'fieldset',