From d6f93adeacb227c6207c289d8a42b6e955b50c88 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 24 Jan 2024 20:48:49 +0000 Subject: [PATCH] Email Queue - Edit: Ace Editor icon change. --- app/email_queue/email_queue_edit.php | 163 ++++++++++++++++++++++++++- 1 file changed, 161 insertions(+), 2 deletions(-) diff --git a/app/email_queue/email_queue_edit.php b/app/email_queue/email_queue_edit.php index d53f08d734..7c578ea366 100644 --- a/app/email_queue/email_queue_edit.php +++ b/app/email_queue/email_queue_edit.php @@ -233,6 +233,13 @@ unset($sql, $parameters, $row); } +//load editor preferences/defaults + $setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px'; + $setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt'; + $setting_invisibles = !empty($_SESSION["editor"]["invisibles"]["boolean"]) ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false'; + $setting_indenting = !empty($_SESSION["editor"]["indent_guides"]["boolean"]) ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false'; + $setting_numbering = !empty($_SESSION["editor"]["line_numbers"]["boolean"]) ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true'; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); @@ -241,6 +248,54 @@ $document['title'] = $text['title-email_queue']; require_once "resources/header.php"; + echo "\n"; + + echo "\n"; + //show the content echo "
\n"; echo "\n"; @@ -337,7 +392,77 @@ echo " ".$text['label-email_body']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo "
\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo " \n"; + echo " \n"; + $themes['Light']['chrome']= 'Chrome'; + $themes['Light']['clouds']= 'Clouds'; + $themes['Light']['crimson_editor']= 'Crimson Editor'; + $themes['Light']['dawn']= 'Dawn'; + $themes['Light']['dreamweaver']= 'Dreamweaver'; + $themes['Light']['eclipse']= 'Eclipse'; + $themes['Light']['github']= 'GitHub'; + $themes['Light']['iplastic']= 'IPlastic'; + $themes['Light']['solarized_light']= 'Solarized Light'; + $themes['Light']['textmate']= 'TextMate'; + $themes['Light']['tomorrow']= 'Tomorrow'; + $themes['Light']['xcode']= 'XCode'; + $themes['Light']['kuroir']= 'Kuroir'; + $themes['Light']['katzenmilch']= 'KatzenMilch'; + $themes['Light']['sqlserver']= 'SQL Server'; + $themes['Dark']['ambiance']= 'Ambiance'; + $themes['Dark']['chaos']= 'Chaos'; + $themes['Dark']['clouds_midnight']= 'Clouds Midnight'; + $themes['Dark']['cobalt']= 'Cobalt'; + $themes['Dark']['idle_fingers']= 'idle Fingers'; + $themes['Dark']['kr_theme']= 'krTheme'; + $themes['Dark']['merbivore']= 'Merbivore'; + $themes['Dark']['merbivore_soft']= 'Merbivore Soft'; + $themes['Dark']['mono_industrial']= 'Mono Industrial'; + $themes['Dark']['monokai']= 'Monokai'; + $themes['Dark']['pastel_on_dark']= 'Pastel on dark'; + $themes['Dark']['solarized_dark']= 'Solarized Dark'; + $themes['Dark']['terminal']= 'Terminal'; + $themes['Dark']['tomorrow_night']= 'Tomorrow Night'; + $themes['Dark']['tomorrow_night_blue']= 'Tomorrow Night Blue'; + $themes['Dark']['tomorrow_night_bright']= 'Tomorrow Night Bright'; + $themes['Dark']['tomorrow_night_eighties']= 'Tomorrow Night 80s'; + $themes['Dark']['twilight']= 'Twilight'; + $themes['Dark']['vibrant_ink']= 'Vibrant Ink'; + echo " \n"; + echo "
\n"; echo "
\n"; echo $text['description-email_body']."\n"; echo "\n"; @@ -412,7 +537,41 @@ echo "
"; + + echo "\n"; + echo "\n"; + //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file