Plugin Directory

Changeset 3315587


Ignore:
Timestamp:
06/21/2025 08:06:53 AM (10 months ago)
Author:
brainywpbd
Message:

Added feature: Hide help option from top right admin dashboard

Location:
minifly
Files:
33 added
5 edited

Legend:

Unmodified
Added
Removed
  • minifly/trunk/assets/css/admin-style.css

    r3299428 r3315587  
    1 /**/
     1/* Admin panel related CSS goes here */
    22
    33.sapmfly-admin-setup-body {
    4     width: 30%;
     4    width: 35%;
    55    padding: 20px;
    66    background: #fff;
  • minifly/trunk/minifly.php

    r3313557 r3315587  
    44 * Plugin URI:        https://brainywp.com/minifly/
    55 * Description:       Minifly is your favorite, lightweight companion for better performance. Supercharge your site with tiny tools that make a big difference.
    6  * Version:           1.0.5
     6 * Version:           1.0.6
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
  • minifly/trunk/readme.txt

    r3313557 r3315587  
    44Requires at least: 5.2
    55Tested up to: 6.8
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    2626[**WordPress White Label**](https://brainywp.com/minifly/) - We have White label WordPress features that allow the users to build and setup there own brands. Making it more professional and clean. This is [**fully pro**](https://brainywp.com/minifly-pricing/) feature but currently this feature is in free version for limited time.
    2727
     28List of WordPress white label options:
     29
     30* **Hide WP logo**
     31* **Hide WordPress help option**
     32
     33Other Features at Minifly
     34
    2835* **Disable all comments** - You can now disable all the comments in a single click. This helps protecting spam comments. We are working on the filtering spam comments at this moments.
    2936* **Front end dark mood option** - You can enable dark mood options for your website visitors. It helps growing users visiting time in your website by helping them browse comfortably at night or in dark rooms without feeling fatigued.
     
    3138[**Minifly Pro**](https://brainywp.com/minifly/#features) is under development. You can [**subscribe to Minifly pro**](https://brainywp.com/minifly/) to get early notifications and update.
    3239
    33 ##If you find the plugin helpful, please [consider rating us](https://wordpress.org/support/plugin/minifly/reviews/#new-post).##
     40##If you find the plugin helpful, please consider rating us.##
     41A review will take a few moment from your valuable time. But this will make our weeks. [Share your experience here](https://wordpress.org/support/plugin/minifly/reviews/#new-post).
    3442
    3543== Installation ==
     
    5361
    5462== Changelog ==
     63
     64= 1.0.6 (21 June 2025) =
     65Added: Hide WordPress help option
     66Fix: CSS optimized
    5567
    5668= 1.0.5 (18 June 2025) =
  • minifly/trunk/templates/admin/admin-settings.php

    r3303871 r3315587  
    1515        $disable_notices = isset($_POST['sapmfly_disable_notices']) ? 'yes' : 'no';
    1616        $hide_wp_logo = isset($_POST['sapmfly_hide_wp_logo']) ? 'yes' : 'no';
     17        $hide_wp_help = isset($_POST['sapmfly_hide_wp_help']) ? 'yes' : 'no';
    1718
    1819        update_option('sapmfly_disable_admin_notices', $disable_notices);
    1920        update_option('sapmfly_hide_wp_logo', $hide_wp_logo);
     21        update_option('sapmfly_hide_wp_help', $hide_wp_help);
    2022    }
    2123
     
    2325    $disable_notices = get_option('sapmfly_disable_admin_notices', 'no');
    2426    $hide_wp_logo = get_option('sapmfly_hide_wp_logo', 'no');
     27    $hide_wp_help = get_option('sapmfly_hide_wp_help', 'no');
    2528?>
    2629
     
    5558
    5659                    <!-- Pro Feature styling -->
    57                     <div style="display: inline-flex; align-items: center; border: 2px dashed #ffa500; padding: 4px; border-radius: 6px;">
    58                         <label class="sapmfly-switch">
    59                             <?php echo esc_html__('Hide top-left WP option', 'minifly'); ?>&nbsp;&nbsp;&nbsp;
    60                             <input type="checkbox" name="sapmfly_hide_wp_logo" <?php checked($hide_wp_logo, 'yes'); ?> />
    61                             <span class="sapmfly-slider"></span>
    62                         </label>
    63                         <span style="background: #ffa500; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; margin-left: 8px;">
    64                             <?php echo esc_html__('Pro, Free for limited time!', 'refineurl'); ?>
    65                         </span>
     60
     61                    <div style="border: 2px dashed #ffa500;">
     62                        <br><div style="display: inline-flex; align-items: center; padding: 4px; border-radius: 6px;">
     63                            <label class="sapmfly-switch">
     64                                <?php echo esc_html__('Hide top-left WP option', 'minifly'); ?>&nbsp;&nbsp;&nbsp;
     65                                <input type="checkbox" name="sapmfly_hide_wp_logo" <?php checked($hide_wp_logo, 'yes'); ?> />
     66                                <span class="sapmfly-slider"></span>
     67                            </label>
     68                            <span style="background: #ffa500; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; margin-left: 8px;">
     69                                <?php echo esc_html__('Pro, Free for limited time!', 'refineurl'); ?>
     70                            </span>
     71                        </div>
     72
     73                        <br><br>
     74
     75                        <div style="display: inline-flex; align-items: center;  padding: 4px; border-radius: 6px;">
     76                            <label class="sapmfly-switch">
     77                                <?php echo esc_html__('Hide top-right Help option', 'minifly'); ?>&nbsp;&nbsp;&nbsp;
     78                                <input type="checkbox" name="sapmfly_hide_wp_help" <?php checked($hide_wp_help, 'yes'); ?> />
     79                                <span class="sapmfly-slider"></span>
     80                            </label>
     81                            <span style="background: #ffa500; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; margin-left: 8px;">
     82                                <?php echo esc_html__('Pro, Free for limited time!', 'refineurl'); ?>
     83                            </span>
     84                        </div>
     85                        <br><br>
    6686                    </div>
    67 
    68                     <br><br>
    69 
     87                    <br>
    7088                    <button type="submit" name="sapmfly_save_settings" class="button button-primary">
    7189                        <?php echo esc_html__('Save Changes', 'minifly'); ?>
  • minifly/trunk/templates/admin/white-label.php

    r3303871 r3315587  
    1010}
    1111add_action('wp_before_admin_bar_render', 'sapmfly_custom_admin_bar_render');
     12
     13// Hide help option from admin panel top right area
     14function sapmfly_hide_top_right_help_tab() {
     15    $hide_help = get_option('sapmfly_hide_wp_help', 'no');
     16
     17    if ($hide_help === 'yes') {
     18        echo '<style>
     19            #contextual-help-link-wrap {
     20                display: none !important;
     21            }
     22        </style>';
     23    }
     24}
     25add_action('admin_head', 'sapmfly_hide_top_right_help_tab');
Note: See TracChangeset for help on using the changeset viewer.