diff --git a/contrib/blocks/main.php b/contrib/blocks/main.php index 27d5a124..6cb7d0d1 100644 --- a/contrib/blocks/main.php +++ b/contrib/blocks/main.php @@ -74,7 +74,7 @@ class Blocks extends Extension { } } 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")); } } } diff --git a/contrib/blocks/theme.php b/contrib/blocks/theme.php index 7022afed..57763255 100644 --- a/contrib/blocks/theme.php +++ b/contrib/blocks/theme.php @@ -18,6 +18,9 @@ class BlocksTheme extends Themelet { $html .= "
Download"; - $page->add_block(new Block("Music", $html, "main", 0)); + $page->add_block(new Block("Music", $html, "main", 10)); } } ?> diff --git a/contrib/handle_svg/theme.php b/contrib/handle_svg/theme.php index ed4697d3..304baf79 100644 --- a/contrib/handle_svg/theme.php +++ b/contrib/handle_svg/theme.php @@ -9,7 +9,7 @@ class SVGFileHandlerTheme extends Themelet { "; - $page->add_block(new Block("Image", $html, "main", 0)); + $page->add_block(new Block("Image", $html, "main", 10)); } } ?> diff --git a/ext/handle_pixel/theme.php b/ext/handle_pixel/theme.php index a3604831..88c14d63 100644 --- a/ext/handle_pixel/theme.php +++ b/ext/handle_pixel/theme.php @@ -56,7 +56,7 @@ class PixelFileHandlerTheme extends Themelet { } "; - $page->add_block(new Block("Image", $html.$zoom, "main", 0)); + $page->add_block(new Block("Image", $html.$zoom, "main", 10)); } } ?> diff --git a/ext/view/theme.php b/ext/view/theme.php index dc39ddaa..c043ff83 100644 --- a/ext/view/theme.php +++ b/ext/view/theme.php @@ -17,7 +17,7 @@ class ViewImageTheme extends Themelet { $page->add_html_header("id}"))."\">"); $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(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)); }