Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -107,7 +107,8 @@ |
108 | 108 | static protected $occupied_titles = array(); |
109 | 109 | |
110 | 110 | /************************* |
111 | | - * Utlity methods * |
| 111 | + * (1) linking to liquidthreads pages and |
| 112 | + * (2) figuring out what page you're on and what you need to do. |
112 | 113 | *************************/ |
113 | 114 | |
114 | 115 | function queryStringFromArray( $vars ) { |
— | — | @@ -139,22 +140,12 @@ |
140 | 141 | return $title->getFullURL( $query ); |
141 | 142 | } |
142 | 143 | |
143 | | - /************************* |
144 | | - * Simple HTML methods * |
145 | | - *************************/ |
| 144 | + /************************************************************* |
| 145 | + * Editing methods (here be dragons) * |
| 146 | + * Forget dragons: This section distorts the rest of the code * |
| 147 | + * like a star bending spacetime around itself. * |
| 148 | + *************************************************************/ |
146 | 149 | |
147 | | - function openDiv( $class='', $id='' ) { |
148 | | - $this->output->addHTML( wfOpenElement( 'div', array('class'=>$class, 'id'=>$id) ) ); |
149 | | - } |
150 | | - |
151 | | - function closeDiv() { |
152 | | - $this->output->addHTML( wfCloseElement( 'div' ) ); |
153 | | - } |
154 | | - |
155 | | - /************************************ |
156 | | - * Editing methods (here be dragons) * |
157 | | - *************************************/ |
158 | | - |
159 | 150 | /** |
160 | 151 | * Return an HTML form element whose value is gotten from the request. |
161 | 152 | * TODO: figure out a clean way to expand this to other forms. |
— | — | @@ -468,6 +459,14 @@ |
469 | 460 | $this->output->addHTML( wfCloseElement( 'dl') ); |
470 | 461 | $this->headerLevel -= 1; |
471 | 462 | } |
| 463 | + |
| 464 | + function openDiv( $class='', $id='' ) { |
| 465 | + $this->output->addHTML( wfOpenElement( 'div', array('class'=>$class, 'id'=>$id) ) ); |
| 466 | + } |
| 467 | + |
| 468 | + function closeDiv() { |
| 469 | + $this->output->addHTML( wfCloseElement( 'div' ) ); |
| 470 | + } |
472 | 471 | |
473 | 472 | function showSummary($t) { |
474 | 473 | if ( !$t->summary() ) return; |