PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.01
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.01
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | Modules/Gutenberg/EditorBlock.php +5 -17 2.4.012.10.01 View file →
@@ -51,8 +51,9 @@
51 51 if (function_exists('\register_block_type')) {
52 52 \register_block_type(
53 53 'fluent-community/page-layout',
54 54 array(
55 + 'api_version' => '3', // WP core uses int but stub declares string
55 56 'editor_script' => 'custom-layout-block-editor',
56 57 'editor_style' => 'custom-layout-block-editor-style',
57 58 'style' => 'fluent_community_global',
58 59 'render_callback' => [$this, 'render'],
@@ -111,9 +112,9 @@
111 112 public function render($attributes, $content)
112 113 {
113 114 static $isLoaded;
114 115 if ($isLoaded) {
115 - return 'Layout is already loaded before';
116 + return esc_html__('Layout is already loaded before', 'fluent-community');
116 117 }
117 118
118 119 if (!$isLoaded) {
119 120 $isLoaded = true;
@@ -141,22 +142,9 @@
141 142 return $classes;
142 143 });
143 144 } else if (Helper::hasColorScheme()) {
144 145 add_action('wp_head', function () {
145 - ?>
146 - <script>
147 - (function () {
148 - var globalStates = localStorage.getItem('fcom_global_storage');
149 - if (globalStates) {
150 - globalStates = JSON.parse(globalStates);
151 - if (globalStates && globalStates.fcom_color_mode == 'dark') {
152 - document.documentElement.classList.add('dark');
153 - document.documentElement.setAttribute('data-color-mode', 'dark');
154 - }
155 - }
156 - })();
157 - </script>
158 - <?php
146 + Helper::renderColorSchemePrePaintScript();
159 147 });
160 148 }
161 149
162 150 ob_start();
@@ -170,9 +158,9 @@
170 158 <?php endif; ?>
171 159 <div class="fhr_content">
172 160 <div class="fhr_home">
173 161 <div class="feed_layout">
174 - <div class="spaces">
162 + <div class="spaces fcom_space_list">
175 163 <div id="fluent_community_sidebar_menu" class="space_contents">
176 164 <?php do_action('fluent_community/portal_sidebar', $contenx); ?>
177 165 </div>
178 166 </div>
@@ -210,9 +198,9 @@
210 198 <?php endif; ?>
211 199 <div class="fhr_content">
212 200 <div class="fhr_home">
213 201 <div class="feed_layout">
214 - <div class="spaces">
202 + <div class="spaces fcom_space_list">
215 203 <div id="fluent_community_sidebar_menu" class="space_contents">
216 204 <!-- start-->
217 205 <?php do_action('fluent_community/portal_sidebar', 'headless'); ?>
218 206 <!-- end-->