[pLog-svn] r5320 - in plugins/branches/lifetype-1.2/sitemap: .class/view templates

Mark Wu markplace at gmail.com
Tue Apr 17 06:55:57 EDT 2007


Hi Paul:

I just update the site map plugin, and the new site map url should works for
google site map ping manager and google site manager (upload by user him/her
self).

If you think any modifications does not appropriate, please kindly let me
know.

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> mark at devel.lifetype.net
> Sent: Tuesday, April 17, 2007 6:50 PM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r5320 - in 
> plugins/branches/lifetype-1.2/sitemap: .class/view templates
> 
> Author: mark
> Date: 2007-04-17 06:49:44 -0400 (Tue, 17 Apr 2007) New Revision: 5320
> 
> Modified:
>    
> plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemapp
> luginsettingsview.class.php
>    plugins/branches/lifetype-1.2/sitemap/readme.txt
>    
> plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings
> .template
> Log:
> Maybe just pass the sitemapurl to the plugin setting view, 
> instead of whole object.
> 
> Modified: 
> plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemapp
> luginsettingsview.class.php
> ===================================================================
> --- 
> plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemapp
> luginsettingsview.class.php	2007-04-17 10:33:11 UTC (rev 5319)
> +++ 
> plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemapp
> luginsettingsview.class.php	2007-04-17 10:49:44 UTC (rev 5320)
> @@ -23,9 +23,9 @@
>  			// create a view and export the 
> settings to the template
>  			$this->setValue( "pluginEnabled", 
> $pluginEnabled );		
>  			$this->setValue( "notifyGoogleEnabled", 
> $notifyGoogle );
> -			
> +			// get the sitemap url from sitemap 
> plugin and pass to the plugin 
> +setting view
>  			$plugins = $this->_pm->getPlugins();
> -			$this->setValue( 'sitemap', 
> $plugins['sitemap'] );
> +			$this->setValue( 'siteMapUrl', 
> $plugins['sitemap']->getSiteMapUrl() 
> +);
>  		
>  			parent::render();
>  		}
> 
> Modified: plugins/branches/lifetype-1.2/sitemap/readme.txt
> ===================================================================
> --- plugins/branches/lifetype-1.2/sitemap/readme.txt	
> 2007-04-17 10:33:11 UTC (rev 5319)
> +++ plugins/branches/lifetype-1.2/sitemap/readme.txt	
> 2007-04-17 10:49:44 UTC (rev 5320)
> @@ -16,8 +16,9 @@
>  </Files>
>  
>  <Files "sitemap.gz">
> + Order deny,allow
>   Allow from all
> -</files>
> +</Files>
>  
>  Add the following lines to the lifetype/.htaccess
>  
> 
> Modified: 
> plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings
> .template
> ===================================================================
> --- 
> plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings
> .template	2007-04-17 10:33:11 UTC (rev 5319)
> +++ 
> plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings
> .template	2007-04-17 10:49:44 UTC (rev 5320)
> @@ -30,7 +30,7 @@
>    </div>
>  
>    {if $pluginEnabled}
> -    {$locale->tr("link_to_sitemap")}<a 
> href="{$sitemap->getSiteMapUrl()}">{$sitemap->getSiteMapUrl()}</a>
> +    {$locale->tr("link_to_sitemap")}<a 
> + href="{$siteMapUrl}">{$siteMapUrl}</a>
>    {/if}
>   </fieldset>  
>  
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list