[pLog-svn] r4448 - in plog/trunk: class/summary/view install locale templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Dec 29 13:54:51 GMT 2006


Author: oscar
Date: 2006-12-29 13:54:50 +0000 (Fri, 29 Dec 2006)
New Revision: 4448

Modified:
   plog/trunk/class/summary/view/summarycachedview.class.php
   plog/trunk/class/summary/view/summaryrssview.class.php
   plog/trunk/class/summary/view/summaryview.class.php
   plog/trunk/install/defaultconfig.properties.php
   plog/trunk/locale/locale_en_UK.php
   plog/trunk/templates/admin/globalsettings_summary.template
Log:
added a new parameter 'summary_service_name' that will be used to generate page titles in the summary page as well as in the RSS feeds. Hopefully this will make it easier for people to customize their sites.


Modified: plog/trunk/class/summary/view/summarycachedview.class.php
===================================================================
--- plog/trunk/class/summary/view/summarycachedview.class.php	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/class/summary/view/summarycachedview.class.php	2006-12-29 13:54:50 UTC (rev 4448)
@@ -141,6 +141,7 @@
 			}
 			else {
 				$sendOutput = true;
+				$this->setValue( "serviceName", $config->getValue( "summary_service_name" ));
 			}
 
 			if( $sendOutput ) {

Modified: plog/trunk/class/summary/view/summaryrssview.class.php
===================================================================
--- plog/trunk/class/summary/view/summaryrssview.class.php	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/class/summary/view/summaryrssview.class.php	2006-12-29 13:54:50 UTC (rev 4448)
@@ -55,6 +55,7 @@
             $this->_locale =& Locales::getLocale( $config->getValue("default_locale" ));
             $this->_params->setValue( "version", new Version());
             $this->_params->setValue( "locale", $this->_locale );
+			$this->_params->setValue( "serviceName", $config->getValue( "summary_service_name" ));
             $this->_template->assign( $this->_params->getAsArray());
             print $this->_template->fetch( $this->_viewId );
         }

Modified: plog/trunk/class/summary/view/summaryview.class.php
===================================================================
--- plog/trunk/class/summary/view/summaryview.class.php	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/class/summary/view/summaryview.class.php	2006-12-29 13:54:50 UTC (rev 4448)
@@ -52,6 +52,7 @@
             $this->_params->setValue( "version", new Version());
             $this->_params->setValue( "locale", $this->_locale );
 			$this->_params->setValue( "baseurl", $baseurl);
+			$this->_params->setValue( "serviceName", $config->getValue( "summary_service_name" ));			
             $template->assign( $this->_params->getAsArray());
             print $template->fetch();
         }

Modified: plog/trunk/install/defaultconfig.properties.php
===================================================================
--- plog/trunk/install/defaultconfig.properties.php	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/install/defaultconfig.properties.php	2006-12-29 13:54:50 UTC (rev 4448)
@@ -126,4 +126,5 @@
 $Inserts['hard_show_comments_max']                          = "INSERT INTO {dbprefix}config (config_key, config_value, value_type) VALUES ('hard_show_comments_max','50',1);";
 $Inserts['upload_allowed_files']                            = "INSERT INTO {dbprefix}config (config_key, config_value, value_type) VALUES ('upload_allowed_files','', 3);";
 $Inserts['template_load_order']                             = "INSERT INTO {dbprefix}config (config_key, config_value, value_type) VALUES ('template_load_order','2', 1);"; 
+$Inserts['summary_service_name']                             = "INSERT INTO {dbprefix}config (config_key, config_value, value_type) VALUES ('summary_service_name','Your Service Name', 3);"; 
 ?>
\ No newline at end of file

Modified: plog/trunk/locale/locale_en_UK.php
===================================================================
--- plog/trunk/locale/locale_en_UK.php	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/locale/locale_en_UK.php	2006-12-29 13:54:50 UTC (rev 4448)
@@ -1037,7 +1037,7 @@
 
 $messages['blog_users_help'] = 'Users who have access to this blog.';
 
-$messages['summary_welcome_paragraph'] = 'You should place here whatever welcome message you would like your users to see. Or remove this one completely and rearrange the whole page. Or something :) Take a look at templates/summary, that is where all template files that make up this page are stored. You are free to change them in any way you like.';
+$messages['summary_welcome_paragraph'] = 'This message is only a placeholder and should be edited when customizing this page for your service. This message is currently stored in the en_UK locale file but you may also edit the template templates/summary/index.template and place your text there.';
 
 $messages['first_day_of_week'] = 0;
 $messages['first_day_of_week_label'] = 'First Day of Week';
@@ -1221,4 +1221,8 @@
 $messages['help_template_load_order'] = 'Defines in which order template files are searched and loaded. If using \'Load default templates first\', LifeType will try to find files first in the templates/default/ folder and if not available there, then it will load the user\'s template files. If the same template file exists in both places, the default one takes precedence. If set to \'Load user templates first\', user templates are always loaded first and if unavailable, then the default one is used. If the same template file exists in both places, the user template always takes precedence.';
 $messages['template_load_order_user_first'] = 'Load default templates first';
 $messages['template_load_order_default_first'] = 'Load user templates first';
+
+$messages['editBlogUser'] = 'Edit Blog User';
+
+$messages['help_summary_service_name'] = 'Name of your site/service that will appear in several places in the front page as well as in the RSS feeds';
 ?>
\ No newline at end of file

Modified: plog/trunk/templates/admin/globalsettings_summary.template
===================================================================
--- plog/trunk/templates/admin/globalsettings_summary.template	2006-12-29 11:30:30 UTC (rev 4447)
+++ plog/trunk/templates/admin/globalsettings_summary.template	2006-12-29 13:54:50 UTC (rev 4448)
@@ -1,4 +1,10 @@
  <div style="padding-left:10px;" id="summary">
+   <!-- summary_service_name -->	
+   <div class="field">
+    <label for="config[summary_service_name]">summary_service_name</label>
+    <div class="formHelp">{$locale->tr("help_summary_service_name")}</div>
+    <input style="width:100%" type="text" name="config[summary_service_name]" id="config[summary_service_name]" value="{$summary_service_name}"/>
+   </div>
    <!-- summary_page_show_max -->
    <div class="field">
     <label for="config[summary_page_show_max]">summary_page_show_max</label>



More information about the pLog-svn mailing list