Changeset 3308017
- Timestamp:
- 06/08/2025 04:28:12 AM (10 months ago)
- Location:
- minifly
- Files:
-
- 32 added
- 5 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/css (added)
-
tags/1.0.3/assets/css/admin-style.css (added)
-
tags/1.0.3/assets/css/global-style.css (added)
-
tags/1.0.3/assets/css/user-style.css (added)
-
tags/1.0.3/assets/img (added)
-
tags/1.0.3/assets/img/minifly-logo-bg-none.png (added)
-
tags/1.0.3/assets/img/minifly-logo-bg-white.png (added)
-
tags/1.0.3/assets/img/refinewp-logo-white.png (added)
-
tags/1.0.3/assets/js (added)
-
tags/1.0.3/assets/js/admin-script.js (added)
-
tags/1.0.3/assets/js/global-script.js (added)
-
tags/1.0.3/assets/js/user-script.js (added)
-
tags/1.0.3/index.php (added)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/minifly.php (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/templates (added)
-
tags/1.0.3/templates/admin (added)
-
tags/1.0.3/templates/admin/admin-settings.php (added)
-
tags/1.0.3/templates/admin/white-label.php (added)
-
tags/1.0.3/templates/advanced-tools.php (added)
-
tags/1.0.3/templates/global-header-design.php (added)
-
tags/1.0.3/templates/help-center.php (added)
-
tags/1.0.3/templates/user (added)
-
tags/1.0.3/templates/user/all-hooks.php (added)
-
tags/1.0.3/templates/user/features (added)
-
tags/1.0.3/templates/user/features/back-to-top.php (added)
-
tags/1.0.3/templates/user/features/disable-comments.php (added)
-
tags/1.0.3/templates/user/user-setup.php (added)
-
trunk/assets/css/global-style.css (modified) (3 diffs)
-
trunk/assets/js/user-script.js (modified) (1 diff)
-
trunk/minifly.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/templates/user/features/disable-comments.php (added)
-
trunk/templates/user/user-setup.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
minifly/trunk/assets/css/global-style.css
r3299428 r3308017 22 22 .sapmfly-admin-top-banner { 23 23 display: flex; 24 justify-content: space-between;24 justify-content: flex-start; 25 25 align-items: center; 26 26 background: #4CAF50; … … 68 68 align-items: center; 69 69 flex-wrap: wrap; 70 margin-left: auto; 70 71 } 71 72 … … 89 90 } 90 91 91 .clear { 92 display: none; 92 93 94 .clear::after { 95 content: ""; 96 display: table; 97 clear: both; 93 98 } 94 99 -
minifly/trunk/assets/js/user-script.js
r3301074 r3308017 51 51 }); 52 52 }); 53 54 // Code for disable mouse right click 55 56 document.addEventListener('DOMContentLoaded', function () { 57 let lastMouseX = 100; 58 let lastMouseY = 100; 59 60 // Track last mouse position 61 document.addEventListener('mousemove', function (e) { 62 lastMouseX = e.pageX; 63 lastMouseY = e.pageY; 64 }); 65 66 // Show message 67 function sapmflyShowMessage(x, y) { 68 const oldMsg = document.getElementById('sapmfly-rightclick-msg'); 69 if (oldMsg) oldMsg.remove(); 70 71 const msg = document.createElement('div'); 72 msg.id = 'sapmfly-rightclick-msg'; 73 msg.innerText = 'Oops! Unauthorized copying of content is not permitted.'; 74 msg.style.position = 'absolute'; 75 msg.style.left = x + 'px'; 76 msg.style.top = y + 'px'; 77 msg.style.padding = '6px 12px'; 78 msg.style.background = '#000'; 79 msg.style.color = '#fff'; 80 msg.style.borderRadius = '6px'; 81 msg.style.fontSize = '14px'; 82 msg.style.zIndex = '99999'; 83 msg.style.pointerEvents = 'none'; 84 msg.style.opacity = '0.9'; 85 msg.style.transition = 'opacity 0.3s ease'; 86 87 document.body.appendChild(msg); 88 89 setTimeout(() => { 90 msg.style.opacity = '0'; 91 setTimeout(() => msg.remove(), 300); 92 }, 1000); 93 } 94 95 // Disable right-click 96 document.addEventListener('contextmenu', function (e) { 97 e.preventDefault(); 98 sapmflyShowMessage(e.pageX, e.pageY); 99 }); 100 101 // Disable copy (but allow text selection) 102 document.addEventListener('copy', function (e) { 103 e.preventDefault(); 104 sapmflyShowMessage(lastMouseX, lastMouseY); 105 }); 106 }); -
minifly/trunk/minifly.php
r3303871 r3308017 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. 26 * Version: 1.0.3 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 -
minifly/trunk/readme.txt
r3303871 r3308017 1 1 === Minifly - Supercharge your site with tiny tools that make a big difference === 2 2 Contributors: brainywpbd, asadullah96 3 Tags: minifly3 Tags: custom dashboard, white label, admin tools, WooCommerce option, theme customization, minifly 4 4 Requires at least: 5.2 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Minifly is your free, lightweight WordPress small action plugin for better performance.11 Minifly is a lightweight WordPress action plugin for better performance, admin tools, WooCommerce option and many more. 12 12 13 13 == Description == … … 19 19 * Add progress bar in full site - You can add a site wide progress bar. It improve user experience and increase user's session in the website. 20 20 * Enable back to top button - You can enable 'back to top' button in your site with this feature. 21 * Disable mouse right click - You can now protect your site content by disable mouse right click. This also disable copy content on the site. 21 22 22 23 **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. … … 45 46 == Changelog == 46 47 48 = 1.0.3 (7 June 2025) = 49 Added: Disable mouse right click 50 Fix: CSS issues fixed 51 47 52 = 1.0.2 (31 May 2025) = 48 53 Added: White label options Added … … 56 61 = 1.0.0 (23 May 2025) = 57 62 * Initial release 58 -
minifly/trunk/templates/user/user-setup.php
r3301074 r3308017 50 50 $enable_back_top_button = isset($_POST['sapmfly_enable_back_top_button']) ? 'yes' : 'no'; 51 51 update_option('sapmfly_enable_back_top_button', $enable_back_top_button); 52 53 $disable_mouse_right_click_btn = isset($_POST['sapmfly_disable_mouse_right_click_button']) ? 'yes' : 'no'; 54 update_option('sapmfly_disable_mouse_right_click_button', $disable_mouse_right_click_btn); 55 52 56 } else { 53 57 wp_die(esc_html__('Security check failed. Please try again.', 'minifly')); … … 58 62 $progress_enabled = get_option('sapmfly_enable_progress_bar', 'no'); 59 63 $back_top_enabled = get_option('sapmfly_enable_back_top_button', 'no'); 64 $disable_mouse_right_click = get_option('sapmfly_disable_mouse_right_click_button', 'no'); 60 65 ?> 61 66 … … 95 100 <br><br> 96 101 102 <!-- Disable mouse right click --> 103 <label class="sapmfly-switch"> 104 <?php echo esc_html__('Disable mouse right click', 'minifly'); ?> 105 <input type="checkbox" name="sapmfly_disable_mouse_right_click_button" <?php checked($disable_mouse_right_click, 'yes'); ?> /> 106 <span class="sapmfly-slider"></span> 107 </label> 108 <br><br> 109 97 110 <button type="submit" name="sapmfly_save_settings" class="button button-primary">Save Changes</button> 98 111 </form>
Note: See TracChangeset
for help on using the changeset viewer.