%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_service1.php

<?php
add_action('vc_before_init','jekas_add_vc_service1');
if(!function_exists('jekas_add_vc_service1')){
 function jekas_add_vc_service1(){
  vc_map(array(
               'name'=>__( 'Service 1', 'jekas' ),
               'base'=> 'vc_service1',
			   'icon' => 'jekas fa fa-bullhorn',
              'category' => esc_html__( 'Jekas Options', 'jekas' ),
               'description'=>__( 'Service 1', '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'=>'textarea',
                                     'heading'=>__( 'Description', 'jekas' ),
                                     'param_name'=>'desc',
                                     'value'=>'',
                                     ),    
                              ),
                             ));
  
  }
}

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

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

    $output='<div class="service-01">
                <div class="head-service-01">
                  <i class="'.$icon.'"></i>
                 </div>
                 <div class="caption-service-01">
                 <h3>'.$title.'</h3>
                   <p>'.$desc.'</p>
                 </div>
              </div>';
   return $output;
  }
add_shortcode('vc_service1','vc_service1_render');
?>

Zerion Mini Shell 1.0