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

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

  function vc_service_proccess_render($atts){

      $icon = $desc = '';

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

    $output='<div class="thumbnail">
                 <div class="caption-head">
                    <em class="caption-icon '.$icon.' icon-big"></em>
                    <h2 class="caption-title">'.$desc.'</h2>
                  </div>
              </div>';
   return $output;
  }
add_shortcode('vc_service_proccess','vc_service_proccess_render');
?>

Zerion Mini Shell 1.0