PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.4.5
Easy Elements for Elementor – Addons & Website Templates v1.4.5
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.4.5, at widgets/icon-box/skin/default.php

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