%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/plugins/jekas_extensions/vc_extended/shortcodes/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/plugins/jekas_extensions/vc_extended/shortcodes/vc_service2.php

<?php
add_action('vc_before_init','jekas_add_vc_service2');
if(!function_exists('jekas_add_vc_service2')){
 function jekas_add_vc_service2(){
  vc_map(array(
               'name'=>__( 'Service 2', 'jekas' ),
               'base'=> 'vc_service2',
			   'icon' => 'jekas fa fa-bell',
              'category' => esc_html__( 'Jekas Options', 'jekas' ),
               'description'=>__( 'Service 2', 'jekas' ),
               'params'=>array(
                                array(
			            'type' => 'iconpicker',
			            'heading' => esc_html__( 'Icon', 'jekas' ),
			            'param_name' => 'icon',
			            'value' => 'fa fa-ajust',            
			            'description' => esc_html__( 'Select icon from library.', 'jekas' ),
		                   ),
                                 array('type'=>'textfield',
                                     'heading'=>__( 'Title', 'jekas' ),
                                     'param_name'=>'title',
                                     'value'=>'',
                                     ), 
                                 array('type'=>'textfield',
                                     'heading'=>__( 'Subtitle', 'jekas' ),
                                     'param_name'=>'subtitle',
                                     'value'=>'',
                                     ), 
                                 array('type'=>'textarea',
                                     'heading'=>__( 'Description', 'jekas' ),
                                     'param_name'=>'desc',
                                     'value'=>'',
                                     ),    
                              ),
                             ));
  
  }
}

  function vc_service2_render($atts,$content=''){

      $icon = $title = $subtitle = $desc = '';

    extract(shortcode_atts(array(
        'icon'=>'fa fa-ajust',
        'title'=>'',
        'subtitle'=>'',
        'desc'=>'',
        ),$atts));

    $output='<div class="service-02">'.
               '<div class="head-service-02">'.
                  '<i class="'.$icon.'"></i>'.
                    '<h3>'.$title.'<span>'.$subtitle.'</span></h3>'.
                 '</div>'.
                 '<div class="caption-service-02">'.
                   '<p>'.$desc.'</p>'.
                 '</div>'.
              '</div>';
             
   return $output;
  }
add_shortcode('vc_service2','vc_service2_render');
?>

Zerion Mini Shell 1.0