fix subheadings
git-svn-id: file:///home/shish/svn/shimmie2/trunk@259 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
5873029fed
commit
8837e50a8e
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class IndexTheme extends Themelet {
|
|||
$query = "search=".url_escape($search_string);
|
||||
$page_title = html_escape($search_string);
|
||||
if(count($images) > 0) {
|
||||
$page->set_subheading("Page $page_number / $total_pages");
|
||||
$page->set_subheading("Page {$this->page_number} / {$this->total_pages}");
|
||||
}
|
||||
}
|
||||
if($this->page_number > 1 || count($this->search_terms) > 0) {
|
||||
|
|
|
@ -35,11 +35,11 @@ class Layout {
|
|||
|
||||
$contact = empty($contact_link) ? "" : "<br><a href='$contact_link'>Contact</a>";
|
||||
|
||||
if(empty($this->subheading)) {
|
||||
if(empty($page->subheading)) {
|
||||
$subheading = "";
|
||||
}
|
||||
else {
|
||||
$subheading = "<div id='subtitle'>{$this->subheading}</div>";
|
||||
$subheading = "<div id='subtitle'>{$page->subheading}</div>";
|
||||
}
|
||||
|
||||
print <<<EOD
|
||||
|
|
Reference in a new issue