Plugin Directory

Changeset 3326031


Ignore:
Timestamp:
07/11/2025 03:17:52 AM (5 months ago)
Author:
daomapsieucap
Message:

Update to version 3.2.6 from GitHub

Location:
fiber-admin
Files:
2 deleted
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • fiber-admin/tags/3.2.6/assets/css/fiber-admin.css

    r2608259 r3326031  
    22 * Setting page
    33 */
     4
    45.fiber-admin button {vertical-align:middle !important;}
    5 .fiber-admin .fiber-admin-input__multiples input {margin:0 0 1em;}
    66.fiber-admin .fiber-admin-input__multiples .fiber-admin-input__label {
    77    display:inline-block;min-width:10em;vertical-align:middle;
     
    2020
    2121/**
    22  * Checkbox toggle
    23  */
    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 /**
    5422 * Multiple select
    5523 */
     24
    5625.fiber-admin .fiber-admin-selection--multiple {min-width:300px;}
    5726
     
    6534 * UI Sortable
    6635 */
     36
    6737.wp-list-table .ui-sortable tr {cursor:grab;}
    6838
     
    7040 * Loading
    7141 */
     42
    7243.fa-loading .ui-sortable {opacity:0.5;}
  • fiber-admin/tags/3.2.6/changelog.txt

    r3221306 r3326031  
    11== 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.
    29
    310= 3.2.5 =
  • fiber-admin/tags/3.2.6/fiberadmin.php

    r3221306 r3326031  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           3.2.5
     6 * Version:           3.2.6
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.4
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '3.2.5';
     28const FIBERADMIN_VERSION  = '3.2.6';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/tags/3.2.6/includes/content.php

    r3181293 r3326031  
    1818       
    1919        // 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()){
    2122            add_action('wp_footer', [$this, 'fiad_content_protection_scripts']);
    2223        }
     
    6869   
    6970    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;
    105113        }
    106114    }
  • fiber-admin/tags/3.2.6/includes/settings/cpo.php

    r3139472 r3326031  
    9797        ?>
    9898        <fieldset>
    99             <label for="override_default_query" class="fiber-admin-toggle">
     99            <label for="override_default_query">
    100100                <input type="checkbox" name="fiad_cpo[override_default_query]"
    101101                       id="override_default_query"
    102102                       value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_query')), 'yes'); ?> />
    103                 <span class="slider round"></span>
    104103            </label>
    105104        </fieldset>
     
    153152        ?>
    154153        <fieldset>
    155             <label for="override_default_tax_query" class="fiber-admin-toggle">
     154            <label for="override_default_tax_query">
    156155                <input type="checkbox" name="fiad_cpo[override_default_tax_query]"
    157156                       id="override_default_tax_query"
    158157                       value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_tax_query')), 'yes'); ?> />
    159                 <span class="slider round"></span>
    160158            </label>
    161159        </fieldset>
  • fiber-admin/tags/3.2.6/includes/settings/db-error.php

    r2962829 r3326031  
    9090        ?>
    9191        <fieldset>
    92             <label for="db_error_enable" class="fiber-admin-toggle">
     92            <label for="db_error_enable">
    9393                <input type="checkbox" name="fiad_db_error[db_error_enable]" id="db_error_enable"
    9494                       value="yes" <?php checked(esc_attr(fiad_get_db_error_option('db_error_enable')), 'yes'); ?> />
    95                 <span class="slider round"></span>
    9695            </label>
    9796        </fieldset>
  • fiber-admin/tags/3.2.6/includes/settings/miscellaneous.php

    r2931908 r3326031  
    6666       
    6767        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
    7179            'fiber-admin-miscellaneous', // page
    7280            'fiad_content_section' // section
     
    8896        ?>
    8997        <fieldset>
    90             <label for="enable_auto_update" class="fiber-admin-toggle">
     98            <label for="enable_auto_update">
    9199                <input type="checkbox" name="fiad_miscellaneous[enable_auto_update]" id="enable_auto_update"
    92100                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_auto_update')), 'yes'); ?> />
    93                 <span class="slider round"></span>
    94101            </label>
    95102        </fieldset>
     
    116123        ?>
    117124        <fieldset>
    118             <label for="disable_email_converter" class="fiber-admin-toggle">
     125            <label for="disable_email_converter">
    119126                <input type="checkbox" name="fiad_miscellaneous[disable_email_converter]"
    120127                       id="disable_email_converter"
    121128                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_email_converter')), 'yes'); ?> />
    122                 <span class="slider round"></span>
    123129            </label>
    124130        </fieldset>
     
    129135        ?>
    130136        <fieldset>
    131             <label for="enable_svg" class="fiber-admin-toggle">
     137            <label for="enable_svg">
    132138                <input type="checkbox" name="fiad_miscellaneous[enable_svg]"
    133139                       id="enable_svg"
    134140                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_svg')), 'yes'); ?> />
    135                 <span class="slider round"></span>
    136141            </label>
    137142        </fieldset>
     
    139144    }
    140145   
    141     public function fiad_disable_content_protection(){
     146    public function fiad_enable_text_protection(){
    142147        ?>
    143148        <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'); ?> />
    149165            </label>
    150166        </fieldset>
     
    155171        ?>
    156172        <fieldset>
    157             <label for="enable_comments" class="fiber-admin-toggle">
     173            <label for="enable_comments">
    158174                <input type="checkbox" name="fiad_miscellaneous[enable_comments]"
    159175                       id="enable_comments"
    160176                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_comments')), 'yes'); ?> />
    161                 <span class="slider round"></span>
    162177            </label>
    163178        </fieldset>
  • fiber-admin/tags/3.2.6/includes/settings/white-label.php

    r2962829 r3326031  
    117117        ?>
    118118        <fieldset>
    119             <label for="hide_wordpress_branding" class="fiber-admin-toggle">
     119            <label for="hide_wordpress_branding">
    120120                <input type="checkbox" name="fiber_admin[hide_wordpress_branding]" id="hide_wordpress_branding"
    121121                       value="yes" <?php checked(esc_attr(fiad_get_general_option('hide_wordpress_branding')), 'yes'); ?> />
    122                 <span class="slider round"></span>
    123122            </label>
    124123        </fieldset>
     
    129128        ?>
    130129        <fieldset>
    131             <label for="enable_admin_toolbar" class="fiber-admin-toggle">
     130            <label for="enable_admin_toolbar">
    132131                <input type="checkbox" name="fiber_admin[enable_admin_toolbar]" id="enable_admin_toolbar"
    133132                       value="yes" <?php checked(esc_attr(fiad_get_general_option('enable_admin_toolbar')), 'yes'); ?> />
    134                 <span class="slider round"></span>
    135133            </label>
    136134        </fieldset>
     
    215213            <br/>
    216214            <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">
    218216                <input type="checkbox" name="fiber_admin[form_disable_border]" id="form_disable_border"
    219217                       value="yes" <?php checked(esc_attr(fiad_get_general_option('form_disable_border')), 'yes'); ?> />
    220                 <span class="slider round"></span>
    221218            </label>
    222219        </fieldset>
  • fiber-admin/tags/3.2.6/readme.txt

    r3221306 r3326031  
    33Tags: white label, duplicate post, content protection
    44Requires at least: 4.7
    5 Tested up to: 6.6.2
     5Tested up to: 6.8.1
    66Requires PHP: 7.4
    7 Stable tag: 3.2.5
     7Stable tag: 3.2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
    51 = 3.2.5 =
    52 *Release Date - 13 January 2025*
     51= 3.2.6 =
     52*Release Date - 11 July 2025*
    5353
    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  
    22 * Setting page
    33 */
     4
    45.fiber-admin button {vertical-align:middle !important;}
    5 .fiber-admin .fiber-admin-input__multiples input {margin:0 0 1em;}
    66.fiber-admin .fiber-admin-input__multiples .fiber-admin-input__label {
    77    display:inline-block;min-width:10em;vertical-align:middle;
     
    2020
    2121/**
    22  * Checkbox toggle
    23  */
    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 /**
    5422 * Multiple select
    5523 */
     24
    5625.fiber-admin .fiber-admin-selection--multiple {min-width:300px;}
    5726
     
    6534 * UI Sortable
    6635 */
     36
    6737.wp-list-table .ui-sortable tr {cursor:grab;}
    6838
     
    7040 * Loading
    7141 */
     42
    7243.fa-loading .ui-sortable {opacity:0.5;}
  • fiber-admin/trunk/changelog.txt

    r3221306 r3326031  
    11== 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.
    29
    310= 3.2.5 =
  • fiber-admin/trunk/fiberadmin.php

    r3221306 r3326031  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           3.2.5
     6 * Version:           3.2.6
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.4
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '3.2.5';
     28const FIBERADMIN_VERSION  = '3.2.6';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/trunk/includes/content.php

    r3181293 r3326031  
    1818       
    1919        // 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()){
    2122            add_action('wp_footer', [$this, 'fiad_content_protection_scripts']);
    2223        }
     
    6869   
    6970    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;
    105113        }
    106114    }
  • fiber-admin/trunk/includes/settings/cpo.php

    r3139472 r3326031  
    9797        ?>
    9898        <fieldset>
    99             <label for="override_default_query" class="fiber-admin-toggle">
     99            <label for="override_default_query">
    100100                <input type="checkbox" name="fiad_cpo[override_default_query]"
    101101                       id="override_default_query"
    102102                       value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_query')), 'yes'); ?> />
    103                 <span class="slider round"></span>
    104103            </label>
    105104        </fieldset>
     
    153152        ?>
    154153        <fieldset>
    155             <label for="override_default_tax_query" class="fiber-admin-toggle">
     154            <label for="override_default_tax_query">
    156155                <input type="checkbox" name="fiad_cpo[override_default_tax_query]"
    157156                       id="override_default_tax_query"
    158157                       value="yes" <?php checked(esc_attr(fiad_get_cpo_option('override_default_tax_query')), 'yes'); ?> />
    159                 <span class="slider round"></span>
    160158            </label>
    161159        </fieldset>
  • fiber-admin/trunk/includes/settings/db-error.php

    r2962829 r3326031  
    9090        ?>
    9191        <fieldset>
    92             <label for="db_error_enable" class="fiber-admin-toggle">
     92            <label for="db_error_enable">
    9393                <input type="checkbox" name="fiad_db_error[db_error_enable]" id="db_error_enable"
    9494                       value="yes" <?php checked(esc_attr(fiad_get_db_error_option('db_error_enable')), 'yes'); ?> />
    95                 <span class="slider round"></span>
    9695            </label>
    9796        </fieldset>
  • fiber-admin/trunk/includes/settings/miscellaneous.php

    r2931908 r3326031  
    6666       
    6767        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
    7179            'fiber-admin-miscellaneous', // page
    7280            'fiad_content_section' // section
     
    8896        ?>
    8997        <fieldset>
    90             <label for="enable_auto_update" class="fiber-admin-toggle">
     98            <label for="enable_auto_update">
    9199                <input type="checkbox" name="fiad_miscellaneous[enable_auto_update]" id="enable_auto_update"
    92100                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_auto_update')), 'yes'); ?> />
    93                 <span class="slider round"></span>
    94101            </label>
    95102        </fieldset>
     
    116123        ?>
    117124        <fieldset>
    118             <label for="disable_email_converter" class="fiber-admin-toggle">
     125            <label for="disable_email_converter">
    119126                <input type="checkbox" name="fiad_miscellaneous[disable_email_converter]"
    120127                       id="disable_email_converter"
    121128                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('disable_email_converter')), 'yes'); ?> />
    122                 <span class="slider round"></span>
    123129            </label>
    124130        </fieldset>
     
    129135        ?>
    130136        <fieldset>
    131             <label for="enable_svg" class="fiber-admin-toggle">
     137            <label for="enable_svg">
    132138                <input type="checkbox" name="fiad_miscellaneous[enable_svg]"
    133139                       id="enable_svg"
    134140                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_svg')), 'yes'); ?> />
    135                 <span class="slider round"></span>
    136141            </label>
    137142        </fieldset>
     
    139144    }
    140145   
    141     public function fiad_disable_content_protection(){
     146    public function fiad_enable_text_protection(){
    142147        ?>
    143148        <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'); ?> />
    149165            </label>
    150166        </fieldset>
     
    155171        ?>
    156172        <fieldset>
    157             <label for="enable_comments" class="fiber-admin-toggle">
     173            <label for="enable_comments">
    158174                <input type="checkbox" name="fiad_miscellaneous[enable_comments]"
    159175                       id="enable_comments"
    160176                       value="yes" <?php checked(esc_attr(fiad_get_miscellaneous_option('enable_comments')), 'yes'); ?> />
    161                 <span class="slider round"></span>
    162177            </label>
    163178        </fieldset>
  • fiber-admin/trunk/includes/settings/white-label.php

    r2962829 r3326031  
    117117        ?>
    118118        <fieldset>
    119             <label for="hide_wordpress_branding" class="fiber-admin-toggle">
     119            <label for="hide_wordpress_branding">
    120120                <input type="checkbox" name="fiber_admin[hide_wordpress_branding]" id="hide_wordpress_branding"
    121121                       value="yes" <?php checked(esc_attr(fiad_get_general_option('hide_wordpress_branding')), 'yes'); ?> />
    122                 <span class="slider round"></span>
    123122            </label>
    124123        </fieldset>
     
    129128        ?>
    130129        <fieldset>
    131             <label for="enable_admin_toolbar" class="fiber-admin-toggle">
     130            <label for="enable_admin_toolbar">
    132131                <input type="checkbox" name="fiber_admin[enable_admin_toolbar]" id="enable_admin_toolbar"
    133132                       value="yes" <?php checked(esc_attr(fiad_get_general_option('enable_admin_toolbar')), 'yes'); ?> />
    134                 <span class="slider round"></span>
    135133            </label>
    136134        </fieldset>
     
    215213            <br/>
    216214            <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">
    218216                <input type="checkbox" name="fiber_admin[form_disable_border]" id="form_disable_border"
    219217                       value="yes" <?php checked(esc_attr(fiad_get_general_option('form_disable_border')), 'yes'); ?> />
    220                 <span class="slider round"></span>
    221218            </label>
    222219        </fieldset>
  • fiber-admin/trunk/readme.txt

    r3221306 r3326031  
    33Tags: white label, duplicate post, content protection
    44Requires at least: 4.7
    5 Tested up to: 6.6.2
     5Tested up to: 6.8.1
    66Requires PHP: 7.4
    7 Stable tag: 3.2.5
     7Stable tag: 3.2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
    51 = 3.2.5 =
    52 *Release Date - 13 January 2025*
     51= 3.2.6 =
     52*Release Date - 11 July 2025*
    5353
    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.