PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.0-dev2
Elementor Website Builder – more than just a page builder v3.32.0-dev2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/widgets/icon-box.php +16 -49 4.2.13.32.0-dev2 View file →
@@ -235,35 +235,28 @@
235 235 'position',
236 236 [
237 237 'label' => esc_html__( 'Icon Position', 'elementor' ),
238 238 'type' => Controls_Manager::CHOOSE,
239 - 'default' => 'block-start',
240 - 'mobile_default' => 'block-start',
239 + 'default' => 'top',
240 + 'mobile_default' => 'top',
241 241 'options' => [
242 - 'inline-start' => [
243 - 'title' => esc_html__( 'Start', 'elementor' ),
242 + 'left' => [
243 + 'title' => esc_html__( 'Left', 'elementor' ),
244 244 'icon' => 'eicon-h-align-left',
245 245 ],
246 - 'inline-end' => [
247 - 'title' => esc_html__( 'End', 'elementor' ),
248 - 'icon' => 'eicon-h-align-right',
249 - ],
250 - 'block-start' => [
246 + 'top' => [
251 247 'title' => esc_html__( 'Top', 'elementor' ),
252 248 'icon' => 'eicon-v-align-top',
253 249 ],
254 - 'block-end' => [
250 + 'right' => [
251 + 'title' => esc_html__( 'Right', 'elementor' ),
252 + 'icon' => 'eicon-h-align-right',
253 + ],
254 + 'bottom' => [
255 255 'title' => esc_html__( 'Bottom', 'elementor' ),
256 256 'icon' => 'eicon-v-align-bottom',
257 257 ],
258 258 ],
259 - 'classes' => 'elementor-control-start-end',
260 - 'classes_dictionary' => [
261 - 'left' => is_rtl() ? 'inline-end' : 'inline-start',
262 - 'right' => is_rtl() ? 'inline-start' : 'inline-end',
263 - 'top' => 'block-start',
264 - 'bottom' => 'block-end',
265 - ],
266 259 'prefix_class' => 'elementor%s-position-',
267 260 'condition' => [
268 261 'selected_icon[value]!' => '',
269 262 ],
@@ -299,9 +292,9 @@
299 292 '{{WRAPPER}} .elementor-icon-box-wrapper' => 'align-items: {{VALUE}};',
300 293 ],
301 294 'condition' => [
302 295 'selected_icon[value]!' => '',
303 - 'position' => [ 'left', 'right', 'inline-start', 'inline-end' ],
296 + 'position' => [ 'left', 'right' ],
304 297 ],
305 298 ]
306 299 );
307 300
@@ -310,10 +303,10 @@
310 303 [
311 304 'label' => esc_html__( 'Alignment', 'elementor' ),
312 305 'type' => Controls_Manager::CHOOSE,
313 306 'options' => [
314 - 'start' => [
315 - 'title' => esc_html__( 'Start', 'elementor' ),
307 + 'left' => [
308 + 'title' => esc_html__( 'Left', 'elementor' ),
316 309 'icon' => 'eicon-text-align-left',
317 310 ],
318 311 'center' => [
319 312 'title' => esc_html__( 'Center', 'elementor' ),
@@ -318,10 +311,10 @@
318 311 'center' => [
319 312 'title' => esc_html__( 'Center', 'elementor' ),
320 313 'icon' => 'eicon-text-align-center',
321 314 ],
322 - 'end' => [
323 - 'title' => esc_html__( 'End', 'elementor' ),
315 + 'right' => [
316 + 'title' => esc_html__( 'Right', 'elementor' ),
324 317 'icon' => 'eicon-text-align-right',
325 318 ],
326 319 'justify' => [
327 320 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -327,13 +320,8 @@
327 320 'title' => esc_html__( 'Justified', 'elementor' ),
328 321 'icon' => 'eicon-text-align-justify',
329 322 ],
330 323 ],
331 - 'classes' => 'elementor-control-start-end',
332 - 'selectors_dictionary' => [
333 - 'left' => is_rtl() ? 'end' : 'start',
334 - 'right' => is_rtl() ? 'start' : 'end',
335 - ],
336 324 'selectors' => [
337 325 '{{WRAPPER}} .elementor-icon-box-wrapper' => 'text-align: {{VALUE}};',
338 326 ],
339 327 'separator' => 'after',
@@ -360,9 +348,9 @@
360 348 'max' => 10,
361 349 ],
362 350 ],
363 351 'selectors' => [
364 - '{{WRAPPER}} .elementor-icon-box-wrapper' => 'gap: {{SIZE}}{{UNIT}};',
352 + '{{WRAPPER}}' => '--icon-box-icon-margin: {{SIZE}}{{UNIT}}',
365 353 ],
366 354 'condition' => [
367 355 'selected_icon[value]!' => '',
368 356 ],
@@ -965,27 +953,6 @@
965 953 }
966 954
967 955 public function on_import( $element ) {
968 956 return Icons_Manager::on_import_migration( $element, 'icon', 'selected_icon', true );
969 - }
970 -
971 - public function render_markdown(): string {
972 - $settings = $this->get_settings_for_display();
973 - $title = Utils::html_to_plain_text( $settings['title_text'] ?? '' );
974 - $description = Utils::html_to_plain_text( $settings['description_text'] ?? '' );
975 - if ( empty( $title ) && empty( $description ) ) {
976 - return '';
977 - }
978 - $parts = [];
979 - if ( ! empty( $title ) ) {
980 - if ( ! empty( $settings['link']['url'] ) ) {
981 - $parts[] = '### [' . $title . '](' . esc_url( $settings['link']['url'] ) . ')';
982 - } else {
983 - $parts[] = '### ' . $title;
984 - }
985 - }
986 - if ( ! empty( $description ) ) {
987 - $parts[] = $description;
988 - }
989 - return implode( "\n\n", $parts );
990 957 }
991 958 }