Plugin Directory

Changeset 3303871


Ignore:
Timestamp:
05/31/2025 07:29:49 AM (10 months ago)
Author:
brainywpbd
Message:

White label updated

Location:
minifly
Files:
31 added
4 edited

Legend:

Unmodified
Added
Removed
  • minifly/trunk/minifly.php

    r3301542 r3303871  
    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.1
     6 * Version:           1.0.2
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
     
    118118    'user/user-setup.php',
    119119    'admin/admin-settings.php',
     120
     121    // White label options
     122    'admin/white-label.php',
    120123];
    121124
    122 foreach ( $sapmfly_templates as $template ) {
     125foreach ($sapmfly_templates as $template) {
    123126    $template_path = SAPMFLY_TEMPLATES . $template;
    124     if ( file_exists( $template_path ) ) {
     127    if (file_exists($template_path)) {
    125128        require_once $template_path;
    126129    }
  • minifly/trunk/readme.txt

    r3301542 r3303871  
    11=== Minifly - Supercharge your site with tiny tools that make a big difference ===
    2 Contributors: brainywpbd
     2Contributors: brainywpbd, asadullah96
    33Tags: minifly
    44Requires at least: 5.2
    55Tested up to: 6.8
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    2020* Enable back to top button - You can enable 'back to top' button in your site with this feature.
    2121
     22**WordPress White Label** - We have features to that allow the users to build and setup there own brands. Making it more professional and clean. This is **fully pro** feature but currently this feature is in free version for limited time.
     23
    2224##If you find the plugin helpful, please consider rating us##
    2325
     
    3335In your WordPress dashboard, navigate to Minifly > Settings to get started.
    3436
     37= Are the White Label features available in the free version? =
     38
     39White label is advanced features for agency focus development. This is fully premium feature. However, White label is free for limited time.
     40
    3541== Screenshots ==
    3642
     
    3945== Changelog ==
    4046
    41 = 1.0.0 (25 May 2025) =
     47= 1.0.2 (31 May 2025) =
     48Added: White label options Added
     49
     50= 1.0.1 (25 May 2025) =
    4251Added: Hide admin notice
    4352Added: Top scroll progress bar
  • minifly/trunk/templates/admin/admin-settings.php

    r3299428 r3303871  
    1313        check_admin_referer('sapmfly_save_settings_action', 'sapmfly_settings_nonce')
    1414    ) {
    15         $enabled = isset($_POST['sapmfly_disable_notices']) ? 'yes' : 'no';
    16         update_option('sapmfly_disable_admin_notices', $enabled);
     15        $disable_notices = isset($_POST['sapmfly_disable_notices']) ? 'yes' : 'no';
     16        $hide_wp_logo = isset($_POST['sapmfly_hide_wp_logo']) ? 'yes' : 'no';
     17
     18        update_option('sapmfly_disable_admin_notices', $disable_notices);
     19        update_option('sapmfly_hide_wp_logo', $hide_wp_logo);
    1720    }
    1821
    19     // Get saved setting data
    20     $enabled = get_option('sapmfly_disable_admin_notices', 'no');
    21     ?>
     22    // Get saved settings
     23    $disable_notices = get_option('sapmfly_disable_admin_notices', 'no');
     24    $hide_wp_logo = get_option('sapmfly_hide_wp_logo', 'no');
     25?>
    2226
    2327    <!-- Admin settings page starts here -->
     
    2630            <div class="sapmfly-plugin-promotion-headings">
    2731                <?php
    28                 // Calling global header here
     32                // Include global header
    2933                $sapmfly_promotional_header_template = SAPMFLY_TEMPLATES . 'global-header-design.php';
    3034                if (file_exists($sapmfly_promotional_header_template)) {
     
    3236                }
    3337                ?>
    34                 <!-- Page title goes here -->
    3538                <div class="sapmfly-page-heading">
    3639                    <h1><?php echo esc_html__('Admin Setup', 'minifly'); ?></h1>
     
    3841            </div>
    3942
    40             <!-- Main body starts here -->
    4143            <div class="sapmfly-plugin-promotion-area sapmfly-admin-setup-body">
    4244                <form method="post">
    43                    
    4445                    <?php wp_nonce_field('sapmfly_save_settings_action', 'sapmfly_settings_nonce'); ?>
    4546                    <h2><?php echo esc_html__('Setup multiple mini options here', 'minifly'); ?></h2>
    46                    
     47
    4748                    <label class="sapmfly-switch">
    4849                        <?php echo esc_html__('Disable all admin notices', 'minifly'); ?>&nbsp;&nbsp;&nbsp;
    49                         <input type="checkbox" name="sapmfly_disable_notices" <?php checked($enabled, 'yes'); ?> />
     50                        <input type="checkbox" name="sapmfly_disable_notices" <?php checked($disable_notices, 'yes'); ?> />
    5051                        <span class="sapmfly-slider"></span>
    5152                    </label>
    5253
    53                     <br>
    54                     <br>
     54                    <br /><br />
     55
     56                    <!-- 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>
     66                    </div>
     67
     68                    <br><br>
    5569
    5670                    <button type="submit" name="sapmfly_save_settings" class="button button-primary">
    5771                        <?php echo esc_html__('Save Changes', 'minifly'); ?>
    5872                    </button>
    59 
    6073                </form>
    6174            </div>
    62             <!-- Main body ends here -->
    6375        </div>
    6476    </div>
    65     <!-- Admin settings page ends here -->
    66 
    67     <?php
     77<?php
    6878}
    6979
    70 // Define hide_admin_notices function separately
    71 function sapmfly_hide_admin_notices($classes) {
     80// Add CSS class to hide admin notices if enabled
     81function sapmfly_hide_admin_notices($classes)
     82{
    7283    $enabled = get_option('sapmfly_disable_admin_notices', 'no');
    7384    if ($enabled === 'yes') {
     
    7788}
    7889add_filter('admin_body_class', 'sapmfly_hide_admin_notices');
    79 
    80 
    81 
  • minifly/trunk/templates/advanced-tools.php

    r3299428 r3303871  
    99{
    1010?>
    11 
    1211    <!-- Advanced tools page started here -->
    1312    <div class="sapmfly-advanced-tools-wrap">
Note: See TracChangeset for help on using the changeset viewer.