Ultimate_Border.php 0000644 00000031163 15021222712 0010334 0 ustar 00 = 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'ultimate_border', array( $this, 'ultimate_border_callback' ), UAVC_URL . 'admin/vc_extend/js/ultimate-border.js' ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'ultimate_border', array( $this, 'ultimate_border_callback' ), UAVC_URL . 'admin/vc_extend/js/ultimate-border.js' ); } } } /** * Ultimate_border_callback. * * @param array $settings Settings. * @param string $value Value. */ public function ultimate_border_callback( $settings, $value ) { $dependency = ''; $positions = $settings['positions']; $enable_radius = isset( $settings['enable_radius'] ) ? $settings['enable_radius'] : true; $label = isset( $settings['label_border'] ) ? $settings['label_border'] : 'Border Style'; $unit = isset( $settings['unit'] ) ? $settings['unit'] : 'px'; $uid = 'ultimate-border-' . wp_rand( 1000, 9999 ); $html = '
' . sprintf( esc_html__( 'Field type is changed from "textarea_html" to "textarea", because it is already used by %s field. Textarea_html field\'s type can be used only once per shortcode.', 'js_composer' ), $vc_html_editor_already_is_use ) . '
' . esc_html( $category['category_description'] ) . '
[vc_gitem', '[/vc_gitem]