static function loadDefaultSettings() { new Setting("home_page", "editor", "", "home_page"); new Setting("site_name", "text", "", "general", SITENAME); new Setting("site_email", "email", "", "general", SITEEMAIL); new Setting("css_cache", "dropdown", array(true => "Yes", false => "No"), "general", true); new Setting("default_access", "dropdown", Access::accessHandlerDropdown()); new Setting("debug_mode", "dropdown", array("no" => "No", "yes" => "Yes")); new Setting("wrap_views", "dropdown", array("no" => "No", "yes" => "Yes")); new Setting("show_translations", "dropdown", array("no" => "No", "yes" => "Yes")); new Setting("hide_socia_link", "dropdown", array("no" => "No", "yes" => "Yes")); }
<?php /* * *********************************************************************** * * SocialApparatus CONFIDENTIAL * __________________ * * [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $options = array(); $label = Vars::get("label"); $value = Vars::get("value"); $options = Access::accessHandlerDropdown(); if (!adminLoggedIn()) { unset($options['Admin']); } echo display("input/dropdown", array("label" => $label, "name" => "access_id", "options_values" => $options, "value" => $value));