icon-box1.php
39 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } ?> |
| 5 | |
| 6 | <div class="spel_icon_box"> |
| 7 | <a <?php spel_button_link($settings['box_link']); ?> class="box_bg_shape"> |
| 8 | <?php if ( ! empty( $settings['i_box_icon'] ) ) { ?> |
| 9 | <div class="box_icon"> |
| 10 | <span class="box_main_icon"> |
| 11 | <?php \Elementor\Icons_Manager::render_icon( $settings['i_box_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 12 | </span> |
| 13 | </div> |
| 14 | <?php } ?> |
| 15 | |
| 16 | <div class="icon_box_content"> |
| 17 | <?php if ( ! empty( $settings['title'] ) ) { ?> |
| 18 | <<?php echo esc_attr( $box_title_tag ); ?> class="box_title"> |
| 19 | <?php echo esc_html( $settings['title'] ); ?> |
| 20 | </<?php echo esc_attr( $box_title_tag ); ?>> |
| 21 | <?php } ?> |
| 22 | |
| 23 | <?php if ( ! empty( $settings['description'] ) ) { ?> |
| 24 | <p class="icon_box_description"> |
| 25 | <?php echo esc_html( $settings['description'] ); ?> |
| 26 | </p> |
| 27 | <?php } ?> |
| 28 | |
| 29 | <?php if ( ! empty( $settings['btn_text'] ) ) { ?> |
| 30 | <div class="icon_box_button"> |
| 31 | <span class="box_button"><?php echo esc_html( $settings['btn_text'] ); ?></span> |
| 32 | <?php if ( ! empty( $settings['btn_icon'] ) ) { ?> |
| 33 | <?php \Elementor\Icons_Manager::render_icon( $settings['btn_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 34 | <?php } ?> |
| 35 | </div> |
| 36 | <?php } ?> |
| 37 | </div> |
| 38 | </a> |
| 39 | </div> |