[pLog-svn] r7219 - plugins/branches/lifetype-1.2/sociable
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue May 6 13:05:09 EDT 2014
Author: jondaley
Date: 2014-05-06 13:05:09 -0400 (Tue, 06 May 2014)
New Revision: 7219
Modified:
plugins/branches/lifetype-1.2/sociable/README.txt
plugins/branches/lifetype-1.2/sociable/pluginsociable.class.php
Log:
we already have a post object, might as well use it
Modified: plugins/branches/lifetype-1.2/sociable/README.txt
===================================================================
--- plugins/branches/lifetype-1.2/sociable/README.txt 2014-04-29 03:45:44 UTC (rev 7218)
+++ plugins/branches/lifetype-1.2/sociable/README.txt 2014-05-06 17:05:09 UTC (rev 7219)
@@ -13,14 +13,12 @@
3. Next you need to add the following to post.template:
- {assign var="sociablePostId" value=$post->getId()}
- {$sociable->show($sociablePostId)}
+ {$sociable->show($post)}
[EXAMPLE (From the template 'Falling Leaves with plug-ins]
{assign var="postDate" value=$post->getDateObject()}
{assign var="postOwner" value=$post->getUserInfo()}
-{assign var="sociablePostId" value=$post->getId()}
<DIV class=post>
<H2 class=storytitle ><A class=aposted
@@ -42,7 +40,7 @@
| <A
href="{$url->postPermalink($post)}#comments">{$locale->tr("comment
on this")} ({$post->getTotalComments()})</A>
- {$sociable->show($sociablePostId)}
+ {$sociable->show($post)}
</DIV>
</DIV>
<DIV class=sep></DIV>
Modified: plugins/branches/lifetype-1.2/sociable/pluginsociable.class.php
===================================================================
--- plugins/branches/lifetype-1.2/sociable/pluginsociable.class.php 2014-04-29 03:45:44 UTC (rev 7218)
+++ plugins/branches/lifetype-1.2/sociable/pluginsociable.class.php 2014-05-06 17:05:09 UTC (rev 7219)
@@ -40,7 +40,7 @@
$this->id = "sociable";
$this->author = "Paul Westbrook";
$this->desc = "The Sociable plugin appends links for your readers to use those sites to the end of each of your blog's posts, increasing your potential audience.";
- $this->version = "20070226";
+ $this->version = "20140506";
$this->locales = Array( "en_UK");
@@ -88,7 +88,7 @@
}
- function show($postId)
+ function show($post)
{
global $sociable_builtin_known_sites;
@@ -109,7 +109,6 @@
$rg = $this->blogInfo->getBlogRequestGenerator();
$rg->setXHTML( false );
- $post = $articles->getBlogArticle($postId);
$blogSettings = $this->blogInfo->getSettings();
$locale =& $this->blogInfo->getLocale();
More information about the pLog-svn
mailing list