芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/modules/ultimate_spacer.php
__( 'Spacer / Gap', 'ultimate_vc' ), 'base' => 'ultimate_spacer', 'class' => 'vc_ultimate_spacer', 'icon' => 'vc_ultimate_spacer', 'category' => 'Ultimate VC Addons', 'description' => __( 'Adjust space between components.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'number', 'class' => '', 'heading' => __( "
Desktop", 'ultimate_vc' ), 'param_name' => 'height', 'admin_label' => true, 'value' => 10, 'min' => 1, 'max' => 500, 'suffix' => 'px', 'description' => __( 'Enter value in pixels', 'ultimate_vc' ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( "
Tabs", 'ultimate_vc' ), 'param_name' => 'height_on_tabs', 'admin_label' => true, 'value' => '', 'min' => 1, 'max' => 500, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-3 vc_column', ), array( 'type' => 'number', 'class' => '', 'heading' => __( "
Tabs", 'ultimate_vc' ), 'param_name' => 'height_on_tabs_portrait', 'admin_label' => true, 'value' => '', 'min' => 1, 'max' => 500, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-3 vc_column', ), array( 'type' => 'number', 'class' => '', 'heading' => __( "
Mobile", 'ultimate_vc' ), 'param_name' => 'height_on_mob_landscape', 'admin_label' => true, 'value' => '', 'min' => 1, 'max' => 500, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-3 vc_column', ), array( 'type' => 'number', 'class' => '', 'heading' => __( "
Mobile", 'ultimate_vc' ), 'param_name' => 'height_on_mob', 'admin_label' => true, 'value' => '', 'min' => 1, 'max' => 500, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-3 vc_column', ), ), ) ); } } /** * Render function for Ultimate Spacer Module. * * @param array $atts represts module attribuits. * @access public */ public function ultimate_spacer_shortcode( $atts ) { $output = ''; $ults_settings = shortcode_atts( array( 'height' => '', 'height_on_tabs' => '', 'height_on_tabs_portrait' => '', 'height_on_mob' => '', 'height_on_mob_landscape' => '', ), $atts ); if ( '' == $ults_settings['height_on_mob'] && '' == $ults_settings['height_on_tabs'] ) { $ults_settings['height_on_mob'] = $ults_settings['height']; $ults_settings['height_on_tabs'] = $ults_settings['height']; } $style = 'clear:both;'; $style .= 'display:block;'; $uid = uniqid(); $output .= '
'; return $output; } } // end class new Ultimate_VC_Addons_Spacer(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ultimate_Spacer' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Ultimate_Spacer extends WPBakeryShortCode { } } }