PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.3.0
Easy Elements for Elementor – Addons & Website Templates v1.3.0
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
easy-elements / widgets / icon-box / skin / default.php

default.php in Easy Elements for Elementor – Addons & Website Templates 1.3.0, at widgets/icon-box/skin/default.php

115 lines 6.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="ee--icon-box <?php echo esc_attr($icon_direction); ?> eel-bf-<?php echo esc_attr( $item_hover_styles ); ?> eel-info-<?php echo esc_attr($info_skin); ?>">
2 <?php if ( isset( $settings['icon']['value'] ) && $settings['icon']['value'] ) : ?>
3 <span class="eel-icon">
4 <?php
5 \Elementor\Icons_Manager::render_icon( $settings['icon'], [ 'aria-hidden' => 'true' ] );
6 ?>
7 </span>
8 <?php elseif ( 'image' === $settings['icon_type'] && ! empty( $settings['icon_image']['url'] ) ) : ?>
9 <span class="eel-icon eel-icon-image">
10 <?php
11 if ( ! empty( $settings['icon_image']['id'] ) ) {
12 echo wp_get_attachment_image(
13 $settings['icon_image']['id'],
14 'full',
15 false,
16 ['alt' => $settings['icon_image']['alt'] ?? '']
17 );
18 } elseif ( ! empty( $settings['icon_image']['url'] ) ) {
19 echo '<img src="' . esc_url( $settings['icon_image']['url'] ) . '" alt="">';
20 }
21 ?>
22 </span>
23 <?php endif; ?>
24
25 <?php if ( ! empty( $settings['number_title'] ) ) : ?>
26 <div class="eel-pro-number easyel-gradeint-<?php echo esc_attr($settings['number_gradeint']) ?>"><?php echo esc_html( $settings['number_title'] ); ?></div>
27 <?php endif; ?>
28
29 <?php if ( $settings['icon_direction'] === 'left' || $settings['icon_direction'] === 'right' ) : ?>
30 <div class="eel-title-content-wrap">
31 <?php endif; ?>
32
33 <?php if ( ! empty( $settings['procs_title'] ) ) :
34 $this->add_inline_editing_attributes( 'procs_title' );
35 $title_tag = isset( $settings['title_tag'] ) ? esc_attr( $settings['title_tag'] ) : 'h3';
36 ?>
37 <<?php echo tag_escape( $title_tag ); ?> class="icon-box-title elementor-inline-editing" <?php
38 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
39 echo $this->get_render_attribute_string( 'procs_title' ); ?>>
40 <?php echo wp_kses_post( $settings['procs_title'] ); ?>
41 </<?php echo tag_escape( $title_tag ); ?>>
42 <?php endif; ?>
43
44
45 <?php if ( ! empty( $settings['_description'] ) ) :
46 $this->add_inline_editing_attributes( '_description' );
47 ?>
48 <div class="icon-box-description elementor-inline-editing" <?php
49 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
50 echo $this->get_render_attribute_string( '_description' ); ?>>
51 <?php echo wp_kses_post( $settings['_description'] ); ?></div>
52 <?php endif; ?>
53
54 <?php if ( !empty($settings['show_read_more']) && $settings['show_read_more'] === 'yes' ) : ?>
55 <div class="eel-read-more">
56 <?php if ( $link ) : ?>
57 <a href="<?php echo esc_url($link); ?>"<?php echo esc_attr($target) . esc_attr($nofollow); ?>>
58 <?php endif; ?>
59 <?php if ( $settings['read_more_type'] === 'read_icon' ) : ?>
60 <span class="eel-read-more-icon">
61 <?php
62 if ( !empty($settings['read_more_icon']['value']) ) {
63 \Elementor\Icons_Manager::render_icon( $settings['read_more_icon'], [ 'aria-hidden' => 'true' ] );
64 } else {
65 echo '<i class="unicon-arrow-up-right"></i>';
66 }
67 ?>
68 </span>
69 <?php elseif ( $settings['read_more_type'] === 'read_text' && !empty($settings['read_more_text']) ) : ?>
70 <span class="eel-read-more-text">
71 <?php echo esc_html( $settings['read_more_text'] ); ?>
72 <?php
73 if (
74 !empty($settings['read_more_text_icon_show']) &&
75 $settings['read_more_text_icon_show'] === 'yes'
76 ) {
77 echo '<span class="eel-read-more-text-icon">';
78 if (!empty($settings['read_more_text_icon']['value'])) {
79 \Elementor\Icons_Manager::render_icon( $settings['read_more_text_icon'], [ 'aria-hidden' => 'true' ] );
80 } else {
81 echo '<i class="unicon-arrow-up-right"></i>';
82 }
83 echo '</span>';
84 }
85 ?>
86 </span>
87 <?php elseif ( $settings['read_more_type'] === 'read_icon_to_text' && !empty($settings['read_more_text']) ) : ?>
88 <span class="eel-read-more-text eel-icon-to-text">
89 <span class="eel-text"><?php echo esc_html( $settings['read_more_text'] ); ?></span>
90 <?php
91 if (
92 !empty($settings['read_more_text_icon_show']) &&
93 $settings['read_more_text_icon_show'] === 'yes'
94 ) {
95 echo '<span class="eel-read-more-text-icon">';
96 if (!empty($settings['read_more_text_icon']['value'])) {
97 \Elementor\Icons_Manager::render_icon( $settings['read_more_text_icon'], [ 'aria-hidden' => 'true' ] );
98 } else {
99 echo '<i class="unicon-add"></i>';
100 }
101 echo '</span>';
102 }
103 ?>
104 </span>
105 <?php endif; ?>
106 <?php if ( $link ) : ?>
107 </a>
108 <?php endif; ?>
109 </div>
110 <?php endif; ?>
111
112 <?php if ( $settings['icon_direction'] === 'left' || $settings['icon_direction'] === 'right' ) : ?>
113 </div>
114 <?php endif; ?>
115 </div>