Changeset 3303871
- Timestamp:
- 05/31/2025 07:29:49 AM (10 months ago)
- Location:
- minifly
- Files:
-
- 31 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/assets (added)
-
tags/1.0.2/assets/css (added)
-
tags/1.0.2/assets/css/admin-style.css (added)
-
tags/1.0.2/assets/css/global-style.css (added)
-
tags/1.0.2/assets/css/user-style.css (added)
-
tags/1.0.2/assets/img (added)
-
tags/1.0.2/assets/img/minifly-logo-bg-none.png (added)
-
tags/1.0.2/assets/img/minifly-logo-bg-white.png (added)
-
tags/1.0.2/assets/img/refinewp-logo-white.png (added)
-
tags/1.0.2/assets/js (added)
-
tags/1.0.2/assets/js/admin-script.js (added)
-
tags/1.0.2/assets/js/global-script.js (added)
-
tags/1.0.2/assets/js/user-script.js (added)
-
tags/1.0.2/index.php (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/minifly.php (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/templates (added)
-
tags/1.0.2/templates/admin (added)
-
tags/1.0.2/templates/admin/admin-settings.php (added)
-
tags/1.0.2/templates/admin/white-label.php (added)
-
tags/1.0.2/templates/advanced-tools.php (added)
-
tags/1.0.2/templates/global-header-design.php (added)
-
tags/1.0.2/templates/help-center.php (added)
-
tags/1.0.2/templates/user (added)
-
tags/1.0.2/templates/user/all-hooks.php (added)
-
tags/1.0.2/templates/user/features (added)
-
tags/1.0.2/templates/user/features/back-to-top.php (added)
-
tags/1.0.2/templates/user/user-setup.php (added)
-
trunk/minifly.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/templates/admin/admin-settings.php (modified) (5 diffs)
-
trunk/templates/admin/white-label.php (added)
-
trunk/templates/advanced-tools.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
minifly/trunk/minifly.php
r3301542 r3303871 4 4 * Plugin URI: https://brainywp.com/minifly/ 5 5 * 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. 16 * Version: 1.0.2 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 … … 118 118 'user/user-setup.php', 119 119 'admin/admin-settings.php', 120 121 // White label options 122 'admin/white-label.php', 120 123 ]; 121 124 122 foreach ( $sapmfly_templates as $template) {125 foreach ($sapmfly_templates as $template) { 123 126 $template_path = SAPMFLY_TEMPLATES . $template; 124 if ( file_exists( $template_path )) {127 if (file_exists($template_path)) { 125 128 require_once $template_path; 126 129 } -
minifly/trunk/readme.txt
r3301542 r3303871 1 1 === Minifly - Supercharge your site with tiny tools that make a big difference === 2 Contributors: brainywpbd 2 Contributors: brainywpbd, asadullah96 3 3 Tags: minifly 4 4 Requires at least: 5.2 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 20 20 * Enable back to top button - You can enable 'back to top' button in your site with this feature. 21 21 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 22 24 ##If you find the plugin helpful, please consider rating us## 23 25 … … 33 35 In your WordPress dashboard, navigate to Minifly > Settings to get started. 34 36 37 = Are the White Label features available in the free version? = 38 39 White label is advanced features for agency focus development. This is fully premium feature. However, White label is free for limited time. 40 35 41 == Screenshots == 36 42 … … 39 45 == Changelog == 40 46 41 = 1.0.0 (25 May 2025) = 47 = 1.0.2 (31 May 2025) = 48 Added: White label options Added 49 50 = 1.0.1 (25 May 2025) = 42 51 Added: Hide admin notice 43 52 Added: Top scroll progress bar -
minifly/trunk/templates/admin/admin-settings.php
r3299428 r3303871 13 13 check_admin_referer('sapmfly_save_settings_action', 'sapmfly_settings_nonce') 14 14 ) { 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); 17 20 } 18 21 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 ?> 22 26 23 27 <!-- Admin settings page starts here --> … … 26 30 <div class="sapmfly-plugin-promotion-headings"> 27 31 <?php 28 // Calling global header here32 // Include global header 29 33 $sapmfly_promotional_header_template = SAPMFLY_TEMPLATES . 'global-header-design.php'; 30 34 if (file_exists($sapmfly_promotional_header_template)) { … … 32 36 } 33 37 ?> 34 <!-- Page title goes here -->35 38 <div class="sapmfly-page-heading"> 36 39 <h1><?php echo esc_html__('Admin Setup', 'minifly'); ?></h1> … … 38 41 </div> 39 42 40 <!-- Main body starts here -->41 43 <div class="sapmfly-plugin-promotion-area sapmfly-admin-setup-body"> 42 44 <form method="post"> 43 44 45 <?php wp_nonce_field('sapmfly_save_settings_action', 'sapmfly_settings_nonce'); ?> 45 46 <h2><?php echo esc_html__('Setup multiple mini options here', 'minifly'); ?></h2> 46 47 47 48 <label class="sapmfly-switch"> 48 49 <?php echo esc_html__('Disable all admin notices', 'minifly'); ?> 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'); ?> /> 50 51 <span class="sapmfly-slider"></span> 51 52 </label> 52 53 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'); ?> 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> 55 69 56 70 <button type="submit" name="sapmfly_save_settings" class="button button-primary"> 57 71 <?php echo esc_html__('Save Changes', 'minifly'); ?> 58 72 </button> 59 60 73 </form> 61 74 </div> 62 <!-- Main body ends here -->63 75 </div> 64 76 </div> 65 <!-- Admin settings page ends here --> 66 67 <?php 77 <?php 68 78 } 69 79 70 // Define hide_admin_notices function separately 71 function sapmfly_hide_admin_notices($classes) { 80 // Add CSS class to hide admin notices if enabled 81 function sapmfly_hide_admin_notices($classes) 82 { 72 83 $enabled = get_option('sapmfly_disable_admin_notices', 'no'); 73 84 if ($enabled === 'yes') { … … 77 88 } 78 89 add_filter('admin_body_class', 'sapmfly_hide_admin_notices'); 79 80 81 -
minifly/trunk/templates/advanced-tools.php
r3299428 r3303871 9 9 { 10 10 ?> 11 12 11 <!-- Advanced tools page started here --> 13 12 <div class="sapmfly-advanced-tools-wrap">
Note: See TracChangeset
for help on using the changeset viewer.