????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls/framework/visual-composer/shortcodes/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls/framework/visual-composer/shortcodes/bullets.php |
<?php
/**
* Visual Composer Bullets
*
* @package Wanderfuls WordPress Theme
* @subpackage VC Functions
* @version 3.0.0
*/
/**
* Register shortcode with VC Composer
*
* @since 2.0.0
*/
class WPBakeryShortCode_vcex_bullets extends WPBakeryShortCode {
protected function content( $atts, $content = null ) {
ob_start();
include( locate_template( 'vcex_templates/vcex_bullets.php' ) );
return ob_get_clean();
}
}
/**
* Adds the shortcode to the Visual Composer
*
* @since Wanderfuls 1.4.1
*/
if ( ! function_exists( 'vcex_bullets_shortcode_vc_map' ) ) {
function vcex_bullets_shortcode_vc_map() {
vc_map( array(
'name' => __( 'Bullets', 'tb' ),
'description' => __( 'Styled bulleted lists', 'tb' ),
'base' => 'vcex_bullets',
'category' => TB_THEME_BRANDING,
'icon' => 'vcex-bullets vcex-icon fa fa-dot-circle-o',
'params' => array(
array(
'type' => 'dropdown',
'heading' => __( 'Style', 'tb' ),
'param_name' => 'style',
'admin_label' => true,
'value' => array(
__( 'Check', 'tb') => 'check',
__( 'Blue', 'tb' ) => 'blue',
__( 'Gray', 'tb' ) => 'gray',
__( 'Purple', 'tb' ) => 'purple',
__( 'Red', 'tb' ) => 'red',
),
),
array(
'type' => 'textarea_html',
'heading' => __( 'Insert Unordered List', 'tb' ),
'param_name' => 'content',
'value' => '<ul><li>List 1</li><li>List 2</li><li>List 3</li><li>List 4</li></ul>',
),
)
) );
}
}
add_action( 'vc_before_init', 'vcex_bullets_shortcode_vc_map' );