[textpattern] r3283 committed - Add pluggable UI 'article_ui' -> 'recent_articles'.

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 20, 2009, 4:30:00 AM10/20/09
to txp...@googlegroups.com
Revision: 3283
Author: r.wetzlmayr
Date: Tue Oct 20 01:29:00 2009
Log: Add pluggable UI 'article_ui' -> 'recent_articles'.
http://code.google.com/p/textpattern/source/detail?r=3283

Modified:
/development/4.x/textpattern/include/txp_article.php

=======================================
--- /development/4.x/textpattern/include/txp_article.php Tue Oct 20
01:21:33 2009
+++ /development/4.x/textpattern/include/txp_article.php Tue Oct 20
01:29:00 2009
@@ -505,10 +505,11 @@
'<div id="recent" class="toggle"
style="display:'.(get_pref('pane_article_recent_visible') ? 'block' : 'none').'">';

$recents = safe_rows_start("Title, ID",'textpattern',"1=1 order by
LastMod desc limit 10");
+ $ra = '';

if ($recents)
{
- echo '<ul class="plain-list">';
+ $ra = '<ul class="plain-list">';

while($recent = nextRow($recents))
{
@@ -517,11 +518,12 @@
$recent['Title'] = gTxt('untitled').sp.$recent['ID'];
}

- echo n.t.'<li><a
href="?event=article'.a.'step=edit'.a.'ID='.$recent['ID'].'">'.escape_title($recent['Title']).'</a></li>';
+ $ra .= n.t.'<li><a
href="?event=article'.a.'step=edit'.a.'ID='.$recent['ID'].'">'.escape_title($recent['Title']).'</a></li>';
}

- echo '</ul>';
- }
+ $ra .= '</ul>';
+ }
+ echo pluggable_ui('article_ui', 'recent_articles', $ra, $rs);

echo '</div>';
}

Reply all
Reply to author
Forward
0 new messages