Index of /ports/www/lifetype/work/sociable
Name Last modified Size Description
Parent Directory 17-Jan-2008 11:44 -
class/ 02-Aug-2007 12:48 -
locale/ 02-Aug-2007 12:48 -
pluginsociable.class..> 06-Mar-2007 09:31 9k
templates/ 02-Aug-2007 12:48 -
[DESCRIPTION]
Sociable is a port of the WordPress plugin of the same name, written
by Peter Harkins. (http://push.cx/sociable)
The Sociable plugin adds links to social bookmarking sites to each of
your blog posts.
[USAGES]:
1. Upload: Upload all the extract files and directories to
$LifeType_Install_Dir/plugin/sociable
2. Add the following to header.template in the <head> section
{$sociable->showCSS()}
3. Next you need to add the following to post.template:
{assign var="sociablePostId" value=$post->getId()}
{$sociable->show($sociablePostId)}
[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
href="{$url->postPermalink($post)}">{$post->getTopic()}</A></H2>
<DIV class=date>Published on
{$locale->formatDate($postDate,"%H:%M, %m/%d,%Y")}</DIV>
<DIV class=storycontent>
<P>{$post->getText()}</P>
</DIV><BR>
<DIV class=feedback>
<DIV class=meta>Posted under
{foreach name=categories from=$post->getCategories()
item=postcategory}
<a
href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>
{if !$smarty.foreach.categories.last}, {/if}
{/foreach}
| <A
href="{$url->postPermalink($post)}#comments">{$locale->tr("comment
on this")} ({$post->getTotalComments()})</A>
{$sociable->show($sociablePostId)}
</DIV>
</DIV>
<DIV class=sep></DIV>
</DIV>
[END EXAMPLE]