Plugin Directory

Changeset 1301563


Ignore:
Timestamp:
12/06/2015 06:46:51 PM (10 years ago)
Author:
DarkWolf
Message:

New release 2.9

Location:
my-custom-css
Files:
62 added
7 edited

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
    14/* Scroll ToTop */
    25.scrollup,.scrollup:hover,.scrollup:visited,.scrollup:focus {
     
    58}
    69.scrollup {
     10    background-color: rgb(0, 0, 0);
    711    background-color: rgba(0, 0, 0, 0.3);
    812    border-radius: 50% !important;
     
    1216    text-decoration: none;
    1317    position: fixed;
    14     right: 25px;
    15     bottom: 20px;
     18    right: 20px;
     19    bottom: 5px;
    1620    display: none;
    1721    z-index: 10000;
     
    2024    min-width: 820px;
    2125}
    22 .wrap h2 {
    23     margin-bottom: 10px;
     26.wrap > h2#h2left {
     27    float: left;
    2428}
    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}
     43form#erase, input#close {
     44    margin-top: 5px;
     45    float: right;
     46}
     47form#erase > input[type="button"] {
     48    padding: 2px 5px;
     49}
     50form#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 {
    2699    float: left;
    27100    margin-bottom: 10px;
    28101}
    29 #textsizer p {
     102#text-resizer p {
    30103    float: left;
    31     margin: 0 5px 0 0 !important;
     104    margin: 0 5px 0 0;
    32105}
    33106ul.textresizer {
    34     list-style: none;
    35107    display: inline;
    36     margin: 0;
    37     padding: 0;
    38108}
    39109ul.textresizer li {
    40110    display: inline;
    41     margin: 0;
    42111    margin-right: 5px;
    43     padding: 0;
    44112}
    45113ul.textresizer a {
     
    48116    font-weight: 700;
    49117    text-decoration: none;
    50     border-radius: 3px !important;
     118    border-radius: 5px !important;
    51119}
    52120ul.textresizer a:hover {
     
    69137    font-size: 18px;
    70138}
    71 ul.textresizer a.textresizer-active {
     139ul.textresizer .textresizer-active {
    72140    border: solid 1px #2B562B;
    73141    background: #FFCA6F;
    74142    color: #000;
    75143}
    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 }
    123144#my_custom_css {
    124     border: 1px solid #DFDFDF;
    125     border-radius: 3px;
     145    border-radius: 5px !important;
    126146    width: 100%;
    127147    padding-bottom: 35px;
    128148    position: relative;
    129149    font-size: 14px;
    130     line-height: 150% !important;
     150    line-height: 150%;
    131151}
    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 {
    133163    float: left;
    134164    margin-left: 10px;
    135165    margin-top: -5px;
    136166}
    137 form#thememenu > select {
     167#thememenu > select {
    138168    height: 28px;
    139 }
    140 .backup_list {
    141     border: 1px dotted gray;
    142     margin-top: 30px;
    143     padding: 15px;
    144     background: #fff;
    145169}
    146170/* Fix wordpress footer */
  • my-custom-css/trunk/editor/textresizer/textresizer_target.js

    r1286435 r1301563  
    11// textsizer
    22jQuery(document).ready( function() {
    3     jQuery( "#textsizer a" ).textresizer({
     3    jQuery( "#text-resizer a" ).textresizer({
    44        target: "#my_custom_css",
    55        type: "css",
  • my-custom-css/trunk/lang/default.pot

    r1299330 r1301563  
    44"Project-Id-Version: My Custom CSS\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2015-12-02 22:19+0100\n"
     6"POT-Creation-Date: 2015-12-06 19:38+0100\n"
    77"PO-Revision-Date: \n"
    88"Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n"
     
    2626msgstr ""
    2727
    28 #: my-custom-css.php:231 my-custom-css.php:399
     28#: my-custom-css.php:250 my-custom-css.php:423
    2929msgid "My Custom CSS Panel"
    3030msgstr ""
    3131
    32 #: my-custom-css.php:233
     32#: my-custom-css.php:253
    3333msgid "Font Size:"
    3434msgstr ""
    3535
    36 #: my-custom-css.php:243
     36#: my-custom-css.php:263
    3737msgid "Theme:"
    3838msgstr ""
    3939
    40 #: my-custom-css.php:244
     40#: my-custom-css.php:264
    4141msgid ""
    4242"Warning!!! This will refresh entire page (Unsaved data will be lost) - "
     
    4444msgstr ""
    4545
    46 #: my-custom-css.php:245
     46#: my-custom-css.php:265
    4747msgid "Bright:"
    4848msgstr ""
    4949
    50 #: my-custom-css.php:262
     50#: my-custom-css.php:282
    5151msgid "Dark:"
    5252msgstr ""
    5353
    54 #: my-custom-css.php:292
    55 msgid "No backup found..."
     54#: my-custom-css.php:312
     55msgid "No backup found"
    5656msgstr ""
    5757
    58 #: my-custom-css.php:296
    59 msgid "View backups :)"
     58#: my-custom-css.php:316
     59msgid "View backups"
    6060msgstr ""
    6161
    62 #: my-custom-css.php:296
     62#: my-custom-css.php:316
    6363msgid "Click to view all backups!"
    6464msgstr ""
    6565
    66 #: my-custom-css.php:300
     66#: my-custom-css.php:320
    6767msgid "Backup:"
    6868msgstr ""
    6969
    70 #: my-custom-css.php:312
     70#: my-custom-css.php:334
    7171msgid "Save"
    7272msgstr ""
    7373
    74 #: my-custom-css.php:333
     74#: my-custom-css.php:356
    7575msgid "My custom CSS - Backup"
    7676msgstr ""
    7777
    78 #: my-custom-css.php:336 my-custom-css.php:357
     78#: my-custom-css.php:358 my-custom-css.php:378
    7979msgid "Close now!"
    8080msgstr ""
    8181
    82 #: my-custom-css.php:338
    83 msgid "Erase all backup"
     82#: my-custom-css.php:360
     83msgid "Erase all backup?"
    8484msgstr ""
    8585
    86 #: my-custom-css.php:338
     86#: my-custom-css.php:360
    8787msgid "Do you want really delete all backup?"
    8888msgstr ""
    8989
    90 #: my-custom-css.php:344
     90#: my-custom-css.php:366
    9191msgid "File:"
    9292msgstr ""
    9393
    94 #: my-custom-css.php:345
     94#: my-custom-css.php:367
    9595msgid "Path:"
    9696msgstr ""
    9797
    98 #: my-custom-css.php:346
     98#: my-custom-css.php:368
    9999msgid "Saved:"
    100100msgstr ""
    101101
    102 #: my-custom-css.php:347
     102#: my-custom-css.php:369
    103103msgid "Size:"
    104104msgstr ""
    105105
    106 #: my-custom-css.php:355
     106#: my-custom-css.php:377
    107107msgid "My custom CSS - Erase Backup"
    108108msgstr ""
    109109
    110 #: my-custom-css.php:363
     110#: my-custom-css.php:384
    111111msgid "bytes, was successfully deleted!!!"
    112112msgstr ""
    113113
    114 #: my-custom-css.php:399
     114#: my-custom-css.php:423
    115115msgid "My Custom CSS"
    116116msgstr ""
  • my-custom-css/trunk/lang/my-custom-css-it_IT.po

    r1299330 r1301563  
    33"Project-Id-Version: My Custom CSS\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2015-12-02 22:19+0100\n"
     5"POT-Creation-Date: 2015-12-06 19:39+0100\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Salvatore Noschese (DarkWolf) <[email protected]>\n"
     
    2525msgstr "Supporto"
    2626
    27 #: my-custom-css.php:231 my-custom-css.php:399
     27#: my-custom-css.php:250 my-custom-css.php:423
    2828msgid "My Custom CSS Panel"
    2929msgstr "Pannello My Custom CSS"
    3030
    31 #: my-custom-css.php:233
     31#: my-custom-css.php:253
    3232msgid "Font Size:"
    3333msgstr "Dimensione dei font:"
    3434
    35 #: my-custom-css.php:243
     35#: my-custom-css.php:263
    3636msgid "Theme:"
    3737msgstr "Tema:"
    3838
    39 #: my-custom-css.php:244
     39#: my-custom-css.php:264
    4040msgid ""
    4141"Warning!!! This will refresh entire page (Unsaved data will be lost) - "
     
    4545"andranno persi) - Continuare?"
    4646
    47 #: my-custom-css.php:245
     47#: my-custom-css.php:265
    4848msgid "Bright:"
    4949msgstr "Luminoso:"
    5050
    51 #: my-custom-css.php:262
     51#: my-custom-css.php:282
    5252msgid "Dark:"
    5353msgstr "Scuro:"
    5454
    55 #: my-custom-css.php:292
    56 msgid "No backup found..."
    57 msgstr "Nessun backup trovato..."
     55#: my-custom-css.php:312
     56msgid "No backup found"
     57msgstr "Nessun backup trovato"
    5858
    59 #: my-custom-css.php:296
    60 msgid "View backups :)"
    61 msgstr "Visualizza i backup :)"
     59#: my-custom-css.php:316
     60msgid "View backups"
     61msgstr "Visualizza i backup"
    6262
    63 #: my-custom-css.php:296
     63#: my-custom-css.php:316
    6464msgid "Click to view all backups!"
    6565msgstr "Clicca per vedere tutti i backup!"
    6666
    67 #: my-custom-css.php:300
     67#: my-custom-css.php:320
    6868msgid "Backup:"
    6969msgstr "Backup:"
    7070
    71 #: my-custom-css.php:312
     71#: my-custom-css.php:334
    7272msgid "Save"
    7373msgstr "Salva"
    7474
    75 #: my-custom-css.php:333
     75#: my-custom-css.php:356
    7676msgid "My custom CSS - Backup"
    7777msgstr "My custom CSS - Backup"
    7878
    79 #: my-custom-css.php:336 my-custom-css.php:357
     79#: my-custom-css.php:358 my-custom-css.php:378
    8080msgid "Close now!"
    8181msgstr "Chiudi ora!"
    8282
    83 #: my-custom-css.php:338
    84 msgid "Erase all backup"
    85 msgstr "Cancellare tutti i backup"
     83#: my-custom-css.php:360
     84msgid "Erase all backup?"
     85msgstr "Cancellare tutti i backup?"
    8686
    87 #: my-custom-css.php:338
     87#: my-custom-css.php:360
    8888msgid "Do you want really delete all backup?"
    8989msgstr "Vuoi davvero eliminare tutti i backup?"
    9090
    91 #: my-custom-css.php:344
     91#: my-custom-css.php:366
    9292msgid "File:"
    9393msgstr "File:"
    9494
    95 #: my-custom-css.php:345
     95#: my-custom-css.php:367
    9696msgid "Path:"
    9797msgstr "Percorso:"
    9898
    99 #: my-custom-css.php:346
     99#: my-custom-css.php:368
    100100msgid "Saved:"
    101101msgstr "Salvato:"
    102102
    103 #: my-custom-css.php:347
     103#: my-custom-css.php:369
    104104msgid "Size:"
    105105msgstr "Dimensioni:"
    106106
    107 #: my-custom-css.php:355
     107#: my-custom-css.php:377
    108108msgid "My custom CSS - Erase Backup"
    109109msgstr "My custom CSS - Cancella i backup"
    110110
    111 #: my-custom-css.php:363
     111#: my-custom-css.php:384
    112112msgid "bytes, was successfully deleted!!!"
    113113msgstr "byte, &egrave; stato cancellato con successo!!!"
    114114
    115 #: my-custom-css.php:399
     115#: my-custom-css.php:423
    116116msgid "My Custom CSS"
    117117msgstr "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 :)"
    118127
    119128#~ msgid "I can't list any *.css: 'No file found'... "
  • my-custom-css/trunk/my-custom-css.php

    r1299322 r1301563  
    88PS: support file backup and - very important - static css file (fantastic for performance) ;)
    99Author: DarkWolf
    10 Version: 2.8
     10Version: 2.9
    1111Author URI: https://laltroweb.it/
    1212Text Domain: my-custom-css
     
    4747    function makecss()
    4848    {
    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());
    5050        return $makecss;
    5151    }
     
    5858    // And Blank index.php to prevent listing directory
    5959    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..."); }
    6161
    6262    // Start Add link on plugins page
     
    8181    }
    8282
    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    }
    8488    // Change the CSS for this plugin on admin plugins page
    8589    function mycustomcss_admin_style()
     
    8892        if ($pagenow == "plugins.php")
    8993        {
    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
    94106    // 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    }
    97120    function sth()
    98121    {
     
    119142        echo '
    120143        <!-- 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>';
    122145        if(!isset($_POST['viewbackup']) && !isset($_POST['erasebackup']))
    123146        {
    124147        echo '
    125148        <!-- 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>
    129152        <script type="text/javascript">
    130153        // Ace Setting
     
    143166                    editor.getSession().setUseSoftTabs(true);
    144167                    editor.setHighlightActiveLine(true);
     168                    editor.setOptions({minLines: 10});
    145169                    editor.setOptions({maxLines: Infinity});
    146170                    editor.setTheme("'.sth().'");
    147                     editor.setOptions({minLines: 10});
    148171                    editor.setOption("firstLineNumber", 1)
    149172                    editor.setShowPrintMargin(true);
     
    170193        } )(this, jQuery);
    171194        </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>';
    175198        }
    176199        echo '
    177200        <!-- 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" />
    179202        <!-- End My Custom CSS Code -->';
    180203    }
     
    183206    function mccss_admin_page()
    184207    {
    185         // Get plugin version:
    186         $plugin_data = get_plugin_data(__FILE__);
    187         $plugin_version = $plugin_data['Version'];
    188208        echo '
    189         <script type="text/javascript" src="http://www.vegamami.it/wp-content/plugins/my-custom-css/editor/ace.js" charset="utf-8"></script>
    190209        <div class="wrap">';
    191210            if(!isset($_POST['viewbackup']) && !isset($_POST['erasebackup']))
    192211            {
    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">
    233253                        <p>' .  __('Font Size:','my-custom-css') . '</p>
    234254                            <ul class="textresizer">
     
    240260                            </ul>
    241261                    </div>
    242                         <form action="" method="post" id="thememenu">
     262                    <form action="" method="post" id="thememenu">
    243263                        <label for="theme">' .  __('Theme:','my-custom-css') . '</label>
    244264                            <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()}">
    245265                                <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>
    261281                                </optgroup>
    262282                                <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>
    282302                                </optgroup>
    283303                            </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)
    287311                        {
    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                        }
    298318                        echo '
    299319                        <form id="backup" method="post" action="'.admin_url( 'admin.php' ).'?page=my_custom_css">
    300320                            <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.' />
    302322                        </form>';
    303                         }       
    304                     echo'
     323                    }
     324                echo '
     325                </div>
     326                <div id="my_custom_css_container">
    305327                    <form id="my-custom-css" method="post" action="options.php">';
    306328                    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>';
    314337            }
    315338
     
    331354                $href = plugin_url()."/my_custom_css/bkk/";
    332355                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();" />
    337359                         |
    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') . '\');" />
    339361                    </form>
    340362                    <br />';
     
    353375            {
    354376            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();" />
    358379                <br />';
    359380                foreach (glob(plugin_basedir()."/my_custom_css/bkk/*.css") as $filename)
     
    368389            echo '
    369390            <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 &#128522;</a>
    371392            </div>
    372393            <!-- Smooth Scroll --><a href="#" class="scrollup">&#9650;</a><!-- Smooth Scroll -->
     
    392413
    393414    // 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    }
    395419
    396420    // Admin section:
    397421    function mycustomcss_admin()
    398422    {
    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);
    400424        add_action('admin_init', 'mycustomcss_registersetting');
    401425        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/
    403426    }
    404427
  • my-custom-css/trunk/readme.txt

    r1299322 r1301563  
    44Tags: css, style, custom, theme, plugin, stylesheet, darkwolf, laltroweb, ace, cloud9 editor
    55Requires at least: 4.0
    6 Tested up to: 4.3.1
    7 Stable tag: 2.8
     6Tested up to: 4.4-RC1-35769
     7Stable tag: 2.9
    88
    99Enable to add Custom CSS Code via admin panel with Ace (Ajax.org Cloud9 Editor)
     
    3636== Screenshots ==
    3737
    38 1. My Custom CSS Panel + With All feature and DarkTheme
    39 2. My Custom CSS Panel + With error and LightTheme
     381. My Custom CSS Panel with All feature and DarkTheme
     392. My Custom CSS Panel with LightTheme
    40403. Preview in browser sourcecode
    41414. Backup List (New Feature)!
     
    4949== Upgrade Notice ==
    5050
    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.
    5454
    5555== 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.
    5663
    5764= 2.8 =
Note: See TracChangeset for help on using the changeset viewer.