Changeset 1301563
- Timestamp:
- 12/06/2015 06:46:51 PM (10 years ago)
- Location:
- my-custom-css
- Files:
-
- 62 added
- 7 edited
-
tags/2.9 (added)
-
tags/2.9/editor (added)
-
tags/2.9/editor/_scrolltop.js (added)
-
tags/2.9/editor/ace.js (added)
-
tags/2.9/editor/ace_custom.css (added)
-
tags/2.9/editor/ext-language_tools.js (added)
-
tags/2.9/editor/ext-searchbox.js (added)
-
tags/2.9/editor/index.php (added)
-
tags/2.9/editor/mode-css.js (added)
-
tags/2.9/editor/snippets (added)
-
tags/2.9/editor/snippets/css.js (added)
-
tags/2.9/editor/snippets/index.php (added)
-
tags/2.9/editor/snippets/text.js (added)
-
tags/2.9/editor/textresizer (added)
-
tags/2.9/editor/textresizer/cookie.js (added)
-
tags/2.9/editor/textresizer/index.php (added)
-
tags/2.9/editor/textresizer/textresizer.min.js (added)
-
tags/2.9/editor/textresizer/textresizer_target.js (added)
-
tags/2.9/editor/theme-ambiance.js (added)
-
tags/2.9/editor/theme-chaos.js (added)
-
tags/2.9/editor/theme-chrome.js (added)
-
tags/2.9/editor/theme-clouds.js (added)
-
tags/2.9/editor/theme-clouds_midnight.js (added)
-
tags/2.9/editor/theme-cobalt.js (added)
-
tags/2.9/editor/theme-crimson_editor.js (added)
-
tags/2.9/editor/theme-dawn.js (added)
-
tags/2.9/editor/theme-dreamweaver.js (added)
-
tags/2.9/editor/theme-eclipse.js (added)
-
tags/2.9/editor/theme-github.js (added)
-
tags/2.9/editor/theme-idle_fingers.js (added)
-
tags/2.9/editor/theme-iplastic.js (added)
-
tags/2.9/editor/theme-katzenmilch.js (added)
-
tags/2.9/editor/theme-kr_theme.js (added)
-
tags/2.9/editor/theme-kuroir.js (added)
-
tags/2.9/editor/theme-merbivore.js (added)
-
tags/2.9/editor/theme-merbivore_soft.js (added)
-
tags/2.9/editor/theme-mono_industrial.js (added)
-
tags/2.9/editor/theme-monokai.js (added)
-
tags/2.9/editor/theme-pastel_on_dark.js (added)
-
tags/2.9/editor/theme-solarized_dark.js (added)
-
tags/2.9/editor/theme-solarized_light.js (added)
-
tags/2.9/editor/theme-sqlserver.js (added)
-
tags/2.9/editor/theme-terminal.js (added)
-
tags/2.9/editor/theme-textmate.js (added)
-
tags/2.9/editor/theme-tomorrow.js (added)
-
tags/2.9/editor/theme-tomorrow_night.js (added)
-
tags/2.9/editor/theme-tomorrow_night_blue.js (added)
-
tags/2.9/editor/theme-tomorrow_night_bright.js (added)
-
tags/2.9/editor/theme-tomorrow_night_eighties.js (added)
-
tags/2.9/editor/theme-twilight.js (added)
-
tags/2.9/editor/theme-vibrant_ink.js (added)
-
tags/2.9/editor/theme-xcode.js (added)
-
tags/2.9/editor/worker-css.js (added)
-
tags/2.9/index.php (added)
-
tags/2.9/lang (added)
-
tags/2.9/lang/default.mo (added)
-
tags/2.9/lang/default.pot (added)
-
tags/2.9/lang/index.php (added)
-
tags/2.9/lang/my-custom-css-it_IT.mo (added)
-
tags/2.9/lang/my-custom-css-it_IT.po (added)
-
tags/2.9/my-custom-css.php (added)
-
tags/2.9/readme.txt (added)
-
trunk/editor/ace_custom.css (modified) (6 diffs)
-
trunk/editor/textresizer/textresizer_target.js (modified) (1 diff)
-
trunk/lang/default.pot (modified) (3 diffs)
-
trunk/lang/my-custom-css-it_IT.mo (modified) (previous)
-
trunk/lang/my-custom-css-it_IT.po (modified) (3 diffs)
-
trunk/my-custom-css.php (modified) (14 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
my-custom-css/trunk/editor/ace_custom.css
r1299322 r1301563 1 /* I've try to make this more clean, light, and compatible as possible */ 2 /* !important, in some class/id/selector, is required to overwrite wp rules */ 3 1 4 /* Scroll ToTop */ 2 5 .scrollup,.scrollup:hover,.scrollup:visited,.scrollup:focus { … … 5 8 } 6 9 .scrollup { 10 background-color: rgb(0, 0, 0); 7 11 background-color: rgba(0, 0, 0, 0.3); 8 12 border-radius: 50% !important; … … 12 16 text-decoration: none; 13 17 position: fixed; 14 right: 2 5px;15 bottom: 20px;18 right: 20px; 19 bottom: 5px; 16 20 display: none; 17 21 z-index: 10000; … … 20 24 min-width: 820px; 21 25 } 22 .wrap h2{23 margin-bottom: 10px;26 .wrap > h2#h2left { 27 float: left; 24 28 } 25 #textsizer { 29 #tools { 30 margin: 10px 0; 31 height: 20px; 32 } 33 #backup > input { 34 background: rgb(0, 0, 0); 35 background: rgba(0, 0, 0, 0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABVklEQVQ4jY3TT0tVURQF8J+vB4lESMkbi4QIQQMnQUioOGgg+AFq6ED8BkbkrIkjkbCguZEz/+BAHEqKhAPNQKUMLUGeTlS0EG1w9ovrRfQt2Bzuvnuts/c659RIKKATPWhFI+pwhj2sYQ6fcCCHFizjooo4RH9eYKVKcjbaKuQCinnFKvCfcyvaeoj7VRBPMYhv+F0RmMAAPuI4creD8Be7mMc7vMFzychlqMEPyfVNTOELdnAUrZZwHv9KuBfC3ytt9cYu15nWhW6M4WV+rq94hj5MXyF2jGaMxPd2llxEPWawgEkMoxxzlmMU0ollVxUP+jCEO7nOHqMBHUHqwqMQ/BA127CIdrzGEv5EqyWM3+DNSRFNmJVcHsWq5PIB1qW3AHdRK51IOXJb8CKzazbeu3xL30b+lyvQHAU/cyL72MCDmwSyKElP+imeBLmAVzjB52zxP6oLfiu3RGvKAAAAAElFTkSuQmCC") no-repeat scroll 95% center; 36 padding: 0 30px 0 10px; 37 vertical-align: middle; 38 } 39 #backup > input:disabled { 40 background: rgb(0, 0, 0); 41 background: rgba(0, 0, 0, 0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhUlEQVR42pWTIUhDURSGH2IQEYPBYDCKmEVMIiJiMCzIMIlJxGAwWBdMBpElk5gMm7i3TZwMkSEiIiILsjBERGQY5AUxDMPQ75fz4O3xxOeDj3vvufecd87573Ucvkql0um6bgL28vl8lfGN0YMG3EAa26QT9bE5AnX4isFFLpfrDweoxXT2yYQD1P8TgFKO2gJgWGbjKWaAW/UqnMEzzMOi0oMHDjUZP+HDStyXI+MKXEYFUPRaoVDYggWYgHF1HpZgl/0XO3cSLmHVJItTwmNUCfcYZ2BD6VnaQSePvVP1CgnnWJ+FM3jF2GI8J+31YrE4xXrUx4InUqlURzab7cO2Jj/Odf8EkJM17TfZmhweZH7I/E5ByGRIPWG9qRKuYRp2pEBEEA+nHpVq66pdcc2PHbv3kuyAeRLGfFSCqZFkPhC6tWXeUJdj2rb+6H7a0m4EbFWV4yuhhmX403tUCaVSqTdwD8qBcq7aFNGzpmHDUoLUZ3Wh1EBTa1s1K229SDVU0n4DdpZf1EjbaRYAAAAASUVORK5CYII=") no-repeat scroll 95% center !important; 42 } 43 form#erase, input#close { 44 margin-top: 5px; 45 float: right; 46 } 47 form#erase > input[type="button"] { 48 padding: 2px 5px; 49 } 50 form#erase > input[type="submit"] { 51 background: rgb(0, 0, 0); 52 background: rgba(0, 0, 0, 0) url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAAAFnRFWHRDcmVhdGlvbiBUaW1lADExLzA1LzA33bqJ2wAAAp9JREFUeJxVk8tr1FcUxz/3/n55VFMT8gCtQ6uLUBqqCCbiSgqFgpa2mVIEQUo2QnFZioj0QQVduOhf0FXBnTQDpVJ3RkTETqXkYTudjRknhj6m6TiTYfL73XNOF7+ZMHM253Lvh/M9j3ucmdFry2feOOoGB7/GR7Pmo5yqoMlOVZOdoiU7X83dfbbcy7veAKv5Y4v4aL69WSGtbyEi2YOPiPaO4EbHIYTCybuVfF+Ayo3Phhs/L5XTrX9y29WniMHUhwtMX/4GQylf/5Q/C98RAX5sAoaGq63J3PQ73z9sOzNjNX9sMTTq883qU4JBMHjrUY2fzhyhFuDs7cfcOrGfAzHEDtzLY7g4Lpx6+HferX40O2eqj+prj0kNpvILzFz/FtTAFFMFU1Bl5YtP+OuHmww4kNEJnNkJrzvta+3NCtJRPnzxcxDFVDAR6HhT5bULl9hMM863mlhIr8Vu+KWZtL6FAAK8WPqRRhRlHeo2uOM1BJqacT4kpPHQjFe1gyKCkWUdHXqdqfwCmDH5wcdMvncegIl3z5G+cpghl3GYEVQPetVsVN1h1n/7tVO3ZWWo7J5rv6/gHLu8qeA1hA18ROee1sY6dOcvWQDDQJXGxjqDXRCHimx4bTWfRHtHcIB30Cgt96miCgYmQq20RuwyLjhHrPLEWzRwxY2OEwER0Cqt9KmaSJawCrXyGkMu49rmENUrfu5OqUgIBT82QeyA7Rf8W7zPyJtzu2McPPAqz395QNJssMdD4jxOtfB+WYvOzLh3/u1hXymVpbWds8Z/BIPNAA3p2zP2RTA+4EnUqs8Tm764bu2+Zbp3cmoxVZvPPkmS9aHTsOAcbXNd5f5l6rWl46NHgnE1qM2majlTAZGqUylGpl+e/kNXevn/AT0JpV86x3yxAAAAAElFTkSuQmCC') no-repeat scroll 95% center !important; 53 color: red; 54 padding: 0 30px 0 10px; 55 } 56 .ace_editor { 57 border: 1px dotted #808080; 58 margin: auto; 59 } 60 .ace_gutter, .ace_scroller { 61 top: 35px; 62 } 63 .ace_autocomplete > .ace_scroller { 64 top: 0px; 65 } 66 .ace_search { 67 max-width: 100%; 68 position: static; 69 border-radius: 0 !important; 70 font-size: 9px; 71 } 72 .ace_search_options { 73 float: left; 74 line-height: 25px; 75 font-size: 14px; 76 } 77 .ace_search.right::after { 78 color: #000; 79 content: "Help: CTRL|CMD+Space = Autocomplete!"; 80 float: right; 81 font-size: 12px; 82 font-style: italic; 83 padding-right: 5px; 84 line-height: 30px; 85 } 86 .ace_searchbtn_close { 87 display: none; 88 } 89 .ace_search, .ace_search_form, .ace_replace_form { 90 display: block !important; 91 } 92 .backup_list { 93 border: 1px dotted #808080; 94 margin-top: 30px; 95 padding: 15px; 96 background: #fff; 97 } 98 #text-resizer { 26 99 float: left; 27 100 margin-bottom: 10px; 28 101 } 29 #text sizer p {102 #text-resizer p { 30 103 float: left; 31 margin: 0 5px 0 0 !important;104 margin: 0 5px 0 0; 32 105 } 33 106 ul.textresizer { 34 list-style: none;35 107 display: inline; 36 margin: 0;37 padding: 0;38 108 } 39 109 ul.textresizer li { 40 110 display: inline; 41 margin: 0;42 111 margin-right: 5px; 43 padding: 0;44 112 } 45 113 ul.textresizer a { … … 48 116 font-weight: 700; 49 117 text-decoration: none; 50 border-radius: 3px !important;118 border-radius: 5px !important; 51 119 } 52 120 ul.textresizer a:hover { … … 69 137 font-size: 18px; 70 138 } 71 ul.textresizer a.textresizer-active {139 ul.textresizer .textresizer-active { 72 140 border: solid 1px #2B562B; 73 141 background: #FFCA6F; 74 142 color: #000; 75 143 } 76 .button-primary {77 height: 50px !important;78 width: 130px !important;79 position: fixed;80 right: 25px;81 top: 45px;82 z-index: 9999;83 font-size: 30px !important;84 border-radius: 10% !important;85 }86 .ace_gutter, .ace_scroller {87 top: 35px;88 }89 .ace_autocomplete > .ace_scroller {90 top: 0px;91 }92 .ace_search {93 max-width: 100% !important;94 position: static !important;95 }96 .ace_search.right {97 font-size: 9px !important;98 border-radius: 0 !important;99 }100 .ace_search_options {101 float: left;102 line-height: 25px;103 font-size: 14px !important;104 }105 .ace_search.right::after {106 color: #000;107 content: "Help: CTRL|CMD+Space = Autocomplete!";108 float: right;109 font-size: 12px;110 font-style: italic;111 padding-right: 5px;112 line-height: 30px;113 }114 .ace_search_field {115 width: 150px !important;116 }117 .ace_searchbtn_close {118 display: none !important;119 }120 .ace_search, .ace_search_form, .ace_replace_form {121 display: block !important;122 }123 144 #my_custom_css { 124 border: 1px solid #DFDFDF; 125 border-radius: 3px; 145 border-radius: 5px !important; 126 146 width: 100%; 127 147 padding-bottom: 35px; 128 148 position: relative; 129 149 font-size: 14px; 130 line-height: 150% !important;150 line-height: 150%; 131 151 } 132 form#thememenu, form#backup { 152 #my-custom-css > .button-primary { 153 border-radius: 15px !important; 154 font-size: 30px; 155 height: 50px; 156 position: fixed; 157 right: 25px; 158 top: 45px; 159 width: 130px; 160 z-index: 9999; 161 } 162 #thememenu, #backup { 133 163 float: left; 134 164 margin-left: 10px; 135 165 margin-top: -5px; 136 166 } 137 form#thememenu > select {167 #thememenu > select { 138 168 height: 28px; 139 }140 .backup_list {141 border: 1px dotted gray;142 margin-top: 30px;143 padding: 15px;144 background: #fff;145 169 } 146 170 /* Fix wordpress footer */ -
my-custom-css/trunk/editor/textresizer/textresizer_target.js
r1286435 r1301563 1 1 // textsizer 2 2 jQuery(document).ready( function() { 3 jQuery( "#text sizer a" ).textresizer({3 jQuery( "#text-resizer a" ).textresizer({ 4 4 target: "#my_custom_css", 5 5 type: "css", -
my-custom-css/trunk/lang/default.pot
r1299330 r1301563 4 4 "Project-Id-Version: My Custom CSS\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2015-12-0 2 22:19+0100\n"6 "POT-Creation-Date: 2015-12-06 19:38+0100\n" 7 7 "PO-Revision-Date: \n" 8 8 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" … … 26 26 msgstr "" 27 27 28 #: my-custom-css.php:2 31 my-custom-css.php:39928 #: my-custom-css.php:250 my-custom-css.php:423 29 29 msgid "My Custom CSS Panel" 30 30 msgstr "" 31 31 32 #: my-custom-css.php:2 3332 #: my-custom-css.php:253 33 33 msgid "Font Size:" 34 34 msgstr "" 35 35 36 #: my-custom-css.php:2 4336 #: my-custom-css.php:263 37 37 msgid "Theme:" 38 38 msgstr "" 39 39 40 #: my-custom-css.php:2 4440 #: my-custom-css.php:264 41 41 msgid "" 42 42 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " … … 44 44 msgstr "" 45 45 46 #: my-custom-css.php:2 4546 #: my-custom-css.php:265 47 47 msgid "Bright:" 48 48 msgstr "" 49 49 50 #: my-custom-css.php:2 6250 #: my-custom-css.php:282 51 51 msgid "Dark:" 52 52 msgstr "" 53 53 54 #: my-custom-css.php: 29255 msgid "No backup found ..."54 #: my-custom-css.php:312 55 msgid "No backup found" 56 56 msgstr "" 57 57 58 #: my-custom-css.php: 29659 msgid "View backups :)"58 #: my-custom-css.php:316 59 msgid "View backups" 60 60 msgstr "" 61 61 62 #: my-custom-css.php: 29662 #: my-custom-css.php:316 63 63 msgid "Click to view all backups!" 64 64 msgstr "" 65 65 66 #: my-custom-css.php:3 0066 #: my-custom-css.php:320 67 67 msgid "Backup:" 68 68 msgstr "" 69 69 70 #: my-custom-css.php:3 1270 #: my-custom-css.php:334 71 71 msgid "Save" 72 72 msgstr "" 73 73 74 #: my-custom-css.php:3 3374 #: my-custom-css.php:356 75 75 msgid "My custom CSS - Backup" 76 76 msgstr "" 77 77 78 #: my-custom-css.php:3 36 my-custom-css.php:35778 #: my-custom-css.php:358 my-custom-css.php:378 79 79 msgid "Close now!" 80 80 msgstr "" 81 81 82 #: my-custom-css.php:3 3883 msgid "Erase all backup "82 #: my-custom-css.php:360 83 msgid "Erase all backup?" 84 84 msgstr "" 85 85 86 #: my-custom-css.php:3 3886 #: my-custom-css.php:360 87 87 msgid "Do you want really delete all backup?" 88 88 msgstr "" 89 89 90 #: my-custom-css.php:3 4490 #: my-custom-css.php:366 91 91 msgid "File:" 92 92 msgstr "" 93 93 94 #: my-custom-css.php:3 4594 #: my-custom-css.php:367 95 95 msgid "Path:" 96 96 msgstr "" 97 97 98 #: my-custom-css.php:3 4698 #: my-custom-css.php:368 99 99 msgid "Saved:" 100 100 msgstr "" 101 101 102 #: my-custom-css.php:3 47102 #: my-custom-css.php:369 103 103 msgid "Size:" 104 104 msgstr "" 105 105 106 #: my-custom-css.php:3 55106 #: my-custom-css.php:377 107 107 msgid "My custom CSS - Erase Backup" 108 108 msgstr "" 109 109 110 #: my-custom-css.php:3 63110 #: my-custom-css.php:384 111 111 msgid "bytes, was successfully deleted!!!" 112 112 msgstr "" 113 113 114 #: my-custom-css.php: 399114 #: my-custom-css.php:423 115 115 msgid "My Custom CSS" 116 116 msgstr "" -
my-custom-css/trunk/lang/my-custom-css-it_IT.po
r1299330 r1301563 3 3 "Project-Id-Version: My Custom CSS\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2015-12-0 2 22:19+0100\n"5 "POT-Creation-Date: 2015-12-06 19:39+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n" … … 25 25 msgstr "Supporto" 26 26 27 #: my-custom-css.php:2 31 my-custom-css.php:39927 #: my-custom-css.php:250 my-custom-css.php:423 28 28 msgid "My Custom CSS Panel" 29 29 msgstr "Pannello My Custom CSS" 30 30 31 #: my-custom-css.php:2 3331 #: my-custom-css.php:253 32 32 msgid "Font Size:" 33 33 msgstr "Dimensione dei font:" 34 34 35 #: my-custom-css.php:2 4335 #: my-custom-css.php:263 36 36 msgid "Theme:" 37 37 msgstr "Tema:" 38 38 39 #: my-custom-css.php:2 4439 #: my-custom-css.php:264 40 40 msgid "" 41 41 "Warning!!! This will refresh entire page (Unsaved data will be lost) - " … … 45 45 "andranno persi) - Continuare?" 46 46 47 #: my-custom-css.php:2 4547 #: my-custom-css.php:265 48 48 msgid "Bright:" 49 49 msgstr "Luminoso:" 50 50 51 #: my-custom-css.php:2 6251 #: my-custom-css.php:282 52 52 msgid "Dark:" 53 53 msgstr "Scuro:" 54 54 55 #: my-custom-css.php: 29256 msgid "No backup found ..."57 msgstr "Nessun backup trovato ..."55 #: my-custom-css.php:312 56 msgid "No backup found" 57 msgstr "Nessun backup trovato" 58 58 59 #: my-custom-css.php: 29660 msgid "View backups :)"61 msgstr "Visualizza i backup :)"59 #: my-custom-css.php:316 60 msgid "View backups" 61 msgstr "Visualizza i backup" 62 62 63 #: my-custom-css.php: 29663 #: my-custom-css.php:316 64 64 msgid "Click to view all backups!" 65 65 msgstr "Clicca per vedere tutti i backup!" 66 66 67 #: my-custom-css.php:3 0067 #: my-custom-css.php:320 68 68 msgid "Backup:" 69 69 msgstr "Backup:" 70 70 71 #: my-custom-css.php:3 1271 #: my-custom-css.php:334 72 72 msgid "Save" 73 73 msgstr "Salva" 74 74 75 #: my-custom-css.php:3 3375 #: my-custom-css.php:356 76 76 msgid "My custom CSS - Backup" 77 77 msgstr "My custom CSS - Backup" 78 78 79 #: my-custom-css.php:3 36 my-custom-css.php:35779 #: my-custom-css.php:358 my-custom-css.php:378 80 80 msgid "Close now!" 81 81 msgstr "Chiudi ora!" 82 82 83 #: my-custom-css.php:3 3884 msgid "Erase all backup "85 msgstr "Cancellare tutti i backup "83 #: my-custom-css.php:360 84 msgid "Erase all backup?" 85 msgstr "Cancellare tutti i backup?" 86 86 87 #: my-custom-css.php:3 3887 #: my-custom-css.php:360 88 88 msgid "Do you want really delete all backup?" 89 89 msgstr "Vuoi davvero eliminare tutti i backup?" 90 90 91 #: my-custom-css.php:3 4491 #: my-custom-css.php:366 92 92 msgid "File:" 93 93 msgstr "File:" 94 94 95 #: my-custom-css.php:3 4595 #: my-custom-css.php:367 96 96 msgid "Path:" 97 97 msgstr "Percorso:" 98 98 99 #: my-custom-css.php:3 4699 #: my-custom-css.php:368 100 100 msgid "Saved:" 101 101 msgstr "Salvato:" 102 102 103 #: my-custom-css.php:3 47103 #: my-custom-css.php:369 104 104 msgid "Size:" 105 105 msgstr "Dimensioni:" 106 106 107 #: my-custom-css.php:3 55107 #: my-custom-css.php:377 108 108 msgid "My custom CSS - Erase Backup" 109 109 msgstr "My custom CSS - Cancella i backup" 110 110 111 #: my-custom-css.php:3 63111 #: my-custom-css.php:384 112 112 msgid "bytes, was successfully deleted!!!" 113 113 msgstr "byte, è stato cancellato con successo!!!" 114 114 115 #: my-custom-css.php: 399115 #: my-custom-css.php:423 116 116 msgid "My Custom CSS" 117 117 msgstr "My Custom CSS" 118 119 #~ msgid "No backup found..." 120 #~ msgstr "Nessun backup trovato..." 121 122 #~ msgid "Erase all backup" 123 #~ msgstr "Cancellare tutti i backup" 124 125 #~ msgid "View backups :)" 126 #~ msgstr "Visualizza i backup :)" 118 127 119 128 #~ msgid "I can't list any *.css: 'No file found'... " -
my-custom-css/trunk/my-custom-css.php
r1299322 r1301563 8 8 PS: support file backup and - very important - static css file (fantastic for performance) ;) 9 9 Author: DarkWolf 10 Version: 2. 810 Version: 2.9 11 11 Author URI: https://laltroweb.it/ 12 12 Text Domain: my-custom-css … … 47 47 function makecss() 48 48 { 49 $makecss = file_put_contents(css_path(), "/******* Do not edit this file *******/\n/*\nMy Custom CSS - by Salvatore Noschese\naka L' altroWeb - https://laltroweb.it/\n/*\nSaved: ".date("M d Y | h:i:s (a)",current_time('timestamp'))."\n/*\n/******* Do not edit this file *******/\n\n".getdata());49 $makecss = file_put_contents(css_path(), "/******* Do not edit this file *******/\n/*\nMy Custom CSS - by Salvatore Noschese\naka L'AltroWeb - https://laltroweb.it/\n/*\nSaved: ".date("M d Y | h:i:s (a)",current_time('timestamp'))."\n/*\n/******* Do not edit this file *******/\n\n".getdata()); 50 50 return $makecss; 51 51 } … … 58 58 // And Blank index.php to prevent listing directory 59 59 else if(!file_exists(plugin_basedir()."/my_custom_css/index.php") || !file_exists(plugin_basedir()."/my_custom_css/bkk/index.php")) 60 { file_put_contents(plugin_basedir()."/my_custom_css/index.php", "<?php \n// Prevent Directory Listing..."); file_put_contents(plugin_basedir()."/my_custom_css/bkk/index.php", "<?php \n// Prevent Directory Listing..."); }60 { file_put_contents(plugin_basedir()."/my_custom_css/index.php", "<?php \n// Prevent Directory Listing..."); file_put_contents(plugin_basedir()."/my_custom_css/bkk/index.php", "<?php \n// Prevent Directory Listing..."); } 61 61 62 62 // Start Add link on plugins page … … 81 81 } 82 82 83 83 function mccss_png() 84 { 85 $mccss_png = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAnFBMVEUAAAAAAABuRSAAAADJgjl3TCIAAADOgj3Ifjb/////qg//2IP/tSj/rRf/68LHfTT/uTH/siAqfQD/783/zFnI8E7/xk7/vjg6iQAvgQD/0W7/zlP/wkLbgEG/60CdxwAziAD/3IT/0Wf/z1rM8VjPfjul4gCi2ACd0gBJigBDhwD/6bz/1Xv/1Hr/zWP/1l3H7k2gzwCbwACatQA6TvqRAAAACHRSTlMACVkz8F4v8dedY+EAAACsSURBVBjTVY7ZDoIwEAAXq9jFAqXc93166///mwWMkUlmk53sw8KebtgDLU9/lBToRZPoX68UzOiMaOgG4mxkgnlDTUddjtlIXjhoMWahYc1WS2Ccc2YgYzZW7RIYci71fRGmQB0b0fYXhdsEQOvESxJPCM8TzduV4R7HcR26jzB0X3mRrq+3RZZnWf4s0iOoh91M0A9DH+wOKoCyQKaum4iiwA8yjgQ2kHX/AB8tDwIctw6nAAAAAElFTkSuQmCC"; 86 return $mccss_png; 87 } 84 88 // Change the CSS for this plugin on admin plugins page 85 89 function mycustomcss_admin_style() … … 88 92 if ($pagenow == "plugins.php") 89 93 { 90 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"; 91 } 92 } 93 94 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url(".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"; 95 } 96 } 97 98 // Get plugin version 99 function plug_ver() 100 { 101 $plugin_data = get_plugin_data(__FILE__); 102 $plug_ver = $plugin_data['Version']; 103 return $plug_ver; 104 } 105 94 106 // Set Theme 95 function thl() { $thl = $_POST["themelist"]; return $thl; } 96 $thl = thl(); if (isset($thl) && !empty($thl)) { setcookie('_mccss_ace_themelist_', $thl, time()+31556926 ,'/'); } 107 function thl() 108 { 109 if(isset($_POST["themelist"])) 110 { 111 $thl = $_POST["themelist"]; 112 return $thl; 113 } 114 } 115 $thl = thl(); 116 if (isset($thl) && !empty($thl)) 117 { 118 setcookie('_mccss_ace_themelist_', $thl, time()+31556926 ,'/'); 119 } 97 120 function sth() 98 121 { … … 119 142 echo ' 120 143 <!-- Start My Custom CSS Code --> 121 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/_scrolltop.js "></script>';144 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/_scrolltop.js?plug_ver='.plug_ver().'"></script>'; 122 145 if(!isset($_POST['viewbackup']) && !isset($_POST['erasebackup'])) 123 146 { 124 147 echo ' 125 148 <!-- Ace Editor --> 126 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ace.js " charset="utf-8"></script>127 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-searchbox.js " charset="utf-8"></script>128 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-language_tools.js " charset="utf-8"></script>149 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ace.js?plug_ver='.plug_ver().'" charset="utf-8"></script> 150 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-searchbox.js?plug_ver='.plug_ver().'" charset="utf-8"></script> 151 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/ext-language_tools.js?plug_ver='.plug_ver().'" charset="utf-8"></script> 129 152 <script type="text/javascript"> 130 153 // Ace Setting … … 143 166 editor.getSession().setUseSoftTabs(true); 144 167 editor.setHighlightActiveLine(true); 168 editor.setOptions({minLines: 10}); 145 169 editor.setOptions({maxLines: Infinity}); 146 170 editor.setTheme("'.sth().'"); 147 editor.setOptions({minLines: 10});148 171 editor.setOption("firstLineNumber", 1) 149 172 editor.setShowPrintMargin(true); … … 170 193 } )(this, jQuery); 171 194 </script> 172 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/cookie.js "></script>173 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer.min.js "></script>174 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer_target.js "></script>';195 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/cookie.js?plug_ver='.plug_ver().'"></script> 196 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer.min.js?plug_ver='.plug_ver().'"></script> 197 <script type="text/javascript" src="'.plugin_dir_url(__FILE__).'editor/textresizer/textresizer_target.js?plug_ver='.plug_ver().'"></script>'; 175 198 } 176 199 echo ' 177 200 <!-- CSS Code --> 178 <link rel="stylesheet" id="ace-editor-custom-css" href="'.plugin_dir_url(__FILE__).'editor/ace_custom.css " type="text/css" media="all" />201 <link rel="stylesheet" id="ace-editor-custom-css" href="'.plugin_dir_url(__FILE__).'editor/ace_custom.css?plug_ver='.plug_ver().'" type="text/css" media="all" /> 179 202 <!-- End My Custom CSS Code -->'; 180 203 } … … 183 206 function mccss_admin_page() 184 207 { 185 // Get plugin version:186 $plugin_data = get_plugin_data(__FILE__);187 $plugin_version = $plugin_data['Version'];188 208 echo ' 189 <script type="text/javascript" src="http://www.vegamami.it/wp-content/plugins/my-custom-css/editor/ace.js" charset="utf-8"></script>190 209 <div class="wrap">'; 191 210 if(!isset($_POST['viewbackup']) && !isset($_POST['erasebackup'])) 192 211 { 193 $at = "ace/theme/"; 194 // BrightTheme 195 $b1 = $at."chrome"; 196 $b2 = $at."clouds"; 197 $b3 = $at."crimson_editor"; 198 $b4 = $at."dawn"; 199 $b5 = $at."dreamweaver"; 200 $b6 = $at."eclipse"; 201 $b7 = $at."github"; 202 $b8 = $at."iplastic"; 203 $b9 = $at."solarized_light"; 204 $b10 = $at."textmate"; 205 $b11 = $at."tomorrow"; 206 $b12 = $at."xcode"; 207 $b13 = $at."kuroir"; 208 $b14 = $at."katzenmilch"; 209 $b15 = $at."sqlserver"; 210 // DarkTheme 211 $d1 = $at."ambiance"; 212 $d2 = $at."chaos"; 213 $d3 = $at."clouds_midnight"; 214 $d4 = $at."cobalt"; 215 $d5 = $at."idle_fingers"; 216 $d6 = $at."kr_theme"; 217 $d7 = $at."merbivore"; 218 $d8 = $at."merbivore_soft"; 219 $d9 = $at."mono_industrial"; 220 $d10 = $at."monokai"; 221 $d11 = $at."pastel_on_dark"; 222 $d12 = $at."solarized_dark"; 223 $d13 = $at."terminal"; 224 $d14 = $at."tomorrow_night"; 225 $d15 = $at."tomorrow_night_blue"; 226 $d16 = $at."tomorrow_night_bright"; 227 $d17 = $at."tomorrow_night_eighties"; 228 $d18 = $at."twilight"; 229 $d19 = $at."vibrant_ink"; 230 echo ' 231 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.$plugin_version.'</h2> 232 <div id="textsizer"> 212 $at = "ace/theme/"; 213 // BrightTheme 214 $b1 = $at."chrome"; 215 $b2 = $at."clouds"; 216 $b3 = $at."crimson_editor"; 217 $b4 = $at."dawn"; 218 $b5 = $at."dreamweaver"; 219 $b6 = $at."eclipse"; 220 $b7 = $at."github"; 221 $b8 = $at."iplastic"; 222 $b9 = $at."solarized_light"; 223 $b10 = $at."textmate"; 224 $b11 = $at."tomorrow"; 225 $b12 = $at."xcode"; 226 $b13 = $at."kuroir"; 227 $b14 = $at."katzenmilch"; 228 $b15 = $at."sqlserver"; 229 // DarkTheme 230 $d1 = $at."ambiance"; 231 $d2 = $at."chaos"; 232 $d3 = $at."clouds_midnight"; 233 $d4 = $at."cobalt"; 234 $d5 = $at."idle_fingers"; 235 $d6 = $at."kr_theme"; 236 $d7 = $at."merbivore"; 237 $d8 = $at."merbivore_soft"; 238 $d9 = $at."mono_industrial"; 239 $d10 = $at."monokai"; 240 $d11 = $at."pastel_on_dark"; 241 $d12 = $at."solarized_dark"; 242 $d13 = $at."terminal"; 243 $d14 = $at."tomorrow_night"; 244 $d15 = $at."tomorrow_night_blue"; 245 $d16 = $at."tomorrow_night_bright"; 246 $d17 = $at."tomorrow_night_eighties"; 247 $d18 = $at."twilight"; 248 $d19 = $at."vibrant_ink"; 249 echo ' 250 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.plug_ver().'</h2> 251 <div id="tools"> 252 <div id="text-resizer"> 233 253 <p>' . __('Font Size:','my-custom-css') . '</p> 234 254 <ul class="textresizer"> … … 240 260 </ul> 241 261 </div> 242 <form action="" method="post" id="thememenu">262 <form action="" method="post" id="thememenu"> 243 263 <label for="theme">' . __('Theme:','my-custom-css') . '</label> 244 264 <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()}"> 245 265 <optgroup label="' . __('Bright:','my-custom-css') . '"> 246 <option value="'.$b1.'"'.(sth() == $b1 ? ' selected ' : false).'>Chrome</option>247 <option value="'.$b2.'"'.(sth() == $b2 ? ' selected ' : false).'>Clouds</option>248 <option value="'.$b3.'"'.(sth() == $b3 ? ' selected ' : false).'>Crimson Editor</option>249 <option value="'.$b4.'"'.(sth() == $b4 ? ' selected ' : false).'>Dawn</option>250 <option value="'.$b5.'"'.(sth() == $b5 ? ' selected ' : false).'>Dreamweaver</option>251 <option value="'.$b6.'"'.(sth() == $b6 ? ' selected ' : false).'>Eclipse</option>252 <option value="'.$b7.'"'.(sth() == $b7 ? ' selected ' : false).'>GitHub</option>253 <option value="'.$b8.'"'.(sth() == $b8 ? ' selected ' : false).'>IPlastic</option>254 <option value="'.$b9.'"'.(sth() == $b9 ? ' selected ' : false).'>Solarized Light</option>255 <option value="'.$b10.'"'.(sth() == $b10 ? ' selected ' : false).'>TextMate</option>256 <option value="'.$b11.'"'.(sth() == $b11 ? ' selected ' : false).'>Tomorrow</option>257 <option value="'.$b12.'"'.(sth() == $b12 ? ' selected ' : false).'>XCode</option>258 <option value="'.$b13.'"'.(sth() == $b13 ? ' selected ' : false).'>Kuroir</option>259 <option value="'.$b14.'"'.(sth() == $b14 ? ' selected ' : false).'>KatzenMilch</option>260 <option value="'.$b15.'"'.(sth() == $b15 ? ' selected ' : false).'>SQL Server</option>266 <option value="'.$b1.'"'.(sth() == $b1 ? ' selected="selected"' : false).'>Chrome</option> 267 <option value="'.$b2.'"'.(sth() == $b2 ? ' selected="selected"' : false).'>Clouds</option> 268 <option value="'.$b3.'"'.(sth() == $b3 ? ' selected="selected"' : false).'>Crimson Editor</option> 269 <option value="'.$b4.'"'.(sth() == $b4 ? ' selected="selected"' : false).'>Dawn</option> 270 <option value="'.$b5.'"'.(sth() == $b5 ? ' selected="selected"' : false).'>Dreamweaver</option> 271 <option value="'.$b6.'"'.(sth() == $b6 ? ' selected="selected"' : false).'>Eclipse</option> 272 <option value="'.$b7.'"'.(sth() == $b7 ? ' selected="selected"' : false).'>GitHub</option> 273 <option value="'.$b8.'"'.(sth() == $b8 ? ' selected="selected"' : false).'>IPlastic</option> 274 <option value="'.$b9.'"'.(sth() == $b9 ? ' selected="selected"' : false).'>Solarized Light</option> 275 <option value="'.$b10.'"'.(sth() == $b10 ? ' selected="selected"' : false).'>TextMate</option> 276 <option value="'.$b11.'"'.(sth() == $b11 ? ' selected="selected"' : false).'>Tomorrow</option> 277 <option value="'.$b12.'"'.(sth() == $b12 ? ' selected="selected"' : false).'>XCode</option> 278 <option value="'.$b13.'"'.(sth() == $b13 ? ' selected="selected"' : false).'>Kuroir</option> 279 <option value="'.$b14.'"'.(sth() == $b14 ? ' selected="selected"' : false).'>KatzenMilch</option> 280 <option value="'.$b15.'"'.(sth() == $b15 ? ' selected="selected"' : false).'>SQL Server</option> 261 281 </optgroup> 262 282 <optgroup label="' . __('Dark:','my-custom-css') . '"> 263 <option value="'.$d1.'"'.(sth() == $d1 ? ' selected ' : false).'>Ambiance</option>264 <option value="'.$d2.'"'.(sth() == $d2 ? ' selected ' : false).'>Chaos</option>265 <option value="'.$d3.'"'.(sth() == $d3 ? ' selected ' : false).'>Clouds Midnight</option>266 <option value="'.$d4.'"'.(sth() == $d4 ? ' selected ' : false).'>Cobalt</option>267 <option value="'.$d5.'"'.(sth() == $d5 ? ' selected ' : false).'>idle Fingers</option>268 <option value="'.$d6.'"'.(sth() == $d6 ? ' selected ' : false).'>krTheme</option>269 <option value="'.$d7.'"'.(sth() == $d7 ? ' selected ' : false).'>Merbivore</option>270 <option value="'.$d8.'"'.(sth() == $d8 ? ' selected ' : false).'>Merbivore Soft</option>271 <option value="'.$d9.'"'.(sth() == $d9 ? ' selected ' : false).'>Mono Industrial</option>272 <option value="'.$d10.'"'.(sth() == $d10 ? ' selected ' : false).'>Monokai</option>273 <option value="'.$d11.'"'.(sth() == $d11 ? ' selected ' : false).'>Pastel on dark</option>274 <option value="'.$d12.'"'.(sth() == $d12 ? ' selected ' : false).'>Solarized Dark</option>275 <option value="'.$d13.'"'.(sth() == $d13 ? ' selected ' : false).'>Terminal</option>276 <option value="'.$d14.'"'.(sth() == $d14 ? ' selected ' : false).'>Tomorrow Night</option>277 <option value="'.$d15.'"'.(sth() == $d15 ? ' selected ' : false).'>Tomorrow Night Blue</option>278 <option value="'.$d16.'"'.(sth() == $d16 ? ' selected ' : false).'>Tomorrow Night Bright</option>279 <option value="'.$d17.'"'.(sth() == $d17 ? ' selected ' : false).'>Tomorrow Night 80s</option>280 <option value="'.$d18.'"'.(sth() == $d18 ? ' selected ' : false).'>Twilight</option>281 <option value="'.$d19.'"'.(sth() == $d19 ? ' selected ' : false).'>Vibrant Ink</option>283 <option value="'.$d1.'"'.(sth() == $d1 ? ' selected="selected"' : false).'>Ambiance</option> 284 <option value="'.$d2.'"'.(sth() == $d2 ? ' selected="selected"' : false).'>Chaos</option> 285 <option value="'.$d3.'"'.(sth() == $d3 ? ' selected="selected"' : false).'>Clouds Midnight</option> 286 <option value="'.$d4.'"'.(sth() == $d4 ? ' selected="selected"' : false).'>Cobalt</option> 287 <option value="'.$d5.'"'.(sth() == $d5 ? ' selected="selected"' : false).'>idle Fingers</option> 288 <option value="'.$d6.'"'.(sth() == $d6 ? ' selected="selected"' : false).'>krTheme</option> 289 <option value="'.$d7.'"'.(sth() == $d7 ? ' selected="selected"' : false).'>Merbivore</option> 290 <option value="'.$d8.'"'.(sth() == $d8 ? ' selected="selected"' : false).'>Merbivore Soft</option> 291 <option value="'.$d9.'"'.(sth() == $d9 ? ' selected="selected"' : false).'>Mono Industrial</option> 292 <option value="'.$d10.'"'.(sth() == $d10 ? ' selected="selected"' : false).'>Monokai</option> 293 <option value="'.$d11.'"'.(sth() == $d11 ? ' selected="selected"' : false).'>Pastel on dark</option> 294 <option value="'.$d12.'"'.(sth() == $d12 ? ' selected="selected"' : false).'>Solarized Dark</option> 295 <option value="'.$d13.'"'.(sth() == $d13 ? ' selected="selected"' : false).'>Terminal</option> 296 <option value="'.$d14.'"'.(sth() == $d14 ? ' selected="selected"' : false).'>Tomorrow Night</option> 297 <option value="'.$d15.'"'.(sth() == $d15 ? ' selected="selected"' : false).'>Tomorrow Night Blue</option> 298 <option value="'.$d16.'"'.(sth() == $d16 ? ' selected="selected"' : false).'>Tomorrow Night Bright</option> 299 <option value="'.$d17.'"'.(sth() == $d17 ? ' selected="selected"' : false).'>Tomorrow Night 80s</option> 300 <option value="'.$d18.'"'.(sth() == $d18 ? ' selected="selected"' : false).'>Twilight</option> 301 <option value="'.$d19.'"'.(sth() == $d19 ? ' selected="selected"' : false).'>Vibrant Ink</option> 282 302 </optgroup> 283 303 </select> 284 </form>'; 285 // Hidden view/erase button for blog id > 1 (security fix in multisite) 286 if(get_current_blog_id() == 1) 304 </form>'; 305 // Hidden view/erase button for blog id > 1 (security fix in multisite) 306 if(get_current_blog_id() == 1) 307 { 308 // If no backup exist, disable button! 309 $glob = glob(plugin_basedir()."/my_custom_css/bkk/*.css"); 310 if ($glob == false) 287 311 { 288 // If no backup exist, disable button! 289 $glob = glob(plugin_basedir()."/my_custom_css/bkk/*.css"); 290 if ($glob == false) 291 { 292 $submit_backup = 'value="' . __('No backup found...','my-custom-css') . '" title="' . __('No backup found...','my-custom-css') . '" disabled'; 293 } 294 else 295 { 296 $submit_backup = 'value="' . __('View backups :)','my-custom-css') . '" title="' . __('Click to view all backups!','my-custom-css') . '" '; 297 } 312 $submit_backup = 'value="' . __('No backup found','my-custom-css') . '" title="' . __('No backup found','my-custom-css') . '" disabled="disabled"'; 313 } 314 else 315 { 316 $submit_backup = 'value="' . __('View backups','my-custom-css') . '" title="' . __('Click to view all backups!','my-custom-css') . '" '; 317 } 298 318 echo ' 299 319 <form id="backup" method="post" action="'.admin_url( 'admin.php' ).'?page=my_custom_css"> 300 320 <label for="backup">' . __('Backup:','my-custom-css') . '</label> 301 <input type="submit" style="vertical-align: middle"name="viewbackup" class="button-secondary" '.$submit_backup.' />321 <input type="submit" name="viewbackup" class="button-secondary" '.$submit_backup.' /> 302 322 </form>'; 303 } 304 echo' 323 } 324 echo ' 325 </div> 326 <div id="my_custom_css_container"> 305 327 <form id="my-custom-css" method="post" action="options.php">'; 306 328 settings_fields( 'mccss_settings' ); 307 echo " 308 <div id=\"my_custom_css_container\"> 309 <div name=\"my_custom_css\" id=\"my_custom_css\"></div> 310 </div> 311 <textarea id=\"my_custom_css_textarea\" name=\"my_custom_css\" style=\"display: none;\">".get_option('my_custom_css')."</textarea> 312 <input type=\"submit\" name=\"save\" class=\"button-primary\" value=\"" . __('Save','my-custom-css') . "\" /> 313 </form>"; 329 echo ' 330 <div name="my_custom_css" id="my_custom_css"></div> 331 <!-- start textarea --> 332 <textarea id="my_custom_css_textarea" name="my_custom_css" style="display: none;">'.get_option('my_custom_css').'</textarea> 333 <!-- end textarea --> 334 <input type="submit" name="save" class="button-primary" value="' . __("Save","my-custom-css") . '" /> 335 </form> 336 </div>'; 314 337 } 315 338 … … 331 354 $href = plugin_url()."/my_custom_css/bkk/"; 332 355 echo ' 333 <h2 style="float:left">' . __('My custom CSS - Backup','my-custom-css') . '</h2>'; 334 echo ' 335 <form method="post" action="" style="float: right; margin-top: 10px;"> 336 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="location.reload();" style="padding: 2px 5px" /> 356 <h2 id="h2left">' . __('My custom CSS - Backup','my-custom-css') . '</h2> 357 <form method="post" id="erase" action=""> 358 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="location.reload();" /> 337 359 | 338 <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') . '\');" />360 <input type="submit" name="erasebackup" class="button" value="' . __('Erase all backup?','my-custom-css') . '" onclick="return confirm(\'' . __('Do you want really delete all backup?','my-custom-css') . '\');" /> 339 361 </form> 340 362 <br />'; … … 353 375 { 354 376 echo ' 355 <h2 style="float:left">' . __('My custom CSS - Erase Backup','my-custom-css') . '</h2>'; 356 echo ' 357 <input type="button" value="' . __('Close now!','my-custom-css') . '" onclick="location.reload();" style="float: right; margin-top: 10px;" /> 377 <h2 id="h2left">' . __('My custom CSS - Erase Backup','my-custom-css') . '</h2> 378 <input type="button" id="close" value="' . __('Close now!','my-custom-css') . '" onclick="location.reload();" /> 358 379 <br />'; 359 380 foreach (glob(plugin_basedir()."/my_custom_css/bkk/*.css") as $filename) … … 368 389 echo ' 369 390 <div id="mccss_credit"> 370 <a href="https://wordpress.org/plugins/my-custom-css/" title="My Custom CSS">My Custom CSS v'. $plugin_version.'</a> | Author: <a href="https://laltroweb.it/" title="Salvatore Noschese - (L\'AltroWeb)">Salvatore Noschese</a> - Support my work: <a href="https://www.paypal.me/SalvatoreN" title="Even 1$ can help... :)">Donate :)</a>391 <a href="https://wordpress.org/plugins/my-custom-css/" title="My Custom CSS">My Custom CSS v'.plug_ver().'</a> | Author: <a href="https://laltroweb.it/" title="Salvatore Noschese - (L\'AltroWeb)">Salvatore Noschese</a> - Support my work: <a href="https://www.paypal.me/SalvatoreN" title="Even 1$ can help... :)">Donate 😊</a> 371 392 </div> 372 393 <!-- Smooth Scroll --><a href="#" class="scrollup">▲</a><!-- Smooth Scroll --> … … 392 413 393 414 // Register Settings 394 function mycustomcss_registersetting() { register_setting('mccss_settings','my_custom_css'); } 415 function mycustomcss_registersetting() 416 { 417 register_setting('mccss_settings','my_custom_css'); 418 } 395 419 396 420 // Admin section: 397 421 function mycustomcss_admin() 398 422 { 399 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_admin_page', plugin_dir_url(__FILE__).'/mccss.png', 61);423 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_admin_page', mccss_png(), 61); 400 424 add_action('admin_init', 'mycustomcss_registersetting'); 401 425 add_action('admin_head-'. $plugin_page, 'mycustomcss_scripts'); 402 // Disable "WP Editor" in this page if is active: http://wordpress.org/extend/plugins/wp-editor/403 426 } 404 427 -
my-custom-css/trunk/readme.txt
r1299322 r1301563 4 4 Tags: css, style, custom, theme, plugin, stylesheet, darkwolf, laltroweb, ace, cloud9 editor 5 5 Requires at least: 4.0 6 Tested up to: 4. 3.17 Stable tag: 2. 86 Tested up to: 4.4-RC1-35769 7 Stable tag: 2.9 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. My Custom CSS Panel + With All feature and DarkTheme39 2. My Custom CSS Panel + With error andLightTheme38 1. My Custom CSS Panel with All feature and DarkTheme 39 2. My Custom CSS Panel with LightTheme 40 40 3. Preview in browser sourcecode 41 41 4. Backup List (New Feature)! … … 49 49 == Upgrade Notice == 50 50 51 = 2. 8=52 53 * More code change/fix (expecially in textarea and search bar).51 = 2.9 = 52 53 * Fixed some bug, rewrite more css and sourcecode. 54 54 55 55 == Changelog == 56 57 = 2.9 = 58 59 * Added version querystring in css and javascript (prevent cache issue from old release). 60 * Fixed more bug in sourcecode and css. 61 * Tested with wp-dev "4.4-RC1-35769 (debug enabled - now no warning, nor error!) 62 * Added some little background icon in input button. 56 63 57 64 = 2.8 =
Note: See TracChangeset
for help on using the changeset viewer.