Plugin Directory

Changeset 3669493


Ignore:
Timestamp:
08/27/2026 08:40:34 PM (2 months ago)
Author:
alexkovalevv
Message:

Release 1.2.10: minor improvements and interface refinements

Location:
unnotifier
Files:
58 added
4 edited

Legend:

Unmodified
Added
Removed
  • unnotifier/trunk/languages/unnotifier.pot

    r3387713 r3669493  
    109109msgid "Hide notification forever"
    110110msgstr ""
     111
     112#: src/Admin/Settings.php:128
     113msgid "Hide More"
     114msgstr ""
     115
     116#: src/Admin/CrossPromoManager.php:111
     117msgid "AdsDestroyer could not be installed. Please try again."
     118msgstr ""
     119
     120#: src/Admin/CrossPromoManager.php:129
     121#: src/Admin/CrossPromoManager.php:158
     122msgid "Already using Unnotifier to hide admin notices?"
     123msgstr ""
     124
     125#: src/Admin/CrossPromoManager.php:134
     126msgid "Learn more"
     127msgstr ""
     128
     129#: src/Admin/CrossPromoManager.php:140
     130msgid "Dismiss this promotion"
     131msgstr ""
     132
     133#: src/Admin/CrossPromoManager.php:130
     134#: src/Admin/CrossPromoManager.php:159
     135msgid "Want to go further? AdsDestroyer hides ads, menus, dashboard widgets, upsells, and any other element in WordPress admin."
     136msgstr ""
     137
     138#: src/Admin/CrossPromoManager.php:163
     139msgid "See how it works"
     140msgstr ""
     141
     142#: src/Admin/CrossPromoManager.php:191
     143msgid "AdsDestroyer"
     144msgstr ""
     145
     146#: src/Admin/CrossPromoManager.php:192
     147msgid "Install AdsDestroyer now"
     148msgstr ""
     149
     150#: src/Admin/CrossPromoManager.php:194
     151msgid "Install AdsDestroyer"
     152msgstr ""
     153
     154#: src/Admin/CrossPromoManager.php:226
     155msgid "Invalid nonce."
     156msgstr ""
     157
     158#: src/Admin/CrossPromoManager.php:230
     159msgid "Insufficient permissions."
     160msgstr ""
     161
     162#: src/Admin/CrossPromoManager.php:234
     163msgid "Promotion dismissed."
     164msgstr ""
     165
     166#: src/Admin/AdsDestroyerPromoPage.php:27
     167msgid "A cleaner WordPress admin for you and your clients"
     168msgstr ""
     169
     170#: src/Admin/AdsDestroyerPromoPage.php:28
     171msgid "Turn a cluttered admin into a clean, branded workspace."
     172msgstr ""
     173
     174#: src/Admin/AdsDestroyerPromoPage.php:30
     175msgid "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."
     176msgstr ""
     177
     178#: src/Admin/AdsDestroyerPromoPage.php:40
     179msgid "View on WordPress.org"
     180msgstr ""
     181
     182#: src/Admin/AdsDestroyerPromoPage.php:47
     183msgid "Point, Click, Gone"
     184msgstr ""
     185
     186#: src/Admin/AdsDestroyerPromoPage.php:48
     187msgid "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."
     188msgstr ""
     189
     190#: src/Admin/AdsDestroyerPromoPage.php:50
     191msgid "Remove distracting ads and upgrade prompts"
     192msgstr ""
     193
     194#: src/Admin/AdsDestroyerPromoPage.php:51
     195msgid "Hide dashboard widgets nobody uses"
     196msgstr ""
     197
     198#: src/Admin/AdsDestroyerPromoPage.php:52
     199msgid "Clean up unwanted blocks without writing code"
     200msgstr ""
     201
     202#: src/Admin/AdsDestroyerPromoPage.php:53
     203msgid "Undo or change your choices whenever you need"
     204msgstr ""
     205
     206#: src/Admin/AdsDestroyerPromoPage.php:56
     207msgid "A promotional banner in the WordPress admin selected and ready to be hidden."
     208msgstr ""
     209
     210#: src/Admin/AdsDestroyerPromoPage.php:61
     211msgid "A Client-Friendly White-Label Dashboard"
     212msgstr ""
     213
     214#: src/Admin/AdsDestroyerPromoPage.php:62
     215msgid "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."
     216msgstr ""
     217
     218#: src/Admin/AdsDestroyerPromoPage.php:64
     219msgid "Remove third-party branding and promotional blocks"
     220msgstr ""
     221
     222#: src/Admin/AdsDestroyerPromoPage.php:65
     223msgid "Show clients only the tools they actually need"
     224msgstr ""
     225
     226#: src/Admin/AdsDestroyerPromoPage.php:66
     227msgid "Reduce confusion, mistakes, and support questions"
     228msgstr ""
     229
     230#: src/Admin/AdsDestroyerPromoPage.php:67
     231msgid "Deliver a cleaner experience under your own brand"
     232msgstr ""
     233
     234#: src/Admin/AdsDestroyerPromoPage.php:70
     235msgid "Third-party branded dashboard widgets and menu items marked for removal."
     236msgstr ""
     237
     238#: src/Admin/AdsDestroyerPromoPage.php:75
     239msgid "Hide It for as Long as You Need"
     240msgstr ""
     241
     242#: src/Admin/AdsDestroyerPromoPage.php:76
     243msgid "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."
     244msgstr ""
     245
     246#: src/Admin/AdsDestroyerPromoPage.php:78
     247msgid "Hide permanently for a lasting cleanup"
     248msgstr ""
     249
     250#: src/Admin/AdsDestroyerPromoPage.php:79
     251msgid "Remove temporary messages for an hour or a day"
     252msgstr ""
     253
     254#: src/Admin/AdsDestroyerPromoPage.php:80
     255msgid "Keep campaigns and upsells away for weeks or months"
     256msgstr ""
     257
     258#: src/Admin/AdsDestroyerPromoPage.php:81
     259msgid "Bring anything back by editing or deleting its rule"
     260msgstr ""
     261
     262#: src/Admin/AdsDestroyerPromoPage.php:84
     263msgid "Duration menu for choosing how long a promotional block stays hidden."
     264msgstr ""
     265
     266#: src/Admin/AdsDestroyerPromoPage.php:89
     267msgid "Trim Bloated Menus and the Admin Bar"
     268msgstr ""
     269
     270#: src/Admin/AdsDestroyerPromoPage.php:90
     271msgid "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."
     272msgstr ""
     273
     274#: src/Admin/AdsDestroyerPromoPage.php:92
     275msgid "Remove menu items and submenus nobody opens"
     276msgstr ""
     277
     278#: src/Admin/AdsDestroyerPromoPage.php:93
     279msgid "Clear leftover icons and counters from the admin bar"
     280msgstr ""
     281
     282#: src/Admin/AdsDestroyerPromoPage.php:94
     283msgid "Drop plugin badges that demand attention"
     284msgstr ""
     285
     286#: src/Admin/AdsDestroyerPromoPage.php:95
     287msgid "Keep the rest of the page exactly where it belongs"
     288msgstr ""
     289
     290#: src/Admin/AdsDestroyerPromoPage.php:98
     291msgid "Cluttered admin bar items marked for removal above a clean admin page."
     292msgstr ""
     293
     294#: src/Admin/AdsDestroyerPromoPage.php:106
     295msgid "Give clients a WordPress dashboard that feels like your product."
     296msgstr ""
     297
     298#: src/Admin/AdsDestroyerPromoPage.php:107
     299msgid "Install AdsDestroyer and remove the clutter standing between users and their work."
     300msgstr ""
  • unnotifier/trunk/readme.txt

    r3667689 r3669493  
    77Requires PHP: 7.4
    88Tested up to PHP: 8.4
    9 Stable tag: 1.2.9
     9Stable tag: 1.2.10
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    205205
    206206== Changelog ==
     207
     208= 1.2.10 =
     209* Minor improvements and interface refinements.
    207210
    208211= 1.2.9 =
  • unnotifier/trunk/src/Admin/Settings.php

    r3393545 r3669493  
    8181        public static function admin_page()
    8282        {
    83             // Load page classes
    84             require_once UNNO_PLUGIN_DIR . 'src/Admin/GeneralSettingsPage.php';
    85             require_once UNNO_PLUGIN_DIR . 'src/Admin/HiddenNoticesPage.php';
    86            
    8783            // 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)) {
    9090                $active_tab = 'general';
    9191            }
    … …  
    9696               
    9797                <?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; ?>
    98102               
    99103                <div class="unno-settings-content">
    … …  
    102106                        $hidden_notices_page = new HiddenNoticesPage();
    103107                        $hidden_notices_page->render();
     108                    } elseif ($active_tab === 'adsdestroyer') {
     109                        $promo_page = new AdsDestroyerPromoPage();
     110                        $promo_page->render();
    104111                    } else {
    105112                        $general_settings_page = new GeneralSettingsPage();
    … …  
    117124                'hidden' => __('Hidden Notices', 'unnotifier'),
    118125            ];
     126
     127            if (CrossPromoManager::can_promote()) {
     128                $tabs['adsdestroyer'] = __('Hide More', 'unnotifier');
     129            }
    119130           
    120131            $base_url = admin_url('options-general.php?page=unnotifier');
  • unnotifier/trunk/unnotifier.php

    r3667689 r3669493  
    44 * Plugin URI: https://wp-aifactory.com/unnotifier-disable-admin-notices-wordpress-plugin/
    55 * 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.9
     6 * Version: 1.2.10
    77 * Author: Alex Kovalev
    88 * Author URI: https://wp-aifactory.com
    … …  
    2020use UNNO\Admin\Settings;
    2121use UNNO\Admin\ReviewNoticeManager;
     22use UNNO\Admin\CrossPromoManager;
    2223use UNNO\Data\Options;
    2324
    … …  
    2728
    2829// Define plugin constants
    29 define('UNNO_VERSION', '1.2.9');
     30define('UNNO_VERSION', '1.2.10');
    3031define('UNNO_PLUGIN_FILE', __FILE__);
    3132define('UNNO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    … …  
    3637if (!defined('UNNO_REVIEW_NOTICE_DEBUG')) {
    3738    define('UNNO_REVIEW_NOTICE_DEBUG', false);
     39}
     40
     41// Debug constant for the AdsDestroyer promotion.
     42if (!defined('UNNO_PROMO_DEBUG')) {
     43    define('UNNO_PROMO_DEBUG', false);
    3844}
    3945
    … …  
    6773    $review_notice_manager = new ReviewNoticeManager();
    6874    $review_notice_manager->init();
     75
     76    // Initialize AdsDestroyer cross-promotion.
     77    $cross_promo_manager = new CrossPromoManager();
     78    $cross_promo_manager->init();
    6979});
    7080
Note: See TracChangeset for help on using the changeset viewer.