PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.1.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.1.0
2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 All 42 releases
← All changes | app/Hooks/Handlers/ShortcodeHandler.php +21 -10 1.952.1.0 View file →
@@ -3,8 +3,9 @@
3 3 namespace FluentBoards\App\Hooks\Handlers;
4 4
5 5 use FluentBoards\App\App;
6 6 use FluentBoards\App\Models\Board;
7 +use FluentBoards\App\Services\Constant;
7 8 use FluentBoards\App\Services\Helper;
8 9 use FluentBoards\App\Services\PermissionManager;
9 10 use FluentBoards\App\Services\PublicAccessService;
10 11 use FluentBoards\App\Services\TransStrings;
@@ -77,20 +78,11 @@
77 78
78 79 // Inject Vite HMR client in dev mode
79 80 Vite::injectViteClient();
80 81
81 - $isRtl = is_rtl();
82 + $isRtl = fluent_boards_is_rtl();
82 83 Vite::enqueueStyle($slug . '_public_board_app', 'scss/admin.scss');
83 84
84 - if ($isRtl && !Vite::underDevelopment()) {
85 - wp_enqueue_style(
86 - $slug . '_public_board_app_rtl',
87 - $assets . 'admin/admin-rtl.css',
88 - [$slug . '_public_board_app'],
89 - FLUENT_BOARDS_PLUGIN_VERSION
90 - );
91 - }
92 -
93 85 // Enqueue merged chunk CSS in production
94 86 if (!Vite::underDevelopment()) {
95 87 $styleCssPath = FLUENT_BOARDS_PLUGIN_PATH . 'assets/admin/style.css';
96 88 if (file_exists($styleCssPath)) {
@@ -102,8 +94,23 @@
102 94 );
103 95 }
104 96 }
105 97
98 + // RTL overrides must load after style.css so rules appended to the
99 + // element-plus layer win by source order, not only by specificity.
100 + if ($isRtl) {
101 + $rtlDeps = [$slug . '_public_board_app'];
102 + if (wp_style_is($slug . '_public_vite_style', 'enqueued')) {
103 + $rtlDeps[] = $slug . '_public_vite_style';
104 + }
105 + Vite::enqueueStyle(
106 + $slug . '_public_board_app_rtl',
107 + 'scss/admin_rtl.scss',
108 + $rtlDeps,
109 + FLUENT_BOARDS_PLUGIN_VERSION
110 + );
111 + }
112 +
106 113 Vite::enqueueStaticScript(
107 114 $slug . '_public_global_admin',
108 115 'admin/global_admin.js',
109 116 [],
@@ -173,8 +180,12 @@
173 180 'dashiconsCss' => site_url('/wp-includes/css/dashicons.css'),
174 181 'fluent_crm_exists' => false,
175 182 'fluent_roadmap_exists' => false,
176 183 'has_pro' => false,
184 + 'upgrade_url' => fluent_boards_get_upgrade_url(),
185 + 'board_solid_colors' => Constant::BOARD_BACKGROUND_DEFAULT_SOLID_COLORS,
186 + 'board_gradient_colors' => Constant::BOARD_BACKGROUND_DEFAULT_GRADIENT_COLORS,
187 + 'label_color_presets' => Constant::LABEL_COLOR_PRESETS,
177 188 'is_rtl' => $isRtl,
178 189 'public_mode' => true,
179 190 'public_token' => $boardToken,
180 191 ];