display(); } } /** * Form Component Save */ public static function formComponentSave() { if (Request::post('sandbox_component_save')) { if (Security::check(Request::post('csrf'))) { Option::update('sandbox_template', Request::post('sandbox_form_template')); Request::redirect('index.php?id=themes'); } } } /** * Form Component */ public static function formComponent() { $_templates = Themes::getTemplates(); foreach ($_templates as $template) { $templates[basename($template, '.template.php')] = basename($template, '.template.php'); } echo ( '