[pLog-svn] r1101 - plog/trunk/templates/standard-with-plugins
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue Feb 15 18:53:20 GMT 2005
Author: mark
Date: 2005-02-15 18:53:20 +0000 (Tue, 15 Feb 2005)
New Revision: 1101
Added:
plog/trunk/templates/standard-with-plugins/delicious.template
plog/trunk/templates/standard-with-plugins/flickr.template
Modified:
plog/trunk/templates/standard-with-plugins/footer.template
plog/trunk/templates/standard-with-plugins/readme.txt
Log:
Add flickr and delicious plugin to standard-with-plugins. And also modify readme.txt regarding to these changes.
Added: plog/trunk/templates/standard-with-plugins/delicious.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/delicious.template 2005-02-15 18:51:13 UTC (rev 1100)
+++ plog/trunk/templates/standard-with-plugins/delicious.template 2005-02-15 18:53:20 UTC (rev 1101)
@@ -0,0 +1,14 @@
+{include file="$blogtemplate/header.template"}
+{if !empty($delicious)}
+ {if $delicious->isEnabled()}
+ {assign var=tagId value=$smarty.request.tag}
+ {assign var=deliciousTags value=$delicious->getTagList()}
+ {foreach item=deliciousTag from=$deliciousTags}
+ {math equation="ceil(x/y)+1" assign=fontsize x=$deliciousTag.count y=5}
+ <font size={$fontsize}><a href="{$deliciousTag.deliciousUrl}" style="border-bottom: 0px;" title="{$deliciousTag.count} Posts">{$deliciousTag.id}</a></font>
+ {/foreach}
+ {else}
+ {$locale->tr("error_delicious_not_enabled")}
+ {/if}
+{/if}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file
Added: plog/trunk/templates/standard-with-plugins/flickr.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/flickr.template 2005-02-15 18:51:13 UTC (rev 1100)
+++ plog/trunk/templates/standard-with-plugins/flickr.template 2005-02-15 18:53:20 UTC (rev 1101)
@@ -0,0 +1,75 @@
+{include file="$blogtemplate/header.template"}
+{if !empty($flickr)}
+ <script type="text/javascript" src="plugins/flickr/js/annotation/annotation.js"></script>
+ {literal}
+ <STYLE TYPE="text/css">
+ <!--
+ a.annotation {
+ position: absolute;
+ border: 2px solid yellow;
+ padding: 0;
+ display: none;
+ opacity: 0.2;
+ -moz-opacity: 0.2;
+ filter: alpha(opacity=20);
+ }
+ a.annotation span {
+ display: block;
+ width: 100%;
+ height: 100%;
+ background: white;
+ opacity: 0.2;
+ -moz-opacity: 0.2;
+ filter: alpha(opacity=20);
+ }
+ a.annotation:hover {
+ background: white;
+ opacity: 0.2;
+ -moz-opacity: 0.2;
+ filter: alpha(opacity=20);
+ border: 2px solid blue;
+ }
+ -->
+ </STYLE>
+ {/literal}
+
+ {if $flickr->isEnabled()}
+ {assign var=albumId value=$smarty.request.album}
+ {assign var=photoId value=$smarty.request.photo}
+ {assign var=secretId value=$smarty.request.secret}
+ {if $albumId != NULL && $photoId != NULL && secretId != NULL}
+ {assign var=flickrPhotoInfo value=$flickr->getPhotoInfo($photoId,$secretId)}
+ <h3>{$locale->tr("flickr_photo_title")} {$flickrPhotoInfo.title}</h3>
+ <a href="{$flickrPhotoInfo.originalimageUrl}"><img class="annotated" src="{$flickrPhotoInfo.resizeimageUrl}" alt="" usemap="imgmap" /></a><br />
+ {assign var=flickrNotes value=$flickrPhotoInfo.notes}
+ <map id="imgmap">
+ {foreach item=flickrNote from=$flickrNotes}
+ <area alt="" title="{$flickrNote.noteDesc}" nohref="nohref" shape="rect" coords="{$flickrNote.noteX},{$flickrNote.noteY},{$flickrNote.noteX+$flickrNote.noteW-1},{$flickrNote.noteY+$flickrNote.noteH-1}" />
+ {/foreach}
+ </map>
+ {assign var=flickrTags value=$flickrPhotoInfo.tags}
+ {$locale->tr("flickr_photo_description")} {$flickrPhotoInfo.description}<br />
+ {$locale->tr("flickr_photo_date")} {$flickrPhotoInfo.date}<br />
+ {$locale->tr("flickr_photo_tag")} {foreach item=flickrTag from=$flickrTags}<a href="{$flickrTag.tagUrl}">{$flickrTag.tagName}</a> {/foreach}<br />
+ {$locale->tr("flickr_photo_url")} <a href="{$flickrPhotoInfo.flickrUrl}">{$locale->tr("flickr_photo_see_url")} ({$flickrPhotoInfo.comments} {$locale->tr("comments")})</a><br />
+ {elseif $albumId != NULL && ($photoId == NULL || secretId == NULL)}
+ {assign var=flickrPhotos value=$flickr->getPhotos($albumId)}
+ {foreach item=flickrPhoto from=$flickrPhotos}
+ <a href="{$flickrPhoto.photoUrl}"><img src="{$flickrPhoto.thumbnailUrl}" alt="" /></a>
+ {/foreach}
+ {else}
+ {assign var=flickrAlbums value=$flickr->getPhotoList()}
+ {foreach name=flickrAlbum item=flickrAlbum from=$flickrAlbums}
+ <a href="{$flickrAlbum.albumUrl}"><img src="{$flickrAlbum.thumbnailUrl}" alt="{$flickrAlbum.title}" /></a><br />
+ {$locale->tr("flickr_album_title")} {$flickrAlbum.title} <br />
+ {$locale->tr("flickr_album_description")} {$flickrAlbum.description} <br />
+ {$locale->tr("flickr_album_photos")} <a href="{$flickrAlbum.albumUrl}">{$flickrAlbum.photos}</a> <br />
+ {$locale->tr("flickr_album_url")} <a href="{$flickrAlbum.flickrUrl}">{$locale->tr("flickr_album_see_url")}</a> <br /><br />
+ {/foreach}
+ {assign var=totalAlbums value=$smarty.foreach.flickrAlbum.total}
+ {/if}
+ {else}
+ {$locale->tr("error_flickr_not_enabled")}
+ {/if}
+{/if}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file
Modified: plog/trunk/templates/standard-with-plugins/footer.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/footer.template 2005-02-15 18:51:13 UTC (rev 1100)
+++ plog/trunk/templates/standard-with-plugins/footer.template 2005-02-15 18:53:20 UTC (rev 1101)
@@ -9,6 +9,16 @@
<li><a title="{$locale->tr("archives")}" href="{$url->templatePage("archives")}">{$locale->tr("archives")}</a></li>
<li><a title="{$locale->tr("albums")}" href="{$url->albumLink()}">{$locale->tr("albums")}</a></li>
<li><a title="{$locale->tr("links")}" href="{$url->templatePage("links")}">{$locale->tr("links")}</a></li>
+ {if !empty($flickr)}
+ {if $flickr->isEnabled()}
+ <li><a title="{$locale->tr("flickr")}" href="{$flickr->pluginTemplatePage()}">{$locale->tr("flickr")}</a></li>
+ {/if}
+ {/if}
+ {if !empty($delicious)}
+ {if $delicious->isEnabled()}
+ <li><a title="{$locale->tr("delicious")}" href="{$delicious->pluginTemplatePage()}">{$locale->tr("delicious")}</a></li>
+ {/if}
+ {/if}
</ul>
</div>
Modified: plog/trunk/templates/standard-with-plugins/readme.txt
===================================================================
--- plog/trunk/templates/standard-with-plugins/readme.txt 2005-02-15 18:51:13 UTC (rev 1100)
+++ plog/trunk/templates/standard-with-plugins/readme.txt 2005-02-15 18:53:20 UTC (rev 1101)
@@ -17,6 +17,8 @@
8. AuthImage
9. Smileys
10. Drop Case
+11. Flickr
+12. Del.icio.us
Notice:
All plugin sections rounded with two {if} statements
More information about the pLog-svn
mailing list