PluginProbe ʕ •ᴥ•ʔ
Spider Elements – Premium Elementor Widgets & Addons Library / 1.5.0
Spider Elements – Premium Elementor Widgets & Addons Library v1.5.0
trunk 1.0.0 1.1.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.7.0 1.8.0 1.9.0
spider-elements / widgets / templates / alerts-box / alert-box-1.php
spider-elements / widgets / templates / alerts-box Last commit date
alert-box-1.php 1 year ago
alert-box-1.php
111 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5 if ( $settings['display_type'] == 'alert' ) : ?>
6 <div class="spel_alert_box alert media ezd-d-flex message_alert alert-<?php echo esc_attr( $settings['alert_type'] ) ?> fade show"
7 role="alert" data-id="<?php echo esc_attr( $this->get_id() ) ?>">
8 <?php \Elementor\Icons_Manager::render_icon( $settings['icon'], [ 'aria-hidden' => 'true' ] ); ?>
9 <div class="media-body">
10 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
11 <h5 class="title"> <?php echo esc_html( $settings['alert_title'] ) ?></h5>
12 <?php endif; ?>
13 <?php echo ! empty( $settings['alert_description'] ) ? $this->parse_text_editor( $settings['alert_description'] ) : ''; ?>
14 <?php if ( 'show' === $settings['show_dismiss'] ) : ?>
15 <button type="button" class="close" data-dismiss="alert"
16 data-id="<?php echo esc_attr( $this->get_id() ) ?>">
17 <i class="icon_close"></i>
18 </button>
19 <?php endif; ?>
20 </div>
21 </div>
22 <?php endif; ?>
23
24 <?php if ( $settings['display_type'] == 'note' ) : ?>
25 <blockquote class="spel_alert_box media ezd-d-flex notice-box notice-<?php echo esc_attr( $settings['alert_type'] ) ?>">
26 <?php \Elementor\Icons_Manager::render_icon( $settings['icon'], [ 'aria-hidden' => 'true' ] ); ?>
27 <div class="media-body">
28 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
29 <h5 class="title"><?php echo esc_html( $settings['alert_title'] ) ?></h5>
30 <?php endif; ?>
31 <?php echo $this->parse_text_editor( wpautop( $settings['alert_description'] ) ) ?>
32 </div>
33 </blockquote>
34 <?php endif; ?>
35
36 <?php if ( $settings['display_type'] == 'dual-box' ) : ?>
37 <div class="spel_alert_box dual-box-wrapper notice-<?php echo esc_attr( $settings['alert_type'] . ' ' . $settings['dual-layer-alignment'] ) ?>">
38 <div class="dual-box-content <?php echo esc_attr( $settings['dual-layer-alignment'] ) ?>">
39 <div class="ezd-d-flex notice">
40 <?php \Elementor\Icons_Manager::render_icon( $settings['icon'], [ 'aria-hidden' => 'true' ] ); ?>
41 <div class="media-body">
42 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
43 <h5 class="title __title"><?php echo esc_html( $settings['alert_title'] ) ?></h5>
44 <?php endif; ?>
45 <div class="__content">
46 <?php echo $this->parse_text_editor( wpautop( $settings['alert_description'] ) ) ?>
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52 <?php endif; ?>
53
54 <?php if ( $settings['display_type'] == 'block-notice' ) : ?>
55 <div class="spel_alert_box block-notice-wrapper se_box_padding block-notice-content-wrapper block-notice-<?php echo esc_attr( $settings['alert_type'] ) ?>">
56 <div class="block-notice-icon">
57 <?php \Elementor\Icons_Manager::render_icon( $settings['icon'], [ 'aria-hidden' => 'true' ] ); ?>
58 </div>
59 <div class="block-notice-body">
60 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
61 <h5 class="title"><?php echo esc_html( $settings['alert_title'] ) ?></h5>
62 <?php endif; ?>
63 <?php echo $this->parse_text_editor( wpautop( $settings['alert_description'] ) ) ?>
64 </div>
65 </div>
66 <?php endif; ?>
67
68 <?php if ( $settings['display_type'] == 'note-with-icon' ) : ?>
69 <div class="spel_alert_box note-with-icon nic-alert nic-alert-<?php echo esc_attr( $settings['alert_type'] ) ?>">
70 <div class="nic-content-wrap">
71 <?php if ( ! empty( $settings['icon']['value'] ) ) : ?>
72 <div class="info-tab note-icon" title="Important Notes">
73 <div class="icon-wrapper">
74 <?php \Elementor\Icons_Manager::render_icon( $settings['icon'],
75 [ 'aria-hidden' => 'true' ] ); ?>
76 </div>
77 </div>
78 <?php endif; ?>
79 <div class="note-box se_box_padding">
80 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
81 <h5 class="title"> <?php echo esc_html( $settings['alert_title'] ) ?></h5>
82 <?php endif; ?>
83 <?php echo $this->parse_text_editor( wpautop( $settings['alert_description'] ) ) ?>
84 </div>
85 </div>
86 </div>
87 <?php endif; ?>
88
89 <?php if ( $settings['display_type'] == 'explanation' ) : ?>
90 <div class="spel_alert_box explanation expn-left">
91 <?php echo $this->parse_text_editor( wpautop( $settings['alert_description'] ) ) ?>
92 </div>
93 <?php if ( ! empty( $settings['alert_title'] ) ) : ?>
94 <style>
95 .explanation::after {
96 font-family: "Roboto", sans-serif;
97 content: "<?php echo esc_attr($settings['alert_title']) ?>";
98 text-transform: uppercase;
99 font-weight: 700;
100 top: -19px;
101 left: 1rem;
102 padding: 0 0.5rem;
103 font-size: 0.6rem;
104 position: absolute;
105 z-index: 1;
106 color: #000;
107 background: #fff;
108 }
109 </style>
110 <?php endif; ?>
111 <?php endif; ?>