public function __construct()
 {
     new Setting("who_can_create_blogs", "dropdown", array("everyone" => "Everyone", "admin_only" => "Admin Only"), "general", "everyone");
     new MenuItem(array("name" => "blogs", "label" => "Blogs", "page" => "blogs", "list_class" => "visible-xs hidden-sm visible-md visible-lg"));
     new MenuItem(array("name" => "blogs2", "label" => "Blogs", "page" => "blogs", "menu" => "tools"));
     new StorageType("blog", "title", "text");
     new StorageType("blog", "description", "longtext");
     if (pageArray(0) == "blogs" && (pageArray(1) == "add" || pageArray(1) == "edit") || pageArray(0) == 'home' && pageArray(1) == false) {
         new ViewExtension("tinymce/buttons", "blogs/tinymce");
     } else {
         ViewExtension::remove("tinymce/buttons", "blogs/tinymce");
     }
     if (isEnabledPlugin("groups")) {
         new ViewExtension("groups/right", "blogs/group_blogs");
     } else {
         removeViewExtension("groups/right", "blogs/group_blogs");
     }
 }
 public function __construct()
 {
     new CSS("photo", getSitePath() . "core_plugins/photos/assets/css/photos.css");
     new StorageType("Photo", "description", "text");
     new StorageType("Photoalbum", "description", "text");
     new StorageType("Photoalbum", "icon_filename", "text");
     new FooterJS("photo", getSiteURL() . "core_plugins/photos/assets/js/photo.js", 5000, true);
     new ViewExtension("header:after", "page_elements/photo_selector");
     new ViewExtension("profile/middle", "photos/profile");
     new ViewExtension('pages/home_stats', "pages/photo_stats");
     new ViewExtension("page_elements/site_js", "photos/photo_footer");
     new ViewExtension("tinymce/buttons", "photos/tinymce_button");
     if (isEnabledPlugin("groups")) {
         new ViewExtension("groups/right", "photos/group_photos");
     } else {
         removeViewExtension("groups/right", "photos/group_photos");
     }
     new Metatag("Photo", "title", getSiteName() . " | Photos");
     new MenuItem(array("name" => "photos", "href" => "photos", "label" => "Photos", "menu" => "header_left", "list_class" => "visible-xs hidden-sm visible-md visible-lg"));
     new MenuItem(array("name" => "photos2", "href" => "photos", "label" => "Photos", "menu" => "tools", "page" => "photos"));
 }