[pLog-svn] r5774 - in plog/branches/lifetype-1.2: class/data/pager locale/admin templates/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Aug 2 16:27:48 EDT 2007
Author: oscar
Date: 2007-08-02 16:27:48 -0400 (Thu, 02 Aug 2007)
New Revision: 5774
Modified:
plog/branches/lifetype-1.2/class/data/pager/pager.class.php
plog/branches/lifetype-1.2/locale/admin/locale_ca_ES.php
plog/branches/lifetype-1.2/locale/admin/locale_de_DE.php
plog/branches/lifetype-1.2/locale/admin/locale_en_UK.php
plog/branches/lifetype-1.2/locale/admin/locale_es_ES.php
plog/branches/lifetype-1.2/locale/admin/locale_fr_FR.php
plog/branches/lifetype-1.2/locale/admin/locale_gl_ES.php
plog/branches/lifetype-1.2/locale/admin/locale_it_IT.php
plog/branches/lifetype-1.2/locale/admin/locale_nl_NL.php
plog/branches/lifetype-1.2/locale/admin/locale_ru_RU.php
plog/branches/lifetype-1.2/locale/admin/locale_tt_RU.php
plog/branches/lifetype-1.2/locale/admin/locale_zh_CN.php
plog/branches/lifetype-1.2/locale/admin/locale_zh_TW.php
plog/branches/lifetype-1.2/templates/admin/blogcategories.template
plog/branches/lifetype-1.2/templates/admin/blogtemplates.template
plog/branches/lifetype-1.2/templates/admin/editarticlecategories.template
plog/branches/lifetype-1.2/templates/admin/editcomments.template
plog/branches/lifetype-1.2/templates/admin/editposts.template
plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template
plog/branches/lifetype-1.2/templates/admin/globalarticlecategories.template
plog/branches/lifetype-1.2/templates/admin/resources.template
plog/branches/lifetype-1.2/templates/admin/siteblogs.template
plog/branches/lifetype-1.2/templates/admin/siteusers.template
plog/branches/lifetype-1.2/templates/admin/statistics.template
Log:
Implemented feature request http://bugs.lifetype.net/view.php?id=1364 -- next to each one of the filtering options (the ones within the "show by" block in places like "edit comments", "edit trackbacks", etc) there is now a link that includes the
full link to that page so that users can bookmark their most used filters and access them quickly, rather than going to the needed page, compose the filter and wait till it loads again.
Modified: plog/branches/lifetype-1.2/class/data/pager/pager.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/pager/pager.class.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/class/data/pager/pager.class.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -233,6 +233,14 @@
}
/**
+ * @return Returns a link to current page
+ */
+ function getCurrentPageLink()
+ {
+ return $this->_pageLinks[$this->getCurrentPage()];
+ }
+
+ /**
* @return returns the link to the first page
*/
function getFirstPageLink()
@@ -291,7 +299,8 @@
*/
function _init()
{
- $this->_totalPages = ceil($this->_totalRegs / $this->_regsForPage);
+ $pages = ceil($this->_totalRegs / $this->_regsForPage);
+ $this->_totalPages = $pages == 0 ? 1 : $pages;
$this->_startPage = 1;
$this->_endPage = $this->_totalPages;
$this->_pageLinks = $this->generateLinks();
Modified: plog/branches/lifetype-1.2/locale/admin/locale_ca_ES.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_ca_ES.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_ca_ES.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1209,4 +1209,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'Edit';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_de_DE.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_de_DE.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_de_DE.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1193,4 +1193,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'ändern';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
Modified: plog/branches/lifetype-1.2/locale/admin/locale_en_UK.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_en_UK.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_en_UK.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1188,4 +1188,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'Edit';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_es_ES.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_es_ES.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_es_ES.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1200,4 +1200,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'Editar';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_fr_FR.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_fr_FR.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_fr_FR.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -992,4 +992,7 @@
$messages['mb'] = 'Mo';
$messages['gb'] = 'Go';
$messages['edit'] = 'Éditer';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_gl_ES.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_gl_ES.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_gl_ES.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1209,4 +1209,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Xb';
$messages['edit'] = 'Editar';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_it_IT.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_it_IT.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_it_IT.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1187,4 +1187,7 @@
$messages['mb'] = 'MB';
$messages['gb'] = 'GB';
$messages['edit'] = 'Modifica';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_nl_NL.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_nl_NL.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_nl_NL.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1266,4 +1266,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'Edit';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_ru_RU.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_ru_RU.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_ru_RU.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1174,4 +1174,7 @@
$messages['mb'] = 'Mb';
$messages['gb'] = 'Gb';
$messages['edit'] = 'Правка';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_tt_RU.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_tt_RU.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_tt_RU.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1177,5 +1177,6 @@
$messages['gb'] = 'Гб';
$messages['edit'] = 'Үзгәртү';
-
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_zh_CN.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_zh_CN.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_zh_CN.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1188,4 +1188,7 @@
$messages['mb'] = 'MB';
$messages['gb'] = 'DB';
$messages['edit'] = '编辑';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/locale/admin/locale_zh_TW.php
===================================================================
--- plog/branches/lifetype-1.2/locale/admin/locale_zh_TW.php 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/locale/admin/locale_zh_TW.php 2007-08-02 20:27:48 UTC (rev 5774)
@@ -1188,4 +1188,7 @@
$messages['mb'] = 'MB';
$messages['gb'] = 'DB';
$messages['edit'] = '編輯';
+
+/// new strings for LT 1.2.5 ///
+$messages['bookmark_this_filter'] = 'Bookmark this filter';
?>
\ No newline at end of file
Modified: plog/branches/lifetype-1.2/templates/admin/blogcategories.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/blogcategories.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/blogcategories.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -19,6 +19,13 @@
<input type="hidden" name="op" value="editBlogCategories" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/blogtemplates.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/blogtemplates.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/blogtemplates.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -28,7 +28,7 @@
<tr>
<td>
{if $blogTemplate->getName() != $sitetemplate->getName()}
- <input class="checkbox" type="checkbox" name="templateIds[{counter}]" value="{$sitetemplate->getName()}" />
+ <input class="checkbox" type="checkbox" name="templateIds[{counter}]" value="{$sitetemplate->getName()}" />
{/if}
</td>
<td class="col_highlighted">
Modified: plog/branches/lifetype-1.2/templates/admin/editarticlecategories.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editarticlecategories.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/editarticlecategories.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -27,6 +27,14 @@
<input type="hidden" name="op" value="editArticleCategories" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
+
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/editcomments.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editcomments.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/editcomments.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -44,6 +44,13 @@
<input type="hidden" name="articleId" value="{if $post}{$post->getId()}{else}0{/if}" />
<input type="submit" name="show" value="{$locale->tr("show")}" class="submit" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/editposts.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editposts.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/editposts.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -20,7 +20,6 @@
<form id="showBy" action="admin.php" method="post">
<fieldset>
<legend>{$locale->tr("show_by")}</legend>
-
<div class="list_nav_option">
<label for="showCategory">{$locale->tr("category")}</label>
<br />
@@ -76,6 +75,13 @@
<input type="submit" name="Show" value="{$locale->tr("show")}" class="submit" />
</div>
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
+
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -45,6 +45,13 @@
<input type="submit" name="show" value="{$locale->tr("show")}" class="submit" />
</div>
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
+
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/globalarticlecategories.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/globalarticlecategories.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/globalarticlecategories.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -18,6 +18,13 @@
<input type="hidden" name="op" value="editGlobalArticleCategories" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/resources.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/resources.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/resources.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -42,6 +42,13 @@
<input type="hidden" name="op" value="resources" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/siteblogs.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/siteblogs.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/siteblogs.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -33,6 +33,13 @@
<input type="hidden" name="op" value="editSiteBlogs" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/siteusers.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/siteusers.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/siteusers.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -42,6 +42,14 @@
<input type="hidden" name="op" value="editSiteUsers" />
<input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
+
+ <div class="list_nav_option">
+ <br/>
+ <a href="{$pager->getCurrentPageLink()}" title="{$locale->tr("bookmark_this_filter")}">
+ <img style="border:0px" src="imgs/admin/icon_link-16.png" alt="{$locale->tr("bookmark_this_filter")}" />
+ </a>
+ </div>
+
</fieldset>
</form>
</div>
Modified: plog/branches/lifetype-1.2/templates/admin/statistics.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/statistics.template 2007-08-02 20:26:59 UTC (rev 5773)
+++ plog/branches/lifetype-1.2/templates/admin/statistics.template 2007-08-02 20:27:48 UTC (rev 5774)
@@ -43,7 +43,7 @@
<td>
<div class="list_action_button">
{check_perms perm=update_blog_stats}
- <a href="?op=deleteReferrer&referrerId={$referrer->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete_trackback")}" /></a>
+ <a href="?op=deleteReferrer&referrerId={$referrer->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
{/check_perms}
</div>
</td>
More information about the pLog-svn
mailing list