Changeset 1286435
- Timestamp:
- 11/15/2015 02:12:19 AM (10 years ago)
- Location:
- my-custom-css
- Files:
-
- 53 added
- 2 deleted
- 16 edited
- 3 copied
-
assets/icon-256x256.png (modified) (previous)
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
assets/screenshot-4.png (modified) (previous)
-
assets/screenshot-5.png (modified) (previous)
-
tags/2.5 (copied) (copied from my-custom-css/tags/2.4)
-
tags/2.5/lang/default.mo (modified) (previous)
-
tags/2.5/lang/default.pot (modified) (2 diffs)
-
tags/2.5/lang/my-custom-css-it_IT.mo (modified) (previous)
-
tags/2.5/lang/my-custom-css-it_IT.po (modified) (2 diffs)
-
tags/2.5/my-custom-css.php (copied) (copied from my-custom-css/tags/2.4/my-custom-css.php) (18 diffs)
-
tags/2.5/readme.txt (copied) (copied from my-custom-css/tags/2.4/readme.txt) (3 diffs)
-
tags/2.5/scripts (deleted)
-
trunk/editor (added)
-
trunk/editor/_scrolltop.js (added)
-
trunk/editor/ace.js (added)
-
trunk/editor/ace_custom.css (added)
-
trunk/editor/ext-language_tools.js (added)
-
trunk/editor/ext-searchbox.js (added)
-
trunk/editor/index.html (added)
-
trunk/editor/mode-css.js (added)
-
trunk/editor/snippets (added)
-
trunk/editor/snippets/css.js (added)
-
trunk/editor/snippets/index.html (added)
-
trunk/editor/snippets/text.js (added)
-
trunk/editor/textresizer (added)
-
trunk/editor/textresizer/cookie.js (added)
-
trunk/editor/textresizer/index.html (added)
-
trunk/editor/textresizer/textresizer.min.js (added)
-
trunk/editor/textresizer/textresizer_target.js (added)
-
trunk/editor/theme-ambiance.js (added)
-
trunk/editor/theme-chaos.js (added)
-
trunk/editor/theme-chrome.js (added)
-
trunk/editor/theme-clouds.js (added)
-
trunk/editor/theme-clouds_midnight.js (added)
-
trunk/editor/theme-cobalt.js (added)
-
trunk/editor/theme-crimson_editor.js (added)
-
trunk/editor/theme-dawn.js (added)
-
trunk/editor/theme-dreamweaver.js (added)
-
trunk/editor/theme-eclipse.js (added)
-
trunk/editor/theme-github.js (added)
-
trunk/editor/theme-idle_fingers.js (added)
-
trunk/editor/theme-iplastic.js (added)
-
trunk/editor/theme-katzenmilch.js (added)
-
trunk/editor/theme-kr_theme.js (added)
-
trunk/editor/theme-kuroir.js (added)
-
trunk/editor/theme-merbivore.js (added)
-
trunk/editor/theme-merbivore_soft.js (added)
-
trunk/editor/theme-mono_industrial.js (added)
-
trunk/editor/theme-monokai.js (added)
-
trunk/editor/theme-pastel_on_dark.js (added)
-
trunk/editor/theme-solarized_dark.js (added)
-
trunk/editor/theme-solarized_light.js (added)
-
trunk/editor/theme-sqlserver.js (added)
-
trunk/editor/theme-terminal.js (added)
-
trunk/editor/theme-textmate.js (added)
-
trunk/editor/theme-tomorrow.js (added)
-
trunk/editor/theme-tomorrow_night.js (added)
-
trunk/editor/theme-tomorrow_night_blue.js (added)
-
trunk/editor/theme-tomorrow_night_bright.js (added)
-
trunk/editor/theme-tomorrow_night_eighties.js (added)
-
trunk/editor/theme-twilight.js (added)
-
trunk/editor/theme-vibrant_ink.js (added)
-
trunk/editor/theme-xcode.js (added)
-
trunk/editor/worker-css.js (added)
-
trunk/lang/default.mo (modified) (previous)
-
trunk/lang/default.pot (modified) (2 diffs)
-
trunk/lang/my-custom-css-it_IT.mo (modified) (previous)
-
trunk/lang/my-custom-css-it_IT.po (modified) (2 diffs)
-
trunk/mccss.png (added)
-
trunk/my-custom-css.php (modified) (18 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/scripts (deleted)
Legend:
- Unmodified
- Added
- Removed
-
my-custom-css/tags/2.5/lang/default.pot
r1277035 r1286435 3 3 "Project-Id-Version: My Custom CSS\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 3-01-25 19:29+0100\n"5 "POT-Creation-Date: 2015-11-14 18:11+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" 8 "Language-Team: DarkWolf <http://www.darkwolf.it/>\n"8 "Language-Team: SalvatoreN <https://laltroweb.it/>\n" 9 9 "Language: it_IT\n" 10 10 "MIME-Version: 1.0\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: E:\\ my-custom-css\\trunk\\\n"14 "X-Poedit-Basepath: E:\\WordPress\\my-custom-css\\trunk\\\n" 15 15 "X-Poedit-SourceCharset: UTF-8\n" 16 16 "X-Generator: Poedit 1.5.5\n" 17 "X-Poedit-SearchPath-0: E:\\ my-custom-css\\trunk\n"17 "X-Poedit-SearchPath-0: E:\\WordPress\\my-custom-css\\trunk\n" 18 18 19 #: E:\ my-custom-css\trunk/my-custom-css.php:3019 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:108 20 20 msgid "Settings" 21 21 msgstr "" 22 22 23 #: E:\ my-custom-css\trunk/my-custom-css.php:3323 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:111 24 24 msgid "Support" 25 25 msgstr "" 26 26 27 #: E:\my-custom-css\trunk/my-custom-css.php:42 27 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:176 28 msgid "My custom CSS - Backup" 29 msgstr "" 30 31 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:182 32 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 33 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:226 34 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:235 35 msgid "Close now!" 36 msgstr "" 37 38 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:185 39 msgid "I can't list any *.css: 'No file found'... " 40 msgstr "" 41 42 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:194 43 msgid "Erase all backup" 44 msgstr "" 45 46 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:194 47 msgid "Do you want really delete all backup?" 48 msgstr "" 49 50 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:200 51 msgid "File:" 52 msgstr "" 53 54 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:201 55 msgid "Path:" 56 msgstr "" 57 58 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:202 59 msgid "Saved:" 60 msgstr "" 61 62 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:203 63 msgid "Size:" 64 msgstr "" 65 66 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:219 67 msgid "My custom CSS - Erase Backup" 68 msgstr "" 69 70 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:229 71 msgid "I can't delete any *.css: 'No file found'... " 72 msgstr "" 73 74 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:241 75 msgid "bytes, was successfully deleted!!!" 76 msgstr "" 77 78 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:337 79 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:472 28 80 msgid "My Custom CSS Panel" 29 81 msgstr "" 30 82 31 #: E:\ my-custom-css\trunk/my-custom-css.php:4232 msgid " My Custom CSS"83 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:339 84 msgid "Font Size:" 33 85 msgstr "" 34 86 35 #: E:\ my-custom-css\trunk/my-custom-css.php:9336 msgid " Custom CSS Code:"87 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:349 88 msgid "Theme:" 37 89 msgstr "" 38 90 39 #: E:\my-custom-css\trunk/my-custom-css.php:97 91 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:350 92 msgid "" 93 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " 94 "Continue?" 95 msgstr "" 96 97 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:388 98 msgid "Bright:" 99 msgstr "" 100 101 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:405 102 msgid "Dark:" 103 msgstr "" 104 105 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:442 40 106 msgid "Save" 41 107 msgstr "" 42 108 43 #: Description of mccss 44 msgid "" 45 "With this plugin you can put custom css code without edit your theme and/or " 46 "your plugins (really useful in case of any theme/plugin update)." 109 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 110 msgid "No backup found..." 47 111 msgstr "" 112 113 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:450 114 msgid "View backups :)" 115 msgstr "" 116 117 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:450 118 msgid "Click to view all backups!" 119 msgstr "" 120 121 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:472 122 msgid "My Custom CSS" 123 msgstr "" -
my-custom-css/tags/2.5/lang/my-custom-css-it_IT.po
r1277035 r1286435 3 3 "Project-Id-Version: My Custom CSS\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 3-01-25 19:29+0100\n"5 "POT-Creation-Date: 2015-11-14 22:16+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" 8 "Language-Team: DarkWolf <http://www.darkwolf.it/>\n"8 "Language-Team: SalvatoreN <https://laltroweb.it/>\n" 9 9 "Language: it_IT\n" 10 10 "MIME-Version: 1.0\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: C:\\wamp\\www\\my-custom-css\n"15 "X-Poedit-SourceCharset: utf-8\n"14 "X-Poedit-Basepath: E:\\WordPress\\my-custom-css\\trunk\\\n" 15 "X-Poedit-SourceCharset: UTF-8\n" 16 16 "X-Generator: Poedit 1.5.5\n" 17 "X-Poedit-SearchPath-0: C:\\wamp\\www\\my-custom-css\n"17 "X-Poedit-SearchPath-0: E:\\WordPress\\my-custom-css\\trunk\n" 18 18 19 #: E:\ my-custom-css\trunk/my-custom-css.php:3019 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:106 20 20 msgid "Settings" 21 21 msgstr "Opzioni" 22 22 23 #: E:\ my-custom-css\trunk/my-custom-css.php:3323 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:109 24 24 msgid "Support" 25 25 msgstr "Supporto" 26 26 27 #: E:\my-custom-css\trunk/my-custom-css.php:42 27 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:174 28 msgid "My custom CSS - Backup" 29 msgstr "My custom CSS - Backup" 30 31 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:180 32 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:190 33 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:224 34 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:233 35 msgid "Close now!" 36 msgstr "Chiudi ora!" 37 38 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:183 39 msgid "I can't list any *.css: 'No file found'... " 40 msgstr "Non posso elencare nessun *.css: 'File non trovato' ..." 41 42 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 43 msgid "Erase all backup" 44 msgstr "Cancellare tutti i backup" 45 46 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 47 msgid "Do you want really delete all backup?" 48 msgstr "Vuoi davvero eliminare tutti i backup?" 49 50 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:198 51 msgid "File:" 52 msgstr "File:" 53 54 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:199 55 msgid "Path:" 56 msgstr "Percorso:" 57 58 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:200 59 msgid "Saved:" 60 msgstr "Salvato:" 61 62 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:201 63 msgid "Size:" 64 msgstr "Dimensioni:" 65 66 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:217 67 msgid "My custom CSS - Erase Backup" 68 msgstr "My custom CSS - Cancella i backup" 69 70 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:227 71 msgid "I can't delete any *.css: 'No file found'... " 72 msgstr "Non posso eliminare nessun *.css: 'File non trovato' ..." 73 74 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:239 75 msgid "bytes, was successfully deleted!!!" 76 msgstr "byte, è stato cancellato con successo!!!" 77 78 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:336 79 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:471 28 80 msgid "My Custom CSS Panel" 29 81 msgstr "Pannello My Custom CSS" 30 82 31 #: E:\my-custom-css\trunk/my-custom-css.php:42 83 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:338 84 msgid "Font Size:" 85 msgstr "Dimensione dei font:" 86 87 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:348 88 msgid "Theme:" 89 msgstr "Tema:" 90 91 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:349 92 msgid "" 93 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " 94 "Continue?" 95 msgstr "" 96 "Attenzione!!! Questo aggiornerà la pagina intera (i dati non salvati " 97 "andranno persi) - Continuare?" 98 99 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:387 100 msgid "Bright:" 101 msgstr "Luminoso:" 102 103 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:404 104 msgid "Dark:" 105 msgstr "Scuro:" 106 107 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:441 108 msgid "Save" 109 msgstr "Salva" 110 111 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:448 112 msgid "No backup found..." 113 msgstr "Nessun backup trovato..." 114 115 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 116 msgid "View backups :)" 117 msgstr "Visualizza i backup :)" 118 119 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 120 msgid "Click to view all backups!" 121 msgstr "Clicca per vedere tutti i backup!" 122 123 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:471 32 124 msgid "My Custom CSS" 33 125 msgstr "My Custom CSS" 34 126 35 #: E:\my-custom-css\trunk/my-custom-css.php:93 36 msgid "Custom CSS Code:" 37 msgstr "Codice CSS Personale:" 127 #~ msgid "No backup here..." 128 #~ msgstr "Nessun backup qui..." 38 129 39 #: E:\my-custom-css\trunk/my-custom-css.php:97 40 msgid "Save" 41 msgstr "Salva" 130 #~ msgid "Custom CSS Code:" 131 #~ msgstr "Codice CSS Personale:" 42 132 43 #: Description of mccss 44 msgid "" 45 "With this plugin you can put custom css code without edit your theme and/or " 46 "your plugins (really useful in case of any theme/plugin update)." 47 msgstr "" 48 "Con questo plugin puoi inserire codice css personale senza modificare il tuo " 49 "tema e/o i tuoi plugin (molto utile in caso di aggiornamenti)." 133 #~ msgid "" 134 #~ "With this plugin you can put custom css code without edit your theme and/" 135 #~ "or your plugins (really useful in case of any theme/plugin update)." 136 #~ msgstr "" 137 #~ "Con questo plugin puoi inserire codice css personale senza modificare il " 138 #~ "tuo tema e/o i tuoi plugin (molto utile in caso di aggiornamenti)." -
my-custom-css/tags/2.5/my-custom-css.php
r1284549 r1286435 8 8 PS: support file backup and - very important - static css file (fantastic for performance) ;) 9 9 Author: Salvatore Noschese - DarkWolf 10 Version: 2. 410 Version: 2.5 11 11 Author URI: https://laltroweb.it/ 12 12 Text Domain: my-custom-css … … 19 19 } 20 20 21 // Textarea Font size and type (change this if u want big pixel)! 22 function setfontarea() 23 { 24 $setfontarea = '14px "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;'; 25 return $setfontarea; 26 } 21 // Text Domain: my-custom-css 22 load_plugin_textdomain('my-custom-css', false, dirname(plugin_basename(__FILE__)) . '/lang/'); 23 27 24 28 25 function mystylecss_basedir() … … 125 122 // End Add link on plugins page 126 123 127 128 // Icon in base 64129 function mycustomcss_data_icon()130 {131 $mycustomcss_data_icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnNJREFUeNqUU01IVFEU/u77m7/GRqqhbbUpnVAYIULIRoMwmjApaNGiVgViJErUolpE2KKFEIGGi4JK0wpjtCCKqChQxmYKiwojaSW0GJkabGbevNe59zxRalPvvfPuPeee853fK6YubM85FSfiOi7+5xGagKZrC4Y03nY4CdgOoDAEfWJZ03WVyPsR7/DW0DB5MxUxlOfiIvD+CisrAAPQiBybZBXpjsikvc0kPdV2Qtoaysj+ATTdB6It7OX7S+BFuydrYtm9KLBjBf+uSzk0FJpdYOO7a8gzeWqfJw2NlUerKdwQsRbzIxHADAKbDqhUNc6rxKjWasC/DpiooX2YZTsfADr50S3mEykC9HmpLAHA5kUeKPIzwMRm0tGBfXMsf7iFVvKe/EryCiyqjaaKJiurCk3pOL+A3W8oZDI0A8DU0WVwXxWQOYGa8wJ1qWsIw5I1ENyWXBpo/cjKOQLQqRbNaeYXMpx34jVqzwpc79kPQ/hxZGCIAGSLZI4zp2mlYpXzXLBAFLFzQtV4Zg/NiX89YmR8o+cQMq+GEWvcy4HJiYKPQNxqnoPAWtXzrakhDHaTIWUX70upKAe725DNDkOnRnT2j+NOsRmGK5CfHJmtWhplQa+fApMRF908Zj89x+WOhDr78HkMJjXq6mPgNhnnRTkvs687ldxYX7LlyHkD68ApLrqlbOvc6LE26lGZS2FSZgNjQP2jDQfDYS14afzLW6QvNsozSh7BP4h6iXhLL9xb35h29arbEvfOQtLWkNa0Kay8aRrFEXJNHF/1bPrpSTRYOlQ7npxBQ6IP0/0/EyiIMgX67zc47tFfz28BBgBxJMx44bFMEAAAAABJRU5ErkJggg==';132 return $mycustomcss_data_icon;133 }134 135 124 // Change the CSS for this plugin on admin plugins page 136 125 function mycustomcss_admin_style() … … 139 128 if ($pagenow == "plugins.php") 140 129 { 141 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url( ".mycustomcss_data_icon().") no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n";130 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url('".plugin_dir_url(__FILE__)."/mccss.png') no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n"; 142 131 } 143 132 } … … 183 172 <html> 184 173 <head> 185 <title> My custom CSS - Backup</title>174 <title>' . __('My custom CSS - Backup','my-custom-css') . '</title> 186 175 </head> 187 176 <body style="background: #F1F1F1; padding: 20px; width: 90%; margin: 20px auto; border: 1px 0 dotted gray">'; … … 189 178 { 190 179 echo ' 191 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />180 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 192 181 <br /> 193 182 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 194 I can\'t list any *.css: "No file found"...183 ' . __("I can't list any *.css: 'No file found'... ","my-custom-css") . ' 195 184 </div>'; 196 185 } … … 199 188 echo ' 200 189 <form method="post" action="'. admin_url( 'admin.php' ) .'?action=my_custom_css?erase_backup" style="margin-right: 20px; float: right"> 201 <input type="button" value=" Close now!" onclick="self.close()" style="padding: 2px 5px" />190 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="padding: 2px 5px" /> 202 191 | 203 <input type="submit" name="erasebackup" class="button" value=" Erase backup" style="color: red; padding: 2px 5px" onclick="return confirm(\'Do you want really delete all backup?\');" />192 <input type="submit" name="erasebackup" class="button" value="' . __('Erase all backup','my-custom-css') . '" style="color: red; padding: 2px 5px" onclick="return confirm(\'' . __('Do you want really delete all backup?','my-custom-css') . '\');" /> 204 193 </form> 205 194 <br />'; … … 207 196 echo ' 208 197 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 209 <p><b> File:</b> <a href="'.$href.$file.'">'.$href.$file.'</a></p>210 <p><b> Path:</b> '.$directory.$file.'</p>211 <p><b> Saved:</b> '.date("M d Y | h:i:s (a)",current_time($date)).'</p>212 <p><b> Size:</b> '.(round(filesize($directory.$file). " bytes")).' bytes</p>198 <p><b>' . __('File:','my-custom-css') . '</b> <a href="'.$href.$file.'">'.$href.$file.'</a></p> 199 <p><b>' . __('Path:','my-custom-css') . '</b> '.$directory.$file.'</p> 200 <p><b>' . __('Saved:','my-custom-css') . '</b> '.date("M d Y | h:i:s (a)",current_time($date)).'</p> 201 <p><b>' . __('Size:','my-custom-css') . '</b> '.(round(filesize($directory.$file). " bytes")).' bytes</p> 213 202 </div>'; 214 203 } … … 226 215 <html> 227 216 <head> 228 <title> My custom CSS - Erase Backup</title>217 <title>' . __('My custom CSS - Erase Backup','my-custom-css') . '</title> 229 218 </head> 230 219 <body style="background: #F1F1F1; padding: 20px; width: 90%; margin: 20px auto; border: 1px 0 dotted gray">'; … … 233 222 { 234 223 echo ' 235 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />224 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 236 225 <br /> 237 226 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 238 I can\'t delete any *.css: "No file found"...227 ' . __("I can't delete any *.css: 'No file found'... ","my-custom-css") . ' 239 228 </div>'; 240 229 } … … 242 231 { 243 232 echo ' 244 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />233 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 245 234 <br />'; 246 235 foreach (glob(mystylecss_basedir()."/my_custom_css/bkk/*.css") as $filename) … … 248 237 echo ' 249 238 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 250 '.$filename.' - ' . filesize($filename) . ' bytes was successfully deleted!!!239 '.$filename.' - ' . filesize($filename) . '' . __('bytes, was successfully deleted!!!','my-custom-css') . ' 251 240 </div>'; 252 241 unlink($filename); … … 258 247 } 259 248 249 function set_theme() 250 { 251 if (isset($_POST["themelist"]) && !empty($_POST["themelist"])) 252 { 253 $settheme = $_POST["themelist"]; 254 } 255 else if (!isset($_COOKIE['_mccss_ace_themelist_'])) 256 { 257 $settheme = 'ace/theme/chrome'; 258 } 259 else 260 { 261 $settheme = $_COOKIE['_mccss_ace_themelist_']; 262 } 263 return $settheme; 264 } 260 265 261 266 // Option page code: … … 265 270 <!-- Start My Custom CSS Code --> 266 271 <!-- Ace Editor --> 267 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/ace.js" charset="utf-8"></script>268 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/custom-mode.js" charset="utf-8"></script>269 < !-- Scroll ToTop -->272 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ace.js" charset="utf-8"></script> 273 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-searchbox.js" charset="utf-8"></script> 274 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-language_tools.js" charset="utf-8"></script> 270 275 <script type="text/javascript"> 271 jQuery(document).ready(function($) 272 { 273 $(window).scroll(function() 274 { 275 if ($(this).scrollTop() > 100) 276 { 277 $(\'.scrollup\').fadeIn(); 278 } 279 else 280 { 281 $(\'.scrollup\').fadeOut(); 282 } 283 }); 284 $(\'.scrollup\').click(function() 285 { 286 $("html, body").animate({ scrollTop: 0 }, 600); 276 // Ace Setting 277 ( function( global, $ ) { 278 var editor, 279 syncCSS = function() { 280 $( \'#my_custom_css_textarea\' ).val( editor.getSession().getValue() ); 281 }, 282 loadAce = function() { 283 editor = ace.edit( \'my_custom_css\' ); 284 editor.session.setMode("ace/mode/css"); 285 global.safecss_editor = editor; 286 editor.getSession().setUseWrapMode( true ); 287 editor.setShowPrintMargin( false ); 288 editor.getSession().setValue( $( \'#my_custom_css_textarea\' ).val() ); 289 editor.setOptions({maxLines: Infinity}); 290 editor.setTheme("'.set_theme().'"); 291 editor.setOptions({minLines: 10}); 292 editor.execCommand("find"); 293 // enable autocompletion and snippets 294 ace.require("ace/ext/language_tools"); 295 editor.setOptions({ 296 enableBasicAutocompletion: true, 297 enableSnippets: true, 298 enableLiveAutocompletion: true 299 }); 300 jQuery.fn.spin&&$( \'#my_custom_css_container\' ).spin( false ); 301 $( \'#my-custom-css\' ).submit( syncCSS ); 302 }; 303 if ( $.browser.msie&&parseInt( $.browser.version, 10 ) <= 7 ) { 304 $( \'#my_custom_css_container\' ).hide(); 305 $( \'#my_custom_css_textarea\' ).show(); 287 306 return false; 288 }); 289 }); 307 } else { 308 $( global ).load( loadAce ); 309 } 310 global.aceSyncCSS = syncCSS; 311 } )( this, jQuery ); 290 312 </script> 313 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/_scrolltop.js"></script> 314 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/cookie.js"></script> 315 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer.min.js"></script> 316 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer_target.js"></script> 291 317 <!-- CSS Code --> 292 <style type="text/css"> 293 /* Scroll ToTop */ 294 .scrollup, .scrollup:hover, .scrollup:visited, .scrollup:focus { 295 color: #fff; 296 box-shadow: none; 297 } 298 .scrollup { 299 background-color: rgba(0, 0, 0, 0.3); 300 border-radius: 50% !important; 301 width: 40px; 302 line-height: 40px; 303 text-align: center; 304 text-decoration: none; 305 position: fixed; 306 right: 25px; 307 bottom: 20px; 308 display: none; 309 z-index: 10000; 310 } 311 /* Set font type-size */ 312 .wrap > form * 313 { 314 font: '.setfontarea().' 315 } 316 .button-primary 317 { 318 height: 50px !important; 319 width: 130px !important; 320 position: fixed; 321 right: 25px; 322 top: 45px; 323 z-index: 50; 324 font-size: 30px !important; 325 border-radius: 10% !important; 326 } 327 #my_custom_css 328 { 329 border: 1px solid #DFDFDF; 330 border-radius: 3px; 331 width: 100%; 332 height: 400px; 333 position: relative; 334 } 335 /* Fix wordpress footer */ 336 #wpfooter 337 { 338 position: relative; 339 } 340 #footer-upgrade 341 { 342 float: left; 343 padding-left: 5px; 344 font-style: italic; 345 } 346 </style> 318 <link rel="stylesheet" id="ace-editor-custom-css" href="'.plugin_dir_url(__FILE__).'editor/ace_custom.css" type="text/css" media="all" /> 347 319 <!-- End My Custom CSS Code --> 348 320 '; 349 321 } 350 351 352 322 // Register Settings 353 323 function mycustomcss_registersetting() … … 359 329 function mccss_options() 360 330 { 361 362 331 // Get plugin version: 363 332 $plugin_data = get_plugin_data(__FILE__); 364 333 $plugin_version = $plugin_data['Version']; 365 366 // If no backup exist, disable button! 367 $glob = glob(mystylecss_basedir()."/my_custom_css/bkk/*.css"); 368 if ($glob == false) 369 { 370 $submit_backup = " value=\"No backup here...\" title=\"No backup found...\" disabled"; 371 } 372 else 373 { 374 $submit_backup = " value=\"View backup :)\" title=\"Click to view all backup!\" "; 375 } 334 335 // BrightTheme 336 $chrome = 'ace/theme/chrome'; 337 $clouds = 'ace/theme/clouds'; 338 $crimson_editor = 'ace/theme/crimson_editor'; 339 $dawn = 'ace/theme/dawn'; 340 $dreamweaver = 'ace/theme/dreamweaver'; 341 $eclipse = 'ace/theme/eclipse'; 342 $github = 'ace/theme/github'; 343 $iplastic = 'ace/theme/iplastic'; 344 $solarized_light = 'ace/theme/solarized_light'; 345 $textmate = 'ace/theme/textmate'; 346 $tomorrow = 'ace/theme/tomorrow'; 347 $xcode = 'ace/theme/xcode'; 348 $kuroir = 'ace/theme/kuroir'; 349 $katzenmilch = 'ace/theme/katzenmilch'; 350 $sqlserver = 'ace/theme/sqlserver'; 351 // DarkTheme 352 $ambiance = 'ace/theme/ambiance'; 353 $chaos = 'ace/theme/chaos'; 354 $clouds_midnight = 'ace/theme/clouds_midnight'; 355 $cobalt = 'ace/theme/cobalt'; 356 $idle_fingers = 'ace/theme/idle_fingers'; 357 $kr_theme = 'ace/theme/kr_theme'; 358 $merbivore = 'ace/theme/merbivore'; 359 $merbivore_soft = 'ace/theme/merbivore_soft'; 360 $mono_industrial = 'ace/theme/mono_industrial'; 361 $monokai = 'ace/theme/monokai'; 362 $pastel_on_dark = 'ace/theme/pastel_on_dark'; 363 $solarized_dark = 'ace/theme/solarized_dark'; 364 $terminal = 'ace/theme/terminal'; 365 $tomorrow_night = 'ace/theme/tomorrow_night'; 366 $tomorrow_night_blue = 'ace/theme/tomorrow_night_blue'; 367 $tomorrow_night_bright = 'ace/theme/tomorrow_night_bright'; 368 $tomorrow_night_eighties = 'ace/theme/tomorrow_night_eighties'; 369 $twilight = 'ace/theme/twilight'; 370 $vibrant_ink = 'ace/theme/vibrant_ink'; 376 371 377 372 echo ' 378 373 <div class="wrap"> 379 374 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.$plugin_version.'</h2> 375 <div id="textsizer"> 376 <p>' . __('Font Size:','my-custom-css') . '</p> 377 <ul class="textresizer"> 378 <li><a href="#nogo" class="small-text" title="12px (Small)">A-</a></li> 379 <li><a href="#nogo" class="medium-text" title="14px (Medium)">A</a></li> 380 <li><a href="#nogo" class="large-text" title="16px (Large)">A+</a></li> 381 <li><a href="#nogo" class="larger-text" title="18px (Larger)">A++</a></li> 382 <li><a href="#nogo" class="giga-text" title="26px (Giga)">A+++</a></li> 383 </ul> 384 </div> 385 <form action="'.admin_url( 'admin.php' ).'?page=my_custom_css" method="post" id="thememenu"> 386 <label for="theme">' . __('Theme:','my-custom-css') . '</label> 387 <select name="themelist" id="themelist" onchange="if(confirm(\'' . __('Warning!!! This will refresh entire page (Unsaved data will be lost) - Continue?','my-custom-css') . '\')){this.form.submit()}"> 388 <optgroup label="' . __('Bright:','my-custom-css') . '"> 389 <option value="'.$chrome.'"'.(set_theme() == $chrome ? ' selected="selected"' : false).'>Chrome</option> 390 <option value="'.$clouds.'"'.(set_theme() == $clouds ? ' selected="selected"' : false).'>Clouds</option> 391 <option value="'.$crimson_editor.'"'.(set_theme() == $crimson_editor ? ' selected="selected"' : false).'>Crimson Editor</option> 392 <option value="'.$dawn.'"'.(set_theme() == $dawn ? ' selected="selected"' : false).'>Dawn</option> 393 <option value="'.$dreamweaver.'"'.(set_theme() == $dreamweaver ? ' selected="selected"' : false).'>Dreamweaver</option> 394 <option value="'.$eclipse.'"'.(set_theme() == $eclipse ? ' selected="selected"' : false).'>Eclipse</option> 395 <option value="'.$github.'"'.(set_theme() == $github ? ' selected="selected"' : false).'>GitHub</option> 396 <option value="'.$iplastic.'"'.(set_theme() == $iplastic ? ' selected="selected"' : false).'>IPlastic</option> 397 <option value="'.$solarized_light.'"'.(set_theme() == $solarized_light ? ' selected="selected"' : false).'>Solarized Light</option> 398 <option value="'.$textmate.'"'.(set_theme() == $textmate ? ' selected="selected"' : false).'>TextMate</option> 399 <option value="'.$tomorrow.'"'.(set_theme() == $tomorrow ? ' selected="selected"' : false).'>Tomorrow</option> 400 <option value="'.$xcode.'"'.(set_theme() == $xcode ? ' selected="selected"' : false).'>XCode</option> 401 <option value="'.$kuroir.'"'.(set_theme() == $kuroir ? ' selected="selected"' : false).'>Kuroir</option> 402 <option value="'.$katzenmilch.'"'.(set_theme() == $katzenmilch ? ' selected="selected"' : false).'>KatzenMilch</option> 403 <option value="'.$sqlserver.'"'.(set_theme() == $sqlserver ? ' selected="selected"' : false).'>SQL Server</option> 404 </optgroup> 405 <optgroup label="' . __('Dark:','my-custom-css') . '"> 406 <option value="'.$ambiance.'"'.(set_theme() == $ambiance ? ' selected="selected"' : false).'>Ambiance</option> 407 <option value="'.$chaos.'"'.(set_theme() == $chaos ? ' selected="selected"' : false).'>Chaos</option> 408 <option value="'.$clouds_midnight.'"'.(set_theme() == $clouds_midnight ? ' selected="selected"' : false).'>Clouds Midnight</option> 409 <option value="'.$cobalt.'"'.(set_theme() == $cobalt ? ' selected="selected"' : false).'>Cobalt</option> 410 <option value="'.$idle_fingers.'"'.(set_theme() == $idle_fingers ? ' selected="selected"' : false).'>idle Fingers</option> 411 <option value="'.$kr_theme.'"'.(set_theme() == $kr_theme ? ' selected="selected"' : false).'>krTheme</option> 412 <option value="'.$merbivore.'"'.(set_theme() == $merbivore ? ' selected="selected"' : false).'>Merbivore</option> 413 <option value="'.$merbivore_soft.'"'.(set_theme() == $merbivore_soft ? ' selected="selected"' : false).'>Merbivore Soft</option> 414 <option value="'.$mono_industrial.'"'.(set_theme() == $mono_industrial ? ' selected="selected"' : false).'>Mono Industrial</option> 415 <option value="'.$monokai.'"'.(set_theme() == $monokai ? ' selected="selected"' : false).'>Monokai</option> 416 <option value="'.$pastel_on_dark.'"'.(set_theme() == $pastel_on_dark ? ' selected="selected"' : false).'>Pastel on dark</option> 417 <option value="'.$solarized_dark.'"'.(set_theme() == $solarized_dark ? ' selected="selected"' : false).'>Solarized Dark</option> 418 <option value="'.$terminal.'"'.(set_theme() == $terminal ? ' selected="selected"' : false).'>Terminal</option> 419 <option value="'.$tomorrow_night.'"'.(set_theme() == $tomorrow_night ? ' selected="selected"' : false).'>Tomorrow Night</option> 420 <option value="'.$tomorrow_night_blue.'"'.(set_theme() == $tomorrow_night_blue ? ' selected="selected"' : false).'>Tomorrow Night Blue</option> 421 <option value="'.$tomorrow_night_bright.'"'.(set_theme() == $tomorrow_night_bright ? ' selected="selected"' : false).'>Tomorrow Night Bright</option> 422 <option value="'.$tomorrow_night_eighties.'"'.(set_theme() == $tomorrow_night_eighties ? ' selected="selected"' : false).'>Tomorrow Night 80s</option> 423 <option value="'.$twilight.'"'.(set_theme() == $twilight ? ' selected="selected"' : false).'>Twilight</option> 424 <option value="'.$vibrant_ink.'"'.(set_theme() == $vibrant_ink ? ' selected="selected"' : false).'>Vibrant Ink</option> 425 </optgroup> 426 </select> 427 </form>'; 428 if (isset($_POST["themelist"]) && !empty($_POST["themelist"])) 429 { 430 setcookie('_mccss_ace_themelist_', $_POST['themelist'], time()+31556926 ,'/'); 431 } 432 echo' 380 433 <form id="my-custom-css" method="post" action="options.php">'; 381 434 settings_fields( 'mccss_settings' ); 382 435 echo ' 383 <p>' . __('Custom CSS Code:','my-custom-css') . '384 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" />385 </p>386 436 <div id="my_custom_css_container"> 387 437 <div name="my_custom_css" id="my_custom_css"></div> 388 438 </div> 389 439 <textarea id="my_custom_css_textarea" name="my_custom_css" style="display: none;">'.get_option('my_custom_css').'</textarea> 440 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" /> 390 441 </form> 391 442 <p><!-- Smooth Scroll by DarkWolf --><a href="#" class="scrollup">▲</a><!-- Smooth Scroll by DarkWolf --></p> 392 443 </div>'; 393 444 445 // If no backup exist, disable button! 446 $glob = glob(mystylecss_basedir()."/my_custom_css/bkk/*.css"); 447 if ($glob == false) { $submit_backup = 'value="' . __('No backup found...','my-custom-css') . '" title="' . __('No backup found...','my-custom-css') . '" disabled'; } 448 else { $submit_backup = 'value="' . __('View backups :)','my-custom-css') . '" title="' . __('Click to view all backups!','my-custom-css') . '" '; } 394 449 // Hidden view/erase button for blog id > 1 (security fix in multisite) 395 450 $blog_id = get_current_blog_id(); … … 398 453 echo ' 399 454 <form method="post" action="'.admin_url( 'admin.php' ).'?action=my_custom_css?show_backup" target="_blank"> 400 <input type="submit" name="viewbackup" class="button-secondary" style="float: left;" '.$submit_backup.' />455 <input type="submit" name="viewbackup" class="button-secondary" style="float: left;" '.$submit_backup.' /> 401 456 </form>'; 402 457 } … … 413 468 function mycustomcss_admin() 414 469 { 415 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', mycustomcss_data_icon(), 61);470 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', plugin_dir_url(__FILE__).'/mccss.png', 61); 416 471 add_action('admin_init', 'mycustomcss_registersetting'); 417 472 add_action('admin_head-'. $plugin_page, 'mycustomcss_scripts'); … … 450 505 add_filter('plugin_row_meta', 'add_plugin_meta_links', 10, 2); 451 506 add_filter('plugin_action_links_'.plugin_basename(__FILE__).'', 'mycustomcss_links'); 452 load_plugin_textdomain('my-custom-css', false, dirname(plugin_basename(__FILE__)) . '/lang/');453 454 507 455 508 ?> -
my-custom-css/tags/2.5/readme.txt
r1285118 r1286435 5 5 Requires at least: 3.0 6 6 Tested up to: 4.3.1 7 Stable tag: 2. 47 Stable tag: 2.5 8 8 9 9 Enable to add Custom CSS Code via admin panel with Ace (Ajax.org Cloud9 Editor) … … 36 36 == Screenshots == 37 37 38 1. Custom Menu in Admin Panel + Box 39 2. Source code: <a href="http://vegamami.altervista.org/">Vegamami</a> | Stylesheet: <a href="http://www.vegamami.it/wp-content/uploads/my_custom_css/my_style.css">.wp-content/uploads/my_custom_css/my_style.css</a> 40 3. Backup List (New Feature)! 41 4. Confirm when delete backup! 42 5. textsizer ... New feature (coming very soon) :) 43 38 1. My Custom CSS Panel + With All feature and DarkTheme 39 2. My Custom CSS Panel + With error and LightTheme 40 3. Preview in browser sourcecodeSource code 41 4. Backup List (New Feature)! 42 5. Confirm when delete backup! 44 43 45 44 == Installation == … … 50 49 == Upgrade Notice == 51 50 52 = 2. 4=51 = 2.5 = 53 52 54 * Now support https and fix incompatibility issue with blue admin plugin!53 * Now with live auto-complete; text-zoom; theme-changer; and search bar!!! 55 54 56 55 == Changelog == 56 57 = 2.5 = 58 59 * More code clean, fix, and optimization! 60 * All string translated (also in backup pages)! 61 * Now with live auto-complete; text-zoom; theme-changer; and search bar!!! 57 62 58 63 = 2.4 = -
my-custom-css/trunk/lang/default.pot
r1277035 r1286435 3 3 "Project-Id-Version: My Custom CSS\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 3-01-25 19:29+0100\n"5 "POT-Creation-Date: 2015-11-14 18:11+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" 8 "Language-Team: DarkWolf <http://www.darkwolf.it/>\n"8 "Language-Team: SalvatoreN <https://laltroweb.it/>\n" 9 9 "Language: it_IT\n" 10 10 "MIME-Version: 1.0\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: E:\\ my-custom-css\\trunk\\\n"14 "X-Poedit-Basepath: E:\\WordPress\\my-custom-css\\trunk\\\n" 15 15 "X-Poedit-SourceCharset: UTF-8\n" 16 16 "X-Generator: Poedit 1.5.5\n" 17 "X-Poedit-SearchPath-0: E:\\ my-custom-css\\trunk\n"17 "X-Poedit-SearchPath-0: E:\\WordPress\\my-custom-css\\trunk\n" 18 18 19 #: E:\ my-custom-css\trunk/my-custom-css.php:3019 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:108 20 20 msgid "Settings" 21 21 msgstr "" 22 22 23 #: E:\ my-custom-css\trunk/my-custom-css.php:3323 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:111 24 24 msgid "Support" 25 25 msgstr "" 26 26 27 #: E:\my-custom-css\trunk/my-custom-css.php:42 27 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:176 28 msgid "My custom CSS - Backup" 29 msgstr "" 30 31 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:182 32 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 33 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:226 34 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:235 35 msgid "Close now!" 36 msgstr "" 37 38 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:185 39 msgid "I can't list any *.css: 'No file found'... " 40 msgstr "" 41 42 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:194 43 msgid "Erase all backup" 44 msgstr "" 45 46 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:194 47 msgid "Do you want really delete all backup?" 48 msgstr "" 49 50 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:200 51 msgid "File:" 52 msgstr "" 53 54 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:201 55 msgid "Path:" 56 msgstr "" 57 58 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:202 59 msgid "Saved:" 60 msgstr "" 61 62 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:203 63 msgid "Size:" 64 msgstr "" 65 66 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:219 67 msgid "My custom CSS - Erase Backup" 68 msgstr "" 69 70 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:229 71 msgid "I can't delete any *.css: 'No file found'... " 72 msgstr "" 73 74 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:241 75 msgid "bytes, was successfully deleted!!!" 76 msgstr "" 77 78 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:337 79 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:472 28 80 msgid "My Custom CSS Panel" 29 81 msgstr "" 30 82 31 #: E:\ my-custom-css\trunk/my-custom-css.php:4232 msgid " My Custom CSS"83 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:339 84 msgid "Font Size:" 33 85 msgstr "" 34 86 35 #: E:\ my-custom-css\trunk/my-custom-css.php:9336 msgid " Custom CSS Code:"87 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:349 88 msgid "Theme:" 37 89 msgstr "" 38 90 39 #: E:\my-custom-css\trunk/my-custom-css.php:97 91 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:350 92 msgid "" 93 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " 94 "Continue?" 95 msgstr "" 96 97 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:388 98 msgid "Bright:" 99 msgstr "" 100 101 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:405 102 msgid "Dark:" 103 msgstr "" 104 105 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:442 40 106 msgid "Save" 41 107 msgstr "" 42 108 43 #: Description of mccss 44 msgid "" 45 "With this plugin you can put custom css code without edit your theme and/or " 46 "your plugins (really useful in case of any theme/plugin update)." 109 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 110 msgid "No backup found..." 47 111 msgstr "" 112 113 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:450 114 msgid "View backups :)" 115 msgstr "" 116 117 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:450 118 msgid "Click to view all backups!" 119 msgstr "" 120 121 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:472 122 msgid "My Custom CSS" 123 msgstr "" -
my-custom-css/trunk/lang/my-custom-css-it_IT.po
r1277037 r1286435 3 3 "Project-Id-Version: My Custom CSS\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 3-01-25 19:29+0100\n"5 "POT-Creation-Date: 2015-11-14 22:16+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" 8 "Language-Team: DarkWolf <http://www.darkwolf.it/>\n"8 "Language-Team: SalvatoreN <https://laltroweb.it/>\n" 9 9 "Language: it_IT\n" 10 10 "MIME-Version: 1.0\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: C:\\wamp\\www\\my-custom-css\n"15 "X-Poedit-SourceCharset: utf-8\n"14 "X-Poedit-Basepath: E:\\WordPress\\my-custom-css\\trunk\\\n" 15 "X-Poedit-SourceCharset: UTF-8\n" 16 16 "X-Generator: Poedit 1.5.5\n" 17 "X-Poedit-SearchPath-0: C:\\wamp\\www\\my-custom-css\n"17 "X-Poedit-SearchPath-0: E:\\WordPress\\my-custom-css\\trunk\n" 18 18 19 #: E:\ my-custom-css\trunk/my-custom-css.php:3019 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:106 20 20 msgid "Settings" 21 21 msgstr "Opzioni" 22 22 23 #: E:\ my-custom-css\trunk/my-custom-css.php:3323 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:109 24 24 msgid "Support" 25 25 msgstr "Supporto" 26 26 27 #: E:\my-custom-css\trunk/my-custom-css.php:42 27 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:174 28 msgid "My custom CSS - Backup" 29 msgstr "My custom CSS - Backup" 30 31 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:180 32 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:190 33 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:224 34 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:233 35 msgid "Close now!" 36 msgstr "Chiudi ora!" 37 38 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:183 39 msgid "I can't list any *.css: 'No file found'... " 40 msgstr "Non posso elencare nessun *.css: 'File non trovato' ..." 41 42 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 43 msgid "Erase all backup" 44 msgstr "Cancellare tutti i backup" 45 46 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:192 47 msgid "Do you want really delete all backup?" 48 msgstr "Vuoi davvero eliminare tutti i backup?" 49 50 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:198 51 msgid "File:" 52 msgstr "File:" 53 54 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:199 55 msgid "Path:" 56 msgstr "Percorso:" 57 58 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:200 59 msgid "Saved:" 60 msgstr "Salvato:" 61 62 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:201 63 msgid "Size:" 64 msgstr "Dimensioni:" 65 66 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:217 67 msgid "My custom CSS - Erase Backup" 68 msgstr "My custom CSS - Cancella i backup" 69 70 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:227 71 msgid "I can't delete any *.css: 'No file found'... " 72 msgstr "Non posso eliminare nessun *.css: 'File non trovato' ..." 73 74 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:239 75 msgid "bytes, was successfully deleted!!!" 76 msgstr "byte, è stato cancellato con successo!!!" 77 78 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:336 79 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:471 28 80 msgid "My Custom CSS Panel" 29 81 msgstr "Pannello My Custom CSS" 30 82 31 #: E:\my-custom-css\trunk/my-custom-css.php:42 83 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:338 84 msgid "Font Size:" 85 msgstr "Dimensione dei font:" 86 87 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:348 88 msgid "Theme:" 89 msgstr "Tema:" 90 91 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:349 92 msgid "" 93 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " 94 "Continue?" 95 msgstr "" 96 "Attenzione!!! Questo aggiornerà la pagina intera (i dati non salvati " 97 "andranno persi) - Continuare?" 98 99 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:387 100 msgid "Bright:" 101 msgstr "Luminoso:" 102 103 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:404 104 msgid "Dark:" 105 msgstr "Scuro:" 106 107 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:441 108 msgid "Save" 109 msgstr "Salva" 110 111 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:448 112 msgid "No backup found..." 113 msgstr "Nessun backup trovato..." 114 115 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 116 msgid "View backups :)" 117 msgstr "Visualizza i backup :)" 118 119 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:449 120 msgid "Click to view all backups!" 121 msgstr "Clicca per vedere tutti i backup!" 122 123 #: E:\WordPress\my-custom-css\trunk/my-custom-css.php:471 32 124 msgid "My Custom CSS" 33 125 msgstr "My Custom CSS" 34 126 35 #: E:\my-custom-css\trunk/my-custom-css.php:93 36 msgid "Custom CSS Code:" 37 msgstr "Codice CSS Personale:" 127 #~ msgid "No backup here..." 128 #~ msgstr "Nessun backup qui..." 38 129 39 #: E:\my-custom-css\trunk/my-custom-css.php:97 40 msgid "Save" 41 msgstr "Salva" 130 #~ msgid "Custom CSS Code:" 131 #~ msgstr "Codice CSS Personale:" 42 132 43 #: Description of mccss 44 msgid "" 45 "With this plugin you can put custom css code without edit your theme and/or " 46 "your plugins (really useful in case of any theme/plugin update)." 47 msgstr "" 48 "Con questo plugin puoi inserire codice css personale senza modificare il tuo " 49 "tema e/o i tuoi plugin (molto utile in caso di aggiornamenti)." 133 #~ msgid "" 134 #~ "With this plugin you can put custom css code without edit your theme and/" 135 #~ "or your plugins (really useful in case of any theme/plugin update)." 136 #~ msgstr "" 137 #~ "Con questo plugin puoi inserire codice css personale senza modificare il " 138 #~ "tuo tema e/o i tuoi plugin (molto utile in caso di aggiornamenti)." -
my-custom-css/trunk/my-custom-css.php
r1284549 r1286435 8 8 PS: support file backup and - very important - static css file (fantastic for performance) ;) 9 9 Author: Salvatore Noschese - DarkWolf 10 Version: 2. 410 Version: 2.5 11 11 Author URI: https://laltroweb.it/ 12 12 Text Domain: my-custom-css … … 19 19 } 20 20 21 // Textarea Font size and type (change this if u want big pixel)! 22 function setfontarea() 23 { 24 $setfontarea = '14px "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;'; 25 return $setfontarea; 26 } 21 // Text Domain: my-custom-css 22 load_plugin_textdomain('my-custom-css', false, dirname(plugin_basename(__FILE__)) . '/lang/'); 23 27 24 28 25 function mystylecss_basedir() … … 125 122 // End Add link on plugins page 126 123 127 128 // Icon in base 64129 function mycustomcss_data_icon()130 {131 $mycustomcss_data_icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnNJREFUeNqUU01IVFEU/u77m7/GRqqhbbUpnVAYIULIRoMwmjApaNGiVgViJErUolpE2KKFEIGGi4JK0wpjtCCKqChQxmYKiwojaSW0GJkabGbevNe59zxRalPvvfPuPeee853fK6YubM85FSfiOi7+5xGagKZrC4Y03nY4CdgOoDAEfWJZ03WVyPsR7/DW0DB5MxUxlOfiIvD+CisrAAPQiBybZBXpjsikvc0kPdV2Qtoaysj+ATTdB6It7OX7S+BFuydrYtm9KLBjBf+uSzk0FJpdYOO7a8gzeWqfJw2NlUerKdwQsRbzIxHADAKbDqhUNc6rxKjWasC/DpiooX2YZTsfADr50S3mEykC9HmpLAHA5kUeKPIzwMRm0tGBfXMsf7iFVvKe/EryCiyqjaaKJiurCk3pOL+A3W8oZDI0A8DU0WVwXxWQOYGa8wJ1qWsIw5I1ENyWXBpo/cjKOQLQqRbNaeYXMpx34jVqzwpc79kPQ/hxZGCIAGSLZI4zp2mlYpXzXLBAFLFzQtV4Zg/NiX89YmR8o+cQMq+GEWvcy4HJiYKPQNxqnoPAWtXzrakhDHaTIWUX70upKAe725DNDkOnRnT2j+NOsRmGK5CfHJmtWhplQa+fApMRF908Zj89x+WOhDr78HkMJjXq6mPgNhnnRTkvs687ldxYX7LlyHkD68ApLrqlbOvc6LE26lGZS2FSZgNjQP2jDQfDYS14afzLW6QvNsozSh7BP4h6iXhLL9xb35h29arbEvfOQtLWkNa0Kay8aRrFEXJNHF/1bPrpSTRYOlQ7npxBQ6IP0/0/EyiIMgX67zc47tFfz28BBgBxJMx44bFMEAAAAABJRU5ErkJggg==';132 return $mycustomcss_data_icon;133 }134 135 124 // Change the CSS for this plugin on admin plugins page 136 125 function mycustomcss_admin_style() … … 139 128 if ($pagenow == "plugins.php") 140 129 { 141 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url( ".mycustomcss_data_icon().") no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n";130 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url('".plugin_dir_url(__FILE__)."/mccss.png') no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n"; 142 131 } 143 132 } … … 183 172 <html> 184 173 <head> 185 <title> My custom CSS - Backup</title>174 <title>' . __('My custom CSS - Backup','my-custom-css') . '</title> 186 175 </head> 187 176 <body style="background: #F1F1F1; padding: 20px; width: 90%; margin: 20px auto; border: 1px 0 dotted gray">'; … … 189 178 { 190 179 echo ' 191 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />180 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 192 181 <br /> 193 182 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 194 I can\'t list any *.css: "No file found"...183 ' . __("I can't list any *.css: 'No file found'... ","my-custom-css") . ' 195 184 </div>'; 196 185 } … … 199 188 echo ' 200 189 <form method="post" action="'. admin_url( 'admin.php' ) .'?action=my_custom_css?erase_backup" style="margin-right: 20px; float: right"> 201 <input type="button" value=" Close now!" onclick="self.close()" style="padding: 2px 5px" />190 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="padding: 2px 5px" /> 202 191 | 203 <input type="submit" name="erasebackup" class="button" value=" Erase backup" style="color: red; padding: 2px 5px" onclick="return confirm(\'Do you want really delete all backup?\');" />192 <input type="submit" name="erasebackup" class="button" value="' . __('Erase all backup','my-custom-css') . '" style="color: red; padding: 2px 5px" onclick="return confirm(\'' . __('Do you want really delete all backup?','my-custom-css') . '\');" /> 204 193 </form> 205 194 <br />'; … … 207 196 echo ' 208 197 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 209 <p><b> File:</b> <a href="'.$href.$file.'">'.$href.$file.'</a></p>210 <p><b> Path:</b> '.$directory.$file.'</p>211 <p><b> Saved:</b> '.date("M d Y | h:i:s (a)",current_time($date)).'</p>212 <p><b> Size:</b> '.(round(filesize($directory.$file). " bytes")).' bytes</p>198 <p><b>' . __('File:','my-custom-css') . '</b> <a href="'.$href.$file.'">'.$href.$file.'</a></p> 199 <p><b>' . __('Path:','my-custom-css') . '</b> '.$directory.$file.'</p> 200 <p><b>' . __('Saved:','my-custom-css') . '</b> '.date("M d Y | h:i:s (a)",current_time($date)).'</p> 201 <p><b>' . __('Size:','my-custom-css') . '</b> '.(round(filesize($directory.$file). " bytes")).' bytes</p> 213 202 </div>'; 214 203 } … … 226 215 <html> 227 216 <head> 228 <title> My custom CSS - Erase Backup</title>217 <title>' . __('My custom CSS - Erase Backup','my-custom-css') . '</title> 229 218 </head> 230 219 <body style="background: #F1F1F1; padding: 20px; width: 90%; margin: 20px auto; border: 1px 0 dotted gray">'; … … 233 222 { 234 223 echo ' 235 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />224 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 236 225 <br /> 237 226 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 238 I can\'t delete any *.css: "No file found"...227 ' . __("I can't delete any *.css: 'No file found'... ","my-custom-css") . ' 239 228 </div>'; 240 229 } … … 242 231 { 243 232 echo ' 244 <input type="button" value=" Close now!" onclick="self.close()" style="margin: 0px 20px; float: right" />233 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="self.close()" style="margin: 0px 20px; float: right" /> 245 234 <br />'; 246 235 foreach (glob(mystylecss_basedir()."/my_custom_css/bkk/*.css") as $filename) … … 248 237 echo ' 249 238 <div style="border: 1px dotted gray; margin: 20px; padding: 10px; background: #fff"> 250 '.$filename.' - ' . filesize($filename) . ' bytes was successfully deleted!!!239 '.$filename.' - ' . filesize($filename) . '' . __('bytes, was successfully deleted!!!','my-custom-css') . ' 251 240 </div>'; 252 241 unlink($filename); … … 258 247 } 259 248 249 function set_theme() 250 { 251 if (isset($_POST["themelist"]) && !empty($_POST["themelist"])) 252 { 253 $settheme = $_POST["themelist"]; 254 } 255 else if (!isset($_COOKIE['_mccss_ace_themelist_'])) 256 { 257 $settheme = 'ace/theme/chrome'; 258 } 259 else 260 { 261 $settheme = $_COOKIE['_mccss_ace_themelist_']; 262 } 263 return $settheme; 264 } 260 265 261 266 // Option page code: … … 265 270 <!-- Start My Custom CSS Code --> 266 271 <!-- Ace Editor --> 267 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/ace.js" charset="utf-8"></script>268 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/custom-mode.js" charset="utf-8"></script>269 < !-- Scroll ToTop -->272 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ace.js" charset="utf-8"></script> 273 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-searchbox.js" charset="utf-8"></script> 274 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-language_tools.js" charset="utf-8"></script> 270 275 <script type="text/javascript"> 271 jQuery(document).ready(function($) 272 { 273 $(window).scroll(function() 274 { 275 if ($(this).scrollTop() > 100) 276 { 277 $(\'.scrollup\').fadeIn(); 278 } 279 else 280 { 281 $(\'.scrollup\').fadeOut(); 282 } 283 }); 284 $(\'.scrollup\').click(function() 285 { 286 $("html, body").animate({ scrollTop: 0 }, 600); 276 // Ace Setting 277 ( function( global, $ ) { 278 var editor, 279 syncCSS = function() { 280 $( \'#my_custom_css_textarea\' ).val( editor.getSession().getValue() ); 281 }, 282 loadAce = function() { 283 editor = ace.edit( \'my_custom_css\' ); 284 editor.session.setMode("ace/mode/css"); 285 global.safecss_editor = editor; 286 editor.getSession().setUseWrapMode( true ); 287 editor.setShowPrintMargin( false ); 288 editor.getSession().setValue( $( \'#my_custom_css_textarea\' ).val() ); 289 editor.setOptions({maxLines: Infinity}); 290 editor.setTheme("'.set_theme().'"); 291 editor.setOptions({minLines: 10}); 292 editor.execCommand("find"); 293 // enable autocompletion and snippets 294 ace.require("ace/ext/language_tools"); 295 editor.setOptions({ 296 enableBasicAutocompletion: true, 297 enableSnippets: true, 298 enableLiveAutocompletion: true 299 }); 300 jQuery.fn.spin&&$( \'#my_custom_css_container\' ).spin( false ); 301 $( \'#my-custom-css\' ).submit( syncCSS ); 302 }; 303 if ( $.browser.msie&&parseInt( $.browser.version, 10 ) <= 7 ) { 304 $( \'#my_custom_css_container\' ).hide(); 305 $( \'#my_custom_css_textarea\' ).show(); 287 306 return false; 288 }); 289 }); 307 } else { 308 $( global ).load( loadAce ); 309 } 310 global.aceSyncCSS = syncCSS; 311 } )( this, jQuery ); 290 312 </script> 313 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/_scrolltop.js"></script> 314 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/cookie.js"></script> 315 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer.min.js"></script> 316 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer_target.js"></script> 291 317 <!-- CSS Code --> 292 <style type="text/css"> 293 /* Scroll ToTop */ 294 .scrollup, .scrollup:hover, .scrollup:visited, .scrollup:focus { 295 color: #fff; 296 box-shadow: none; 297 } 298 .scrollup { 299 background-color: rgba(0, 0, 0, 0.3); 300 border-radius: 50% !important; 301 width: 40px; 302 line-height: 40px; 303 text-align: center; 304 text-decoration: none; 305 position: fixed; 306 right: 25px; 307 bottom: 20px; 308 display: none; 309 z-index: 10000; 310 } 311 /* Set font type-size */ 312 .wrap > form * 313 { 314 font: '.setfontarea().' 315 } 316 .button-primary 317 { 318 height: 50px !important; 319 width: 130px !important; 320 position: fixed; 321 right: 25px; 322 top: 45px; 323 z-index: 50; 324 font-size: 30px !important; 325 border-radius: 10% !important; 326 } 327 #my_custom_css 328 { 329 border: 1px solid #DFDFDF; 330 border-radius: 3px; 331 width: 100%; 332 height: 400px; 333 position: relative; 334 } 335 /* Fix wordpress footer */ 336 #wpfooter 337 { 338 position: relative; 339 } 340 #footer-upgrade 341 { 342 float: left; 343 padding-left: 5px; 344 font-style: italic; 345 } 346 </style> 318 <link rel="stylesheet" id="ace-editor-custom-css" href="'.plugin_dir_url(__FILE__).'editor/ace_custom.css" type="text/css" media="all" /> 347 319 <!-- End My Custom CSS Code --> 348 320 '; 349 321 } 350 351 352 322 // Register Settings 353 323 function mycustomcss_registersetting() … … 359 329 function mccss_options() 360 330 { 361 362 331 // Get plugin version: 363 332 $plugin_data = get_plugin_data(__FILE__); 364 333 $plugin_version = $plugin_data['Version']; 365 366 // If no backup exist, disable button! 367 $glob = glob(mystylecss_basedir()."/my_custom_css/bkk/*.css"); 368 if ($glob == false) 369 { 370 $submit_backup = " value=\"No backup here...\" title=\"No backup found...\" disabled"; 371 } 372 else 373 { 374 $submit_backup = " value=\"View backup :)\" title=\"Click to view all backup!\" "; 375 } 334 335 // BrightTheme 336 $chrome = 'ace/theme/chrome'; 337 $clouds = 'ace/theme/clouds'; 338 $crimson_editor = 'ace/theme/crimson_editor'; 339 $dawn = 'ace/theme/dawn'; 340 $dreamweaver = 'ace/theme/dreamweaver'; 341 $eclipse = 'ace/theme/eclipse'; 342 $github = 'ace/theme/github'; 343 $iplastic = 'ace/theme/iplastic'; 344 $solarized_light = 'ace/theme/solarized_light'; 345 $textmate = 'ace/theme/textmate'; 346 $tomorrow = 'ace/theme/tomorrow'; 347 $xcode = 'ace/theme/xcode'; 348 $kuroir = 'ace/theme/kuroir'; 349 $katzenmilch = 'ace/theme/katzenmilch'; 350 $sqlserver = 'ace/theme/sqlserver'; 351 // DarkTheme 352 $ambiance = 'ace/theme/ambiance'; 353 $chaos = 'ace/theme/chaos'; 354 $clouds_midnight = 'ace/theme/clouds_midnight'; 355 $cobalt = 'ace/theme/cobalt'; 356 $idle_fingers = 'ace/theme/idle_fingers'; 357 $kr_theme = 'ace/theme/kr_theme'; 358 $merbivore = 'ace/theme/merbivore'; 359 $merbivore_soft = 'ace/theme/merbivore_soft'; 360 $mono_industrial = 'ace/theme/mono_industrial'; 361 $monokai = 'ace/theme/monokai'; 362 $pastel_on_dark = 'ace/theme/pastel_on_dark'; 363 $solarized_dark = 'ace/theme/solarized_dark'; 364 $terminal = 'ace/theme/terminal'; 365 $tomorrow_night = 'ace/theme/tomorrow_night'; 366 $tomorrow_night_blue = 'ace/theme/tomorrow_night_blue'; 367 $tomorrow_night_bright = 'ace/theme/tomorrow_night_bright'; 368 $tomorrow_night_eighties = 'ace/theme/tomorrow_night_eighties'; 369 $twilight = 'ace/theme/twilight'; 370 $vibrant_ink = 'ace/theme/vibrant_ink'; 376 371 377 372 echo ' 378 373 <div class="wrap"> 379 374 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.$plugin_version.'</h2> 375 <div id="textsizer"> 376 <p>' . __('Font Size:','my-custom-css') . '</p> 377 <ul class="textresizer"> 378 <li><a href="#nogo" class="small-text" title="12px (Small)">A-</a></li> 379 <li><a href="#nogo" class="medium-text" title="14px (Medium)">A</a></li> 380 <li><a href="#nogo" class="large-text" title="16px (Large)">A+</a></li> 381 <li><a href="#nogo" class="larger-text" title="18px (Larger)">A++</a></li> 382 <li><a href="#nogo" class="giga-text" title="26px (Giga)">A+++</a></li> 383 </ul> 384 </div> 385 <form action="'.admin_url( 'admin.php' ).'?page=my_custom_css" method="post" id="thememenu"> 386 <label for="theme">' . __('Theme:','my-custom-css') . '</label> 387 <select name="themelist" id="themelist" onchange="if(confirm(\'' . __('Warning!!! This will refresh entire page (Unsaved data will be lost) - Continue?','my-custom-css') . '\')){this.form.submit()}"> 388 <optgroup label="' . __('Bright:','my-custom-css') . '"> 389 <option value="'.$chrome.'"'.(set_theme() == $chrome ? ' selected="selected"' : false).'>Chrome</option> 390 <option value="'.$clouds.'"'.(set_theme() == $clouds ? ' selected="selected"' : false).'>Clouds</option> 391 <option value="'.$crimson_editor.'"'.(set_theme() == $crimson_editor ? ' selected="selected"' : false).'>Crimson Editor</option> 392 <option value="'.$dawn.'"'.(set_theme() == $dawn ? ' selected="selected"' : false).'>Dawn</option> 393 <option value="'.$dreamweaver.'"'.(set_theme() == $dreamweaver ? ' selected="selected"' : false).'>Dreamweaver</option> 394 <option value="'.$eclipse.'"'.(set_theme() == $eclipse ? ' selected="selected"' : false).'>Eclipse</option> 395 <option value="'.$github.'"'.(set_theme() == $github ? ' selected="selected"' : false).'>GitHub</option> 396 <option value="'.$iplastic.'"'.(set_theme() == $iplastic ? ' selected="selected"' : false).'>IPlastic</option> 397 <option value="'.$solarized_light.'"'.(set_theme() == $solarized_light ? ' selected="selected"' : false).'>Solarized Light</option> 398 <option value="'.$textmate.'"'.(set_theme() == $textmate ? ' selected="selected"' : false).'>TextMate</option> 399 <option value="'.$tomorrow.'"'.(set_theme() == $tomorrow ? ' selected="selected"' : false).'>Tomorrow</option> 400 <option value="'.$xcode.'"'.(set_theme() == $xcode ? ' selected="selected"' : false).'>XCode</option> 401 <option value="'.$kuroir.'"'.(set_theme() == $kuroir ? ' selected="selected"' : false).'>Kuroir</option> 402 <option value="'.$katzenmilch.'"'.(set_theme() == $katzenmilch ? ' selected="selected"' : false).'>KatzenMilch</option> 403 <option value="'.$sqlserver.'"'.(set_theme() == $sqlserver ? ' selected="selected"' : false).'>SQL Server</option> 404 </optgroup> 405 <optgroup label="' . __('Dark:','my-custom-css') . '"> 406 <option value="'.$ambiance.'"'.(set_theme() == $ambiance ? ' selected="selected"' : false).'>Ambiance</option> 407 <option value="'.$chaos.'"'.(set_theme() == $chaos ? ' selected="selected"' : false).'>Chaos</option> 408 <option value="'.$clouds_midnight.'"'.(set_theme() == $clouds_midnight ? ' selected="selected"' : false).'>Clouds Midnight</option> 409 <option value="'.$cobalt.'"'.(set_theme() == $cobalt ? ' selected="selected"' : false).'>Cobalt</option> 410 <option value="'.$idle_fingers.'"'.(set_theme() == $idle_fingers ? ' selected="selected"' : false).'>idle Fingers</option> 411 <option value="'.$kr_theme.'"'.(set_theme() == $kr_theme ? ' selected="selected"' : false).'>krTheme</option> 412 <option value="'.$merbivore.'"'.(set_theme() == $merbivore ? ' selected="selected"' : false).'>Merbivore</option> 413 <option value="'.$merbivore_soft.'"'.(set_theme() == $merbivore_soft ? ' selected="selected"' : false).'>Merbivore Soft</option> 414 <option value="'.$mono_industrial.'"'.(set_theme() == $mono_industrial ? ' selected="selected"' : false).'>Mono Industrial</option> 415 <option value="'.$monokai.'"'.(set_theme() == $monokai ? ' selected="selected"' : false).'>Monokai</option> 416 <option value="'.$pastel_on_dark.'"'.(set_theme() == $pastel_on_dark ? ' selected="selected"' : false).'>Pastel on dark</option> 417 <option value="'.$solarized_dark.'"'.(set_theme() == $solarized_dark ? ' selected="selected"' : false).'>Solarized Dark</option> 418 <option value="'.$terminal.'"'.(set_theme() == $terminal ? ' selected="selected"' : false).'>Terminal</option> 419 <option value="'.$tomorrow_night.'"'.(set_theme() == $tomorrow_night ? ' selected="selected"' : false).'>Tomorrow Night</option> 420 <option value="'.$tomorrow_night_blue.'"'.(set_theme() == $tomorrow_night_blue ? ' selected="selected"' : false).'>Tomorrow Night Blue</option> 421 <option value="'.$tomorrow_night_bright.'"'.(set_theme() == $tomorrow_night_bright ? ' selected="selected"' : false).'>Tomorrow Night Bright</option> 422 <option value="'.$tomorrow_night_eighties.'"'.(set_theme() == $tomorrow_night_eighties ? ' selected="selected"' : false).'>Tomorrow Night 80s</option> 423 <option value="'.$twilight.'"'.(set_theme() == $twilight ? ' selected="selected"' : false).'>Twilight</option> 424 <option value="'.$vibrant_ink.'"'.(set_theme() == $vibrant_ink ? ' selected="selected"' : false).'>Vibrant Ink</option> 425 </optgroup> 426 </select> 427 </form>'; 428 if (isset($_POST["themelist"]) && !empty($_POST["themelist"])) 429 { 430 setcookie('_mccss_ace_themelist_', $_POST['themelist'], time()+31556926 ,'/'); 431 } 432 echo' 380 433 <form id="my-custom-css" method="post" action="options.php">'; 381 434 settings_fields( 'mccss_settings' ); 382 435 echo ' 383 <p>' . __('Custom CSS Code:','my-custom-css') . '384 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" />385 </p>386 436 <div id="my_custom_css_container"> 387 437 <div name="my_custom_css" id="my_custom_css"></div> 388 438 </div> 389 439 <textarea id="my_custom_css_textarea" name="my_custom_css" style="display: none;">'.get_option('my_custom_css').'</textarea> 440 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" /> 390 441 </form> 391 442 <p><!-- Smooth Scroll by DarkWolf --><a href="#" class="scrollup">▲</a><!-- Smooth Scroll by DarkWolf --></p> 392 443 </div>'; 393 444 445 // If no backup exist, disable button! 446 $glob = glob(mystylecss_basedir()."/my_custom_css/bkk/*.css"); 447 if ($glob == false) { $submit_backup = 'value="' . __('No backup found...','my-custom-css') . '" title="' . __('No backup found...','my-custom-css') . '" disabled'; } 448 else { $submit_backup = 'value="' . __('View backups :)','my-custom-css') . '" title="' . __('Click to view all backups!','my-custom-css') . '" '; } 394 449 // Hidden view/erase button for blog id > 1 (security fix in multisite) 395 450 $blog_id = get_current_blog_id(); … … 398 453 echo ' 399 454 <form method="post" action="'.admin_url( 'admin.php' ).'?action=my_custom_css?show_backup" target="_blank"> 400 <input type="submit" name="viewbackup" class="button-secondary" style="float: left;" '.$submit_backup.' />455 <input type="submit" name="viewbackup" class="button-secondary" style="float: left;" '.$submit_backup.' /> 401 456 </form>'; 402 457 } … … 413 468 function mycustomcss_admin() 414 469 { 415 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', mycustomcss_data_icon(), 61);470 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', plugin_dir_url(__FILE__).'/mccss.png', 61); 416 471 add_action('admin_init', 'mycustomcss_registersetting'); 417 472 add_action('admin_head-'. $plugin_page, 'mycustomcss_scripts'); … … 450 505 add_filter('plugin_row_meta', 'add_plugin_meta_links', 10, 2); 451 506 add_filter('plugin_action_links_'.plugin_basename(__FILE__).'', 'mycustomcss_links'); 452 load_plugin_textdomain('my-custom-css', false, dirname(plugin_basename(__FILE__)) . '/lang/');453 454 507 455 508 ?> -
my-custom-css/trunk/readme.txt
r1285119 r1286435 5 5 Requires at least: 3.0 6 6 Tested up to: 4.3.1 7 Stable tag: 2. 47 Stable tag: 2.5 8 8 9 9 Enable to add Custom CSS Code via admin panel with Ace (Ajax.org Cloud9 Editor) … … 36 36 == Screenshots == 37 37 38 1. Custom Menu in Admin Panel + Box 39 2. Source code: <a href="http://vegamami.altervista.org/">Vegamami</a> | Stylesheet: <a href="http://www.vegamami.it/wp-content/uploads/my_custom_css/my_style.css">.wp-content/uploads/my_custom_css/my_style.css</a> 40 3. Backup List (New Feature)! 41 4. Confirm when delete backup! 42 5. textsizer ... New feature (coming very soon) :) 43 38 1. My Custom CSS Panel + With All feature and DarkTheme 39 2. My Custom CSS Panel + With error and LightTheme 40 3. Preview in browser sourcecodeSource code 41 4. Backup List (New Feature)! 42 5. Confirm when delete backup! 44 43 45 44 == Installation == … … 50 49 == Upgrade Notice == 51 50 52 = 2. 4=51 = 2.5 = 53 52 54 * Now support https and fix incompatibility issue with blue admin plugin!53 * Now with live auto-complete; text-zoom; theme-changer; and search bar!!! 55 54 56 55 == Changelog == 56 57 = 2.5 = 58 59 * More code clean, fix, and optimization! 60 * All string translated (also in backup pages)! 61 * Now with live auto-complete; text-zoom; theme-changer; and search bar!!! 57 62 58 63 = 2.4 =
Note: See TracChangeset
for help on using the changeset viewer.