Changeset 3669493
- Timestamp:
- 08/27/2026 08:40:34 PM (2 months ago)
- Location:
- unnotifier
- Files:
-
- 58 added
- 4 edited
-
tags/1.2.10 (added)
-
tags/1.2.10/assets (added)
-
tags/1.2.10/assets/css (added)
-
tags/1.2.10/assets/css/admin.css (added)
-
tags/1.2.10/assets/css/adminbar-panel.css (added)
-
tags/1.2.10/assets/css/modal-dialog.css (added)
-
tags/1.2.10/assets/css/promo.css (added)
-
tags/1.2.10/assets/images (added)
-
tags/1.2.10/assets/images/promo (added)
-
tags/1.2.10/assets/images/promo/admin-bar-cleanup.jpg (added)
-
tags/1.2.10/assets/images/promo/hide-ads.jpg (added)
-
tags/1.2.10/assets/images/promo/hide-duration.jpg (added)
-
tags/1.2.10/assets/images/promo/white-label.jpg (added)
-
tags/1.2.10/assets/js (added)
-
tags/1.2.10/assets/js/admin-settings.js (added)
-
tags/1.2.10/assets/js/admin.js (added)
-
tags/1.2.10/assets/js/adminbar-panel.js (added)
-
tags/1.2.10/assets/js/modal-dialog.js (added)
-
tags/1.2.10/assets/js/promo.js (added)
-
tags/1.2.10/languages (added)
-
tags/1.2.10/languages/unnotifier-dev-readme-ru.po (added)
-
tags/1.2.10/languages/unnotifier.pot (added)
-
tags/1.2.10/readme.txt (added)
-
tags/1.2.10/src (added)
-
tags/1.2.10/src/Admin (added)
-
tags/1.2.10/src/Admin/AdsDestroyerPromoPage.php (added)
-
tags/1.2.10/src/Admin/CrossPromoManager.php (added)
-
tags/1.2.10/src/Admin/GeneralSettingsPage.php (added)
-
tags/1.2.10/src/Admin/HiddenNoticesPage.php (added)
-
tags/1.2.10/src/Admin/ReviewNoticeManager.php (added)
-
tags/1.2.10/src/Admin/Settings.php (added)
-
tags/1.2.10/src/Core (added)
-
tags/1.2.10/src/Core/AdminBarNotices.php (added)
-
tags/1.2.10/src/Core/AjaxHandler.php (added)
-
tags/1.2.10/src/Core/Contracts (added)
-
tags/1.2.10/src/Core/Contracts/AjaxHandlerInterface.php (added)
-
tags/1.2.10/src/Core/Contracts/ModeManagerInterface.php (added)
-
tags/1.2.10/src/Core/Contracts/NoticeHandlerInterface.php (added)
-
tags/1.2.10/src/Core/Contracts/NoticeRendererInterface.php (added)
-
tags/1.2.10/src/Core/ModeManager.php (added)
-
tags/1.2.10/src/Core/NoticeHandler.php (added)
-
tags/1.2.10/src/Core/NoticeRenderer.php (added)
-
tags/1.2.10/src/Core/Notices.php (added)
-
tags/1.2.10/src/Core/SingletonTrait.php (added)
-
tags/1.2.10/src/Data (added)
-
tags/1.2.10/src/Data/Options.php (added)
-
tags/1.2.10/uninstall.php (added)
-
tags/1.2.10/unnotifier.php (added)
-
trunk/assets/css/promo.css (added)
-
trunk/assets/images (added)
-
trunk/assets/images/promo (added)
-
trunk/assets/images/promo/admin-bar-cleanup.jpg (added)
-
trunk/assets/images/promo/hide-ads.jpg (added)
-
trunk/assets/images/promo/hide-duration.jpg (added)
-
trunk/assets/images/promo/white-label.jpg (added)
-
trunk/assets/js/promo.js (added)
-
trunk/languages/unnotifier.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Admin/AdsDestroyerPromoPage.php (added)
-
trunk/src/Admin/CrossPromoManager.php (added)
-
trunk/src/Admin/Settings.php (modified) (4 diffs)
-
trunk/unnotifier.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unnotifier/trunk/languages/unnotifier.pot
r3387713 r3669493 109 109 msgid "Hide notification forever" 110 110 msgstr "" 111 112 #: src/Admin/Settings.php:128 113 msgid "Hide More" 114 msgstr "" 115 116 #: src/Admin/CrossPromoManager.php:111 117 msgid "AdsDestroyer could not be installed. Please try again." 118 msgstr "" 119 120 #: src/Admin/CrossPromoManager.php:129 121 #: src/Admin/CrossPromoManager.php:158 122 msgid "Already using Unnotifier to hide admin notices?" 123 msgstr "" 124 125 #: src/Admin/CrossPromoManager.php:134 126 msgid "Learn more" 127 msgstr "" 128 129 #: src/Admin/CrossPromoManager.php:140 130 msgid "Dismiss this promotion" 131 msgstr "" 132 133 #: src/Admin/CrossPromoManager.php:130 134 #: src/Admin/CrossPromoManager.php:159 135 msgid "Want to go further? AdsDestroyer hides ads, menus, dashboard widgets, upsells, and any other element in WordPress admin." 136 msgstr "" 137 138 #: src/Admin/CrossPromoManager.php:163 139 msgid "See how it works" 140 msgstr "" 141 142 #: src/Admin/CrossPromoManager.php:191 143 msgid "AdsDestroyer" 144 msgstr "" 145 146 #: src/Admin/CrossPromoManager.php:192 147 msgid "Install AdsDestroyer now" 148 msgstr "" 149 150 #: src/Admin/CrossPromoManager.php:194 151 msgid "Install AdsDestroyer" 152 msgstr "" 153 154 #: src/Admin/CrossPromoManager.php:226 155 msgid "Invalid nonce." 156 msgstr "" 157 158 #: src/Admin/CrossPromoManager.php:230 159 msgid "Insufficient permissions." 160 msgstr "" 161 162 #: src/Admin/CrossPromoManager.php:234 163 msgid "Promotion dismissed." 164 msgstr "" 165 166 #: src/Admin/AdsDestroyerPromoPage.php:27 167 msgid "A cleaner WordPress admin for you and your clients" 168 msgstr "" 169 170 #: src/Admin/AdsDestroyerPromoPage.php:28 171 msgid "Turn a cluttered admin into a clean, branded workspace." 172 msgstr "" 173 174 #: src/Admin/AdsDestroyerPromoPage.php:30 175 msgid "Tired of plugin ads, upgrade prompts, crowded menus, and widgets your clients never use? AdsDestroyer lets you hide them with a click—without editing code or changing the plugins that power the site." 176 msgstr "" 177 178 #: src/Admin/AdsDestroyerPromoPage.php:40 179 msgid "View on WordPress.org" 180 msgstr "" 181 182 #: src/Admin/AdsDestroyerPromoPage.php:47 183 msgid "Point, Click, Gone" 184 msgstr "" 185 186 #: src/Admin/AdsDestroyerPromoPage.php:48 187 msgid "Stop hunting through settings or adding fragile snippets. Start from the admin bar, point at the distraction, and hide it. You see exactly what will disappear before you confirm." 188 msgstr "" 189 190 #: src/Admin/AdsDestroyerPromoPage.php:50 191 msgid "Remove distracting ads and upgrade prompts" 192 msgstr "" 193 194 #: src/Admin/AdsDestroyerPromoPage.php:51 195 msgid "Hide dashboard widgets nobody uses" 196 msgstr "" 197 198 #: src/Admin/AdsDestroyerPromoPage.php:52 199 msgid "Clean up unwanted blocks without writing code" 200 msgstr "" 201 202 #: src/Admin/AdsDestroyerPromoPage.php:53 203 msgid "Undo or change your choices whenever you need" 204 msgstr "" 205 206 #: src/Admin/AdsDestroyerPromoPage.php:56 207 msgid "A promotional banner in the WordPress admin selected and ready to be hidden." 208 msgstr "" 209 210 #: src/Admin/AdsDestroyerPromoPage.php:61 211 msgid "A Client-Friendly White-Label Dashboard" 212 msgstr "" 213 214 #: src/Admin/AdsDestroyerPromoPage.php:62 215 msgid "Clients should see your service—not a wall of plugin brands, sales messages, and tools they should never touch. Create a focused admin experience that feels intentional and professional." 216 msgstr "" 217 218 #: src/Admin/AdsDestroyerPromoPage.php:64 219 msgid "Remove third-party branding and promotional blocks" 220 msgstr "" 221 222 #: src/Admin/AdsDestroyerPromoPage.php:65 223 msgid "Show clients only the tools they actually need" 224 msgstr "" 225 226 #: src/Admin/AdsDestroyerPromoPage.php:66 227 msgid "Reduce confusion, mistakes, and support questions" 228 msgstr "" 229 230 #: src/Admin/AdsDestroyerPromoPage.php:67 231 msgid "Deliver a cleaner experience under your own brand" 232 msgstr "" 233 234 #: src/Admin/AdsDestroyerPromoPage.php:70 235 msgid "Third-party branded dashboard widgets and menu items marked for removal." 236 msgstr "" 237 238 #: src/Admin/AdsDestroyerPromoPage.php:75 239 msgid "Hide It for as Long as You Need" 240 msgstr "" 241 242 #: src/Admin/AdsDestroyerPromoPage.php:76 243 msgid "Some distractions should disappear forever. Others only need to stay out of the way during a launch, client handoff, or focused work session. Choose the right duration in seconds." 244 msgstr "" 245 246 #: src/Admin/AdsDestroyerPromoPage.php:78 247 msgid "Hide permanently for a lasting cleanup" 248 msgstr "" 249 250 #: src/Admin/AdsDestroyerPromoPage.php:79 251 msgid "Remove temporary messages for an hour or a day" 252 msgstr "" 253 254 #: src/Admin/AdsDestroyerPromoPage.php:80 255 msgid "Keep campaigns and upsells away for weeks or months" 256 msgstr "" 257 258 #: src/Admin/AdsDestroyerPromoPage.php:81 259 msgid "Bring anything back by editing or deleting its rule" 260 msgstr "" 261 262 #: src/Admin/AdsDestroyerPromoPage.php:84 263 msgid "Duration menu for choosing how long a promotional block stays hidden." 264 msgstr "" 265 266 #: src/Admin/AdsDestroyerPromoPage.php:89 267 msgid "Trim Bloated Menus and the Admin Bar" 268 msgstr "" 269 270 #: src/Admin/AdsDestroyerPromoPage.php:90 271 msgid "Every plugin adds another menu item, badge, and toolbar icon until the admin becomes a maze. Cut the entries nobody opens and give the interface room to breathe—on every screen, without breaking the page." 272 msgstr "" 273 274 #: src/Admin/AdsDestroyerPromoPage.php:92 275 msgid "Remove menu items and submenus nobody opens" 276 msgstr "" 277 278 #: src/Admin/AdsDestroyerPromoPage.php:93 279 msgid "Clear leftover icons and counters from the admin bar" 280 msgstr "" 281 282 #: src/Admin/AdsDestroyerPromoPage.php:94 283 msgid "Drop plugin badges that demand attention" 284 msgstr "" 285 286 #: src/Admin/AdsDestroyerPromoPage.php:95 287 msgid "Keep the rest of the page exactly where it belongs" 288 msgstr "" 289 290 #: src/Admin/AdsDestroyerPromoPage.php:98 291 msgid "Cluttered admin bar items marked for removal above a clean admin page." 292 msgstr "" 293 294 #: src/Admin/AdsDestroyerPromoPage.php:106 295 msgid "Give clients a WordPress dashboard that feels like your product." 296 msgstr "" 297 298 #: src/Admin/AdsDestroyerPromoPage.php:107 299 msgid "Install AdsDestroyer and remove the clutter standing between users and their work." 300 msgstr "" -
unnotifier/trunk/readme.txt
r3667689 r3669493 7 7 Requires PHP: 7.4 8 8 Tested up to PHP: 8.4 9 Stable tag: 1.2. 99 Stable tag: 1.2.10 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 205 205 206 206 == Changelog == 207 208 = 1.2.10 = 209 * Minor improvements and interface refinements. 207 210 208 211 = 1.2.9 = -
unnotifier/trunk/src/Admin/Settings.php
r3393545 r3669493 81 81 public static function admin_page() 82 82 { 83 // Load page classes84 require_once UNNO_PLUGIN_DIR . 'src/Admin/GeneralSettingsPage.php';85 require_once UNNO_PLUGIN_DIR . 'src/Admin/HiddenNoticesPage.php';86 87 83 // Get active tab 88 $active_tab = sanitize_text_field($_GET['tab'] ?? 'general'); 89 if (!in_array($active_tab, ['general', 'hidden'], true)) { 84 $active_tab = isset($_GET['tab']) ? sanitize_key(wp_unslash($_GET['tab'])) : 'general'; 85 $allowed_tabs = ['general', 'hidden']; 86 if (CrossPromoManager::can_promote()) { 87 $allowed_tabs[] = 'adsdestroyer'; 88 } 89 if (!in_array($active_tab, $allowed_tabs, true)) { 90 90 $active_tab = 'general'; 91 91 } … … 96 96 97 97 <?php self::render_tabs($active_tab); ?> 98 99 <?php if (in_array($active_tab, ['general', 'hidden'], true)): ?> 100 <?php CrossPromoManager::render_banner(); ?> 101 <?php endif; ?> 98 102 99 103 <div class="unno-settings-content"> … … 102 106 $hidden_notices_page = new HiddenNoticesPage(); 103 107 $hidden_notices_page->render(); 108 } elseif ($active_tab === 'adsdestroyer') { 109 $promo_page = new AdsDestroyerPromoPage(); 110 $promo_page->render(); 104 111 } else { 105 112 $general_settings_page = new GeneralSettingsPage(); … … 117 124 'hidden' => __('Hidden Notices', 'unnotifier'), 118 125 ]; 126 127 if (CrossPromoManager::can_promote()) { 128 $tabs['adsdestroyer'] = __('Hide More', 'unnotifier'); 129 } 119 130 120 131 $base_url = admin_url('options-general.php?page=unnotifier'); -
unnotifier/trunk/unnotifier.php
r3667689 r3669493 4 4 * Plugin URI: https://wp-aifactory.com/unnotifier-disable-admin-notices-wordpress-plugin/ 5 5 * Description: Unnotifier disable admin notices individually with options to hide all notices, hide selected notices, or show all notices. Each notice gets a "hide forever" button for individual control. 6 * Version: 1.2. 96 * Version: 1.2.10 7 7 * Author: Alex Kovalev 8 8 * Author URI: https://wp-aifactory.com … … 20 20 use UNNO\Admin\Settings; 21 21 use UNNO\Admin\ReviewNoticeManager; 22 use UNNO\Admin\CrossPromoManager; 22 23 use UNNO\Data\Options; 23 24 … … 27 28 28 29 // Define plugin constants 29 define('UNNO_VERSION', '1.2. 9');30 define('UNNO_VERSION', '1.2.10'); 30 31 define('UNNO_PLUGIN_FILE', __FILE__); 31 32 define('UNNO_PLUGIN_DIR', plugin_dir_path(__FILE__)); … … 36 37 if (!defined('UNNO_REVIEW_NOTICE_DEBUG')) { 37 38 define('UNNO_REVIEW_NOTICE_DEBUG', false); 39 } 40 41 // Debug constant for the AdsDestroyer promotion. 42 if (!defined('UNNO_PROMO_DEBUG')) { 43 define('UNNO_PROMO_DEBUG', false); 38 44 } 39 45 … … 67 73 $review_notice_manager = new ReviewNoticeManager(); 68 74 $review_notice_manager->init(); 75 76 // Initialize AdsDestroyer cross-promotion. 77 $cross_promo_manager = new CrossPromoManager(); 78 $cross_promo_manager->init(); 69 79 }); 70 80
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)