Plugin Directory

Changeset 2828247


Ignore:
Timestamp:
12/04/2022 12:51:13 AM (3 years ago)
Author:
darkmysite
Message:

Version 1.0.6

Location:
darkmysite
Files:
85 added
6 edited

Legend:

Unmodified
Added
Removed
  • darkmysite/trunk/assets/css/admin_main.css

    r2826208 r2828247  
    1111}
    1212.notice, div.error, div.updated, div.update-nag{
    13     display: none;
     13    display: none !important;
    1414}
    1515.darkmysite_main {
  • darkmysite/trunk/assets/js/client_main.js

    r2827351 r2828247  
    11/* By https://obfuscator.io/ */
    2 function _0x3b3c(_0x3c92e9,_0x1336d8){var _0xa7f72b=_0xa7f7();return _0x3b3c=function(_0x3b3c6d,_0x4f139d){_0x3b3c6d=_0x3b3c6d-0x101;var _0x2692ed=_0xa7f72b[_0x3b3c6d];return _0x2692ed;},_0x3b3c(_0x3c92e9,_0x1336d8);}(function(_0x34d0e6,_0x1d44c9){var _0x4b32ac=_0x3b3c,_0x244492=_0x34d0e6();while(!![]){try{var _0x9a2bfb=parseInt(_0x4b32ac(0x131))/0x1*(-parseInt(_0x4b32ac(0x116))/0x2)+-parseInt(_0x4b32ac(0x133))/0x3+parseInt(_0x4b32ac(0x11d))/0x4*(parseInt(_0x4b32ac(0x101))/0x5)+parseInt(_0x4b32ac(0x11f))/0x6*(parseInt(_0x4b32ac(0x12a))/0x7)+-parseInt(_0x4b32ac(0x111))/0x8*(-parseInt(_0x4b32ac(0x105))/0x9)+-parseInt(_0x4b32ac(0x12d))/0xa+parseInt(_0x4b32ac(0x110))/0xb*(parseInt(_0x4b32ac(0x118))/0xc);if(_0x9a2bfb===_0x1d44c9)break;else _0x244492['push'](_0x244492['shift']());}catch(_0xb80417){_0x244492['push'](_0x244492['shift']());}}}(_0xa7f7,0x5772d));function darkmysite_change_state(){'use strict';var _0x25f3dd=_0x3b3c;localStorage['darkmysite_last_state']=document[_0x25f3dd(0x114)]('html')[0x0][_0x25f3dd(0x103)][_0x25f3dd(0x10c)](_0x25f3dd(0x128))?'1':'0';}function darkmysite_switch_trigger(){'use strict';var _0x4002ea=_0x3b3c;document[_0x4002ea(0x114)](_0x4002ea(0x117))[0x0][_0x4002ea(0x103)][_0x4002ea(0x10c)](_0x4002ea(0x128))?document[_0x4002ea(0x114)](_0x4002ea(0x117))[0x0]['classList'][_0x4002ea(0x11b)](_0x4002ea(0x128)):document[_0x4002ea(0x114)](_0x4002ea(0x117))[0x0][_0x4002ea(0x103)]['add'](_0x4002ea(0x128)),darkmysite_change_state();}function darkmysite_init(){'use strict';var _0x50a06e=_0x3b3c;if(darkmysite_enable_bg_image_darken==='1'){var _0x240798=parseInt(darkmysite_bg_image_darken_to)/0x64;_0x240798=_0x240798[_0x50a06e(0x109)](0x1);var _0x2b7b9a='*';typeof darkmysite_disallowed_elements!==_0x50a06e(0x120)&&(darkmysite_disallowed_elements[_0x50a06e(0x10a)]>0x0&&(_0x2b7b9a=_0x50a06e(0x10d)+darkmysite_disallowed_elements+')'));const _0x470bed=new MutationObserver(_0x3bbb59=>{_0x3bbb59['forEach'](_0x1194a5=>{var _0x1bd46a=_0x3b3c;if(_0x1194a5[_0x1bd46a(0x12b)]===_0x1bd46a(0x124)&&_0x1194a5[_0x1bd46a(0x138)]==='class'){var _0x4ae60d=document['getElementsByTagName'](_0x1bd46a(0x117))[0x0]['classList'][_0x1bd46a(0x10c)](_0x1bd46a(0x128));_0x4ae60d?document[_0x1bd46a(0x129)](_0x2b7b9a)[_0x1bd46a(0x106)](function(_0x3ea67e){var _0x178b9e=_0x1bd46a;window[_0x178b9e(0x113)](_0x3ea67e,null)[_0x178b9e(0x12e)]!=_0x178b9e(0x10e)&&(window[_0x178b9e(0x113)](_0x3ea67e,null)[_0x178b9e(0x12e)]['includes'](_0x178b9e(0x115))&&(!window['getComputedStyle'](_0x3ea67e,null)[_0x178b9e(0x12e)]['includes'](_0x178b9e(0x11a)+_0x240798+')')&&_0x3ea67e[_0x178b9e(0x12c)][_0x178b9e(0x123)](_0x178b9e(0x10f),_0x178b9e(0x137)+_0x240798+'),\x20rgba(0,\x200,\x200,\x20'+_0x240798+_0x178b9e(0x125)+window[_0x178b9e(0x113)](_0x3ea67e,null)[_0x178b9e(0x12e)])));}):document[_0x1bd46a(0x129)](_0x2b7b9a)['forEach'](function(_0x28b423){var _0x1c5b65=_0x1bd46a;window[_0x1c5b65(0x113)](_0x28b423,null)['backgroundImage']!=_0x1c5b65(0x10e)&&(window[_0x1c5b65(0x113)](_0x28b423,null)[_0x1c5b65(0x12e)][_0x1c5b65(0x136)](_0x1c5b65(0x11a)+_0x240798+')')&&_0x28b423['style']['setProperty'](_0x1c5b65(0x10f),window[_0x1c5b65(0x113)](_0x28b423,null)[_0x1c5b65(0x12e)][_0x1c5b65(0x132)](_0x1c5b65(0x137)+_0x240798+_0x1c5b65(0x107)+_0x240798+_0x1c5b65(0x125),'')));});}});});_0x470bed[_0x50a06e(0x11e)](document[_0x50a06e(0x114)](_0x50a06e(0x117))[0x0],{'attributes':!![]});}document[_0x50a06e(0x129)]('*')[_0x50a06e(0x106)](function(_0x3f49c7){var _0x57d03b=_0x50a06e;window[_0x57d03b(0x113)](_0x3f49c7,null)['backgroundColor']=='rgba(0,\x200,\x200,\x200)'?(_0x3f49c7[_0x57d03b(0x103)][_0x57d03b(0x11c)](_0x57d03b(0x10b)),_0x3f49c7[_0x57d03b(0x129)]('*')[_0x57d03b(0x106)](function(_0x593f3c){return _0x593f3c['classList']['add']('darkmysite_bg_ignore');})):_0x3f49c7[_0x57d03b(0x103)][_0x57d03b(0x11b)](_0x57d03b(0x10b)),window[_0x57d03b(0x113)](_0x3f49c7,null)['backgroundImage']!=_0x57d03b(0x10e)&&(!window[_0x57d03b(0x113)](_0x3f49c7,null)[_0x57d03b(0x12e)][_0x57d03b(0x136)](_0x57d03b(0x115))?_0x3f49c7['classList'][_0x57d03b(0x11b)](_0x57d03b(0x10b)):_0x3f49c7[_0x57d03b(0x103)]['add'](_0x57d03b(0x10b)));});if(darkmysite_last_state==='1'||darkmysite_last_state==='0')darkmysite_last_state==='1'&&document[_0x50a06e(0x114)](_0x50a06e(0x117))[0x0][_0x50a06e(0x103)][_0x50a06e(0x11c)](_0x50a06e(0x128));else{darkmysite_enable_default_dark_mode==='1'&&document[_0x50a06e(0x114)]('html')[0x0][_0x50a06e(0x103)]['add'](_0x50a06e(0x128));if(darkmysite_enable_time_based_dark==='1'){var _0xab72c0=new Date(),_0x322344=new Date(),_0x4b3869=new Date();_0x322344[_0x50a06e(0x126)](parseInt(darkmysite_time_based_dark_start[_0x50a06e(0x12f)](':')[0x0])),_0x322344[_0x50a06e(0x108)](parseInt(darkmysite_time_based_dark_start['split'](':')[0x1])),_0x4b3869[_0x50a06e(0x126)](parseInt(darkmysite_time_based_dark_stop[_0x50a06e(0x12f)](':')[0x0])),_0x4b3869[_0x50a06e(0x108)](parseInt(darkmysite_time_based_dark_stop[_0x50a06e(0x12f)](':')[0x1])),_0xab72c0['getTime']()>_0x322344[_0x50a06e(0x121)]()&&_0xab72c0[_0x50a06e(0x121)]()<_0x4b3869[_0x50a06e(0x121)]()&&document[_0x50a06e(0x114)]('html')[0x0][_0x50a06e(0x103)]['add'](_0x50a06e(0x128));}}darkmysite_enable_os_aware==='1'&&window[_0x50a06e(0x122)](_0x50a06e(0x135))['addEventListener'](_0x50a06e(0x112),_0x3b11cc=>{var _0x130740=_0x50a06e,_0x1b1a97=_0x3b11cc['matches']?_0x130740(0x127):_0x130740(0x104);if(_0x1b1a97===_0x130740(0x127))document[_0x130740(0x114)](_0x130740(0x117))[0x0]['classList'][_0x130740(0x11c)](_0x130740(0x128));else _0x1b1a97==='light'&&document[_0x130740(0x114)](_0x130740(0x117))[0x0]['classList'][_0x130740(0x11b)](_0x130740(0x128));darkmysite_change_state();}),darkmysite_enable_keyboard_shortcut==='1'&&(document[_0x50a06e(0x102)]=function(_0xc4c2fc){var _0xc8247c=_0x50a06e;if(!_0xc4c2fc)_0xc4c2fc=event;_0xc4c2fc[_0xc8247c(0x130)]&&_0xc4c2fc[_0xc8247c(0x119)]&&_0xc4c2fc[_0xc8247c(0x134)]===0x44&&darkmysite_switch_trigger();});}function _0xa7f7(){var _0x306bfe=['getComputedStyle','getElementsByTagName','url','4GvtCNK','html','81012aUTihp','altKey','rgba(0,\x200,\x200,\x20','remove','add','68cnvbYT','observe','30sjZuct','undefined','getTime','matchMedia','setProperty','attributes',')),\x20','setHours','dark','darkmysite_dark_mode_enabled','querySelectorAll','263837uEFpzr','type','style','4445420KFktbe','backgroundImage','split','ctrlKey','53517OpHHqO','replace','1819833doqaVM','keyCode','(prefers-color-scheme:\x20dark)','includes','linear-gradient(rgba(0,\x200,\x200,\x20','attributeName','155065mzZQgQ','onkeydown','classList','light','9135DwJssJ','forEach','),\x20rgba(0,\x200,\x200,\x20','setMinutes','toFixed','length','darkmysite_bg_ignore','contains','*\x20:not(','none','background-image','1045aVxqIT','1256QnhtHE','change'];_0xa7f7=function(){return _0x306bfe;};return _0xa7f7();}
     2function _0x1dbd(_0x414f04,_0x10e794){var _0x19928f=_0x1992();return _0x1dbd=function(_0x1dbd81,_0x4f604e){_0x1dbd81=_0x1dbd81-0x1c7;var _0xfb220a=_0x19928f[_0x1dbd81];return _0xfb220a;},_0x1dbd(_0x414f04,_0x10e794);}(function(_0x14e729,_0x2f0f2d){var _0x57958f=_0x1dbd,_0x5a9b43=_0x14e729();while(!![]){try{var _0x16cd9f=parseInt(_0x57958f(0x1f3))/0x1*(-parseInt(_0x57958f(0x1d3))/0x2)+parseInt(_0x57958f(0x1d4))/0x3+parseInt(_0x57958f(0x1ff))/0x4+parseInt(_0x57958f(0x1f0))/0x5+parseInt(_0x57958f(0x1de))/0x6+-parseInt(_0x57958f(0x1e6))/0x7*(-parseInt(_0x57958f(0x1f9))/0x8)+-parseInt(_0x57958f(0x1ec))/0x9;if(_0x16cd9f===_0x2f0f2d)break;else _0x5a9b43['push'](_0x5a9b43['shift']());}catch(_0x377ba8){_0x5a9b43['push'](_0x5a9b43['shift']());}}}(_0x1992,0xbd899));function darkmysite_change_state(){'use strict';var _0x21eb19=_0x1dbd;localStorage['darkmysite_last_state']=document[_0x21eb19(0x1fd)](_0x21eb19(0x1f8))[0x0][_0x21eb19(0x1cc)]['contains'](_0x21eb19(0x1cb))?'1':'0';}function darkmysite_switch_trigger(){'use strict';var _0x53368a=_0x1dbd;document[_0x53368a(0x1fd)](_0x53368a(0x1f8))[0x0][_0x53368a(0x1cc)][_0x53368a(0x1f6)](_0x53368a(0x1cb))?document[_0x53368a(0x1fd)](_0x53368a(0x1f8))[0x0][_0x53368a(0x1cc)][_0x53368a(0x1e5)](_0x53368a(0x1cb)):document['getElementsByTagName'](_0x53368a(0x1f8))[0x0]['classList'][_0x53368a(0x1fa)](_0x53368a(0x1cb)),darkmysite_change_state();}function darkmysite_init(){'use strict';var _0x1b8ec0=_0x1dbd;document[_0x1b8ec0(0x1cf)](_0x1b8ec0(0x1e4))&&document[_0x1b8ec0(0x1cf)]('darkmysite_preload_css')[_0x1b8ec0(0x1e5)]();if(darkmysite_enable_bg_image_darken==='1'){var _0x315462=parseInt(darkmysite_bg_image_darken_to)/0x64;_0x315462=_0x315462['toFixed'](0x1);var _0x7b57a6='*';typeof darkmysite_disallowed_elements!=='undefined'&&(darkmysite_disallowed_elements[_0x1b8ec0(0x1ea)]>0x0&&(_0x7b57a6=_0x1b8ec0(0x1fe)+darkmysite_disallowed_elements+')'));const _0x3ecfb4=new MutationObserver(_0x373372=>{_0x373372['forEach'](_0x2c2a3b=>{var _0x5ccf09=_0x1dbd;if(_0x2c2a3b[_0x5ccf09(0x1da)]===_0x5ccf09(0x1ee)&&_0x2c2a3b[_0x5ccf09(0x1d8)]===_0x5ccf09(0x1dc)){var _0x373ec2=document['getElementsByTagName'](_0x5ccf09(0x1f8))[0x0][_0x5ccf09(0x1cc)]['contains']('darkmysite_dark_mode_enabled');_0x373ec2?document['querySelectorAll'](_0x7b57a6)[_0x5ccf09(0x1e9)](function(_0xd98bd3){var _0x149945=_0x5ccf09;window[_0x149945(0x1fc)](_0xd98bd3,null)[_0x149945(0x1e2)]!='none'&&(window[_0x149945(0x1fc)](_0xd98bd3,null)['backgroundImage']['includes'](_0x149945(0x1e3))&&(!window['getComputedStyle'](_0xd98bd3,null)[_0x149945(0x1e2)][_0x149945(0x1d1)](_0x149945(0x1f5)+_0x315462+')')&&_0xd98bd3[_0x149945(0x1ef)][_0x149945(0x1e7)](_0x149945(0x1f4),_0x149945(0x1c8)+_0x315462+_0x149945(0x1d9)+_0x315462+')),\x20'+window['getComputedStyle'](_0xd98bd3,null)[_0x149945(0x1e2)])));}):document[_0x5ccf09(0x1f2)](_0x7b57a6)[_0x5ccf09(0x1e9)](function(_0x74c57c){var _0x3d1a6c=_0x5ccf09;window[_0x3d1a6c(0x1fc)](_0x74c57c,null)[_0x3d1a6c(0x1e2)]!=_0x3d1a6c(0x1eb)&&(window[_0x3d1a6c(0x1fc)](_0x74c57c,null)[_0x3d1a6c(0x1e2)][_0x3d1a6c(0x1d1)](_0x3d1a6c(0x1f5)+_0x315462+')')&&_0x74c57c[_0x3d1a6c(0x1ef)][_0x3d1a6c(0x1e7)](_0x3d1a6c(0x1f4),window[_0x3d1a6c(0x1fc)](_0x74c57c,null)[_0x3d1a6c(0x1e2)][_0x3d1a6c(0x1ca)](_0x3d1a6c(0x1c8)+_0x315462+_0x3d1a6c(0x1d9)+_0x315462+_0x3d1a6c(0x1e1),'')));});}});});_0x3ecfb4[_0x1b8ec0(0x1c9)](document['getElementsByTagName'](_0x1b8ec0(0x1f8))[0x0],{'attributes':!![]});}document[_0x1b8ec0(0x1f2)]('*')[_0x1b8ec0(0x1e9)](function(_0x2552cd){var _0x5a98bf=_0x1b8ec0;window['getComputedStyle'](_0x2552cd,null)[_0x5a98bf(0x1e8)]==_0x5a98bf(0x1f1)?(_0x2552cd['classList'][_0x5a98bf(0x1fa)](_0x5a98bf(0x1cd)),_0x2552cd[_0x5a98bf(0x1f2)]('*')[_0x5a98bf(0x1e9)](function(_0x1fb0b6){var _0x499cb3=_0x5a98bf;return _0x1fb0b6['classList'][_0x499cb3(0x1fa)](_0x499cb3(0x1cd));})):_0x2552cd[_0x5a98bf(0x1cc)][_0x5a98bf(0x1e5)](_0x5a98bf(0x1cd)),window[_0x5a98bf(0x1fc)](_0x2552cd,null)[_0x5a98bf(0x1e2)]!=_0x5a98bf(0x1eb)&&(!window[_0x5a98bf(0x1fc)](_0x2552cd,null)['backgroundImage']['includes'](_0x5a98bf(0x1e3))?_0x2552cd[_0x5a98bf(0x1cc)][_0x5a98bf(0x1e5)](_0x5a98bf(0x1cd)):_0x2552cd['classList'][_0x5a98bf(0x1fa)](_0x5a98bf(0x1cd)));});if(darkmysite_last_state==='1'||darkmysite_last_state==='0')darkmysite_last_state==='1'&&document['getElementsByTagName']('html')[0x0][_0x1b8ec0(0x1cc)][_0x1b8ec0(0x1fa)]('darkmysite_dark_mode_enabled');else{darkmysite_enable_default_dark_mode==='1'&&document['getElementsByTagName'](_0x1b8ec0(0x1f8))[0x0]['classList']['add'](_0x1b8ec0(0x1cb));if(darkmysite_enable_time_based_dark==='1'){var _0x36f339=new Date(),_0x5458c2=new Date(),_0x3f9542=new Date();_0x5458c2[_0x1b8ec0(0x1d6)](parseInt(darkmysite_time_based_dark_start[_0x1b8ec0(0x1ce)](':')[0x0])),_0x5458c2[_0x1b8ec0(0x1df)](parseInt(darkmysite_time_based_dark_start[_0x1b8ec0(0x1ce)](':')[0x1])),_0x3f9542[_0x1b8ec0(0x1d6)](parseInt(darkmysite_time_based_dark_stop['split'](':')[0x0])),_0x3f9542['setMinutes'](parseInt(darkmysite_time_based_dark_stop[_0x1b8ec0(0x1ce)](':')[0x1])),_0x36f339[_0x1b8ec0(0x1d2)]()>_0x5458c2[_0x1b8ec0(0x1d2)]()&&_0x36f339[_0x1b8ec0(0x1d2)]()<_0x3f9542[_0x1b8ec0(0x1d2)]()&&document[_0x1b8ec0(0x1fd)](_0x1b8ec0(0x1f8))[0x0]['classList'][_0x1b8ec0(0x1fa)](_0x1b8ec0(0x1cb));}}darkmysite_enable_os_aware==='1'&&window[_0x1b8ec0(0x1fb)](_0x1b8ec0(0x1d5))[_0x1b8ec0(0x1ed)](_0x1b8ec0(0x1dd),_0x5e15ea=>{var _0x3fa7ca=_0x1b8ec0,_0x5cc3ba=_0x5e15ea[_0x3fa7ca(0x1f7)]?'dark':_0x3fa7ca(0x1c7);if(_0x5cc3ba===_0x3fa7ca(0x1d7))document[_0x3fa7ca(0x1fd)](_0x3fa7ca(0x1f8))[0x0][_0x3fa7ca(0x1cc)][_0x3fa7ca(0x1fa)](_0x3fa7ca(0x1cb));else _0x5cc3ba===_0x3fa7ca(0x1c7)&&document[_0x3fa7ca(0x1fd)](_0x3fa7ca(0x1f8))[0x0][_0x3fa7ca(0x1cc)][_0x3fa7ca(0x1e5)]('darkmysite_dark_mode_enabled');darkmysite_change_state();}),darkmysite_enable_keyboard_shortcut==='1'&&(document[_0x1b8ec0(0x1e0)]=function(_0x147e25){var _0x2fccce=_0x1b8ec0;if(!_0x147e25)_0x147e25=event;_0x147e25['ctrlKey']&&_0x147e25[_0x2fccce(0x1d0)]&&_0x147e25[_0x2fccce(0x1db)]===0x44&&darkmysite_switch_trigger();});}function _0x1992(){var _0x2eeba8=['replace','darkmysite_dark_mode_enabled','classList','darkmysite_bg_ignore','split','getElementById','altKey','includes','getTime','22cuVjjb','2681220vdlEWm','(prefers-color-scheme:\x20dark)','setHours','dark','attributeName','),\x20rgba(0,\x200,\x200,\x20','type','keyCode','class','change','6633414CwhAdE','setMinutes','onkeydown',')),\x20','backgroundImage','url','darkmysite_preload_css','remove','45871QEEjBr','setProperty','backgroundColor','forEach','length','none','8430822jxxElN','addEventListener','attributes','style','494420CzHNgD','rgba(0,\x200,\x200,\x200)','querySelectorAll','73421ktnePc','background-image','rgba(0,\x200,\x200,\x20','contains','matches','html','200qlyEtx','add','matchMedia','getComputedStyle','getElementsByTagName','*\x20:not(','1034864eicbnq','light','linear-gradient(rgba(0,\x200,\x200,\x20','observe'];_0x1992=function(){return _0x2eeba8;};return _0x1992();}
  • darkmysite/trunk/backend/templates/views/advanced.php

    r2823847 r2828247  
    6767
    6868
     69    <div class="darkmysite_section_header">
     70        <h3>Post Restriction</h3>
     71        <p>Allow or Disallow dark mode on WordPress Posts</p>
     72    </div>
     73    <div class="darkmysite_section_block">
     74        <div class="darkmysite_textarea_setting pro_lock" onclick="darkmysite_show_pro_popup(``, ``)">
     75            <h4>Allow Only Posts</h4>
     76            <p>Dark mode will be applied only to these posts.</p>
     77            <textarea rows="3"></textarea>
     78            <span>Choose the posts only where dark mode and floating switch can work. No other posts will be able to process dark mode.</span>
     79        </div>
     80        <div class="darkmysite_section_block_separator" style="height: 0; background: transparent;"></div>
     81        <div class="darkmysite_textarea_setting pro_lock" onclick="darkmysite_show_pro_popup(``, ``)">
     82            <h4>Disallowed Posts</h4>
     83            <p>Dark mode will not be applied to these posts.</p>
     84            <textarea rows="3"></textarea>
     85            <span>Choose the posts where dark mode and floating switch can not work. Other posts will be able to process dark mode.</span>
     86        </div>
     87    </div>
     88
     89
     90
    6991
    7092    <div class="darkmysite_section_header">
  • darkmysite/trunk/darkmysite.php

    r2827351 r2828247  
    44 * Plugin URI:        https://darkmysite.com
    55 * Description:       Simplest way to enable dark mode on your website - DarkMySite.
    6  * Version:           1.0.5
     6 * Version:           1.0.6
    77 * Author:            DarkMySite - WP Dark Mode
    88 * Author URI:        https://darkmysite.com
     
    1919}
    2020
    21 defined( 'DARKMYSITE_VERSION' ) or define( 'DARKMYSITE_VERSION', '1.0.5' );
     21defined( 'DARKMYSITE_VERSION' ) or define( 'DARKMYSITE_VERSION', '1.0.6' );
    2222defined( 'DARKMYSITE_PATH' ) or define( 'DARKMYSITE_PATH', plugin_dir_path( __FILE__ ) );
    2323defined( 'DARKMYSITE_URL' ) or define( 'DARKMYSITE_URL', plugin_dir_url( __FILE__ ) );
  • darkmysite/trunk/frontend/class-darkmysite-client.php

    r2823847 r2828247  
    2424
    2525            add_action( 'wp_enqueue_scripts', array( $this, 'darkmysite_client_enqueue' ) );
     26            add_action( 'wp_head', array( $this, 'darkmysite_client_dashboard_preloader' ), 1);
    2627            add_action( 'wp_footer', array( $this, 'darkmysite_client_dashboard' ) );
    2728        }
     
    4344
    4445
     46        function darkmysite_client_dashboard_preloader()
     47        {
     48            include_once DARKMYSITE_PATH . "frontend/templates/preloader.php";
     49        }
     50
    4551        function darkmysite_client_dashboard()
    4652        {
  • darkmysite/trunk/readme.txt

    r2827351 r2828247  
    66Requires at least: 4.8
    77Tested up to: 6.1
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919
    2020[youtube https://www.youtube.com/watch?v=277_UYIzHJU]
     21
     22<h3>Advanced Dark Making Technology</h3>
     23<p>Where other plugins, randomly just change the background colors of everything, DarkMySite works in an advanced way to find appropriate elements to work on.</p>
     24<p>Using the advanced systematic eye on your original design, DarkMySite can properly make things dark without damaging the original layout.</p>
    2125
    2226<h3>Multiple Floating Switch</h3>
     
    3539<p>DarkMySite takes the responsibility to automatically turn dark mode ON or OFF according to your website's visitors' local time. You can set the starting and ending time in which your website visitors will see the dark version of the website.</p>
    3640
    37 
    3841<h3>Lightweight and Page Builder Supported</h3>
    3942<p>No matter which page builder you use, DarkMySite tries to create the night mode with maximum coverage.</p>
     
    4952    <li><strong>Color Preset Customization:</strong> allows to customize the link color, button color, form fields color, border color etc. in dark mode to match perfectly with your websites look.</li>
    5053    <li><strong>Allow / Disallow Elements:</strong> provide the powerful controls to allow or disallow dark mode in your website's specific html elements or sections.</li>
     54    <li><strong>Allow / Disallow Pages:</strong> controls to allow or disallow dark mode in your website's specific pages.</li>
     55    <li><strong>Allow / Disallow Posts:</strong> controls to allow or disallow dark mode in your website's specific posts.</li>
    5156    <li><strong>Custom CSS:</strong> allows you to write custom styles using CSS to be effective only on dark mode.</li>
    5257    <li><strong>Image Grayscale:</strong> helps to automatically grayscale all images displayed on your website in dark mode.</li>
     
    116121== Changelog ==
    117122
     123= 1.0.6 =
     124Improved functionality has been added to make dark mode more stable.
     1251. White blink issue on page change on dark mode enabled has been fixed
     1262. WordPress Post Restriction has been added to allow or disallow dark mode on specific posts
     127
    118128= 1.0.5 =
    119129Improved functionality has been added.
Note: See TracChangeset for help on using the changeset viewer.