PluginProbe
Float menu – awesome floating side menu / 7.2
Float menu – awesome floating side menu v7.2
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
← All changes | classes/Publish/Maker.php +12 -12 trunk7.2 View file →
@@ -88,9 +88,9 @@
88 88 if ( isset( $param['labelSize'] ) && $param['labelSize'] !== '15' ) {
89 89 $properties['--fm-label-size'] = $param['labelSize'];
90 90 }
91 91
92 - $properties = apply_filters( WOWP_Plugin::PREFIX . '_maker_properties', $properties, $param ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
92 + $properties = apply_filters( WOWP_Plugin::PREFIX . '_maker_properties', $properties, $param );
93 93
94 94
95 95 if ( ! empty( $properties ) ) {
96 96 foreach ( $properties as $property => $value ) {
@@ -170,9 +170,9 @@
170 170 }
171 171
172 172 $data['remove'] = true;
173 173
174 - $data = apply_filters( WOWP_Plugin::PREFIX . '_maker_options', $data, $param ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
174 + $data = apply_filters( WOWP_Plugin::PREFIX . '_maker_options', $data, $param );
175 175
176 176 return wp_json_encode( $data );
177 177 }
178 178
@@ -265,9 +265,9 @@
265 265 } else {
266 266 $out .= '</a>';
267 267 }
268 268
269 - $out = apply_filters( WOWP_Plugin::PREFIX . '_maker_link', $out, $this->menu, $this->param, $i, $this->id ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
269 + $out = apply_filters( WOWP_Plugin::PREFIX . '_maker_link', $out, $this->menu, $this->param, $i, $this->id );
270 270
271 271 return $out;
272 272 }
273 273
@@ -319,9 +319,9 @@
319 319 $out .= 'href="' . esc_attr( $link ) . '" target="' . esc_attr( $target ) . '"';
320 320 break;
321 321 }
322 322
323 - $out = apply_filters( WOWP_Plugin::PREFIX . '_maker_action', $out, $menu, $i, $type, $target ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
323 + $out = apply_filters( WOWP_Plugin::PREFIX . '_maker_action', $out, $menu, $i, $type, $target );
324 324
325 325 return $out;
326 326 }
327 327
@@ -353,12 +353,12 @@
353 353 $style .= '--fm-icon-text-weight:' . esc_attr( $this->menu['icon_text_weight'][ $i ] ) . ';';
354 354 }
355 355
356 356 if ( ! empty( $menu['radius_icon'][ $i ] ) ) {
357 - $style .= '--fm-icon-radius: ' . ( $menu['icon_radius_top_left'][ $i ] ?? 0 ) . 'px ';
358 - $style .= ( $menu['icon_radius_top_right'][ $i ] ?? 0 ) . 'px ';
359 - $style .= ( $menu['icon_radius_bottom_right'][ $i ] ?? 0 ) . 'px ';
360 - $style .= ( $menu['icon_radius_bottom_left'][ $i ] ?? 0 ) . 'px;';
357 + $style .= '--fm-icon-radius: ' . $menu['icon_radius_top_left'][ $i ] . 'px ';
358 + $style .= $menu['icon_radius_top_right'][ $i ] . 'px ';
359 + $style .= $menu['icon_radius_bottom_right'][ $i ] . 'px ';
360 + $style .= $menu['icon_radius_bottom_left'][ $i ] . 'px;';
361 361 }
362 362
363 363 $out = '<span class="fm-icon' . esc_attr( $class ) . '"';
364 364 $out .= ! empty( $style ) ? ' style="' . esc_attr( $style ) . '"' : '';
@@ -407,12 +407,12 @@
407 407 $style .= '--fm-label-weight:' . esc_attr( $this->menu['item_tooltip_weight'][ $i ] ) . ';';
408 408 }
409 409
410 410 if ( ! empty( $menu['radius_label'][ $i ] ) ) {
411 - $style .= '--fm-label-radius: ' . ( $menu['label_radius_top_left'][ $i ] ?? 0 ) . 'px ';
412 - $style .= ( $menu['label_radius_top_right'][ $i ] ?? 0 ) . 'px ';
413 - $style .= ( $menu['label_radius_bottom_right'][ $i ] ?? 0 ) . 'px ';
414 - $style .= ( $menu['label_radius_bottom_left'][ $i ] ?? 0 ) . 'px;';
411 + $style .= '--fm-label-radius: ' . $menu['icon_radius_top_left'][ $i ] . 'px ';
412 + $style .= $menu['label_radius_top_right'][ $i ] . 'px ';
413 + $style .= $menu['label_radius_bottom_right'][ $i ] . 'px ';
414 + $style .= $menu['label_radius_bottom_left'][ $i ] . 'px;';
415 415 }
416 416
417 417 $icon_type = ! empty( $this->menu['icon_type'][ $i ] ) ? $this->menu['icon_type'][ $i ] : 'icon';
418 418 $icon = ! empty( $this->menu['item_icon'][ $i ] ) ? $this->menu['item_icon'][ $i ] : '';