[pLog-svn] r2337 - plog/branches/plog-1.0.2/templates/admin
mark at devel.plogworld.net
mark at devel.plogworld.net
Fri Jul 15 06:15:45 GMT 2005
Author: mark
Date: 2005-07-15 06:15:44 +0000 (Fri, 15 Jul 2005)
New Revision: 2337
Modified:
plog/branches/plog-1.0.2/templates/admin/newlink.template
plog/branches/plog-1.0.2/templates/admin/newpost.template
Log:
Add "bookmarkit" and "blogit" bookmarklet support.
Modified: plog/branches/plog-1.0.2/templates/admin/newlink.template
===================================================================
--- plog/branches/plog-1.0.2/templates/admin/newlink.template 2005-07-15 02:52:08 UTC (rev 2336)
+++ plog/branches/plog-1.0.2/templates/admin/newlink.template 2005-07-15 06:15:44 UTC (rev 2337)
@@ -1,6 +1,11 @@
{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=newLink title=$locale->tr("newLink")}
-
+{if $smarty.request.linkName}
+ {assign var=linkName value=$smarty.request.linkName}
+{/if}
+{if $smarty.request.linkUrl}
+ {assign var=linkUrl value=$smarty.request.linkUrl}
+{/if}
<form name="newLink" action="admin.php" method="post">
<fieldset class="inputField">
@@ -50,6 +55,13 @@
{/foreach}
</select>
</div>
+
+ <div class="field">
+ <label for="bookmarklet">{$locale->tr("bookmarklet")}</label>
+ <div class="formHelp">{$locale->tr("bookmarklet_help")}</div>
+ <a href="javascript:void(plogbm=window.open('{$url->getAdminUrl()}?op=newLink&linkName='+encodeURIComponent(document.title)+'&linkUrl='+encodeURIComponent(location.href),'plogbm','toolbar=1,status=1,location=1,scrollbars=1,menubar=1,resizable=1'));" onclick="window.alert('{$locale->tr("bookmarklet_help")}');">{$locale->tr("bookmarkit_to_plog")}</a>
+ </div>
+
</fieldset>
<div class="buttons">
<input type="hidden" name="op" value="addLink" />
Modified: plog/branches/plog-1.0.2/templates/admin/newpost.template
===================================================================
--- plog/branches/plog-1.0.2/templates/admin/newpost.template 2005-07-15 02:52:08 UTC (rev 2336)
+++ plog/branches/plog-1.0.2/templates/admin/newpost.template 2005-07-15 06:15:44 UTC (rev 2337)
@@ -1,5 +1,8 @@
{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=newPost title=$locale->tr("newPost")}
+{if $smarty.request.postText}
+ {assign var=postText value=$smarty.request.postText}
+{/if}
{assign var=htmlarea value=$blogsettings->getValue("htmlarea_enabled")}
<script type="text/javascript" src="js/ui/plogui.js"></script>
<script type="text/javascript" src="js/calendar/datetimepicker.js"></script>
@@ -160,6 +163,12 @@
<label for="sendPings">{$locale->tr("send_xmlrpc_pings_help")}</label>
{/if}
</div>
+
+ <div class="field">
+ <br /><label for="bookmarklet">{$locale->tr("bookmarklet")}</label>
+ <div class="formHelp">{$locale->tr("bookmarklet_help")}</div>
+ <a href="javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(plogbm=window.open('{$url->getAdminUrl()}?op=newPost&sendTrackbacks=1&postText='+encodeURIComponent('<p>'+bm+' ... '+'<a href="'+window.location.href+'">'+'{$locale->tr("original_post")}'+'</a></p>'),'plogbm','toolbar=1,status=1,location=1,scrollbars=1,menubar=1,resizable=1'))" onclick="window.alert('{$locale->tr("bookmarklet_help")}');">{$locale->tr("blogit_to_plog")}</a>
+ </div>
<!-- checkbox custom fields -->
{include file="$admintemplatepath/newpost_customfields.template" type=3 fields=$customfields}
More information about the pLog-svn
mailing list