[textpattern commit] r3243 - article tab: apply "expanded" class to toggle levers on page load.

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 2, 2009, 7:48:18 AM7/2/09
to txp...@googlegroups.com
Author: r.wetzlmayr
Date: Thu Jul 2 03:34:24 2009
New Revision: 3243

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

Log:
article tab: apply "expanded" class to toggle levers on page load.

Modified: development/4.x/textpattern/include/txp_article.php
==============================================================================
--- development/4.x/textpattern/include/txp_article.php (original)
+++ development/4.x/textpattern/include/txp_article.php Thu Jul 2 03:34:24
2009
@@ -451,7 +451,7 @@

//-- advanced --------------

- echo '<h3 class="plain lever"><a
href="#advanced">'.gTxt('advanced_options').'</a></h3>'.
+ echo '<h3 class="plain
lever'.(get_pref('pane_article_advanced_visible') ? ' expanded' : '').'"><a
href="#advanced">'.gTxt('advanced_options').'</a></h3>'.
'<div id="advanced" class="toggle"
style="display:'.(get_pref('pane_article_advanced_visible') ? 'block' : 'none').'">';

// markup selection
@@ -501,7 +501,7 @@

//-- recent articles --------------

- echo '<h3 class="plain lever"><a
href="#recent">'.gTxt('recent_articles').'</a>'.'</h3>'.
+ echo '<h3 class="plain
lever'.(get_pref('pane_article_recent_visible') ? ' expanded' : '').'"><a
href="#recent">'.gTxt('recent_articles').'</a>'.'</h3>'.
'<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");
@@ -726,7 +726,7 @@
$rs);

//-- "More" section
- echo n.n.'<h3 class="plain lever"><a
href="#more">'.gTxt('more').'</a></h3>',
+ echo n.n.'<h3 class="plain
lever'.(get_pref('pane_article_more_visible') ? ' expanded' : '').'"><a
href="#more">'.gTxt('more').'</a></h3>',
'<div id="more" class="toggle"
style="display:'.(get_pref('pane_article_more_visible') ? 'block' : 'none').'">';

//-- comments stuff --------------
@@ -959,7 +959,7 @@
{
return n.hed(
'<a href="#textile_help">'.gTxt('textile_help').'</a>'
- , 3, ' class="plain lever"').
+ , 3, ' class="plain
lever'.(get_pref('pane_article_textile_help_visible') ? '
expanded' : '').'"').

n.'<div id="textile_help" class="toggle"
style="display:'.(get_pref('pane_article_textile_help_visible') ? 'block' : 'none').'">'.

Reply all
Reply to author
Forward
0 new messages