make block placement more explicit

This commit is contained in:
Shish 2014-10-10 22:19:54 +01:00
parent a066c5ac0e
commit ccfc22aa8b
3 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class NumericScoreTheme extends Themelet {
<input type='submit' value='Delete all votes by this user'>
</form>
";
$page->add_block(new Block("Votes", $html, "main", 60));
$page->add_block(new Block("Votes", $html, "main", 80));
}
public function view_popular($images, $dte) {

View File

@ -39,7 +39,7 @@ class PrivMsgTheme extends Themelet {
</tbody>
</table>
";
$page->add_block(new Block("Private Messages", $html, "main", 10, "private-messages"));
$page->add_block(new Block("Private Messages", $html, "main", 40, "private-messages"));
}
public function display_composer(Page $page, User $from, User $to, $subject="") {
@ -59,7 +59,7 @@ $auth
</table>
</form>
EOD;
$page->add_block(new Block("Write a PM", $html, "main", 20));
$page->add_block(new Block("Write a PM", $html, "main", 50));
}
public function display_message(Page $page, User $from, User $to, PM $pm) {

View File

@ -140,7 +140,7 @@ class UserPageTheme extends Themelet {
$html .= "</td></tr>";
$html .= "<tr><td colspan='2'>(Most recent at top)</td></tr></table>";
$page->add_block(new Block("IPs", $html));
$page->add_block(new Block("IPs", $html, "main", 70));
}
public function display_user_page(User $duser, $stats) {
@ -155,7 +155,7 @@ class UserPageTheme extends Themelet {
if(!$user->is_anonymous()) {
if($user->id == $duser->id || $user->can("edit_user_info")) {
$page->add_block(new Block("Options", $this->build_options($duser), "main", 20));
$page->add_block(new Block("Options", $this->build_options($duser), "main", 60));
}
}
}