Skip to content
Snippets Groups Projects
Commit d29a78ac authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- Theme/menu bug fixes.

parent e7ae4056
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,9 @@ function cloud_link($type) { ...@@ -51,6 +51,9 @@ function cloud_link($type) {
} }
if ($type == "system") { if ($type == "system") {
if (user_access("access site cloud")) {
menu('cloud', t('site cloud'), 'cloud_page', NULL, MENU_HIDE);
}
if (user_access("administer site cloud")) { if (user_access("administer site cloud")) {
menu("admin/node/syndication/cloud", t("site cloud"), "cloud_admin"); menu("admin/node/syndication/cloud", t("site cloud"), "cloud_admin");
menu("admin/node/syndication/cloud/add", t("add new site"), "cloud_admin"); menu("admin/node/syndication/cloud/add", t("add new site"), "cloud_admin");
...@@ -189,12 +192,8 @@ function cloud_list($limit = 10) { ...@@ -189,12 +192,8 @@ function cloud_list($limit = 10) {
} }
function cloud_page() { function cloud_page() {
if (user_access("access site cloud")) { if (user_access("access site cloud")) {
print theme("header"); print theme("page", cloud_help("cloud") . cloud_list(100));
print theme("box", t("Site cloud"), cloud_help("cloud") . cloud_list(100));
print theme("footer");
} }
} }
...@@ -239,10 +238,10 @@ function cloud_admin() { ...@@ -239,10 +238,10 @@ function cloud_admin() {
default: default:
$output .= cloud_display(); $output .= cloud_display();
} }
return $output; print theme('page', $output);
} }
else { else {
return message_access(); print theme('page', message_access());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment