PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | app/Toolbar/Frontend.php +13 -1 3.1.43.2.1 View file →
@@ -32,11 +32,22 @@
32 32 {
33 33 \add_action('wp_enqueue_scripts', [$this, 'loadScriptsAndStyles']);
34 34 \add_action('wp_body_open', [$this, 'render'], 1);
35 35 \add_action('wp_head', [$this, 'hideCoreAdminBar'], 1);
36 + // This class is loaded conditionally, so callers often see the false default.
37 + \add_filter('extendify_simple_toolbar_active', [$this, 'reportActive']);
36 38 }
37 39
38 40 /**
41 + * @param bool $active
42 + * @return bool
43 + */
44 + public function reportActive($active)
45 + {
46 + return $active || self::shouldRender();
47 + }
48 +
49 + /**
39 50 * Resolved style for the current user — 'simple' or 'full'.
40 51 *
41 52 * Honors the per-user setting; falls back to a Launch-aware
42 53 * default when the user hasn't picked one.
@@ -177,9 +188,9 @@
177 188 // phpcs:disable Generic.Files.LineLength.TooLong -- inline SVG + HTML template markup
178 189 ?>
179 190 <div id="extendify-toolbar" role="navigation" aria-label="<?php \esc_attr_e('Site toolbar', 'extendify-local'); ?>">
180 191 <div class="ext-tb-section ext-tb-left">
181 - <button type="button" class="ext-tb-btn ext-tb-ai-agent" id="ext-tb-ai-agent" aria-label="<?php \esc_attr_e('Open the AI Agent', 'extendify-local'); ?>">
192 + <button type="button" class="ext-tb-btn ext-tb-ai-agent" id="ext-tb-ai-agent" disabled aria-busy="true" aria-label="<?php \esc_attr_e('Open the AI Agent', 'extendify-local'); ?>">
182 193 <svg class="ext-tb-magic" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
183 194 <path d="M17.0909 9.81818L18 7.81818L20 6.90909L18 6L17.0909 4L16.1818 6L14.1818 6.90909L16.1818 7.81818L17.0909 9.81818Z" fill="currentColor"/>
184 195 <path d="M17.0909 14.1818L16.1818 16.1818L14.1818 17.0909L16.1818 18L17.0909 20L18 18L20 17.0909L18 16.1818L17.0909 14.1818Z" fill="currentColor"/>
185 196 <path d="M11.6364 10.1818L9.81818 6.18182L8 10.1818L4 12L8 13.8182L9.81818 17.8182L11.6364 13.8182L15.6364 12L11.6364 10.1818ZM10.5382 12.72L9.81818 14.3055L9.09818 12.72L7.51273 12L9.09818 11.28L9.81818 9.69455L10.5382 11.28L12.1236 12L10.5382 12.72Z" fill="currentColor"/>
@@ -216,8 +227,9 @@
216 227 <path d="M9.5 7v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1H5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
217 228 </svg>
218 229 <span class="screen-reader-text"><?php \esc_html_e('(opens in a new tab)', 'extendify-local'); ?></span>
219 230 </a>
231 + <?php \do_action('extendify_toolbar_right'); ?>
220 232 </div>
221 233 </div>
222 234 <?php
223 235 // phpcs:enable Generic.Files.LineLength.TooLong