Current File : /home/kelaby89/muzza.fit/wp-content/plugins/wolf-visual-composer/inc/shortcodes/highlight.php |
<?php
/**
* Highlight shortcode
*
* @author WolfThemes
* @category Core
* @package WolfWPBakeryPageBuilderExtension/Shortcodes
* @version 3.2.8
*/
defined( 'ABSPATH' ) || exit;
/**
* Highlight shortcode
*
* @param array $atts
* @param array $content
* @return string
*/
function wvc_shortcode_highlight( $atts, $content = null ) {
$color = ( isset( $atts['color'] ) ) ? $atts['color'] : 'yellow';
return '<span class="wvc-highlight wvc-highlight-' . esc_attr( $atts['color'] ) . '">' . sanitize_text_field( $content ) . '</span>';
}
add_shortcode( 'wvc_highlight', 'wvc_shortcode_highlight' );