PluginProbe
PixCodes / trunk
PixCodes vtrunk
2.3.9 trunk 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8
pixcodes / shortcodes / templates / arrow.php

arrow.php in PixCodes trunk, at shortcodes/templates/arrow.php

21 lines 440 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( '-1' );
4 }
5
6 $classes = array( 'pixcode', 'pixcode--arrow' );
7
8 if ( ! empty( $align ) ) {
9 $classes[] = 'arrow--' . sanitize_html_class( $align );
10 }
11
12 if ( ! empty( $size ) ) {
13 $classes[] = 'arrow--' . sanitize_html_class( $size );
14 }
15
16 if ( ! empty( $color ) ) {
17 $classes[] = 'arrow--' . sanitize_html_class( $color );
18 }
19 ?>
20 <span class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"></span>
21