Commit aa633d2a by Scott

Allow 'footer' content at the end of a theme section

parent 09201358
...@@ -851,6 +851,12 @@ ...@@ -851,6 +851,12 @@
$this->output('<h2'.rtrim(' '.@$part['title_tags']).'>'.@$part['title'].'</h2>'); $this->output('<h2'.rtrim(' '.@$part['title_tags']).'>'.@$part['title'].'</h2>');
} }
public function part_footer($part)
{
if (isset($part['footer']))
$this->output($part['footer']);
}
public function form($form) public function form($form)
{ {
if (!empty($form)) { if (!empty($form)) {
...@@ -1289,6 +1295,8 @@ ...@@ -1289,6 +1295,8 @@
$this->ranking_item($item, $class); $this->ranking_item($item, $class);
$this->output('</span>'); $this->output('</span>');
} }
$this->part_footer($ranking);
} }
public function ranking_item($item, $class, $spacer=false) // $spacer is deprecated public function ranking_item($item, $class, $spacer=false) // $spacer is deprecated
...@@ -1484,7 +1492,9 @@ ...@@ -1484,7 +1492,9 @@
public function q_list_and_form($q_list) public function q_list_and_form($q_list)
{ {
if (!empty($q_list)) { if (empty($q_list))
return;
$this->part_title($q_list); $this->part_title($q_list);
if (!empty($q_list['form'])) if (!empty($q_list['form']))
...@@ -1497,7 +1507,8 @@ ...@@ -1497,7 +1507,8 @@
$this->q_list_form($q_list); $this->q_list_form($q_list);
$this->output('</form>'); $this->output('</form>');
} }
}
$this->part_footer($q_list);
} }
public function q_list_form($q_list) public function q_list_form($q_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment