give images priority 10

This commit is contained in:
Shish 2012-03-19 19:09:52 +00:00
parent e71cf291a9
commit 57d687a7e1
8 changed files with 10 additions and 7 deletions

View File

@ -74,7 +74,7 @@ class Blocks extends Extension {
} }
} }
else if($event->get_arg(0) == "list") { else if($event->get_arg(0) == "list") {
$this->theme->display_blocks($database->get_all("SELECT * FROM blocks")); $this->theme->display_blocks($database->get_all("SELECT * FROM blocks ORDER BY area, priority"));
} }
} }
} }

View File

@ -18,6 +18,9 @@ class BlocksTheme extends Themelet {
$html .= "<tr>"; $html .= "<tr>";
$html .= "<td colspan='11'><textarea rows='5' name='content'>".html_escape($block['content'])."</textarea></td>"; $html .= "<td colspan='11'><textarea rows='5' name='content'>".html_escape($block['content'])."</textarea></td>";
$html .= "</tr>\n"; $html .= "</tr>\n";
$html .= "<tr>";
$html .= "<td colspan='11'>&nbsp;</td>";
$html .= "</tr>\n";
$html .= "</form>\n"; $html .= "</form>\n";
} }
$html .= make_form(make_link("blocks/add")); $html .= make_form(make_link("blocks/add"));

View File

@ -20,7 +20,7 @@ class FlashFileHandlerTheme extends Themelet {
wmode='opaque' wmode='opaque'
type='application/x-shockwave-flash'></embed> type='application/x-shockwave-flash'></embed>
</object>"; </object>";
$page->add_block(new Block("Flash Animation", $html, "main", 0)); $page->add_block(new Block("Flash Animation", $html, "main", 10));
} }
} }
?> ?>

View File

@ -6,7 +6,7 @@ class IcoFileHandlerTheme extends Themelet {
$html = " $html = "
<img id='main_image' src='$ilink'> <img id='main_image' src='$ilink'>
"; ";
$page->add_block(new Block("Image", $html, "main", 0)); $page->add_block(new Block("Image", $html, "main", 10));
} }
} }
?> ?>

View File

@ -17,7 +17,7 @@ class MP3FileHandlerTheme extends Themelet {
type='application/x-shockwave-flash'></embed> type='application/x-shockwave-flash'></embed>
</object> </object>
<p><a href='$ilink'>Download</a>"; <p><a href='$ilink'>Download</a>";
$page->add_block(new Block("Music", $html, "main", 0)); $page->add_block(new Block("Music", $html, "main", 10));
} }
} }
?> ?>

View File

@ -9,7 +9,7 @@ class SVGFileHandlerTheme extends Themelet {
<embed src='$ilink' type='image/svg+xml' width='{$image->width}' height='{$image->height}' /> <embed src='$ilink' type='image/svg+xml' width='{$image->width}' height='{$image->height}' />
</object> </object>
"; ";
$page->add_block(new Block("Image", $html, "main", 0)); $page->add_block(new Block("Image", $html, "main", 10));
} }
} }
?> ?>

View File

@ -56,7 +56,7 @@ class PixelFileHandlerTheme extends Themelet {
} }
</script>"; </script>";
$page->add_block(new Block("Image", $html.$zoom, "main", 0)); $page->add_block(new Block("Image", $html.$zoom, "main", 10));
} }
} }
?> ?>

View File

@ -17,7 +17,7 @@ class ViewImageTheme extends Themelet {
$page->add_html_header("<meta property=\"og:url\" content=\"".make_http(make_link("post/view/{$image->id}"))."\">"); $page->add_html_header("<meta property=\"og:url\" content=\"".make_http(make_link("post/view/{$image->id}"))."\">");
$page->set_heading(html_escape($image->get_tag_list())); $page->set_heading(html_escape($image->get_tag_list()));
$page->add_block(new Block("Navigation", $this->build_navigation($image), "left", 0)); $page->add_block(new Block("Navigation", $this->build_navigation($image), "left", 0));
$page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10)); $page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 20));
//$page->add_block(new Block(null, $this->build_pin($image), "main", 11)); //$page->add_block(new Block(null, $this->build_pin($image), "main", 11));
} }