Changeset 3326031
- Timestamp:
- 07/11/2025 03:17:52 AM (5 months ago)
- Location:
- fiber-admin
- Files:
-
- 2 deleted
- 18 edited
- 1 copied
-
tags/3.2.6 (copied) (copied from fiber-admin/trunk)
-
tags/3.2.6/assets/css/fiber-admin.css (modified) (4 diffs)
-
tags/3.2.6/assets/images (deleted)
-
tags/3.2.6/changelog.txt (modified) (1 diff)
-
tags/3.2.6/fiberadmin.php (modified) (2 diffs)
-
tags/3.2.6/includes/content.php (modified) (2 diffs)
-
tags/3.2.6/includes/settings/cpo.php (modified) (2 diffs)
-
tags/3.2.6/includes/settings/db-error.php (modified) (1 diff)
-
tags/3.2.6/includes/settings/miscellaneous.php (modified) (6 diffs)
-
tags/3.2.6/includes/settings/white-label.php (modified) (3 diffs)
-
tags/3.2.6/readme.txt (modified) (2 diffs)
-
trunk/assets/css/fiber-admin.css (modified) (4 diffs)
-
trunk/assets/images (deleted)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fiberadmin.php (modified) (2 diffs)
-
trunk/includes/content.php (modified) (2 diffs)
-
trunk/includes/settings/cpo.php (modified) (2 diffs)
-
trunk/includes/settings/db-error.php (modified) (1 diff)
-
trunk/includes/settings/miscellaneous.php (modified) (6 diffs)
-
trunk/includes/settings/white-label.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fiber-admin/tags/3.2.6/assets/css/fiber-admin.css
r2608259 r3326031 2 2 * Setting page 3 3 */ 4 4 5 .fiber-admin button {vertical-align:middle !important;} 5 .fiber-admin .fiber-admin-input__multiples input {margin:0 0 1em;}6 6 .fiber-admin .fiber-admin-input__multiples .fiber-admin-input__label { 7 7 display:inline-block;min-width:10em;vertical-align:middle; … … 20 20 21 21 /** 22 * Checkbox toggle23 */24 .form-table td fieldset label.fiber-admin-toggle {margin:0.5em 0 0.5em !important;}25 .fiber-admin-toggle {position:relative;width:2em;height:1em;}26 27 /* Hide default HTML checkbox */28 .fiber-admin-toggle input {opacity:0;width:0;height:0;}29 30 /* The slider */31 .fiber-admin-toggle .slider {32 position:absolute;top:0;left:0;right:0;bottom:0;33 cursor:pointer;34 background-color:#ccc;35 -webkit-transition:.4s;transition:.4s;36 }37 .fiber-admin-toggle .slider:before {38 position:absolute;height:11px;width:11px;left:2px;bottom:2px;39 content:"";40 background-color:white;41 -webkit-transition:.4s;transition:.4s;42 }43 .fiber-admin-toggle input:checked + .slider {background-color:#9fd6ae;}44 .fiber-admin-toggle input:focus + .slider {box-shadow:0 0 1px #9fd6ae;}45 .fiber-admin-toggle input:checked + .slider:before {46 -webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px);47 }48 49 /* Rounded sliders */50 .fiber-admin-toggle .slider.round {border-radius:34px;}51 .fiber-admin-toggle .slider.round:before {border-radius:50%;}52 53 /**54 22 * Multiple select 55 23 */ 24 56 25 .fiber-admin .fiber-admin-selection--multiple {min-width:300px;} 57 26 … … 65 34 * UI Sortable 66 35 */ 36 67 37 .wp-list-table .ui-sortable tr {cursor:grab;} 68 38 … … 70 40 * Loading 71 41 */ 42 72 43 .fa-loading .ui-sortable {opacity:0.5;} -
fiber-admin/tags/3.2.6/changelog.txt
r3221306 r3326031 1 1 == Changelog == 2 3 = 3.2.6 = 4 *Release Date - 11 July 2025* 5 6 * Changed: Update WordPress version to 6.8.1. 7 * Changed: Use default WordPress admin setting UI instead of creating custom admin style. 8 * Changed: Create 2 new options: Enable Text Protection and Enable Image Protection. 2 9 3 10 = 3.2.5 = -
fiber-admin/tags/3.2.6/fiberadmin.php
r3221306 r3326031 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 3.2. 56 * Version: 3.2.6 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.4 … … 26 26 */ 27 27 28 const FIBERADMIN_VERSION = '3.2. 5';28 const FIBERADMIN_VERSION = '3.2.6'; 29 29 const FIBERADMIN_DEV_MODE = false; 30 30 const FIBERADMIN_FILENAME = __FILE__; -
fiber-admin/tags/3.2.6/includes/content.php
r3181293 r3326031 18 18 19 19 // Content protection 20 if(!fiad_get_miscellaneous_option('disable_content_protection') && !fiad_is_admin_user_role()){ 20 if((fiad_get_miscellaneous_option('enable_text_protection') || fiad_get_miscellaneous_option('enable_image_protection')) 21 && !fiad_is_admin_user_role()){ 21 22 add_action('wp_footer', [$this, 'fiad_content_protection_scripts']); 22 23 } … … 68 69 69 70 public function fiad_content_protection_scripts(){ 70 if(FIBERADMIN_DEV_MODE){ 71 echo ' 72 <script> 73 // text 74 const disable_keys = ["s","a","c","x","C","J","U","I"]; 75 document.addEventListener("keydown", function(e){ 76 if(((navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) && disable_keys.includes(e.key)) || e.key === "F12"){ 77 e.preventDefault(); 78 } 79 }, false); 80 81 ["cut", "copy"].forEach(even => { 82 document.querySelector("body").addEventListener(even, e => { 83 e.preventDefault(); 84 }); 85 }); 86 87 // image 88 setTimeout(function(){ 89 const currentURL = window.location.hostname, 90 images = document.getElementsByTagName("img"); 91 92 let imageURL = ""; 93 for(let i = 0; i < images.length; i++){ 94 imageURL = images[i].src; 95 if(imageURL.includes(currentURL)){ 96 images[i].addEventListener("contextmenu", event => event.preventDefault()); 97 images[i].setAttribute("draggable", false); 98 } 99 } 100 }, 1000); 101 </script> 102 '; 103 }else{ 104 echo '<script>const disable_keys=["s","a","c","x","C","J","U","I"];document.addEventListener("keydown",function(e){((navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&disable_keys.includes(e.key)||"F12"===e.key)&&e.preventDefault()},!1),["cut","copy"].forEach(e=>{document.querySelector("body").addEventListener(e,e=>{e.preventDefault()})}),setTimeout(function(){let e=window.location.hostname,t=document.getElementsByTagName("img"),n="";for(let a=0;a<t.length;a++)(n=t[a].src).includes(e)&&(t[a].addEventListener("contextmenu",e=>e.preventDefault()),t[a].setAttribute("draggable",!1))},1e3);</script>'; 71 $scripts = ''; 72 73 if(fiad_get_miscellaneous_option('enable_text_protection')){ 74 $scripts .= FIBERADMIN_DEV_MODE ? 75 '<script> 76 const disableKeys = ["s", "a", "c", "x", "C", "J", "U", "I"]; 77 document.addEventListener("keydown", function(e) { 78 const isModifierPressed = navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey; 79 if ((isModifierPressed && disableKeys.includes(e.key)) || e.key === "F12") { 80 e.preventDefault(); 81 } 82 }, false); 83 84 ["cut", "copy"].forEach(eventType => { 85 document.body.addEventListener(eventType, e => { 86 e.preventDefault(); 87 }); 88 }); 89 </script>' : 90 '<script>const disableKeys=["s","a","c","x","C","J","U","I"];document.addEventListener("keydown",(function(e){((navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&disableKeys.includes(e.key)||"F12"===e.key)&&e.preventDefault()}),!1),["cut","copy"].forEach((e=>{document.body.addEventListener(e,(e=>{e.preventDefault()}))}));</script>'; 91 } 92 93 if(fiad_get_miscellaneous_option('enable_image_protection')){ 94 $scripts .= FIBERADMIN_DEV_MODE ? 95 '<script> 96 setTimeout(function() { 97 const currentHostname = window.location.hostname; 98 const images = document.getElementsByTagName("img"); 99 100 Array.from(images).forEach(img => { 101 if (img.src.includes(currentHostname)) { 102 img.addEventListener("contextmenu", e => e.preventDefault()); 103 img.setAttribute("draggable", false); 104 } 105 }); 106 }, 1000); 107 </script>' : 108 '<script>setTimeout((function(){const e=window.location.hostname,t=document.getElementsByTagName("img");Array.from(t).forEach((t=>{t.src.includes(e)&&(t.addEventListener("contextmenu",(e=>e.preventDefault())),t.setAttribute("draggable",!1))}))}),1e3);</script>'; 109 } 110 111 if($scripts){ 112 echo $scripts; 105 113 } 106 114 } -
fiber-admin/tags/3.2.6/includes/settings/cpo.php
r3139472 r3326031 97 97 ?> 98 98 <fieldset> 99 <label for="override_default_query" class="fiber-admin-toggle">99 <label for="override_default_query"> 100 100 <input type="checkbox" name="fiad_cpo[override_default_query]" 101 101 id="override_default_query" 102 102 value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_query')), 'yes'); ?> /> 103 <span class="slider round"></span>104 103 </label> 105 104 </fieldset> … … 153 152 ?> 154 153 <fieldset> 155 <label for="override_default_tax_query" class="fiber-admin-toggle">154 <label for="override_default_tax_query"> 156 155 <input type="checkbox" name="fiad_cpo[override_default_tax_query]" 157 156 id="override_default_tax_query" 158 157 value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_tax_query')), 'yes'); ?> /> 159 <span class="slider round"></span>160 158 </label> 161 159 </fieldset> -
fiber-admin/tags/3.2.6/includes/settings/db-error.php
r2962829 r3326031 90 90 ?> 91 91 <fieldset> 92 <label for="db_error_enable" class="fiber-admin-toggle">92 <label for="db_error_enable"> 93 93 <input type="checkbox" name="fiad_db_error[db_error_enable]" id="db_error_enable" 94 94 value="yes" <?php checked(esc_attr(fiad_get_db_error_option('db_error_enable')), 'yes'); ?> /> 95 <span class="slider round"></span>96 95 </label> 97 96 </fieldset> -
fiber-admin/tags/3.2.6/includes/settings/miscellaneous.php
r2931908 r3326031 66 66 67 67 add_settings_field( 68 'disable_content_protection', // id 69 'Disable Content Protection', // title 70 [$this, 'fiad_disable_content_protection'], // callback 68 'enable_text_protection', // id 69 'Enable Text Protection', // title 70 [$this, 'fiad_enable_text_protection'], // callback 71 'fiber-admin-miscellaneous', // page 72 'fiad_content_section' // section 73 ); 74 75 add_settings_field( 76 'enable_image_protection', // id 77 'Enable Image Protection', // title 78 [$this, 'fiad_enable_image_protection'], // callback 71 79 'fiber-admin-miscellaneous', // page 72 80 'fiad_content_section' // section … … 88 96 ?> 89 97 <fieldset> 90 <label for="enable_auto_update" class="fiber-admin-toggle">98 <label for="enable_auto_update"> 91 99 <input type="checkbox" name="fiad_miscellaneous[enable_auto_update]" id="enable_auto_update" 92 100 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_auto_update')), 'yes'); ?> /> 93 <span class="slider round"></span>94 101 </label> 95 102 </fieldset> … … 116 123 ?> 117 124 <fieldset> 118 <label for="disable_email_converter" class="fiber-admin-toggle">125 <label for="disable_email_converter"> 119 126 <input type="checkbox" name="fiad_miscellaneous[disable_email_converter]" 120 127 id="disable_email_converter" 121 128 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_email_converter')), 'yes'); ?> /> 122 <span class="slider round"></span>123 129 </label> 124 130 </fieldset> … … 129 135 ?> 130 136 <fieldset> 131 <label for="enable_svg" class="fiber-admin-toggle">137 <label for="enable_svg"> 132 138 <input type="checkbox" name="fiad_miscellaneous[enable_svg]" 133 139 id="enable_svg" 134 140 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_svg')), 'yes'); ?> /> 135 <span class="slider round"></span>136 141 </label> 137 142 </fieldset> … … 139 144 } 140 145 141 public function fiad_ disable_content_protection(){146 public function fiad_enable_text_protection(){ 142 147 ?> 143 148 <fieldset> 144 <label for="disable_content_protection" class="fiber-admin-toggle"> 145 <input type="checkbox" name="fiad_miscellaneous[disable_content_protection]" 146 id="disable_content_protection" 147 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_content_protection')), 'yes'); ?> /> 148 <span class="slider round"></span> 149 <label for="enable_text_protection"> 150 <input type="checkbox" name="fiad_miscellaneous[enable_text_protection]" 151 id="enable_text_protection" 152 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_text_protection')), 'yes'); ?> /> 153 </label> 154 </fieldset> 155 <?php 156 } 157 158 public function fiad_enable_image_protection(){ 159 ?> 160 <fieldset> 161 <label for="enable_image_protection"> 162 <input type="checkbox" name="fiad_miscellaneous[enable_image_protection]" 163 id="enable_image_protection" 164 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_image_protection')), 'yes'); ?> /> 149 165 </label> 150 166 </fieldset> … … 155 171 ?> 156 172 <fieldset> 157 <label for="enable_comments" class="fiber-admin-toggle">173 <label for="enable_comments"> 158 174 <input type="checkbox" name="fiad_miscellaneous[enable_comments]" 159 175 id="enable_comments" 160 176 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_comments')), 'yes'); ?> /> 161 <span class="slider round"></span>162 177 </label> 163 178 </fieldset> -
fiber-admin/tags/3.2.6/includes/settings/white-label.php
r2962829 r3326031 117 117 ?> 118 118 <fieldset> 119 <label for="hide_wordpress_branding" class="fiber-admin-toggle">119 <label for="hide_wordpress_branding"> 120 120 <input type="checkbox" name="fiber_admin[hide_wordpress_branding]" id="hide_wordpress_branding" 121 121 value="yes" <?php checked(esc_attr(fiad_get_general_option('hide_wordpress_branding')), 'yes'); ?> /> 122 <span class="slider round"></span>123 122 </label> 124 123 </fieldset> … … 129 128 ?> 130 129 <fieldset> 131 <label for="enable_admin_toolbar" class="fiber-admin-toggle">130 <label for="enable_admin_toolbar"> 132 131 <input type="checkbox" name="fiber_admin[enable_admin_toolbar]" id="enable_admin_toolbar" 133 132 value="yes" <?php checked(esc_attr(fiad_get_general_option('enable_admin_toolbar')), 'yes'); ?> /> 134 <span class="slider round"></span>135 133 </label> 136 134 </fieldset> … … 215 213 <br/> 216 214 <div class="fiber-admin-input__label"><?php echo __('Disable Form Border', 'fiber-admin'); ?></div> 217 <label for="form_disable_border" class="fiber-admin-toggle">215 <label for="form_disable_border"> 218 216 <input type="checkbox" name="fiber_admin[form_disable_border]" id="form_disable_border" 219 217 value="yes" <?php checked(esc_attr(fiad_get_general_option('form_disable_border')), 'yes'); ?> /> 220 <span class="slider round"></span>221 218 </label> 222 219 </fieldset> -
fiber-admin/tags/3.2.6/readme.txt
r3221306 r3326031 3 3 Tags: white label, duplicate post, content protection 4 4 Requires at least: 4.7 5 Tested up to: 6. 6.25 Tested up to: 6.8.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.2. 57 Stable tag: 3.2.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 3.2. 5=52 *Release Date - 1 3 January 2025*51 = 3.2.6 = 52 *Release Date - 11 July 2025* 53 53 54 * Fixed: Fix warning "gives error _load_textdomain_just_in_time was called incorrectly" with WordPress 6.7.1 54 * Changed: Update WordPress version to 6.8.1. 55 * Changed: Use default WordPress admin setting UI instead of creating custom admin style. 56 * Changed: Create 2 new options: Enable Text Protection and Enable Image Protection. -
fiber-admin/trunk/assets/css/fiber-admin.css
r2608259 r3326031 2 2 * Setting page 3 3 */ 4 4 5 .fiber-admin button {vertical-align:middle !important;} 5 .fiber-admin .fiber-admin-input__multiples input {margin:0 0 1em;}6 6 .fiber-admin .fiber-admin-input__multiples .fiber-admin-input__label { 7 7 display:inline-block;min-width:10em;vertical-align:middle; … … 20 20 21 21 /** 22 * Checkbox toggle23 */24 .form-table td fieldset label.fiber-admin-toggle {margin:0.5em 0 0.5em !important;}25 .fiber-admin-toggle {position:relative;width:2em;height:1em;}26 27 /* Hide default HTML checkbox */28 .fiber-admin-toggle input {opacity:0;width:0;height:0;}29 30 /* The slider */31 .fiber-admin-toggle .slider {32 position:absolute;top:0;left:0;right:0;bottom:0;33 cursor:pointer;34 background-color:#ccc;35 -webkit-transition:.4s;transition:.4s;36 }37 .fiber-admin-toggle .slider:before {38 position:absolute;height:11px;width:11px;left:2px;bottom:2px;39 content:"";40 background-color:white;41 -webkit-transition:.4s;transition:.4s;42 }43 .fiber-admin-toggle input:checked + .slider {background-color:#9fd6ae;}44 .fiber-admin-toggle input:focus + .slider {box-shadow:0 0 1px #9fd6ae;}45 .fiber-admin-toggle input:checked + .slider:before {46 -webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px);47 }48 49 /* Rounded sliders */50 .fiber-admin-toggle .slider.round {border-radius:34px;}51 .fiber-admin-toggle .slider.round:before {border-radius:50%;}52 53 /**54 22 * Multiple select 55 23 */ 24 56 25 .fiber-admin .fiber-admin-selection--multiple {min-width:300px;} 57 26 … … 65 34 * UI Sortable 66 35 */ 36 67 37 .wp-list-table .ui-sortable tr {cursor:grab;} 68 38 … … 70 40 * Loading 71 41 */ 42 72 43 .fa-loading .ui-sortable {opacity:0.5;} -
fiber-admin/trunk/changelog.txt
r3221306 r3326031 1 1 == Changelog == 2 3 = 3.2.6 = 4 *Release Date - 11 July 2025* 5 6 * Changed: Update WordPress version to 6.8.1. 7 * Changed: Use default WordPress admin setting UI instead of creating custom admin style. 8 * Changed: Create 2 new options: Enable Text Protection and Enable Image Protection. 2 9 3 10 = 3.2.5 = -
fiber-admin/trunk/fiberadmin.php
r3221306 r3326031 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 3.2. 56 * Version: 3.2.6 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.4 … … 26 26 */ 27 27 28 const FIBERADMIN_VERSION = '3.2. 5';28 const FIBERADMIN_VERSION = '3.2.6'; 29 29 const FIBERADMIN_DEV_MODE = false; 30 30 const FIBERADMIN_FILENAME = __FILE__; -
fiber-admin/trunk/includes/content.php
r3181293 r3326031 18 18 19 19 // Content protection 20 if(!fiad_get_miscellaneous_option('disable_content_protection') && !fiad_is_admin_user_role()){ 20 if((fiad_get_miscellaneous_option('enable_text_protection') || fiad_get_miscellaneous_option('enable_image_protection')) 21 && !fiad_is_admin_user_role()){ 21 22 add_action('wp_footer', [$this, 'fiad_content_protection_scripts']); 22 23 } … … 68 69 69 70 public function fiad_content_protection_scripts(){ 70 if(FIBERADMIN_DEV_MODE){ 71 echo ' 72 <script> 73 // text 74 const disable_keys = ["s","a","c","x","C","J","U","I"]; 75 document.addEventListener("keydown", function(e){ 76 if(((navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) && disable_keys.includes(e.key)) || e.key === "F12"){ 77 e.preventDefault(); 78 } 79 }, false); 80 81 ["cut", "copy"].forEach(even => { 82 document.querySelector("body").addEventListener(even, e => { 83 e.preventDefault(); 84 }); 85 }); 86 87 // image 88 setTimeout(function(){ 89 const currentURL = window.location.hostname, 90 images = document.getElementsByTagName("img"); 91 92 let imageURL = ""; 93 for(let i = 0; i < images.length; i++){ 94 imageURL = images[i].src; 95 if(imageURL.includes(currentURL)){ 96 images[i].addEventListener("contextmenu", event => event.preventDefault()); 97 images[i].setAttribute("draggable", false); 98 } 99 } 100 }, 1000); 101 </script> 102 '; 103 }else{ 104 echo '<script>const disable_keys=["s","a","c","x","C","J","U","I"];document.addEventListener("keydown",function(e){((navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&disable_keys.includes(e.key)||"F12"===e.key)&&e.preventDefault()},!1),["cut","copy"].forEach(e=>{document.querySelector("body").addEventListener(e,e=>{e.preventDefault()})}),setTimeout(function(){let e=window.location.hostname,t=document.getElementsByTagName("img"),n="";for(let a=0;a<t.length;a++)(n=t[a].src).includes(e)&&(t[a].addEventListener("contextmenu",e=>e.preventDefault()),t[a].setAttribute("draggable",!1))},1e3);</script>'; 71 $scripts = ''; 72 73 if(fiad_get_miscellaneous_option('enable_text_protection')){ 74 $scripts .= FIBERADMIN_DEV_MODE ? 75 '<script> 76 const disableKeys = ["s", "a", "c", "x", "C", "J", "U", "I"]; 77 document.addEventListener("keydown", function(e) { 78 const isModifierPressed = navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey; 79 if ((isModifierPressed && disableKeys.includes(e.key)) || e.key === "F12") { 80 e.preventDefault(); 81 } 82 }, false); 83 84 ["cut", "copy"].forEach(eventType => { 85 document.body.addEventListener(eventType, e => { 86 e.preventDefault(); 87 }); 88 }); 89 </script>' : 90 '<script>const disableKeys=["s","a","c","x","C","J","U","I"];document.addEventListener("keydown",(function(e){((navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&disableKeys.includes(e.key)||"F12"===e.key)&&e.preventDefault()}),!1),["cut","copy"].forEach((e=>{document.body.addEventListener(e,(e=>{e.preventDefault()}))}));</script>'; 91 } 92 93 if(fiad_get_miscellaneous_option('enable_image_protection')){ 94 $scripts .= FIBERADMIN_DEV_MODE ? 95 '<script> 96 setTimeout(function() { 97 const currentHostname = window.location.hostname; 98 const images = document.getElementsByTagName("img"); 99 100 Array.from(images).forEach(img => { 101 if (img.src.includes(currentHostname)) { 102 img.addEventListener("contextmenu", e => e.preventDefault()); 103 img.setAttribute("draggable", false); 104 } 105 }); 106 }, 1000); 107 </script>' : 108 '<script>setTimeout((function(){const e=window.location.hostname,t=document.getElementsByTagName("img");Array.from(t).forEach((t=>{t.src.includes(e)&&(t.addEventListener("contextmenu",(e=>e.preventDefault())),t.setAttribute("draggable",!1))}))}),1e3);</script>'; 109 } 110 111 if($scripts){ 112 echo $scripts; 105 113 } 106 114 } -
fiber-admin/trunk/includes/settings/cpo.php
r3139472 r3326031 97 97 ?> 98 98 <fieldset> 99 <label for="override_default_query" class="fiber-admin-toggle">99 <label for="override_default_query"> 100 100 <input type="checkbox" name="fiad_cpo[override_default_query]" 101 101 id="override_default_query" 102 102 value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_query')), 'yes'); ?> /> 103 <span class="slider round"></span>104 103 </label> 105 104 </fieldset> … … 153 152 ?> 154 153 <fieldset> 155 <label for="override_default_tax_query" class="fiber-admin-toggle">154 <label for="override_default_tax_query"> 156 155 <input type="checkbox" name="fiad_cpo[override_default_tax_query]" 157 156 id="override_default_tax_query" 158 157 value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_tax_query')), 'yes'); ?> /> 159 <span class="slider round"></span>160 158 </label> 161 159 </fieldset> -
fiber-admin/trunk/includes/settings/db-error.php
r2962829 r3326031 90 90 ?> 91 91 <fieldset> 92 <label for="db_error_enable" class="fiber-admin-toggle">92 <label for="db_error_enable"> 93 93 <input type="checkbox" name="fiad_db_error[db_error_enable]" id="db_error_enable" 94 94 value="yes" <?php checked(esc_attr(fiad_get_db_error_option('db_error_enable')), 'yes'); ?> /> 95 <span class="slider round"></span>96 95 </label> 97 96 </fieldset> -
fiber-admin/trunk/includes/settings/miscellaneous.php
r2931908 r3326031 66 66 67 67 add_settings_field( 68 'disable_content_protection', // id 69 'Disable Content Protection', // title 70 [$this, 'fiad_disable_content_protection'], // callback 68 'enable_text_protection', // id 69 'Enable Text Protection', // title 70 [$this, 'fiad_enable_text_protection'], // callback 71 'fiber-admin-miscellaneous', // page 72 'fiad_content_section' // section 73 ); 74 75 add_settings_field( 76 'enable_image_protection', // id 77 'Enable Image Protection', // title 78 [$this, 'fiad_enable_image_protection'], // callback 71 79 'fiber-admin-miscellaneous', // page 72 80 'fiad_content_section' // section … … 88 96 ?> 89 97 <fieldset> 90 <label for="enable_auto_update" class="fiber-admin-toggle">98 <label for="enable_auto_update"> 91 99 <input type="checkbox" name="fiad_miscellaneous[enable_auto_update]" id="enable_auto_update" 92 100 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_auto_update')), 'yes'); ?> /> 93 <span class="slider round"></span>94 101 </label> 95 102 </fieldset> … … 116 123 ?> 117 124 <fieldset> 118 <label for="disable_email_converter" class="fiber-admin-toggle">125 <label for="disable_email_converter"> 119 126 <input type="checkbox" name="fiad_miscellaneous[disable_email_converter]" 120 127 id="disable_email_converter" 121 128 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_email_converter')), 'yes'); ?> /> 122 <span class="slider round"></span>123 129 </label> 124 130 </fieldset> … … 129 135 ?> 130 136 <fieldset> 131 <label for="enable_svg" class="fiber-admin-toggle">137 <label for="enable_svg"> 132 138 <input type="checkbox" name="fiad_miscellaneous[enable_svg]" 133 139 id="enable_svg" 134 140 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_svg')), 'yes'); ?> /> 135 <span class="slider round"></span>136 141 </label> 137 142 </fieldset> … … 139 144 } 140 145 141 public function fiad_ disable_content_protection(){146 public function fiad_enable_text_protection(){ 142 147 ?> 143 148 <fieldset> 144 <label for="disable_content_protection" class="fiber-admin-toggle"> 145 <input type="checkbox" name="fiad_miscellaneous[disable_content_protection]" 146 id="disable_content_protection" 147 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_content_protection')), 'yes'); ?> /> 148 <span class="slider round"></span> 149 <label for="enable_text_protection"> 150 <input type="checkbox" name="fiad_miscellaneous[enable_text_protection]" 151 id="enable_text_protection" 152 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_text_protection')), 'yes'); ?> /> 153 </label> 154 </fieldset> 155 <?php 156 } 157 158 public function fiad_enable_image_protection(){ 159 ?> 160 <fieldset> 161 <label for="enable_image_protection"> 162 <input type="checkbox" name="fiad_miscellaneous[enable_image_protection]" 163 id="enable_image_protection" 164 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_image_protection')), 'yes'); ?> /> 149 165 </label> 150 166 </fieldset> … … 155 171 ?> 156 172 <fieldset> 157 <label for="enable_comments" class="fiber-admin-toggle">173 <label for="enable_comments"> 158 174 <input type="checkbox" name="fiad_miscellaneous[enable_comments]" 159 175 id="enable_comments" 160 176 value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_comments')), 'yes'); ?> /> 161 <span class="slider round"></span>162 177 </label> 163 178 </fieldset> -
fiber-admin/trunk/includes/settings/white-label.php
r2962829 r3326031 117 117 ?> 118 118 <fieldset> 119 <label for="hide_wordpress_branding" class="fiber-admin-toggle">119 <label for="hide_wordpress_branding"> 120 120 <input type="checkbox" name="fiber_admin[hide_wordpress_branding]" id="hide_wordpress_branding" 121 121 value="yes" <?php checked(esc_attr(fiad_get_general_option('hide_wordpress_branding')), 'yes'); ?> /> 122 <span class="slider round"></span>123 122 </label> 124 123 </fieldset> … … 129 128 ?> 130 129 <fieldset> 131 <label for="enable_admin_toolbar" class="fiber-admin-toggle">130 <label for="enable_admin_toolbar"> 132 131 <input type="checkbox" name="fiber_admin[enable_admin_toolbar]" id="enable_admin_toolbar" 133 132 value="yes" <?php checked(esc_attr(fiad_get_general_option('enable_admin_toolbar')), 'yes'); ?> /> 134 <span class="slider round"></span>135 133 </label> 136 134 </fieldset> … … 215 213 <br/> 216 214 <div class="fiber-admin-input__label"><?php echo __('Disable Form Border', 'fiber-admin'); ?></div> 217 <label for="form_disable_border" class="fiber-admin-toggle">215 <label for="form_disable_border"> 218 216 <input type="checkbox" name="fiber_admin[form_disable_border]" id="form_disable_border" 219 217 value="yes" <?php checked(esc_attr(fiad_get_general_option('form_disable_border')), 'yes'); ?> /> 220 <span class="slider round"></span>221 218 </label> 222 219 </fieldset> -
fiber-admin/trunk/readme.txt
r3221306 r3326031 3 3 Tags: white label, duplicate post, content protection 4 4 Requires at least: 4.7 5 Tested up to: 6. 6.25 Tested up to: 6.8.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.2. 57 Stable tag: 3.2.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 3.2. 5=52 *Release Date - 1 3 January 2025*51 = 3.2.6 = 52 *Release Date - 11 July 2025* 53 53 54 * Fixed: Fix warning "gives error _load_textdomain_just_in_time was called incorrectly" with WordPress 6.7.1 54 * Changed: Update WordPress version to 6.8.1. 55 * Changed: Use default WordPress admin setting UI instead of creating custom admin style. 56 * Changed: Create 2 new options: Enable Text Protection and Enable Image Protection.
Note: See TracChangeset
for help on using the changeset viewer.