Advertisement
sumakaki

view-icon-box

Nov 8th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. <?php if ( ! defined( 'FW' ) ) {
  2.     die( 'Forbidden' );
  3. }
  4. /**
  5.  * @var array $atts
  6.  */
  7. ?>
  8. <?php
  9. /*
  10.  * `.fw-iconbox` supports 3 styles:
  11.  * `fw-iconbox-1`, `fw-iconbox-2` and `fw-iconbox-3`
  12.  */
  13. ?>
  14. <?php
  15. $custom_class = (isset($atts['custom_class']) && $atts['custom_class']) ? $atts['custom_class'] : '';
  16.  ?>
  17. <div class="fw-iconbox clearfix <?php esc_attr( $custom_class ); ?> <?php echo esc_attr($atts['style']); ?>">
  18.     <p><?php var_dump($custom_class); ?></p>
  19.     <div class="fw-iconbox-image">
  20.         <i class="<?php echo esc_attr($atts['icon']); ?>"></i>
  21.     </div>
  22.     <div class="fw-iconbox-aside">
  23.         <div class="fw-iconbox-title">
  24.             <h3><?php echo $atts['title']; ?></h3>
  25.         </div>
  26.         <div class="fw-iconbox-text">
  27.             <p><?php echo $atts['content']; ?></p>
  28.         </div>
  29.     </div>
  30. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement