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