' . $ult_flip_settings['block_desc_front'] . '
composer.json 0000644 00000000566 15021177567 0007310 0 ustar 00 {
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
"wp-coding-standards/wpcs": "dev-master",
"phpcompatibility/phpcompatibility-wp": "*"
},
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml.dist --report-summary --report-source"
}
}
Ultimate_VC_Addons.php 0000644 00000146000 15021177567 0010735 0 ustar 00 vc_template_dir = UAVC_DIR . 'vc_templates/';
$this->vc_dest_dir = get_template_directory() . '/vc_templates/';
$this->module_dir = UAVC_DIR . 'modules/';
$this->params_dir = UAVC_DIR . 'params/';
$this->assets_js = UAVC_URL . 'assets/js/';
$this->assets_css = UAVC_URL . 'assets/css/';
$this->admin_js = UAVC_URL . 'admin/js/';
$this->admin_css = UAVC_URL . 'admin/css/';
$this->paths = wp_upload_dir();
$this->paths['fonts'] = 'smile_fonts';
if ( ( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) || is_ssl() ) {
$scheme = 'https';
} else {
$scheme = 'http';
}
$this->paths['fonturl'] = set_url_scheme( $this->paths['baseurl'] . '/' . $this->paths['fonts'], $scheme );
add_action( 'after_setup_theme', array( $this, 'aio_init' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'aio_admin_scripts' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'aio_front_scripts' ), 99 );
add_action( 'admin_init', array( $this, 'toggle_updater' ), 1 );
add_filter( 'bsf_registration_page_url_6892199', array( $this, 'uavc_bsf_registration_page_url' ) );
add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'ultimate_vc_addons_license_form_and_links' ) );
add_action( 'network_admin_plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'ultimate_vc_addons_license_form_and_links' ) );
add_filter( 'bsf_registration_page_url_6892199', array( $this, 'ultimate_vc_addons_bsf_registration_page_url' ) );
if ( ! get_option( 'ultimate_row' ) ) {
update_option( 'ultimate_row', 'enable' );
}
if ( ! get_option( 'ultimate_animation' ) ) {
update_option( 'ultimate_animation', 'disable' );
}
add_action( 'wp_head', array( $this, 'ultimate_init_vars' ) );
add_filter( 'bsf_skip_braisntorm_menu', array( $this, 'uavc_skip_brainstorm_menu' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'front_modal_menu' ) );
if ( is_admin() ) {
// Load Astra Notices library.
require_once UAVC_DIR . '/lib/notices/class-astra-notices.php';
}
// BSF Analytics library.
if ( ! class_exists( 'BSF_Analytics_Loader' ) ) {
require_once UAVC_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php';
}
$bsf_analytics = BSF_Analytics_Loader::get_instance();
$bsf_analytics->set_entity(
array(
'bsf' => array(
'product_name' => 'Ultimate Addons for WPBakery Page Builder',
'path' => UAVC_DIR . 'admin/bsf-analytics',
'author' => 'Brainstorm Force',
'time_to_display' => '+24 hours',
),
)
);
}
/**
* Show action links on the plugin screen.
*
* @param mixed $links Plugin Action links.
* @return array Filtered plugin action links.
*/
public function ultimate_vc_addons_license_form_and_links( $links = array() ) {
if ( function_exists( 'get_bsf_inline_license_form' ) ) {
$args = array(
'product_id' => '6892199',
'popup_license_form' => true,
'bsf_license_allow_email' => true,
);
return get_bsf_inline_license_form( $links, $args, 'envato' );
}
return $links;
}
/**
* UAVC Skip BSF menu
*
* @param array $products Products.
*/
public function uavc_skip_brainstorm_menu( $products ) {
$products[] = '6892199';
return $products;
}
/**
* Ultimate_vc_addons_bsf_registration_page_url
*
* @method ultimate_vc_addons_bsf_registration_page_url
*/
public function ultimate_vc_addons_bsf_registration_page_url() {
if ( is_multisite() ) {
return network_admin_url( 'plugins.php?bsf-inline-license-form=6892199' );
} else {
return admin_url( 'plugins.php?bsf-inline-license-form=6892199' );
}
}
/**
* Uavc_bsf_registration_page_url
*
* @method uavc_bsf_registration_page_url
*/
public function uavc_bsf_registration_page_url() {
if ( is_multisite() ) {
return network_admin_url( 'plugins.php?bsf-inline-license-form=6892199' );
} else {
return admin_url( 'admin.php?page=ultimate-product-license' );
}
}
/**
* Uvc_plugin_activate
*
* @method uvc_plugin_activate
*/
public function uvc_plugin_activate() {
update_option( 'ultimate_vc_addons_redirect', true );
// Force check graupi bundled products.
update_site_option( 'bsf_force_check_extensions', true );
$memory_limit = ini_get( 'memory_limit' );
if ( preg_match( '/^(\d+)(.)$/', $memory_limit, $matches ) ) {
switch ( $matches[2] ) {
case 'K':
$memory_limit = $matches[1] * 1024;
break;
case 'M':
$memory_limit = $matches[1] * 1024 * 1024;
break;
case 'G':
$memory_limit = $matches[1] * 1024 * 1024 * 1024;
break;
}
}
$peak_memory = memory_get_peak_usage( true );
if ( $memory_limit - $peak_memory <= 14436352 && ! defined( 'WP_CLI' ) ) {
$msg = __( 'Unfortunately, plugin could not be activated as the memory allocated by your host has almost exhausted. Ultimate Addons for WPBakery Page Builder plugin recommends that your site should have 15M PHP memory remaining. ', 'ultimate_vc' );
$msg .= '
' . esc_html__( 'Please check ', 'ultimate_vc' ) . '' . esc_html__( 'this article', 'ultimate_vc' ) . ' ';
$msg .= esc_html__( ' for solution or contact ', 'ultimate_vc' ) . '' . esc_html__( ' support', 'ultimate_vc' ) . '.';
$msg .= '
' . esc_html__( 'Return to Plugins Page', 'ultimate_vc' ) . '';
deactivate_plugins( plugin_basename( __FILE__ ) );
wp_die( wp_kses_post( $msg ) );
}
// theme depend custom row class.
$themes = array(
'X' => 'x-content-band',
'HighendWP' => 'vc_row',
'Vellum' => 'vc_section_wrapper',
'Curves' => 'default-section',
);
$site_theme = wp_get_theme();
$current_theme = $site_theme->get( 'Name' );
if ( array_key_exists( $current_theme, $themes ) ) {
if ( ! get_option( 'ultimate_custom_vc_row' ) || get_option( 'ultimate_custom_vc_row' ) == '' ) {
update_option( 'ultimate_custom_vc_row', $themes[ $current_theme ] );
}
}
if ( ! get_option( 'ultimate_js' ) || get_option( 'ultimate_js' ) == '' ) {
update_option( 'ultimate_js', 'enable' );
}
if ( ! get_option( 'ultimate_css' ) || get_option( 'ultimate_css' ) == '' ) {
update_option( 'ultimate_css', 'enable' );
}
}
/**
* Init_addons.
*
* @method init_addons.
*/
public function init_addons() {
$required_vc = '3.7';
if ( version_compare( $required_vc, 'WPB_VC_VERSION', '>' ) ) {
add_action( 'admin_notices', array( $this, 'admin_notice_for_version' ) );
add_action( 'network_admin_notices', array( $this, 'admin_notice_for_version' ) );
} else {
add_action( 'admin_notices', array( $this, 'admin_notice_for_vc_activation' ) );
add_action( 'network_admin_notices', array( $this, 'admin_notice_for_vc_activation' ) );
}
}
/**
* Ultimate_plugins_page_link.
*
* @param array $links Links.
* @method ultimate_plugins_page_link.
*/
public function ultimate_plugins_page_link( $links ) {
$tutorial_link = '' . esc_html__( 'Video Tutorials', 'ultimate_vc' ) . '';
$settins_link = '' . esc_html__( 'Settings', 'ultimate_vc' ) . '';
array_unshift( $links, $tutorial_link );
array_push( $links, $settins_link );
return $links;
}
/**
* Admin_notice_for_version.
*
* @method admin_notice_for_version.
*/
public function admin_notice_for_version() {
$is_multisite = is_multisite();
$is_network_admin = is_network_admin();
if ( ( $is_multisite && $is_network_admin ) || ! $is_multisite ) {
echo '
' . esc_html__( 'The', 'ultimate_vc' ) . ' Ultimate addons for WPBakery Page Builder ' . esc_html__( 'plugin requires', 'ultimate_vc' ) . ' WPBakery Page Builder ' . esc_html__( 'version 3.7.2 or greater.', 'ultimate_vc' ) . '
' . esc_html__( 'The', 'ultimate_vc' ) . ' Ultimate addons for WPBakery Page Builder ' . esc_html__( 'plugin requires', 'ultimate_vc' ) . ' WPBakery Page Builder ' . esc_html__( 'Plugin installed and activated.', 'ultimate_vc' ) . '
' . esc_html__( 'The', 'ultimate_vc' ) . ' WooComposer ' . esc_html__( 'plugin requires', 'ultimate_vc' ) . ' WooCommerce ' . esc_html__( 'plugin installed and activated with version greater than 2.1.0.', 'ultimate_vc' ) . '
' . $link_prefix . $ult_timeline_feat_settings['time_read_text'] . $link_sufix . '
'; } $header .= '' . $link_prefix . $ult_timeline_item_settings['time_read_text'] . $link_sufix . '
'; } $header .= '
' . esc_html( $set_name ) . '
'; $output .= ''; foreach ( $icon_set as $icons ) { foreach ( $icons as $icon ) { $output .= ''; $output .= $text; $output .= ''; } return $output; } } /** * For vc map check * * @since ---- * @access public */ public function ultimate_createlink() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Creative Link' ), 'base' => 'ult_createlink', 'icon' => 'uvc_creative_link', 'category' => __( 'Ultimate VC Addons', 'ultimate_vc' ), 'description' => __( 'Add a custom link.', 'ultimate_vc' ), 'params' => array( // Play with icon selector. array( 'type' => 'textfield', 'class' => '', 'admin_label' => true, 'heading' => __( 'Title', 'ultimate_vc' ), 'param_name' => 'title', 'value' => '', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link ', 'ultimate_vc' ), 'param_name' => 'btn_link', 'value' => '', 'description' => __( 'Add a custom link or select existing page. You can remove existing link as well.', 'ultimate_vc' ), ), /*---typography-------*/ array( 'type' => 'ult_param_heading', 'param_name' => 'bt1typo-setting', 'text' => __( 'Typography', 'ultimate' ), 'value' => '', 'class' => '', 'group' => 'Typography ', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Title Font Family', 'ultimate_vc' ), 'param_name' => 'font_family', 'description' => __( 'Select the font of your choice. ', 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography ', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'heading_style', 'group' => 'Typography ', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'title_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography ', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'title_line_ht', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography ', ), /*-----------general------------*/ array( 'type' => 'dropdown', 'class' => '', 'admin_label' => true, 'heading' => __( 'Link Style', 'ultimate_vc' ), 'param_name' => 'link_hover_style', 'value' => array( 'None' => '', 'Style 1' => 'Style_1', 'Style 2' => 'Style_2', 'Style 3' => 'Style_3', 'Style 4' => 'Style_4', 'Style 5' => 'Style_5', 'Style 6' => 'Style_6', 'Style 7' => 'Style_8', 'Style 8' => 'Style_9', 'Style 9' => 'Style_10', 'Style 10' => 'Style_11', ), 'description' => __( 'Select the Hover style for Link.', 'ultimate_vc' ), ), array( 'type' => 'ult_param_heading', 'param_name' => 'button1bg_settng', 'text' => __( 'Color Settings', 'ultimate_vc' ), 'value' => '', 'class' => '', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Color', 'ultimate_vc' ), 'param_name' => 'text_color', 'value' => '#333333', 'description' => __( 'Select text color for Link.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Hover Color', 'ultimate_vc' ), 'param_name' => 'text_hovercolor', 'value' => '#333333', 'description' => __( 'Select text hover color for Link.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Background Color', 'ultimate_vc' ), 'param_name' => 'background_color', 'value' => '#ffffff', 'description' => __( 'Select Background Color for link.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'link_hover_style', 'value' => array( 'Style_2', 'Style_10', 'Style_11' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Background Hover Color', 'ultimate_vc' ), 'param_name' => 'bghovercolor', 'value' => '', 'description' => __( 'Select background hover color for link.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'link_hover_style', 'value' => array( 'Style_2', 'Style_10', 'Style_11' ), ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Border Style', 'ultimate_vc' ), 'param_name' => 'border_style', 'value' => array( 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => __( 'Select the border style for link.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'link_hover_style', 'value' => array( 'Style_3', 'Style_4', 'Style_5', 'Style_7', 'Style_8', 'Style_9', 'Style_10' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Border Color', 'ultimate_vc' ), 'param_name' => 'border_color', 'value' => '#333333', 'description' => __( 'Select border color for link.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'border_style', 'value' => array( 'solid', 'dashed', 'dotted', 'double', 'inset', 'outset' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Border HoverColor', 'ultimate_vc' ), 'param_name' => 'border_hovercolor', 'value' => '#333333', 'description' => __( 'Select border hover color for link.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'link_hover_style', 'value' => array( 'Style_8' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Link Border Width', 'ultimate_vc' ), 'param_name' => 'border_size', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'border_style', 'value' => array( 'solid', 'dashed', 'dotted', 'double', 'inset', 'outset' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Link Dot Color', 'ultimate_vc' ), 'param_name' => 'dot_color', 'value' => '#333333', 'description' => __( 'Select color for dots.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'link_hover_style', 'value' => array( 'Style_6' ), ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Link Alignment', 'ultimate_vc' ), 'param_name' => 'text_style', 'value' => array( 'Center' => ' ', 'Left' => 'left', 'Right' => 'right', ), 'description' => __( 'Select the text align for link.', 'ultimate_vc' ), ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Custom CSS Class', 'ultimate_vc' ), 'param_name' => 'el_class', 'value' => '', 'description' => __( 'Ran out of options? Need more styles? Write your own CSS and mention the class name here.', 'ultimate_vc' ), ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), ) ); } } } } if ( class_exists( 'AIO_creative_link' ) ) { $AIO_creative_link = new AIO_creative_link();// phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase } if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_ult_createlink' ) ) { /** * Function that initializes Ultimate Creative link Module * * @class WPBakeryShortCode_ult_createlink */ class WPBakeryShortCode_ult_createlink extends WPBakeryShortCode { // @codingStandardsIgnoreLine. } } modules/utlimate-tab-backend.php 0000644 00000003005 15021177567 0012713 0 ustar 00 modules/ultimate_dual_colors.php 0000644 00000113017 15021177567 0013155 0 ustar 00 __( 'Dual Color Heading', 'ultimate_vc' ), 'base' => 'ultimate_dual_color', 'class' => 'vc_ultimate_dual_color', 'icon' => 'vc_ultimate_dual_color', 'category' => 'Ultimate VC Addons', 'description' => __( 'Style your heading.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'ult_param_heading', 'text' => __( 'Heading Text', 'ultimate_vc' ), 'param_name' => 'dual_main_heading', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12 no-top-margin', 'group' => 'General', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Before Text', 'ultimate_vc' ), 'admin_label' => true, 'param_name' => 'dual_before_txt', 'value' => 'I Love', 'description' => '', 'group' => 'General', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link', 'ultimate_vc' ), 'param_name' => 'dual_before_link', 'value' => '', 'description' => '', 'group' => 'General', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Highlighted Text', 'ultimate_vc' ), 'admin_label' => true, 'param_name' => 'dual_high_txt', 'value' => 'this website', 'description' => '', 'group' => 'General', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link', 'ultimate_vc' ), 'param_name' => 'dual_high_link', 'value' => '', 'description' => '', 'group' => 'General', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'After Text', 'ultimate_vc' ), 'admin_label' => true, 'param_name' => 'dual_after_txt', 'value' => '', 'description' => '', 'group' => 'General', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link', 'ultimate_vc' ), 'param_name' => 'dual_after_link', 'value' => '', 'description' => '', 'group' => 'General', ), array( 'type' => 'textfield', 'heading' => __( 'Extra class name', 'ultimate_vc' ), 'param_name' => 'el_class', 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'ultimate_vc' ), 'group' => 'General', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Style', 'ultimate_vc' ), 'param_name' => 'dual_main_style', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12 no-top-margin', 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Alignment', 'ultimate_vc' ), 'param_name' => 'dual_color_align', 'value' => array( 'Center Align' => 'center', 'Left Align' => 'left', 'Right Align' => 'right', ), 'description' => __( 'Alignment option for heading.', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-8', 'group' => 'Style', ), array( 'type' => 'dropdown', 'heading' => __( 'Tag', 'ultimate_vc' ), 'param_name' => 'heading_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'h3', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H2', 'ultimate_vc' ) => 'h2', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H5', 'ultimate_vc' ) => 'h5', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'Div', 'ultimate_vc' ) => 'div', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is H3', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-4', 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Layout', 'ultimate_vc' ), 'param_name' => 'dual_color_layout', 'value' => array( 'Inline' => 'inline', 'Stack' => 'stack', ), 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Spacing Between Headings', 'ultimate_vc' ), 'param_name' => 'dual_color_spacing', 'value' => array( 'No' => 'no', 'Yes' => 'yes', ), 'dependency' => array( 'element' => 'dual_color_layout', 'value' => 'inline', ), 'group' => 'Style', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Spacing Width', 'ultimate_vc' ), 'param_name' => 'dual_color_width', 'value' => '', 'min' => 10, 'max' => 100, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'dual_color_spacing', 'value' => 'yes', ), 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Stack on', 'ultimate_vc' ), 'param_name' => 'dual_color_stack', 'value' => array( __( 'None', 'ultimate_vc' ) => 'none', __( 'Desktop', 'ultimate_vc' ) => 'desktop', __( 'Tablet', 'ultimate_vc' ) => 'tablet', __( 'Mobile', 'ultimate_vc' ) => 'mobile', ), 'dependency' => array( 'element' => 'dual_color_layout', 'value' => 'stack', ), 'group' => 'Style', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Before & After settings', 'ultimate_vc' ), 'param_name' => 'dual_main_style', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Before & After Text Color', 'ultimate_vc' ), 'param_name' => 'dual_ba_color', 'description' => '', 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Before & After Background Color', 'ultimate_vc' ), 'param_name' => 'dual_ba_back_color', 'description' => '', 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Before & After Border Style', 'ultimate_vc' ), 'param_name' => 'dual_ba_border', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'dual_ba_bcolor', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'dual_ba_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'dual_ba_bstyle', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'dependency' => array( 'element' => 'dual_ba_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'dual_ba_bradius', 'value' => 3, 'min' => 0, 'max' => 500, 'suffix' => 'px', 'dependency' => array( 'element' => 'dual_ba_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Highlighted settings', 'ultimate_vc' ), 'param_name' => 'dual_main_style', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Highlighted Text Color', 'ultimate_vc' ), 'param_name' => 'dual_high_color', 'description' => '', 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Highlighted Text Background Color', 'ultimate_vc' ), 'param_name' => 'dual_high_back_color', 'description' => '', 'group' => 'Style', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Highlighted Border Style', 'ultimate_vc' ), 'param_name' => 'dual_high_border', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'group' => 'Style', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'dual_high_bcolor', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'dual_high_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'dual_high_bstyle', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'dependency' => array( 'element' => 'dual_high_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'dual_high_bradius', 'value' => 3, 'min' => 0, 'max' => 500, 'suffix' => 'px', 'dependency' => array( 'element' => 'dual_high_border', 'not_empty' => true, ), 'group' => 'Style', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Before & After Text Settings', 'ultimate_vc' ), 'param_name' => 'before_typo', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12 no-top-margin', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'dual_color_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'dual_color_font_style', 'group' => 'Typography', ), // Responsive Param. array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'dual_color_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'dual_color_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Letter Spacing', 'ultimate_vc' ), 'param_name' => 'dual_ba_letter_space', 'value' => '', 'min' => 1, 'max' => 15, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-4', 'group' => 'Typography', ), array( 'type' => 'ultimate_spacing', 'heading' => __( 'Padding', 'ultimate_vc' ), 'param_name' => 'dual_ba_padding', 'mode' => 'padding', 'unit' => 'px', 'positions' => array( __( 'Top', 'ultimate_vc' ) => '', __( 'Right', 'ultimate_vc' ) => '', __( 'Bottom', 'ultimate_vc' ) => '', __( 'Left', 'ultimate_vc' ) => '', ), 'group' => 'Typography', ), array( 'type' => 'dropdown', 'heading' => __( 'Transform', 'ultimate_vc' ), 'param_name' => 'dual_ba_transform', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'unset', __( 'UPPERCASE', 'ultimate_vc' ) => 'uppercase', __( 'lowercase', 'ultimate_vc' ) => 'lowercase', __( 'Capitalize', 'ultimate_vc' ) => 'capitalize', ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Highlighted Text Settings', 'ultimate_vc' ), 'param_name' => 'high_before_typo', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'dual_color_high_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'dual_color_high_font_style', 'group' => 'Typography', ), // Responsive Param. array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'dual_color_high_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'dual_color_high_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Letter Spacing', 'ultimate_vc' ), 'param_name' => 'dual_high_letter_space', 'value' => '', 'min' => 1, 'max' => 15, 'suffix' => 'px', 'edit_field_class' => 'vc_col-sm-4', 'group' => 'Typography', ), array( 'type' => 'ultimate_spacing', 'heading' => __( 'Padding', 'ultimate_vc' ), 'param_name' => 'dual_high_padding', 'mode' => 'padding', 'unit' => 'px', 'positions' => array( __( 'Top', 'ultimate_vc' ) => '', __( 'Right', 'ultimate_vc' ) => '', __( 'Bottom', 'ultimate_vc' ) => '', __( 'Left', 'ultimate_vc' ) => '', ), 'group' => 'Typography', ), array( 'type' => 'dropdown', 'heading' => __( 'Transform', 'ultimate_vc' ), 'param_name' => 'dual_high_transform', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'unset', __( 'UPPERCASE', 'ultimate_vc' ) => 'uppercase', __( 'lowercase', 'ultimate_vc' ) => 'lowercase', __( 'Capitalize', 'ultimate_vc' ) => 'capitalize', ), 'group' => 'Typography', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_dual_color_design', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), ) ); } }//end ultimate_dual_colors_module_init() /** * Function Dual color Heading shotcode. * * @param array $atts Attributes. * @param string $content Content. * @method ultimate_dual_colors_module_shortcode */ public function ultimate_dual_colors_module_shortcode( $atts, $content = null ) { $dual_align = ''; $dual_ba_inline = ''; $dual_high_inline = ''; $dual_inlinel_width = ''; $dual_inliner_width = ''; $href = ''; $target = ''; $link_title = ''; $rel = ''; $url = ''; $blink_prefix = ''; $blink_sufix = ''; $hlink_prefix = ''; $hlink_sufix = ''; $alink_prefix = ''; $alink_sufix = ''; $dcfont_family = ''; $dchfont_family = ''; $main_dual_color_style_inline = ''; $main_dual_high_style_inline = ''; $main_dual_color_responsive = ''; $main_dual_high_responsive = ''; $dual_ba_back_inline = ''; $dual_high_back_inline = ''; $dual_inline_width = ''; $dual_ba_trans_inline = ''; $dual_high_trans_inline = ''; $dual_ba_ls_inline = ''; $dual_high_ls_inline = ''; $dual_ba_padding_inline = ''; $dual_high_padding_inline = ''; $dual_high_bcolor = ''; $dual_ba_border_inline = ''; $dual_high_border_inline = ''; $dual_design_style_css = ''; $output = ''; $ult_dual_color_settings = shortcode_atts( array( 'dual_before_txt' => '', 'dual_high_txt' => '', 'dual_after_txt' => '', 'dual_before_link' => '', 'dual_high_link' => '', 'dual_after_link' => '', 'dual_color_align' => 'center', 'heading_tag' => '', 'dual_ba_color' => '', 'dual_high_color' => '', 'dual_color_spacing' => 'no', 'dual_color_width' => '', 'dual_color_font_family' => '', 'dual_color_font_style' => '', 'dual_color_font_size' => '', 'dual_color_line_height' => '', 'dual_color_high_font_family' => '', 'dual_color_high_font_style' => '', 'dual_color_high_font_size' => '', 'dual_color_high_line_height' => '', 'dual_ba_back_color' => '', 'dual_high_back_color' => '', 'dual_ba_transform' => '', 'dual_high_transform' => '', 'dual_ba_letter_space' => '', 'dual_high_letter_space' => '', 'dual_ba_padding' => '', 'dual_high_padding' => '', 'dual_ba_border' => '', 'dual_ba_bcolor' => '', 'dual_ba_bstyle' => '', 'dual_ba_bradius' => '', 'dual_high_border' => '', 'dual_high_bcolor' => '', 'dual_high_bstyle' => '', 'dual_high_bradius' => '', 'dual_color_layout' => 'inline', 'dual_color_stack' => 'none', 'el_class' => '', 'css_dual_color_design' => '', ), $atts ); $vc_version = ( defined( 'WPB_VC_VERSION' ) ) ? WPB_VC_VERSION : 0; $is_vc_49_plus = ( version_compare( 4.9, $vc_version, '<=' ) ) ? 'ult-adjust-bottom-margin' : ''; // Default Design Editor. $dual_design_style_css = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_dual_color_settings['css_dual_color_design'], ' ' ), 'ultimate_ribbons', $atts ); $dual_design_style_css = esc_attr( $dual_design_style_css ); $uid = 'ultv-' . wp_rand( 0000, 9999 ); if ( '' == $ult_dual_color_settings['dual_before_txt'] ) { $ult_dual_color_settings['dual_before_txt'] = 'I Love'; } if ( '' == $ult_dual_color_settings['dual_high_txt'] ) { $ult_dual_color_settings['dual_high_txt'] = 'this website'; } // Dual-Color Alignment. if ( '' != $ult_dual_color_settings['dual_color_align'] ) { $dual_align = 'text-align:' . $ult_dual_color_settings['dual_color_align'] . ';'; } // Dual-color Heading tag. if ( '' == $ult_dual_color_settings['heading_tag'] ) { $ult_dual_color_settings['heading_tag'] = 'h3'; } // Before & after Text color for dual-color. if ( '' != $ult_dual_color_settings['dual_ba_color'] ) { $dual_ba_inline = 'color:' . $ult_dual_color_settings['dual_ba_color'] . ';'; } // Highlighted text color for dual-color. if ( '' != $ult_dual_color_settings['dual_high_color'] ) { $dual_high_inline = 'color:' . $ult_dual_color_settings['dual_high_color'] . ';'; } // Before & after Background color for dual-color. if ( '' != $ult_dual_color_settings['dual_ba_back_color'] ) { $dual_ba_back_inline = 'background-color:' . $ult_dual_color_settings['dual_ba_back_color'] . ';'; } // Highlighted background color for dual-color. if ( '' != $ult_dual_color_settings['dual_high_back_color'] ) { $dual_high_back_inline = 'background-color:' . $ult_dual_color_settings['dual_high_back_color'] . ';'; } // Text -Transform Property for Before & After heading. if ( '' != $ult_dual_color_settings['dual_ba_transform'] ) { $dual_ba_trans_inline = 'text-transform: ' . $ult_dual_color_settings['dual_ba_transform'] . ';'; } // Text -Transform Property for Highlighted heading. if ( '' != $ult_dual_color_settings['dual_high_transform'] ) { $dual_high_trans_inline = 'text-transform: ' . $ult_dual_color_settings['dual_high_transform'] . ';'; } // Letter spacing for Before & After heading. if ( '' !== $ult_dual_color_settings['dual_ba_letter_space'] ) { $dual_ba_ls_inline = 'letter-spacing:' . $ult_dual_color_settings['dual_ba_letter_space'] . 'px;'; } // Letter spacing for Highlighted heading. if ( '' !== $ult_dual_color_settings['dual_high_letter_space'] ) { $dual_high_ls_inline = 'letter-spacing:' . $ult_dual_color_settings['dual_high_letter_space'] . 'px;'; } /* Before and after padding */ if ( '' != $ult_dual_color_settings['dual_ba_padding'] ) { $dual_ba_padding_inline = $ult_dual_color_settings['dual_ba_padding']; } /* Highlighted padding */ if ( '' != $ult_dual_color_settings['dual_high_padding'] ) { $dual_high_padding_inline = $ult_dual_color_settings['dual_high_padding']; } // Border style for Before & after headings. if ( '' !== $ult_dual_color_settings['dual_ba_border'] ) { $dual_ba_border_inline .= 'border-radius:' . $ult_dual_color_settings['dual_ba_bradius'] . 'px;'; $dual_ba_border_inline .= 'border-width:' . $ult_dual_color_settings['dual_ba_bstyle'] . 'px;'; $dual_ba_border_inline .= 'border-color:' . $ult_dual_color_settings['dual_ba_bcolor'] . ';'; $dual_ba_border_inline .= 'border-style:' . $ult_dual_color_settings['dual_ba_border'] . ';'; } else { $dual_ba_border_inline .= 'border:none;'; } // Border style for Highlighted headings. if ( '' !== $ult_dual_color_settings['dual_high_border'] ) { $dual_high_border_inline .= 'border-radius:' . $ult_dual_color_settings['dual_high_bradius'] . 'px;'; $dual_high_border_inline .= 'border-width:' . $ult_dual_color_settings['dual_high_bstyle'] . 'px;'; $dual_high_border_inline .= 'border-color:' . $dual_high_bcolor . ';'; $dual_high_border_inline .= 'border-style:' . $ult_dual_color_settings['dual_high_border'] . ';'; } else { $dual_high_border_inline .= 'border:none;'; } if ( 'yes' == $ult_dual_color_settings['dual_color_spacing'] ) { if ( '' != $ult_dual_color_settings['dual_color_width'] ) { $dual_inline_width = 'margin-left:' . $ult_dual_color_settings['dual_color_width'] . 'px;'; $dual_inline_width .= 'margin-right: ' . $ult_dual_color_settings['dual_color_width'] . 'px;'; } } // Link for the Before Text. if ( '' !== $ult_dual_color_settings['dual_before_link'] ) { $href = vc_build_link( $ult_dual_color_settings['dual_before_link'] ); if ( '' !== $href['url'] ) { $url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : ''; $target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : ''; $link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : ''; $rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : ''; $blink_prefix = ''; $blink_sufix = ''; } } // Link for the Highlighted Text. if ( '' !== $ult_dual_color_settings['dual_high_link'] ) { $href = vc_build_link( $ult_dual_color_settings['dual_high_link'] ); if ( '' !== $href['url'] ) { $url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : ''; $target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : ''; $link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : ''; $rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : ''; $hlink_prefix = ''; $hlink_sufix = ''; } } // Link for the after Text. if ( '' !== $ult_dual_color_settings['dual_after_link'] ) { $href = vc_build_link( $ult_dual_color_settings['dual_after_link'] ); if ( '' !== $href['url'] ) { $url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : ''; $target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : ''; $link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : ''; $rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : ''; $alink_prefix = ''; $alink_sufix = ''; } } /* ---- Before and after heading styles ---- */ if ( '' != $ult_dual_color_settings['dual_color_font_family'] ) { $dcfont_family = get_ultimate_font_family( $ult_dual_color_settings['dual_color_font_family'] ); if ( $dcfont_family ) { $main_dual_color_style_inline .= 'font-family:\'' . $dcfont_family . '\';'; } } /* ---- Before and after font style---- */ $main_dual_color_style_inline .= get_ultimate_font_style( $ult_dual_color_settings['dual_color_font_style'] ); // FIX: Before and after font size before implementing responsive param. if ( is_numeric( $ult_dual_color_settings['dual_color_font_size'] ) ) { $ult_dual_color_settings['dual_color_font_size'] = 'desktop:' . $ult_dual_color_settings['dual_color_font_size'] . 'px;'; } if ( is_numeric( $ult_dual_color_settings['dual_color_line_height'] ) ) { $ult_dual_color_settings['dual_color_line_height'] = 'desktop:' . $ult_dual_color_settings['dual_color_line_height'] . 'px;'; } // Before and after responsive {main} video styles. $args = array( 'target' => '.ult-dual-color.' . $uid . ' .ult-dual-heading-text', 'media_sizes' => array( 'font-size' => $ult_dual_color_settings['dual_color_font_size'], 'line-height' => $ult_dual_color_settings['dual_color_line_height'], ), ); $main_dual_color_responsive = get_ultimate_vc_responsive_media_css( $args ); /* ---- Highlighted heading styles ---- */ if ( '' != $ult_dual_color_settings['dual_color_high_font_family'] ) { $dchfont_family = get_ultimate_font_family( $ult_dual_color_settings['dual_color_high_font_family'] ); if ( $dchfont_family ) { $main_dual_high_style_inline .= 'font-family:\'' . $dchfont_family . '\';'; } } /* ---- Highlighted font style---- */ $main_dual_high_style_inline .= get_ultimate_font_style( $ult_dual_color_settings['dual_color_high_font_style'] ); // FIX: Highlighted font size before implementing responsive param. if ( is_numeric( $ult_dual_color_settings['dual_color_high_font_size'] ) ) { $ult_dual_color_settings['dual_color_high_font_size'] = 'desktop:' . $ult_dual_color_settings['dual_color_high_font_size'] . 'px;'; } if ( is_numeric( $ult_dual_color_settings['dual_color_high_line_height'] ) ) { $ult_dual_color_settings['dual_color_high_line_height'] = 'desktop:' . $ult_dual_color_settings['dual_color_high_line_height'] . 'px;'; } // Highlighted responsive {main} video styles. $args = array( 'target' => '.ult-dual-color.' . $uid . ' .ult-highlight-text', 'media_sizes' => array( 'font-size' => $ult_dual_color_settings['dual_color_high_font_size'], 'line-height' => $ult_dual_color_settings['dual_color_high_line_height'], ), ); $main_dual_high_responsive = get_ultimate_vc_responsive_media_css( $args ); $output = '
'; $output .= $text; $output .= ''; } return $output; } /** * Render the spacer function for Ultimate Heading Module. * * @param string $wrapper_class get the class. * @param string $wrapper_style get the style. * @param string $icon_inline get the line style. * @access public */ public function ultimate_heading_spacer( $wrapper_class, $wrapper_style, $icon_inline ) { $ult_heading_settings['spacer'] = '
'; $output .= $text; $output .= ''; } return $output; } } // class Ultimate_Info_Table. new Ultimate_Info_Table(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ultimate_Info_Table' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Ultimate_Info_Table extends WPBakeryShortCode { } } } modules/ultimate_hotspot.php 0000644 00000113475 15021177567 0012357 0 ustar 00 = 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'ultimate_hotspot_param', array( $this, 'ultimate_hotspot_param_callback' ), UAVC_URL . 'admin/vc_extend/js/vc-hotspot-param.js' ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'ultimate_hotspot_param', array( $this, 'ultimate_hotspot_param_callback' ), UAVC_URL . 'admin/vc_extend/js/vc-hotspot-param.js' ); } } } /** * Render function for Ultimate Hotspot Param callback. * * @param array $settings represts module attribuits. * @param string $value value has been set to null. * @access public */ public function ultimate_hotspot_param_callback( $settings, $value ) { $dependency = ''; $class = isset( $settings['class'] ) ? $settings['class'] : ''; $output = '
'; $output .= $text; $output .= ''; } return $output; } } } if ( class_exists( 'Ultimate_Highlight_Box' ) ) { $ultimate_highlight_box = new Ultimate_Highlight_Box(); } if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ultimate_Ctation' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Ultimate_Ctation extends WPBakeryShortCode { } } modules/ultimate_range_slider.php 0000644 00000064762 15021177567 0013321 0 ustar 00 '', 'title_box_color' => '', 'title_border' => 'border-style:solid;|border-width:2px;border-radius:0px;|border-color:#30eae9;', 'title_box' => '', 'title_box_width' => '', 'title_box_height' => '', 'title_padding' => '', 'el_class' => '', 'slider_data' => '', 'slider_bar_size' => '', 'title_font' => '', 'title_font_size' => '', 'title_line_height' => '', 'title_color' => '', 'title_font_style' => '', 'desc_font' => '', 'desc_font_size' => '', 'desc_line_height' => '', 'desc_color' => '', 'desc_font_style' => '', 'desc_width' => '', 'adaptive_height' => '', 'desc_padding' => '', 'desc_margin' => '', ), $atts ); $steps_count = 0; $title_count = 1; $desc_count = 1; $output = ''; // slider color setting setting. $slider_color_data = ''; $slider_color_data .= '' != $ult_range_settings['slider_color'] ? " data-slider_color = '" . esc_attr( $ult_range_settings['slider_color'] ) . "'" : ''; // Title box style. $title_box_data = '' != $ult_range_settings['title_box_color'] ? 'data-title-background = ' . esc_attr( $ult_range_settings['title_box_color'] ) . ' ' : ''; $title_box_data .= '' != $ult_range_settings['title_box'] ? ' data-title-box = ' . esc_attr( $ult_range_settings['title_box'] ) . ' ' : ' data-title-box = auto '; $title_style = " style = '"; // title box style var. $arrow_style = ''; $none_style = 'ult-tooltip-border ult-arrow'; if ( strpos( $ult_range_settings['title_border'], 'none' ) !== false ) { $none_style = ''; } else { $arrow_style = " data-arrow = '"; if ( strpos( $ult_range_settings['title_border'], 'border-width:0px' ) !== false ) { $none_style = ''; } $temp_array = array(); $temp_border = str_replace( '|', '', $ult_range_settings['title_border'] ); $title_style .= $temp_border; $title_style .= '' == $ult_range_settings['title_box_color'] ? '' : 'background:' . $ult_range_settings['title_box_color'] . '; '; $temp_array = explode( ';', $temp_border ); if ( is_array( $temp_array ) ) { foreach ( $temp_array as $key => $value ) { if ( strpos( $value, 'border-width:' ) !== false ) { $value = str_replace( 'border-width:', '', $value ); $value = str_replace( 'px', '', $value ); $value = $value + 7; $arrow_style .= ' border-width:' . $value . 'px; '; $arrow_style .= 'margin-left:-' . $value . 'px; '; } elseif ( strpos( $value, 'border-color:' ) !== false ) { $value = str_replace( 'border-color', 'border-top-color', $value ); $value = $value . '; '; $arrow_style .= $value; } } } $arrow_style .= "'"; } $title_style .= '' !== $ult_range_settings['title_padding'] ? ' ' . $ult_range_settings['title_padding'] . ';' : ''; // title box custom width. $center_class = ''; $title_box_width_t = ''; $title_box_height_t = ''; $slider_padding = ''; if ( 'custom' == $ult_range_settings['title_box'] ) { $center_class = ' ult-tooltip-center'; $title_box_width_t = '' !== $ult_range_settings['title_box_width'] ? $ult_range_settings['title_box_width'] : '115'; $title_box_height_t = '' !== $ult_range_settings['title_box_height'] ? $ult_range_settings['title_box_height'] : '115'; $title_style .= ' width:' . $title_box_width_t . 'px;'; $title_style .= ' height:' . $title_box_height_t . 'px;'; // apply this time padding to slider for tooltip adjustment. $slider_padding = ' style = "padding:' . $title_box_height_t . 'px ' . ( ( $title_box_width_t / 2 ) + 10 ) . 'px 35px;"'; } // slider size data. $ult_range_settings['slider_bar_size'] = '' != $ult_range_settings['slider_bar_size'] ? ' ' . $ult_range_settings['slider_bar_size'] . 'px;' : ''; $slider_size_data = '' != $ult_range_settings['slider_bar_size'] ? ' data-slider_size = "' . esc_attr( $ult_range_settings['slider_bar_size'] ) . 'px"' : ''; // title data. $ult_range_settings['slider_data'] = json_decode( urldecode( $ult_range_settings['slider_data'] ), true ); // min max value data. if ( isset( $ult_range_settings['slider_data'] ) ) { foreach ( $ult_range_settings['slider_data'] as $slider_datas ) { ++$steps_count; } } $steps_data = ' data-slider_steps = "' . esc_attr( $steps_count ) . '"'; // typography data. // title. if ( '' !== $ult_range_settings['title_font'] ) { $title_font_family = function_exists( 'get_ultimate_font_family' ) ? get_ultimate_font_family( $ult_range_settings['title_font'] ) : ''; $title_style .= 'font-family:' . $title_font_family . ';'; } if ( '' !== $ult_range_settings['title_font_style'] ) { $title_style .= $ult_range_settings['title_font_style']; } $micro = wp_rand( 0000, 9999 ); $id = uniqid( 'ultimate-range-slider' . $micro ); $uid = 'urs-' . wp_rand( 0000, 9999 ); // FIX: set old font size before implementing responsive param. if ( is_numeric( $ult_range_settings['title_font_size'] ) ) { $ult_range_settings['title_font_size'] = 'desktop:' . $ult_range_settings['title_font_size'] . 'px;'; } if ( is_numeric( $ult_range_settings['title_line_height'] ) ) { $ult_range_settings['title_line_height'] = 'desktop:' . $ult_range_settings['title_line_height'] . 'px;'; } // responsive {main} heading styles. $args = array( 'target' => '#' . $id . ' .ult-content', 'media_sizes' => array( 'font-size' => $ult_range_settings['title_font_size'], 'line-height' => $ult_range_settings['title_line_height'], ), ); $title_responsive = get_ultimate_vc_responsive_media_css( $args ); $title_style .= '' !== $ult_range_settings['title_color'] ? 'color:' . $ult_range_settings['title_color'] . ';' : ''; $title_style .= "'"; $desc_style = " style = '"; if ( '' !== $ult_range_settings['desc_font'] ) { $desc_font_family = function_exists( 'get_ultimate_font_family' ) ? get_ultimate_font_family( $ult_range_settings['desc_font'] ) : ''; $desc_style .= 'font-family:' . $desc_font_family . ';'; } if ( '' !== $ult_range_settings['desc_font_style'] ) { $desc_style .= $ult_range_settings['desc_font_style']; } if ( is_numeric( $ult_range_settings['desc_font_size'] ) ) { $ult_range_settings['desc_font_size'] = 'desktop:' . $ult_range_settings['desc_font_size'] . 'px;'; } if ( is_numeric( $ult_range_settings['desc_line_height'] ) ) { $ult_range_settings['desc_line_height'] = 'desktop:' . $ult_range_settings['desc_line_height'] . 'px;'; } // responsive {main} heading styles. $args = array( 'target' => '#' . $id . ' .ult-description', 'media_sizes' => array( 'font-size' => $ult_range_settings['desc_font_size'], 'line-height' => $ult_range_settings['desc_line_height'], ), ); $desc_responsive = get_ultimate_vc_responsive_media_css( $args ); $desc_style .= '' !== $ult_range_settings['desc_color'] ? 'color:' . $ult_range_settings['desc_color'] . ';' : ''; // design data. $desc_style .= '' !== $ult_range_settings['desc_padding'] ? ' ' . $ult_range_settings['desc_padding'] . ';' : ''; $desc_style .= '' !== $ult_range_settings['desc_margin'] ? ' ' . $ult_range_settings['desc_margin'] . ';' : ''; $desc_style .= '' !== $ult_range_settings['desc_width'] ? ' width:' . $ult_range_settings['desc_width'] . 'px;' : ''; $desc_style .= "'"; $desc_data = '' !== $ult_range_settings['adaptive_height'] ? ' data-adaptive_height = ' . esc_attr( $ult_range_settings['adaptive_height'] ) . ' ' : ''; // typogrphy data end. $output .= '
'; $output .= $text; $output .= ''; // remove backslash once copied. } return $output; } } // instantiate the class. $ult_countdown = new Ultimate_CountDown(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ult_Countdown' ) ) { /** * Function that initializes Ultimate Countdown Module * * @class WPBakeryShortCode_Ult_Countdown */ class WPBakeryShortCode_Ult_Countdown extends WPBakeryShortCode { } } } modules/ultimate_carousel.php 0000644 00000102471 15021177567 0012466 0 ustar 00 .items_to_show.vc_shortcode-param { background: #E6E6E6; padding-bottom: 10px; } .items_to_show.ult_margin_bottom{ margin-bottom: 15px; } .items_to_show.ult_margin_top{ margin-top: 15px; } '; } /** * Function for carousel admin script * * @since ---- * @access public */ public function ultimate_front_scripts() { Ultimate_VC_Addons::ultimate_register_script( 'ult-slick', 'slick', false, array( 'jquery' ), ULTIMATE_VERSION, false ); Ultimate_VC_Addons::ultimate_register_script( 'ult-slick-custom', 'slick-custom', false, array( 'jquery', 'ult-slick' ), ULTIMATE_VERSION, false ); Ultimate_VC_Addons::ultimate_register_style( 'ult-slick', 'slick' ); Ultimate_VC_Addons::ultimate_register_style( 'ult-icons', UAVC_URL . 'assets/css/icons.css', true ); } /** * Function for button admin script * * @since ---- * @param mixed $hook for the script. * @access public */ public function ultimate_admin_scripts( $hook ) { if ( 'post.php' == $hook || 'post-new.php' == $hook ) { wp_enqueue_style( 'ult-icons', UAVC_URL . 'assets/css/icons.css', null, ULTIMATE_VERSION, 'all' ); } } /** * Function to intialize the carusole module * * @since ---- * @access public */ public function init_carousel_addon() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Advanced Carousel', 'ultimate_vc' ), 'base' => 'ultimate_carousel', 'icon' => 'ultimate_carousel', 'class' => 'ultimate_carousel', 'as_parent' => array( 'except' => 'ultimate_carousel' ), 'content_element' => true, 'controls' => 'full', 'show_settings_on_create' => true, 'category' => 'Ultimate VC Addons', 'description' => __( 'Carousel anything.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Slider Type', 'ultimate_vc' ), 'param_name' => 'slider_type', 'value' => array( 'Horizontal' => 'horizontal', 'Vertical' => 'vertical', 'Horizontal Full Width' => 'full_width', ), 'group' => 'General', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Slides to Scroll', 'ultimate_vc' ), 'param_name' => 'slide_to_scroll', 'value' => array( 'All visible' => 'all', 'One at a Time' => 'single', ), 'group' => 'General', ), array( 'type' => 'text', 'param_name' => 'title_text_typography', 'heading' => '
' . __( 'Items to Show -', 'ultimate_vc' ) . '
', 'value' => '', 'edit_field_class' => 'vc_col-sm-12 items_to_show ult_margin_top', 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'edit_field_class' => 'vc_col-sm-4 items_to_show ult_margin_bottom', 'heading' => __( 'On Desktop', 'ultimate_vc' ), 'param_name' => 'slides_on_desk', 'value' => '5', 'min' => '1', 'max' => '25', 'step' => '1', 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'edit_field_class' => 'vc_col-sm-4 items_to_show ult_margin_bottom', 'heading' => __( 'On Tabs', 'ultimate_vc' ), 'param_name' => 'slides_on_tabs', 'value' => '3', 'min' => '1', 'max' => '25', 'step' => '1', 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'edit_field_class' => 'vc_col-sm-4 items_to_show ult_margin_bottom', 'heading' => __( 'On Mobile', 'ultimate_vc' ), 'param_name' => 'slides_on_mob', 'value' => '2', 'min' => '1', 'max' => '25', 'step' => '1', 'group' => 'General', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Infinite loop', 'ultimate_vc' ), 'param_name' => 'infinite_loop', 'value' => 'on', 'options' => array( 'on' => array( 'label' => __( 'Restart the slider automatically as it passes the last slide.', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'default_set' => true, 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Transition speed', 'ultimate_vc' ), 'param_name' => 'speed', 'value' => '300', 'min' => '100', 'max' => '10000', 'step' => '100', 'suffix' => 'ms', 'description' => __( 'Speed at which next slide comes.', 'ultimate_vc' ), 'group' => 'General', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Autoplay Slides', 'ultimate_vc' ), 'param_name' => 'autoplay', 'value' => 'on', 'options' => array( 'on' => array( 'label' => __( 'Enable Autoplay', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'default_set' => true, 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Autoplay Speed', 'ultimate_vc' ), 'param_name' => 'autoplay_speed', 'value' => '5000', 'min' => '100', 'max' => '10000', 'step' => '10', 'suffix' => 'ms', 'dependency' => array( 'element' => 'autoplay', 'value' => array( 'on' ), ), 'group' => 'General', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Extra Class', 'ultimate_vc' ), 'param_name' => 'el_class', 'value' => '', 'group' => 'General', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Navigation Arrows', 'ultimate_vc' ), 'param_name' => 'arrows', 'value' => 'show', 'options' => array( 'show' => array( 'label' => __( 'Display next / previous navigation arrows', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'default_set' => true, 'group' => 'Navigation', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Arrow Style', 'ultimate_vc' ), 'param_name' => 'arrow_style', 'value' => array( 'Default' => 'default', 'Circle Background' => 'circle-bg', 'Square Background' => 'square-bg', 'Circle Border' => 'circle-border', 'Square Border' => 'square-border', ), 'dependency' => array( 'element' => 'arrows', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'arrow_bg_color', 'value' => '', 'dependency' => array( 'element' => 'arrow_style', 'value' => array( 'circle-bg', 'square-bg' ), ), 'group' => 'Navigation', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'arrow_border_color', 'value' => '', 'dependency' => array( 'element' => 'arrow_style', 'value' => array( 'circle-border', 'square-border' ), ), 'group' => 'Navigation', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Size', 'ultimate_vc' ), 'param_name' => 'border_size', 'value' => '2', 'min' => '1', 'max' => '100', 'step' => '1', 'suffix' => 'px', 'dependency' => array( 'element' => 'arrow_style', 'value' => array( 'circle-border', 'square-border' ), ), 'group' => 'Navigation', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Arrow Color', 'ultimate_vc' ), 'param_name' => 'arrow_color', 'value' => '#333333', 'dependency' => array( 'element' => 'arrows', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Arrow Size', 'ultimate_vc' ), 'param_name' => 'arrow_size', 'value' => '24', 'min' => '10', 'max' => '75', 'step' => '1', 'suffix' => 'px', 'dependency' => array( 'element' => 'arrows', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'ultimate_navigation', 'class' => '', 'heading' => __( "Select icon for 'Next Arrow'", 'ultimate_vc' ), 'param_name' => 'next_icon', 'value' => 'ultsl-arrow-right4', 'dependency' => array( 'element' => 'arrows', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'ultimate_navigation', 'class' => '', 'heading' => __( "Select icon for 'Previous Arrow'", 'ultimate_vc' ), 'param_name' => 'prev_icon', 'value' => 'ultsl-arrow-left4', 'dependency' => array( 'element' => 'arrows', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Dots Navigation', 'ultimate_vc' ), 'param_name' => 'dots', 'value' => 'show', 'options' => array( 'show' => array( 'label' => __( 'Display dot navigation', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'default_set' => true, 'group' => 'Navigation', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Color of dots', 'ultimate_vc' ), 'param_name' => 'dots_color', 'value' => '#333333', 'dependency' => array( 'element' => 'dots', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'ultimate_navigation', 'class' => '', 'heading' => __( "Select icon for 'Navigation Dots'", 'ultimate_vc' ), 'param_name' => 'dots_icon', 'value' => 'ultsl-record', 'dependency' => array( 'element' => 'dots', 'value' => array( 'show' ), ), 'group' => 'Navigation', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Item Animation', 'ultimate_vc' ), 'param_name' => 'item_animation', 'value' => array( __( 'No Animation', 'ultimate_vc' ) => '', __( 'Swing', 'ultimate_vc' ) => 'swing', __( 'Pulse', 'ultimate_vc' ) => 'pulse', __( 'Fade In', 'ultimate_vc' ) => 'fadeIn', __( 'Fade In Up', 'ultimate_vc' ) => 'fadeInUp', __( 'Fade In Down', 'ultimate_vc' ) => 'fadeInDown', __( 'Fade In Left', 'ultimate_vc' ) => 'fadeInLeft', __( 'Fade In Right', 'ultimate_vc' ) => 'fadeInRight', __( 'Fade In Up Long', 'ultimate_vc' ) => 'fadeInUpBig', __( 'Fade In Down Long', 'ultimate_vc' ) => 'fadeInDownBig', __( 'Fade In Left Long', 'ultimate_vc' ) => 'fadeInLeftBig', __( 'Fade In Right Long', 'ultimate_vc' ) => 'fadeInRightBig', __( 'Slide In Down', 'ultimate_vc' ) => 'slideInDown', __( 'Slide In Left', 'ultimate_vc' ) => 'slideInLeft', __( 'Slide In Left', 'ultimate_vc' ) => 'slideInLeft', __( 'Bounce In', 'ultimate_vc' ) => 'bounceIn', __( 'Bounce In Up', 'ultimate_vc' ) => 'bounceInUp', __( 'Bounce In Down', 'ultimate_vc' ) => 'bounceInDown', __( 'Bounce In Left', 'ultimate_vc' ) => 'bounceInLeft', __( 'Bounce In Right', 'ultimate_vc' ) => 'bounceInRight', __( 'Rotate In', 'ultimate_vc' ) => 'rotateIn', __( 'Light Speed In', 'ultimate_vc' ) => 'lightSpeedIn', __( 'Roll In', 'ultimate_vc' ) => 'rollIn', ), 'group' => 'Animation', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Draggable Effect', 'ultimate_vc' ), 'param_name' => 'draggable', 'value' => 'on', 'options' => array( 'on' => array( 'label' => __( 'Allow slides to be draggable', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'default_set' => true, 'group' => 'Advanced', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Touch Move', 'ultimate_vc' ), 'param_name' => 'touch_move', 'value' => 'on', 'options' => array( 'on' => array( 'label' => __( 'Enable slide moving with touch', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => array( 'element' => 'draggable', 'value' => array( 'on' ), ), 'default_set' => true, 'group' => 'Advanced', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'RTL Mode', 'ultimate_vc' ), 'param_name' => 'rtl', 'value' => '', 'options' => array( 'on' => array( 'label' => __( 'Turn on RTL mode', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'group' => 'Advanced', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Adaptive Height', 'ultimate_vc' ), 'param_name' => 'adaptive_height', 'value' => '', 'options' => array( 'on' => array( 'label' => __( 'Turn on Adaptive Height', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => '', 'group' => 'Advanced', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Pause on hover', 'ultimate_vc' ), 'param_name' => 'pauseohover', 'value' => 'on', 'options' => array( 'on' => array( 'label' => __( 'Pause the slider on hover', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'dependency' => array( 'element' => 'autoplay', 'value' => 'on', ), 'group' => 'Advanced', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Center mode', 'ultimate_vc' ), 'param_name' => 'centermode', 'value' => 'off', 'options' => array( 'on' => array( 'label' => __( 'Enable center mode of the carousel', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'description' => __( "Enables centered view with partial prev/next slides.'; $output .= $text; $output .= ''; } return $output; } /** * Add icon box Component. */ public function icon_box_init() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Info Box', 'ultimate_vc' ), 'base' => 'bsf-info-box', 'icon' => 'vc_info_box', 'class' => 'info_box', 'category' => 'Ultimate VC Addons', 'description' => __( 'Adds icon box with custom font icon', 'ultimate_vc' ), 'controls' => 'full', 'show_settings_on_create' => true, 'params' => array( array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon to display:', 'ultimate_vc' ), 'param_name' => 'icon_type', 'value' => array( __( 'Font Icon Manager', 'ultimate_vc' ) => 'selector', __( 'Custom Image Icon', 'ultimate_vc' ) => 'custom', ), 'description' => __( 'Use an existing font icon or upload a custom image.', 'ultimate_vc' ), ), array( 'type' => 'icon_manager', 'class' => '', 'heading' => __( 'Select Icon ', 'ultimate_vc' ), 'param_name' => 'icon', 'value' => '', 'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new here', 'ultimate_vc' ) . '.', 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Upload Image Icon:', 'ultimate_vc' ), 'param_name' => 'icon_img', 'value' => '', 'description' => __( 'Upload the custom image icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'custom' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Width', 'ultimate_vc' ), 'param_name' => 'img_width', 'value' => 48, 'min' => 16, 'max' => 512, 'suffix' => 'px', 'description' => __( 'Provide image width', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'custom' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Size of Icon', 'ultimate_vc' ), 'param_name' => 'icon_size', 'value' => 32, 'min' => 12, 'max' => 72, 'suffix' => 'px', 'description' => __( 'How big would you like it?', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Color', 'ultimate_vc' ), 'param_name' => 'icon_color', 'value' => '#333333', 'description' => __( 'Give it a nice paint!', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon Style', 'ultimate_vc' ), 'param_name' => 'icon_style', 'value' => array( __( 'Simple', 'ultimate_vc' ) => 'none', __( 'Circle Background', 'ultimate_vc' ) => 'circle', __( 'Square Background', 'ultimate_vc' ) => 'square', __( 'Design your own', 'ultimate_vc' ) => 'advanced', ), 'description' => __( 'We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'icon_color_bg', 'value' => '#ffffff', 'description' => __( 'Select background color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'circle', 'square', 'advanced' ), ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon Border Style', 'ultimate_vc' ), 'param_name' => 'icon_border_style', 'value' => array( __( 'None', 'ultimate_vc' ) => '', __( 'Solid', 'ultimate_vc' ) => 'solid', __( 'Dashed', 'ultimate_vc' ) => 'dashed', __( 'Dotted', 'ultimate_vc' ) => 'dotted', __( 'Double', 'ultimate_vc' ) => 'double', __( 'Inset', 'ultimate_vc' ) => 'inset', __( 'Outset', 'ultimate_vc' ) => 'outset', ), 'description' => __( 'Select the border style for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'advanced' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'icon_color_border', 'value' => '#333333', 'description' => __( 'Select border color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'icon_border_size', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'icon_border_radius', 'value' => 500, 'min' => 1, 'max' => 500, 'suffix' => 'px', 'description' => __( '0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Background Size', 'ultimate_vc' ), 'param_name' => 'icon_border_spacing', 'value' => 50, 'min' => 30, 'max' => 500, 'suffix' => 'px', 'description' => __( 'Spacing from center of the icon till the boundary of border / background', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'advanced' ), ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Animation', 'ultimate_vc' ), 'param_name' => 'icon_animation', 'value' => array( __( 'No Animation', 'ultimate_vc' ) => '', __( 'Swing', 'ultimate_vc' ) => 'swing', __( 'Pulse', 'ultimate_vc' ) => 'pulse', __( 'Fade In', 'ultimate_vc' ) => 'fadeIn', __( 'Fade In Up', 'ultimate_vc' ) => 'fadeInUp', __( 'Fade In Down', 'ultimate_vc' ) => 'fadeInDown', __( 'Fade In Left', 'ultimate_vc' ) => 'fadeInLeft', __( 'Fade In Right', 'ultimate_vc' ) => 'fadeInRight', __( 'Fade In Up Long', 'ultimate_vc' ) => 'fadeInUpBig', __( 'Fade In Down Long', 'ultimate_vc' ) => 'fadeInDownBig', __( 'Fade In Left Long', 'ultimate_vc' ) => 'fadeInLeftBig', __( 'Fade In Right Long', 'ultimate_vc' ) => 'fadeInRightBig', __( 'Slide In Down', 'ultimate_vc' ) => 'slideInDown', __( 'Slide In Left', 'ultimate_vc' ) => 'slideInLeft', __( 'Slide In Left', 'ultimate_vc' ) => 'slideInLeft', __( 'Bounce In', 'ultimate_vc' ) => 'bounceIn', __( 'Bounce In Up', 'ultimate_vc' ) => 'bounceInUp', __( 'Bounce In Down', 'ultimate_vc' ) => 'bounceInDown', __( 'Bounce In Left', 'ultimate_vc' ) => 'bounceInLeft', __( 'Bounce In Right', 'ultimate_vc' ) => 'bounceInRight', __( 'Rotate In', 'ultimate_vc' ) => 'rotateIn', __( 'Light Speed In', 'ultimate_vc' ) => 'lightSpeedIn', __( 'Roll In', 'ultimate_vc' ) => 'rollIn', ), 'description' => __( 'Like CSS3 Animations? We have several options for you!', 'ultimate_vc' ), ), // Icon Box Heading. array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Title', 'ultimate_vc' ), 'param_name' => 'title', 'admin_label' => true, 'value' => '', 'description' => __( 'Provide the title for this icon box.', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-8', ), array( 'type' => 'dropdown', 'heading' => __( 'Tag', 'ultimate_vc' ), 'param_name' => 'heading_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'h3', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H2', 'ultimate_vc' ) => 'h2', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H5', 'ultimate_vc' ) => 'h5', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'Div', 'ultimate_vc' ) => 'div', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is H3', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-4', ), // Add some description. array( 'type' => 'textarea_html', 'class' => '', 'heading' => __( 'Description', 'ultimate_vc' ), 'param_name' => 'content', 'value' => '', 'description' => __( 'Provide the description for this icon box.', 'ultimate_vc' ), 'edit_field_class' => 'ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param', ), // Select link option - to box or with read more text. array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Apply link to:', 'ultimate_vc' ), 'param_name' => 'read_more', 'value' => array( __( 'No Link', 'ultimate_vc' ) => 'none', __( 'Complete Box', 'ultimate_vc' ) => 'box', __( 'Box Title', 'ultimate_vc' ) => 'title', __( 'Display Read More', 'ultimate_vc' ) => 'more', ), 'description' => __( 'Select whether to use color for icon or not.', 'ultimate_vc' ), ), // Add link to existing content or to another resource. array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Add Link', 'ultimate_vc' ), 'param_name' => 'link', 'value' => '', 'description' => __( 'Add a custom link or select existing page. You can remove existing link as well.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'read_more', 'value' => array( 'box', 'title', 'more' ), ), ), // Link to traditional read more. array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Read More Text', 'ultimate_vc' ), 'param_name' => 'read_text', 'value' => 'Read More', 'description' => __( 'Customize the read more text.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'read_more', 'value' => array( 'more' ), ), ), // Hover Effect type. array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Select Hover Effect type', 'ultimate_vc' ), 'param_name' => 'hover_effect', 'value' => array( __( 'No Effect', 'ultimate_vc' ) => 'style_1', __( 'Icon Zoom', 'ultimate_vc' ) => 'style_2', __( 'Icon Bounce Up', 'ultimate_vc' ) => 'style_3', ), 'description' => __( 'Select the type of effct you want on hover', 'smile' ), ), // Position the icon box. array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Box Style', 'ultimate_vc' ), 'param_name' => 'pos', 'value' => array( __( 'Icon at Left with heading', 'ultimate_vc' ) => 'default', __( 'Icon at Right with heading', 'ultimate_vc' ) => 'heading-right', __( 'Icon at Left', 'ultimate_vc' ) => 'left', __( 'Icon at Right', 'ultimate_vc' ) => 'right', __( 'Icon at Top', 'ultimate_vc' ) => 'top', __( 'Boxed Style', 'ultimate_vc' ) => 'square_box', ), 'description' => __( 'Select icon position. Icon box style will be changed according to the icon position.', 'ultimate_vc' ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Box Min Height', 'ultimate_vc' ), 'param_name' => 'box_min_height', 'value' => '', 'suffix' => 'px', 'dependency' => array( 'element' => 'pos', 'value' => array( 'square_box' ), ), 'description' => __( 'Select Min Height for Box.', 'ultimate_vc' ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Box Border Style', 'ultimate_vc' ), 'param_name' => 'box_border_style', 'value' => array( __( 'None', 'ultimate_vc' ) => '', __( 'Solid', 'ultimate_vc' ) => 'solid', __( 'Dashed', 'ultimate_vc' ) => 'dashed', __( 'Dotted', 'ultimate_vc' ) => 'dotted', __( 'Double', 'ultimate_vc' ) => 'double', __( 'Inset', 'ultimate_vc' ) => 'inset', __( 'Outset', 'ultimate_vc' ) => 'outset', ), 'dependency' => array( 'element' => 'pos', 'value' => array( 'square_box' ), ), 'description' => __( 'Select Border Style for box border.', 'ultimate_vc' ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Box Border Width', 'ultimate_vc' ), 'param_name' => 'box_border_width', 'value' => '', 'suffix' => '', 'dependency' => array( 'element' => 'pos', 'value' => array( 'square_box' ), ), 'description' => __( 'Select Width for Box Border.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Box Border Color', 'ultimate_vc' ), 'param_name' => 'box_border_color', 'value' => '', 'dependency' => array( 'element' => 'pos', 'value' => array( 'square_box' ), ), 'description' => __( 'Select Border color for border box.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Box Background Color', 'ultimate_vc' ), 'param_name' => 'box_bg_color', 'value' => '', 'dependency' => array( 'element' => 'pos', 'value' => array( 'square_box' ), ), 'description' => __( 'Select Box background color.', 'ultimate_vc' ), ), // Customize everything. array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Extra Class', 'ultimate_vc' ), 'param_name' => 'el_class', 'value' => '', 'description' => __( 'Add extra class name that will be applied to the icon box, and you can use this class for your customizations.', 'ultimate_vc' ), ), array( 'type' => 'ult_param_heading', 'param_name' => 'title_text_typography', 'heading' => __( 'Title settings', 'ultimate_vc' ), 'value' => '', 'group' => 'Typography', 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'title_font', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'title_font_style', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'title_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'title_font_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'param_name' => 'title_font_color', 'heading' => __( 'Color', 'ultimate_vc' ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'param_name' => 'desc_text_typography', 'heading' => __( 'Description settings', 'ultimate_vc' ), 'value' => '', 'group' => 'Typography', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'desc_font', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'desc_font_style', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'desc_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'desc_font_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'param_name' => 'desc_font_color', 'heading' => __( 'Color', 'ultimate_vc' ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'text' => "" . __( 'Watch Video Tutorial', 'ultimate_vc' ) . " ", 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_info_box', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), // end params array. ) // end vc_map array. ); // end vc_map. } // end function check 'vc_map'. }//end icon_box_init() /** Icon Box Scripts. */ public function icon_box_scripts() { Ultimate_VC_Addons::ultimate_register_style( 'info-box-style', 'info-box' ); Ultimate_VC_Addons::ultimate_register_script( 'info_box_js', 'info-box' ); } }//end class } if ( class_exists( 'AIO_Icons_Box' ) ) { $aio_icons_box = new AIO_Icons_Box(); } modules/ultimate_fancy_text.php 0000644 00000100622 15021177567 0013011 0 ustar 00 __( 'Fancy Text', 'ultimate_vc' ), 'base' => 'ultimate_fancytext', 'class' => 'vc_ultimate_fancytext', 'icon' => 'vc_ultimate_fancytext', 'category' => 'Ultimate VC Addons', 'description' => __( 'Fancy lines with animation effects.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'textfield', 'param_name' => 'fancytext_prefix', 'heading' => __( 'Prefix', 'ultimate_vc' ), 'value' => '', ), array( 'type' => 'textarea', 'heading' => __( 'Fancy Text', 'ultimate_vc' ), 'param_name' => 'fancytext_strings', 'description' => __( 'Enter each string on a new line', 'ultimate_vc' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'param_name' => 'fancytext_suffix', 'heading' => __( 'Suffix', 'ultimate_vc' ), 'value' => '', ), array( 'type' => 'dropdown', 'heading' => __( 'Effect', 'ultimate_vc' ), 'param_name' => 'fancytext_effect', 'value' => array( __( 'Type', 'ultimate_vc' ) => 'typewriter', __( 'Slide Up', 'ultimate_vc' ) => 'ticker', ), ), array( 'type' => 'dropdown', 'heading' => __( 'Alignment', 'ultimate_vc' ), 'param_name' => 'fancytext_align', 'value' => array( __( 'Center', 'ultimate_vc' ) => 'center', __( 'Left', 'ultimate_vc' ) => 'left', __( 'Right', 'ultimate_vc' ) => 'right', ), ), array( 'type' => 'number', 'heading' => __( 'Type Speed', 'ultimate_vc' ), 'param_name' => 'strings_textspeed', 'min' => 0, 'value' => 35, 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), 'description' => __( 'Speed at which line progresses / Speed of typing effect.', 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Backspeed', 'ultimate_vc' ), 'param_name' => 'strings_backspeed', 'min' => 0, 'value' => 0, 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), 'description' => __( 'Speed of delete / backspace effect.', 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Start Delay', 'ultimate_vc' ), 'param_name' => 'strings_startdelay', 'min' => 0, 'value' => '200', 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), 'description' => __( 'Example - If set to 5000, the first string will appear after 5 seconds.', 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Back Delay', 'ultimate_vc' ), 'param_name' => 'strings_backdelay', 'min' => 0, 'value' => '1500', 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), 'description' => __( 'Example - If set to 5000, the string will remain visible for 5 seconds before backspace effect.', 'ultimate_vc' ), ), array( 'type' => 'ult_switch', 'heading' => __( 'Enable Loop', 'ultimate_vc' ), 'param_name' => 'typewriter_loop', 'value' => 'true', 'default_set' => true, 'options' => array( 'true' => array( 'label' => '', 'on' => 'Yes', 'off' => 'No', ), ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), ), array( 'type' => 'ult_switch', 'heading' => __( 'Show Cursor', 'ultimate_vc' ), 'param_name' => 'typewriter_cursor', 'value' => 'true', 'default_set' => true, 'options' => array( 'true' => array( 'label' => '', 'on' => 'Yes', 'off' => 'No', ), ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), ), array( 'type' => 'textfield', 'heading' => __( 'Cursor Text', 'ultimate_vc' ), 'param_name' => 'typewriter_cursor_text', 'value' => '|', 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'typewriter_cursor', 'value' => array( 'true' ), ), ), array( 'type' => 'number', 'heading' => __( 'Animation Speed', 'ultimate_vc' ), 'param_name' => 'strings_tickerspeed', 'min' => 0, 'value' => 200, 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'ticker', 'ticker-down' ), ), 'description' => __( "Duration of 'Slide Up' animation", 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Pause Time', 'ultimate_vc' ), 'param_name' => 'ticker_wait_time', 'min' => 0, 'value' => '3000', 'suffix' => __( 'In Miliseconds', 'ultimate_vc' ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'ticker', 'ticker-down' ), ), 'description' => __( 'How long the string should stay visible?', 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Show Items', 'ultimate_vc' ), 'param_name' => 'ticker_show_items', 'min' => 1, 'value' => 1, 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'ticker', 'ticker-down' ), ), 'description' => __( 'How many items should be visible at a time?', 'ultimate_vc' ), ), array( 'type' => 'ult_switch', 'heading' => __( 'Pause on Hover', 'ultimate_vc' ), 'param_name' => 'ticker_hover_pause', 'value' => '', 'options' => array( 'true' => array( 'label' => '', 'on' => 'Yes', 'off' => 'No', ), ), 'group' => 'Advanced Settings', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'ticker', 'ticker-down' ), ), ), array( 'type' => 'textfield', 'heading' => __( 'Extra Class', 'ultimate_vc' ), 'param_name' => 'ex_class', ), array( 'type' => 'ult_param_heading', 'param_name' => 'fancy_text_typography', 'text' => __( 'Fancy Text Settings', 'ultimate_vc' ), 'value' => '', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'strings_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'strings_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Font Size', 'ultimate_vc' ), 'param_name' => 'strings_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'strings_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'heading' => __( 'Fancy Text Color', 'ultimate_vc' ), 'param_name' => 'fancytext_color', 'group' => 'Advanced Settings', 'group' => 'Typography', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter', 'ticker', 'ticker-down' ), ), ), array( 'type' => 'colorpicker', 'heading' => __( 'Fancy Text Background', 'ultimate_vc' ), 'param_name' => 'ticker_background', 'group' => 'Advanced Settings', 'group' => 'Typography', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter', 'ticker', 'ticker-down' ), ), ), array( 'type' => 'dropdown', 'heading' => __( 'Transform', 'ultimate_vc' ), 'param_name' => 'fancytext_trans', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'unset', __( 'UPPERCASE', 'ultimate_vc' ) => 'uppercase', __( 'lowercase', 'ultimate_vc' ) => 'lowercase', __( 'Capitalize', 'ultimate_vc' ) => 'capitalize', ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'param_name' => 'fancy_prefsuf_text_typography', 'text' => __( 'Prefix Suffix Text Settings', 'ultimate_vc' ), 'value' => '', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'prefsuf_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'prefsuf_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Font Size', 'ultimate_vc' ), 'param_name' => 'prefix_suffix_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'prefix_suffix_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Prefix & Suffix Text Color', 'ultimate_vc' ), 'param_name' => 'sufpref_color', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Prefix & Suffix Background Color', 'ultimate_vc' ), 'param_name' => 'sufpref_bg_color', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'heading' => __( 'Cursor Color', 'ultimate_vc' ), 'param_name' => 'typewriter_cursor_color', 'group' => 'Advanced Settings', 'group' => 'Typography', 'dependency' => array( 'element' => 'fancytext_effect', 'value' => array( 'typewriter' ), ), ), array( 'type' => 'dropdown', 'heading' => __( 'Markup', 'ultimate_vc' ), 'param_name' => 'fancytext_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'div', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H2', 'ultimate_vc' ) => 'h2', __( 'H3', 'ultimate_vc' ) => 'h3', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H5', 'ultimate_vc' ) => 'h5', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is Div', 'ultimate_vc' ), 'group' => 'Typography', ), array( 'type' => 'dropdown', 'heading' => __( 'Transform', 'ultimate_vc' ), 'param_name' => 'fancypre_trans', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'unset', __( 'UPPERCASE', 'ultimate_vc' ) => 'uppercase', __( 'lowercase', 'ultimate_vc' ) => 'lowercase', __( 'Capitalize', 'ultimate_vc' ) => 'capitalize', ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'text' => "" . __( 'Watch Video Tutorial', 'ultimate_vc' ) . " ", 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_fancy_design', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), ) ); } } /** * Shortcode handler function for block. * * @since ---- * @param array $atts represts module attribuits. * @param string $content value has been set to null. * @access public */ public function ultimate_fancytext_shortcode( $atts, $content = null ) { $ult_ft_settings['fancytext_strings'] = ''; $ult_ft_settings['fancytext_prefix'] = ''; $ult_ft_settings['fancytext_suffix'] = ''; $ult_ft_settings['fancytext_effect'] = ''; $ult_ft_settings['strings_textspeed'] = ''; $ult_ft_settings['strings_tickerspeed'] = ''; $ult_ft_settings['typewriter_cursor'] = ''; $ult_ft_settings['typewriter_cursor_text'] = ''; $ult_ft_settings['typewriter_loop'] = ''; $ult_ft_settings['fancytext_align'] = ''; $ult_ft_settings['strings_font_family'] = ''; $ult_ft_settings['strings_font_style'] = ''; $ult_ft_settings['strings_font_size'] = ''; $ult_ft_settings['sufpref_color'] = ''; $ult_ft_settings['strings_line_height'] = ''; $ult_ft_settings['strings_startdelay'] = ''; $ult_ft_settings['strings_backspeed'] = ''; $ult_ft_settings['strings_backdelay'] = ''; $ult_ft_settings['ticker_wait_time'] = ''; $ult_ft_settings['ticker_show_items'] = ''; $ult_ft_settings['ticker_hover_pause'] = ''; $ult_ft_settings['ex_class'] = ''; $ult_ft_settings['prefsuf_font_family'] = ''; $ult_ft_settings['prefsuf_font_style'] = ''; $ult_ft_settings['prefix_suffix_font_size'] = ''; $ult_ft_settings['prefix_suffix_line_height'] = ''; $ult_ft_settings['sufpref_bg_color'] = ''; $ult_ft_settings['fancypre_trans'] = ''; $ult_ft_settings['fancytext_trans'] = ''; $id = uniqid( wp_rand() ); $ult_ft_settings = shortcode_atts( array( 'fancytext_strings' => '', 'fancytext_prefix' => '', 'fancytext_suffix' => '', 'fancytext_effect' => 'typewriter', 'strings_textspeed' => '35', 'strings_tickerspeed' => '200', 'typewriter_loop' => 'true', 'typewriter_cursor_color' => '', 'fancytext_tag' => 'div', 'fancytext_align' => 'center', 'strings_font_family' => '', 'strings_font_style' => '', 'strings_font_size' => '', 'sufpref_color' => '', 'strings_line_height' => '', 'strings_startdelay' => '200', 'strings_backspeed' => '0', 'strings_backdelay' => '1500', 'typewriter_cursor' => 'true', 'typewriter_cursor_text' => '|', 'ticker_wait_time' => '3000', 'ticker_show_items' => '1', 'ticker_hover_pause' => '', 'ticker_background' => '', 'fancytext_color' => '', 'prefsuf_font_family' => '', 'prefsuf_font_style' => '', 'prefix_suffix_font_size' => '', 'prefix_suffix_line_height' => '', 'sufpref_bg_color' => '', 'ex_class' => '', 'css_fancy_design' => '', 'fancypre_trans' => 'unset', 'fancytext_trans' => 'unset', ), $atts ); $vc_version = ( defined( 'WPB_VC_VERSION' ) ) ? WPB_VC_VERSION : 0; $is_vc_49_plus = ( version_compare( 4.9, $vc_version, '<=' ) ) ? 'ult-adjust-bottom-margin' : ''; $string_inline_style = ''; $vticker_inline = ''; $valign = ''; $prefsuf_style = ''; $css_design_style = ''; $css_design_style = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_ft_settings['css_fancy_design'], ' ' ), 'ultimate_fancytext', $atts ); $css_design_style = esc_attr( $css_design_style ); if ( '' != $ult_ft_settings['strings_font_family'] ) { $font_family = get_ultimate_font_family( $ult_ft_settings['strings_font_family'] ); if ( '' !== $font_family ) { $string_inline_style .= 'font-family:\'' . $font_family . '\';'; } } $string_inline_style .= get_ultimate_font_style( $ult_ft_settings['strings_font_style'] ); if ( '' != $ult_ft_settings['prefsuf_font_family'] ) { $font_family = get_ultimate_font_family( $ult_ft_settings['prefsuf_font_family'] ); if ( '' !== $font_family ) { $prefsuf_style .= 'font-family:\'' . $font_family . '\';'; } } $prefsuf_style .= get_ultimate_font_style( $ult_ft_settings['prefsuf_font_style'] ); $fancy_text_id = 'uvc-type-wrap-' . wp_rand( 1000, 9999 ); if ( is_numeric( $ult_ft_settings['strings_font_size'] ) ) { $ult_ft_settings['strings_font_size'] = 'desktop:' . $ult_ft_settings['strings_font_size'] . 'px;'; } if ( is_numeric( $ult_ft_settings['strings_line_height'] ) ) { $ult_ft_settings['strings_line_height'] = 'desktop:' . $ult_ft_settings['strings_line_height'] . 'px;'; } $fancy_args = array( 'target' => '#' . $fancy_text_id . '', // set targeted element e.g. unique class/id etc. 'media_sizes' => array( 'font-size' => $ult_ft_settings['strings_font_size'], // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input. 'line-height' => $ult_ft_settings['strings_line_height'], ), ); $data_list = get_ultimate_vc_responsive_media_css( $fancy_args ); if ( is_numeric( $ult_ft_settings['prefix_suffix_font_size'] ) ) { $ult_ft_settings['prefix_suffix_font_size'] = 'desktop:' . $ult_ft_settings['prefix_suffix_font_size'] . 'px !important;'; } if ( is_numeric( $ult_ft_settings['prefix_suffix_line_height'] ) ) { $ult_ft_settings['prefix_suffix_line_height'] = 'desktop:' . $ult_ft_settings['prefix_suffix_line_height'] . 'px !important;'; } $fancy_prefsuf_args = array( 'target' => '#' . $fancy_text_id . ' .mycustfancy', // set targeted element e.g. unique class/id etc. 'media_sizes' => array( 'font-size' => $ult_ft_settings['prefix_suffix_font_size'], // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input. 'line-height' => $ult_ft_settings['prefix_suffix_line_height'], ), ); $prefsuf_data_list = get_ultimate_vc_responsive_media_css( $fancy_prefsuf_args ); if ( '' != $ult_ft_settings['sufpref_color'] ) { $prefsuf_style .= 'color:' . $ult_ft_settings['sufpref_color'] . ';'; } if ( '' != $ult_ft_settings['sufpref_bg_color'] ) { $prefsuf_style .= 'background :' . $ult_ft_settings['sufpref_bg_color'] . ';'; } if ( '' != $ult_ft_settings['fancytext_align'] ) { $string_inline_style .= 'text-align:' . $ult_ft_settings['fancytext_align'] . ';'; } // Order of replacement. $order = array( "\r\n", "\n", "\r", '
'; $subop .= $text; $subop .= ''; // remove backslash once copied. } return $subop; } /** * Function to intialize the button module * * @since ---- * @access public */ public function ultimate_dual_button() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Dual Button' ), 'base' => 'ult_dualbutton', 'icon' => 'uvc_dual_button', 'class' => 'uvc_dual_button', 'category' => __( 'Ultimate VC Addons', 'ultimate_vc' ), 'description' => __( 'Add a dual button and give some custom style.', 'ultimate_vc' ), 'params' => array( // Play with icon selector. /*-----------general------------*/ array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Style', 'ultimate_vc' ), 'param_name' => 'btn_hover_style', 'value' => array( 'Style 1' => 'Style 1', 'Style 2' => 'Style 2', 'None' => ' ', ), 'description' => __( 'Select the Hover style for Button.', 'ultimate_vc' ), ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Text Font size', 'ultimate_vc' ), 'param_name' => 'title_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Text Line Height', 'ultimate_vc' ), 'param_name' => 'title_line_ht', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'btn_border_radius', 'min' => 1, 'max' => 50, 'suffix' => 'px', 'edit_field_class' => 'vc_column vc_col-sm-4', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Border Style', 'ultimate_vc' ), 'param_name' => 'btn_border_style', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => __( 'Select the border style for Button.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'btn_color_border', 'value' => '', 'description' => __( 'Select border color for button.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'edit_field_class' => 'vc_column vc_col-sm-6', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'btn_border_size', 'value' => '', 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'edit_field_class' => 'vc_column vc_col-sm-6', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Button Width', 'ultimate_vc' ), 'param_name' => 'btn_width', 'min' => 1, 'max' => 50, 'suffix' => 'px', 'edit_field_class' => 'vc_column vc_col-sm-6', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Alignment', 'ultimate_vc' ), 'param_name' => 'btn_alignment', 'value' => array( 'center' => '', 'left' => 'left', 'right' => 'right', ), 'edit_field_class' => 'vc_column vc_col-sm-6', ), array( 'type' => 'ult_switch', 'class' => '', 'param_name' => 'dual_resp', 'value' => 'on', 'default_set' => true, 'options' => array( 'on' => array( 'label' => __( 'Enable Responsive Mode?', 'ultimate_vc' ), 'on' => __( 'Yes', 'ultimate_vc' ), 'off' => __( 'No', 'ultimate_vc' ), ), ), 'description' => __( 'Enable Responsive Mod or not', 'ultimate_vc' ), ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Custom CSS Class', 'ultimate_vc' ), 'param_name' => 'el_class', 'value' => '', 'description' => __( 'Ran out of options? Need more styles? Write your own CSS and mention the class name here.', 'ultimate_vc' ), ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( ' Button Text', 'ultimate_vc' ), 'param_name' => 'button1_text', 'value' => '', 'admin_label' => true, 'description' => __( 'Enter your text here.', 'ultimate_vc' ), 'group' => 'Button1', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link ', 'ultimate_vc' ), 'param_name' => 'icon_link', 'value' => '', 'description' => __( 'Add a custom link or select existing page. You can remove existing link as well.', 'ultimate_vc' ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'btn1_background_color', 'value' => '', 'description' => __( 'Select Background Color for Button.', 'ultimate_vc' ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Hover Color', 'ultimate_vc' ), 'param_name' => 'btn1_bghovercolor', 'value' => '', 'description' => __( 'Select background hover color for Button.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_hover_style', 'value' => array( 'Style 1', 'Style 2', 'Style 3' ), ), 'group' => 'Button1', ), array( 'type' => 'ult_param_heading', 'param_name' => 'btn1_icon_setting', 'text' => __( 'Icon/Image ', 'ultimate_vc' ), 'value' => '', 'class' => '', 'group' => __( 'Button1', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon to display', 'ultimate_vc' ), 'param_name' => 'icon_type', 'value' => array( 'Font Icon Manager' => 'selector', 'Custom Image Icon' => 'custom', ), 'description' => __( 'Use existing font icon or upload a custom image.', 'ultimate_vc' ), 'group' => 'Button1', ), array( 'type' => 'icon_manager', 'class' => '', 'heading' => __( 'Select Icon ', 'ultimate_vc' ), 'param_name' => 'icon', 'value' => '', 'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new here', 'ultimate_vc' ) . '.', 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button1', ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Upload Image Icon:', 'ultimate_vc' ), 'param_name' => 'icon_img', 'value' => '', 'description' => __( 'Upload the custom image icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'custom' ), ), 'group' => 'Button1', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Width', 'ultimate_vc' ), 'param_name' => 'img_width', 'value' => '', 'min' => 16, 'max' => 512, 'suffix' => 'px', 'description' => __( 'Provide image width', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'custom' ), ), 'group' => 'Button1', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Size of Icon', 'ultimate_vc' ), 'param_name' => 'icon_size', 'value' => '', 'min' => 12, 'max' => 72, 'suffix' => 'px', 'description' => __( 'How big would you like it?', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon Color', 'ultimate_vc' ), 'param_name' => 'icon_color', 'value' => '', 'description' => __( 'Icon Color!', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon Hover Color', 'ultimate_vc' ), 'param_name' => 'icon_hover_color', 'value' => '', 'description' => __( 'Icon hover color !', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button1', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon or Image Style', 'ultimate_vc' ), 'param_name' => 'icon_style', 'value' => array( 'Simple' => 'none', 'Circle Background' => 'circle', 'Square Background' => 'square', 'Design your own' => 'advanced', ), 'description' => __( 'We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.', 'ultimate_vc' ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Background Color ', 'ultimate_vc' ), 'param_name' => 'icon_color_bg', 'value' => '', 'description' => __( 'Select background color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'circle', 'square', 'advanced' ), ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Background Hover Color ', 'ultimate_vc' ), 'param_name' => 'icon_color_hoverbg', 'value' => '', 'description' => __( 'Select background hover color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'circle', 'square', 'advanced' ), ), 'group' => 'Button1', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon or Image Border Style', 'ultimate_vc' ), 'param_name' => 'icon_border_style', 'value' => array( 'Solid' => 'solid', 'None' => '', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => __( 'Select the border style for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_style', 'value' => array( 'advanced' ), ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Border Color', 'ultimate_vc' ), 'param_name' => 'icon_color_border', 'value' => '', 'description' => __( 'Select border color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), 'group' => 'Button1', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Border Hover Color', 'ultimate_vc' ), 'param_name' => 'icon_color_hoverborder', 'value' => '', 'description' => __( 'Select border hover color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), 'group' => 'Button1', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Icon or Image Border Width', 'ultimate_vc' ), 'param_name' => 'icon_border_size', 'value' => '', 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), 'group' => 'Button1', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Icon or Image Border Radius', 'ultimate_vc' ), 'param_name' => 'icon_border_radius', 'value' => '', 'min' => 1, 'max' => 100, 'suffix' => 'px', 'description' => __( '0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), 'group' => 'Button1', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Background Size', 'ultimate_vc' ), 'param_name' => 'icon_border_spacing', 'value' => '', 'min' => 2, 'max' => 100, 'suffix' => 'px', 'description' => __( 'Spacing from center of the icon till the boundary of border / background', 'ultimate_vc' ), 'dependency' => array( 'element' => 'icon_border_style', 'not_empty' => true, ), 'group' => 'Button1', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Alignment', 'ultimate_vc' ), 'param_name' => 'icon_align', 'value' => array( 'Left' => '', 'Right' => 'right', ), 'group' => 'Button1', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( ' Button Text', 'ultimate_vc' ), 'param_name' => 'button2_text', 'value' => '', 'admin_label' => true, 'description' => __( 'Enter your Button2 text here.', 'ultimate_vc' ), 'group' => 'Button2', ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Link ', 'ultimate_vc' ), 'param_name' => 'btn_icon_link', 'value' => '', 'description' => __( 'Add a custom link or select existing page. You can remove existing link as well.', 'ultimate_vc' ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'btn2_background_color', 'value' => '', 'description' => __( 'Select Background Color for Button.', 'ultimate_vc' ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Hover Color', 'ultimate_vc' ), 'param_name' => 'btn2_bghovercolor', 'value' => '', 'description' => __( 'Select background hover color for Button.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_hover_style', 'value' => array( 'Style 1', 'Style 2', 'Style 3' ), ), 'group' => 'Button2', ), array( 'type' => 'ult_param_heading', 'param_name' => 'btn1_icon_setting', 'text' => __( 'Icon/Image ', 'ultimate' ), 'value' => '', 'class' => '', 'group' => __( 'Button2', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon to display:', 'ultimate_vc' ), 'param_name' => 'btn_icon_type', 'value' => array( 'Font Icon Manager' => 'selector', 'Custom Image Icon' => 'custom', ), 'description' => __( 'Use existing font icon or upload a custom image.', 'ultimate_vc' ), 'group' => 'Button2', ), array( 'type' => 'icon_manager', 'class' => '', 'heading' => __( 'Select Icon ', 'ultimate_vc' ), 'param_name' => 'btn_icon', 'value' => '', 'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new here', 'ultimate_vc' ) . '.', 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button2', ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Upload Image Icon:', 'ultimate_vc' ), 'param_name' => 'btn_icon_img', 'value' => '', 'description' => __( 'Upload the custom image icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'custom' ), ), 'group' => 'Button2', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Width', 'ultimate_vc' ), 'param_name' => 'btn_img_width', 'value' => '', 'min' => 16, 'max' => 512, 'suffix' => 'px', 'description' => __( 'Provide image width', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'custom' ), ), 'group' => 'Button2', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Size of Icon', 'ultimate_vc' ), 'param_name' => 'btn_icon_size', 'value' => '', 'min' => 12, 'max' => 72, 'suffix' => 'px', 'description' => __( 'How big would you like it?', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon Color', 'ultimate_vc' ), 'param_name' => 'btn_icon_color', 'value' => '', 'description' => __( 'Icon Color!', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon Hover Color', 'ultimate_vc' ), 'param_name' => 'btn_iconhover_color', 'value' => '', 'description' => __( 'Icon hover color!', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_type', 'value' => array( 'selector' ), ), 'group' => 'Button2', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon or Image Style', 'ultimate_vc' ), 'param_name' => 'btn_icon_style', 'value' => array( 'Simple' => 'none', 'Circle Background' => 'circle', 'Square Background' => 'square', 'Design your own' => 'advanced', ), 'description' => __( 'We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.', 'ultimate_vc' ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Background Color', 'ultimate_vc' ), 'param_name' => 'btn_icon_color_bg', 'value' => '', 'description' => __( 'Select background color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_style', 'value' => array( 'circle', 'square', 'advanced' ), ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Background hover Color', 'ultimate_vc' ), 'param_name' => 'btn_icon_color_hoverbg', 'value' => '', 'description' => __( 'Select background hover color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_style', 'value' => array( 'circle', 'square', 'advanced' ), ), 'group' => 'Button2', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Icon or Image Border Style', 'ultimate_vc' ), 'param_name' => 'btn_icon_border_style', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => __( 'Select the border style for Button.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_style', 'value' => array( 'advanced' ), ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Border Color', 'ultimate_vc' ), 'param_name' => 'btn_icon_color_border', 'value' => '', 'description' => __( 'Select border color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_border_style', 'not_empty' => true, ), 'group' => 'Button2', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon or Image Border Hover Color', 'ultimate_vc' ), 'param_name' => 'btn_icon_color_hoverborder', 'value' => '', 'description' => __( 'Select border color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_border_style', 'not_empty' => true, ), 'group' => 'Button2', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Icon or Image Border Width', 'ultimate_vc' ), 'param_name' => 'btn_icon_border_size', 'value' => '', 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_border_style', 'not_empty' => true, ), 'group' => 'Button2', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Icon or Image Border Radius', 'ultimate_vc' ), 'param_name' => 'btn_icon_border_radius', 'value' => '', 'min' => 1, 'max' => 100, 'suffix' => 'px', 'description' => __( '0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_border_style', 'not_empty' => true, ), 'group' => 'Button2', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Icon or Image Background Size', 'ultimate_vc' ), 'param_name' => 'btn_icon_border_spacing', 'value' => '', 'min' => 30, 'max' => 500, 'suffix' => 'px', 'description' => __( 'Spacing from center of the icon till the boundary of border / background', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_icon_border_style', 'not_empty' => true, ), 'group' => 'Button2', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Alignment', 'ultimate_vc' ), 'param_name' => 'btn2_icon_align', 'value' => array( 'Right' => '', 'Left' => 'left', ), 'group' => 'Button2', ), /*--------divider---------------*/ array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Select Divider options', 'ultimate_vc' ), 'param_name' => 'divider_style', 'value' => array( 'Text' => 'text', 'Icon' => 'icon', 'Image' => 'image', ), 'group' => 'Divider', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( ' Text', 'ultimate_vc' ), 'param_name' => 'divider_text', 'value' => '', 'description' => __( 'Enter your Divider text here.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_style', 'value' => array( 'text' ), ), 'group' => 'Divider', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Text/Icon Color', 'ultimate_vc' ), 'param_name' => 'divider_text_color', 'value' => '', 'description' => __( 'Select color for divider text/icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_style', 'value' => array( 'text', 'icon' ), ), 'group' => 'Divider', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'divider_bg_color', 'value' => '', 'description' => __( 'Select border color for Icon/Text/Image.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_style', 'not_empty' => true, ), 'group' => 'Divider', ), array( 'type' => 'icon_manager', 'class' => '', 'heading' => __( 'Select Icon ', 'ultimate_vc' ), 'param_name' => 'divider_icon', 'value' => '', 'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new here', 'ultimate_vc' ) . '.', 'dependency' => array( 'element' => 'divider_style', 'value' => array( 'icon' ), ), 'group' => 'Divider', ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Upload Image Icon:', 'ultimate_vc' ), 'param_name' => 'divider_icon_img', 'value' => '', 'description' => __( 'Upload the custom image icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_style', 'value' => array( 'image' ), ), 'group' => 'Divider', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Border Style', 'ultimate_vc' ), 'param_name' => 'divider_border_style', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => __( 'Select the border style for Button.', 'ultimate_vc' ), 'group' => 'Divider', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'divider_color_border', 'value' => '', 'description' => __( 'Select border color for divider.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_border_style', 'not_empty' => true, ), 'group' => 'Divider', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'divider_border_size', 'value' => '', 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => __( 'Thickness of the border.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'divider_border_style', 'not_empty' => true, ), 'group' => 'Divider', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'divider_border_radius', 'min' => 1, 'max' => 50, 'suffix' => 'px', 'dependency' => array( 'element' => 'divider_border_style', 'not_empty' => true, ), 'group' => 'Divider', ), /*--- typgraphy--*/ array( 'type' => 'ult_param_heading', 'param_name' => 'bt1typo-setting', 'text' => __( 'Button 1 ', 'ultimate' ), 'value' => '', 'class' => '', 'group' => __( 'Typography', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Title Font Family', 'ultimate_vc' ), 'param_name' => 'btn1_font_family', 'description' => __( 'Select the font of your choice. ', 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'btn1_heading_style', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Text Color', 'ultimate_vc' ), 'param_name' => 'btn1_text_color', 'value' => '', 'description' => __( 'Select text color for icon.', 'ultimate_vc' ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Text Hover Color', 'ultimate_vc' ), 'param_name' => 'btn1_text_hovercolor', 'value' => '', 'description' => __( 'Select text hover color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_hover_style', 'value' => array( 'Style 1', 'Style 2', 'Style 3' ), ), 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'param_name' => 'btn2_bg_setting', 'text' => __( 'Button 2 ', 'ultimate' ), 'value' => '', 'class' => '', 'group' => __( 'Typography', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Title Font Family', 'ultimate_vc' ), 'param_name' => 'btn2_font_family', 'description' => __( 'Select the font of your choice. ', 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'btn2_heading_style', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Text Color', 'ultimate_vc' ), 'param_name' => 'btn2_text_color', 'value' => '', 'description' => __( 'Select text color for icon.', 'ultimate_vc' ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Text Hover Color', 'ultimate_vc' ), 'param_name' => 'btn2_text_hovercolor', 'value' => '', 'description' => __( 'Select text hover color for icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_hover_style', 'value' => array( 'Style 1', 'Style 2', 'Style 3' ), ), 'group' => 'Typography', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_dualbtn_design', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), ) ); } } } } if ( class_exists( 'AIO_Dual_Button' ) ) { $AIO_Dual_Button = new AIO_Dual_Button(); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase } if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ult_Dualbutton' ) ) { /** * Function that initializes Ultimate Dual Button Module * * @class WPBakeryShortCode_ult_dualbutton */ class WPBakeryShortCode_Ult_Dualbutton extends WPBakeryShortCode { } } modules/ultimate_google_maps.php 0000644 00000065351 15021177567 0013152 0 ustar 00 $map_key, ); $api = esc_url( add_query_arg( $arr_params, $api ) ); } wp_register_script( 'googleapis', $api, null, null, false ); // PHPCS:ignore:WordPress.WP.EnqueuedResourceParameters.MissingVersion } /** * Function that initializes settings of Ultimate Google Maps Module. * * @method google_maps_init */ public function google_maps_init() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Google Map', 'ultimate_vc' ), 'base' => 'ultimate_google_map', 'class' => 'vc_google_map', 'controls' => 'full', 'show_settings_on_create' => true, 'icon' => 'vc_google_map', 'description' => __( 'Display Google Maps to indicate your location.', 'ultimate_vc' ), 'category' => 'Ultimate VC Addons', 'params' => array( array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Width (in %)', 'ultimate_vc' ), 'param_name' => 'width', 'admin_label' => true, 'value' => '100%', 'group' => 'General Settings', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Height (in px)', 'ultimate_vc' ), 'param_name' => 'height', 'admin_label' => true, 'value' => '300px', 'group' => 'General Settings', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Map type', 'ultimate_vc' ), 'param_name' => 'map_type', 'admin_label' => true, 'value' => array( __( 'Roadmap', 'ultimate_vc' ) => 'ROADMAP', __( 'Satellite', 'ultimate_vc' ) => 'SATELLITE', __( 'Hybrid', 'ultimate_vc' ) => 'HYBRID', __( 'Terrain', 'ultimate_vc' ) => 'TERRAIN', ), 'group' => 'General Settings', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Latitude', 'ultimate_vc' ), 'param_name' => 'lat', 'admin_label' => true, 'value' => '18.591212', 'description' => '' . __( 'Here is a tool', 'ultimate_vc' ) . ' ' . __( 'where you can find Latitude & Longitude of your location', 'ultimate_vc' ), 'group' => 'General Settings', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Longitude', 'ultimate_vc' ), 'param_name' => 'lng', 'admin_label' => true, 'value' => '73.741261', 'description' => '' . __( 'Here is a tool', 'ultimate_vc' ) . ' ' . __( 'where you can find Latitude & Longitude of your location', 'ultimate_vc' ), 'group' => 'General Settings', ), array( 'type' => 'dropdown', 'heading' => __( 'Map Zoom', 'ultimate_vc' ), 'param_name' => 'zoom', 'value' => array( __( '18 - Default', 'ultimate_vc' ) => 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, ), 'group' => 'General Settings', ), array( 'type' => 'checkbox', 'heading' => '', 'param_name' => 'scrollwheel', 'value' => array( __( 'Disable map zoom on mouse wheel scroll', 'ultimate_vc' ) => 'disable', ), 'group' => 'General Settings', ), array( 'type' => 'textarea_html', 'class' => '', 'heading' => __( 'Info Window Text', 'ultimate_vc' ), 'param_name' => 'content', 'value' => '', 'group' => 'Info Window', 'edit_field_class' => 'ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param', ), array( 'type' => 'ult_switch', 'heading' => __( 'Open on Marker Click', 'ultimate_vc' ), 'param_name' => 'infowindow_open', 'options' => array( 'infowindow_open_value' => array( 'label' => '', 'on' => __( 'Yes', 'ultimate_vc' ), 'off' => __( 'No', 'ultimate_vc' ), ), ), 'value' => 'infowindow_open_value', 'default_set' => true, 'group' => 'Info Window', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Marker/Point icon', 'ultimate_vc' ), 'param_name' => 'marker_icon', 'value' => array( __( 'Use Google Default', 'ultimate_vc' ) => 'default', __( "Use Plugin's Default", 'ultimate_vc' ) => 'default_self', __( 'Upload Custom', 'ultimate_vc' ) => 'custom', ), 'group' => 'Marker', ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Upload Image Icon:', 'ultimate_vc' ), 'param_name' => 'icon_img', 'admin_label' => true, 'value' => '', 'description' => __( 'Upload the custom image icon.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'marker_icon', 'value' => array( 'custom' ), ), 'group' => 'Marker', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Marker Animation', 'ultimate_vc' ), 'param_name' => 'marker_animation', 'value' => array( __( 'Yes', 'ultimate_vc' ) => 'yes', __( 'No', 'ultimate_vc' ) => 'no', ), 'group' => 'Marker', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Street view control', 'ultimate_vc' ), 'param_name' => 'streetviewcontrol', 'value' => array( __( 'Disable', 'ultimate_vc' ) => 'false', __( 'Enable', 'ultimate_vc' ) => 'true', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Map type control', 'ultimate_vc' ), 'param_name' => 'maptypecontrol', 'value' => array( __( 'Disable', 'ultimate_vc' ) => 'false', __( 'Enable', 'ultimate_vc' ) => 'true', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Zoom control', 'ultimate_vc' ), 'param_name' => 'zoomcontrol', 'value' => array( __( 'Disable', 'ultimate_vc' ) => 'false', __( 'Enable', 'ultimate_vc' ) => 'true', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Zoom Control Position', 'ultimate_vc' ), 'param_name' => 'zoomcontrolposition', 'value' => array( __( 'Right Bottom', 'ultimate_vc' ) => 'RIGHT_BOTTOM', __( 'Right Top', 'ultimate_vc' ) => 'RIGHT_TOP', __( 'Right Center', 'ultimate_vc' ) => 'RIGHT_CENTER', __( 'Left Top', 'ultimate_vc' ) => 'LEFT_TOP', __( 'Left Center', 'ultimate_vc' ) => 'LEFT_CENTER', __( 'Left Bottom', 'ultimate_vc' ) => 'LEFT_BOTTOM', ), 'dependency' => array( 'element' => 'zoomcontrol', 'value' => 'true', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Dragging on Mobile', 'ultimate_vc' ), 'param_name' => 'dragging', 'value' => array( __( 'Enable', 'ultimate_vc' ) => 'true', __( 'Disable', 'ultimate_vc' ) => 'false', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Dragging on Desktop', 'ultimate_vc' ), 'param_name' => 'dragging_desktop', 'value' => array( __( 'Enable', 'ultimate_vc' ) => 'true', __( 'Disable', 'ultimate_vc' ) => 'false', ), 'group' => 'Advanced', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Top margin', 'ultimate_vc' ), 'param_name' => 'top_margin', 'value' => array( __( 'Page (small)', 'ultimate_vc' ) => 'page_margin_top', __( 'Section (large)', 'ultimate_vc' ) => 'page_margin_top_section', __( 'None', 'ultimate_vc' ) => 'none', ), 'group' => 'General Settings', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Map Width Override', 'ultimate_vc' ), 'param_name' => 'map_override', 'value' => array( 'Default Width' => '0', "Apply 1st parent element's width" => '1', "Apply 2nd parent element's width" => '2', "Apply 3rd parent element's width" => '3', "Apply 4th parent element's width" => '4', "Apply 5th parent element's width" => '5', "Apply 6th parent element's width" => '6', "Apply 7th parent element's width" => '7', "Apply 8th parent element's width" => '8', "Apply 9th parent element's width" => '9', 'Full Width ' => 'full', 'Maximum Full Width' => 'ex-full', ), 'description' => __( "By default, the map will be given to the WPBakery Page Builder row. However, in some cases depending on your theme's CSS - it may not fit well to the container you are wishing it would. In that case you will have to select the appropriate value here that gets you desired output..", 'ultimate_vc' ), 'group' => 'General Settings', ), array( 'type' => 'textarea_raw_html', 'class' => '', 'heading' => __( 'Google Styled Map JSON', 'ultimate_vc' ), 'param_name' => 'map_style', 'value' => '', 'description' => "" . __( 'Click here', 'ultimate_vc' ) . ' ' . __( 'to get the style JSON code for styling your map.', 'ultimate_vc' ), 'group' => 'Styling', ), array( 'type' => 'textfield', 'heading' => __( 'Extra class name', 'ultimate_vc' ), 'param_name' => 'el_class', 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'ultimate_vc' ), 'group' => 'General Settings', ), array( 'type' => 'ult_param_heading', 'text' => "" . __( 'Watch Video Tutorial', 'ultimate_vc' ) . " ", 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12', 'group' => 'General Settings', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'MapBorder Style', 'ultimate_vc' ), 'param_name' => 'map_border_style', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => '', 'group' => 'Border', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'map_color_border', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'map_border_style', 'not_empty' => true, ), 'group' => 'Border', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'map_border_size', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'map_border_style', 'not_empty' => true, ), 'group' => 'Border', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'map_radius', 'value' => 3, 'min' => 0, 'max' => 500, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'map_border_style', 'not_empty' => true, ), 'group' => 'Border', ), array( 'type' => 'ultimate_spacing', 'heading' => ' Map Margin ', 'param_name' => 'gmap_margin', 'mode' => 'margin', 'unit' => 'px', 'positions' => array( 'Top' => '', 'Right' => '', 'Bottom' => '', 'Left' => '', ), 'group' => __( 'Styling', 'ultimate_vc' ), 'description' => __( 'Add spacing from outside to the map.', 'ultimate_vc' ), ), array( 'type' => 'ultimate_spacing', 'heading' => ' Map padding ', 'param_name' => 'gmap_padding', 'mode' => 'padding', 'unit' => 'px', 'positions' => array( 'Top' => '', 'Right' => '', 'Bottom' => '', 'Left' => '', ), 'group' => __( 'Styling', 'ultimate_vc' ), 'description' => __( 'Add spacing from outside to the map.', 'ultimate_vc' ), ), ), ) ); } } /** * Render function for Ultimate Google Maps Module. * * @param array $atts represts module attribuits. * @param string $content value has been set to null. * @access public */ public function display_ultimate_map( $atts, $content = null ) { $output = ''; $ult_google_settings = shortcode_atts( array( 'width' => '100%', 'height' => '300px', 'map_type' => 'ROADMAP', 'lat' => '18.591212', 'lng' => '73.741261', 'zoom' => '14', 'scrollwheel' => '', 'streetviewcontrol' => 'false', 'maptypecontrol' => 'false', 'pancontrol' => 'false', 'zoomcontrol' => 'false', 'zoomcontrolposition' => 'RIGHT_BOTTOM', 'dragging' => 'true', 'dragging_desktop' => 'true', 'marker_icon' => 'default', 'icon_img' => '', 'top_margin' => 'page_margin_top', 'map_override' => '0', 'map_style' => '', 'el_class' => '', 'infowindow_open' => 'infowindow_open_value', 'map_vc_template' => '', 'map_border_style' => '', 'map_color_border' => '', 'map_border_size' => '', 'map_radius' => '', 'gmap_margin' => '', 'gmap_padding' => '', 'marker_animation' => 'yes', ), $atts ); $vc_version = ( defined( 'WPB_VC_VERSION' ) ) ? WPB_VC_VERSION : 0; $is_vc_49_plus = ( version_compare( 4.9, $vc_version, '<=' ) ) ? 'ult-adjust-bottom-margin' : ''; $border_css = ''; $gmap_design_css = ''; $gmap_design_css = $ult_google_settings['gmap_margin']; $gmap_design_css .= $ult_google_settings['gmap_padding']; $marker_lat = $ult_google_settings['lat']; $marker_lng = $ult_google_settings['lng']; if ( 'default_self' == $ult_google_settings['marker_icon'] ) { $icon_url = UAVC_URL . 'assets/img/icon-marker-pink.png'; } elseif ( 'default' == $ult_google_settings['marker_icon'] ) { $icon_url = ''; } else { $icon_url = apply_filters( 'ult_get_img_single', $ult_google_settings['icon_img'], 'url' ); } $id = 'map_' . uniqid(); $wrap_id = 'wrap_' . $id; $ult_google_settings['map_type'] = strtoupper( $ult_google_settings['map_type'] ); $ult_google_settings['width'] = ( substr( $ult_google_settings['width'], -1 ) != '%' && substr( $ult_google_settings['width'], -2 ) != 'px' ? $ult_google_settings['width'] . 'px' : $ult_google_settings['width'] ); $map_height = ( substr( $ult_google_settings['height'], -1 ) != '%' && substr( $ult_google_settings['height'], -2 ) != 'px' ? $ult_google_settings['height'] . 'px' : $ult_google_settings['height'] ); $margin_css = ''; if ( 'none' != $ult_google_settings['top_margin'] ) { $margin_css = $ult_google_settings['top_margin']; } if ( '' != $ult_google_settings['map_border_style'] ) { $border_css .= 'border-style:' . $ult_google_settings['map_border_style'] . ';'; } if ( '' != $ult_google_settings['map_color_border'] ) { $border_css .= 'border-color:' . $ult_google_settings['map_color_border'] . ';'; } if ( '' != $ult_google_settings['map_border_size'] ) { $border_css .= 'border-width:' . $ult_google_settings['map_border_size'] . 'px;'; } if ( '' != $ult_google_settings['map_radius'] ) { $border_css .= 'border-radius:' . $ult_google_settings['map_radius'] . 'px;'; } if ( 'map_vc_template_value' == $ult_google_settings['map_vc_template'] ) { $ult_google_settings['el_class'] .= 'uvc-boxed-layout'; } $output .= "
'; $output .= $text; $output .= ''; // remove backslash once copied. } return $output; } } new Ultimate_Google_Maps(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ultimate_Google_Map' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Ultimate_Google_Map extends WPBakeryShortCode { } } } modules/ultimate_team.php 0000644 00000176213 15021177567 0011604 0 ustar 00 '', 'name' => '', 'pos_in_org' => '', 'text_align' => '', 'team_member_name_tag' => '', 'team_member_name_font' => '', 'team_member_name_font_style' => '', 'team_member_name_font_size' => '', 'team_member_name_line_height' => '', 'team_member_position_font' => '', 'team_member_position_font_style' => '', 'team_member_position_font_size' => '', 'team_member_position_line_height' => '', 'team_member_description_font' => '', 'team_member_description_font_style' => '', 'team_member_description_font_size' => '', 'team_member_description_line_height' => '', 'team_member_name_color' => '', 'team_member_org_color' => '', 'team_member_desc_color' => '', 'img_hover_eft' => '', 'img_hover_color' => '', 'img_border_style' => '', 'img_border_width' => '', 'img_border_radius' => '', 'img_border_color' => '', 'staff_link' => '', 'link_switch' => '', // New attributes for style 2. 'team_member_style' => '', 'divider_effect' => '', 'team_member_align_style' => '', 'team_member_divider_color' => '', 'team_member_divider_width' => '', 'team_member_divider_height' => '', 'social_icon_effect' => '', 'social_links' => '', 'social_icon_size' => '', 'social_icon_space' => '', 'title_box_padding' => '', 'custom_team_class' => '', 'team_css' => '', 'team_member_responsive_enable' => '', 'team_responsive_width' => '', 'team_img_opacity' => '', 'team_img_hover_opacity' => '', 'team_img_hover_opacity_style3' => '', 'team_img_bg_color' => '', 'team_img_grayscale' => 'on', ), $atts ); // Grayscale Image. $team_img_grayscale_cls = ( 'off' != $ult_team_settings['team_img_grayscale'] ) ? 'ult-team-grayscale' : ''; // Style-2 Image Opacity. $ult_team_settings['team_img_opacity'] = ( isset( $ult_team_settings['team_img_opacity'] ) && trim( $ult_team_settings['team_img_opacity'] ) !== '' ) ? $ult_team_settings['team_img_opacity'] : '1'; $ult_team_settings['team_img_hover_opacity'] = ( isset( $ult_team_settings['team_img_hover_opacity'] ) && trim( $ult_team_settings['team_img_hover_opacity'] ) !== '' ) ? $ult_team_settings['team_img_hover_opacity'] : '0.65'; $ult_team_settings['team_img_hover_opacity_style3'] = ( isset( $ult_team_settings['team_img_hover_opacity_style3'] ) && trim( $ult_team_settings['team_img_hover_opacity_style3'] ) !== '' ) ? $ult_team_settings['team_img_hover_opacity_style3'] : '0.1'; $ult_team_settings['team_img_bg_color'] = ( isset( $ult_team_settings['team_img_bg_color'] ) && trim( $ult_team_settings['team_img_bg_color'] ) !== '' ) ? $ult_team_settings['team_img_bg_color'] : 'inherit'; $ult_team_settings['team_member_style'] = ( isset( $ult_team_settings['team_member_style'] ) && trim( $ult_team_settings['team_member_style'] ) !== '' ) ? $ult_team_settings['team_member_style'] : 'style-1'; $ult_team_settings['custom_team_class'] = ( isset( $ult_team_settings['custom_team_class'] ) && trim( $ult_team_settings['custom_team_class'] ) !== '' ) ? $ult_team_settings['custom_team_class'] : ''; // Set responsive width. $ult_team_settings['team_responsive_width'] = ( isset( $ult_team_settings['team_responsive_width'] ) && trim( $ult_team_settings['team_responsive_width'] ) !== '' ) ? $ult_team_settings['team_responsive_width'] : ''; $ult_team_settings['team_responsive_width'] = ( isset( $ult_team_settings['team_member_responsive_enable'] ) && trim( $ult_team_settings['team_member_responsive_enable'] ) == 'on' ) ? $ult_team_settings['team_responsive_width'] : ''; // Set typography colors. $ult_team_settings['team_member_name_color'] = ( isset( $ult_team_settings['team_member_name_color'] ) && trim( $ult_team_settings['team_member_name_color'] ) !== '' ) ? $ult_team_settings['team_member_name_color'] : 'inherit'; $ult_team_settings['team_member_org_color'] = ( isset( $ult_team_settings['team_member_org_color'] ) && trim( $ult_team_settings['team_member_org_color'] ) !== '' ) ? $ult_team_settings['team_member_org_color'] : 'inherit'; $ult_team_settings['team_member_desc_color'] = ( isset( $ult_team_settings['team_member_desc_color'] ) && trim( $ult_team_settings['team_member_desc_color'] ) !== '' ) ? $ult_team_settings['team_member_desc_color'] : 'inherit'; // Set team Member name's tag element. $ult_team_settings['team_member_name_tag'] = ( isset( $ult_team_settings['team_member_name_tag'] ) && trim( $ult_team_settings['team_member_name_tag'] ) !== '' ) ? $ult_team_settings['team_member_name_tag'] : 'h2'; $ult_team_settings['team_css'] = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_team_settings['team_css'], ' ' ), 'ult_team', $atts ); // title box style. $title_box_style = ''; $title_box_style .= trim( $ult_team_settings['title_box_padding'] ) != '' ? $ult_team_settings['title_box_padding'] : ''; $href = vc_build_link( $ult_team_settings['staff_link'] ); $url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : ''; $target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : ''; $link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : ''; $rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : ''; $font_args = array(); $team_member_name_font_styling = ''; if ( '' == ! $ult_team_settings['team_member_name_font'] ) { $team_member_font_family = function_exists( 'get_ultimate_font_family' ) ? get_ultimate_font_family( $ult_team_settings['team_member_name_font'] ) : ''; $team_member_font_family = ( '' != $team_member_font_family ) ? $team_member_font_family : 'inherit'; $team_member_name_font_styling .= 'font-family:' . $team_member_font_family . ';'; array_push( $font_args, $ult_team_settings['team_member_name_font'] ); } if ( function_exists( 'get_ultimate_font_style' ) ) { if ( isset( $ult_team_settings['team_member_name_font_style'] ) && trim( $ult_team_settings['team_member_name_font_style'] ) != '' ) { $team_member_name_font_styling .= get_ultimate_font_style( $ult_team_settings['team_member_name_font_style'] ); } } if ( ! ( '' == $ult_team_settings['team_member_name_color'] ) && ! ( 'inherit' == $ult_team_settings['team_member_name_color'] ) ) { $team_member_name_font_styling .= 'color:' . $ult_team_settings['team_member_name_color'] . ';'; } $team_member_position_font_styling = ''; if ( '' == ! $ult_team_settings['team_member_position_font'] ) { $team_member_font_family = function_exists( 'get_ultimate_font_family' ) ? get_ultimate_font_family( $ult_team_settings['team_member_position_font'] ) : ''; $team_member_font_family = ( '' != $team_member_font_family ) ? $team_member_font_family : 'inherit'; $team_member_position_font_styling .= 'font-family:' . $team_member_font_family . ';'; array_push( $font_args, $ult_team_settings['team_member_position_font'] ); } if ( '' == ! $ult_team_settings['team_member_position_font_style'] ) { $team_member_position_font_styling .= $ult_team_settings['team_member_position_font_style'] . ';'; } if ( ! ( '' == $ult_team_settings['team_member_org_color'] ) && ! ( 'inherit' == $ult_team_settings['team_member_org_color'] ) ) { $team_member_position_font_styling .= 'color:' . $ult_team_settings['team_member_org_color'] . ';'; } $team_member_description_font_styling = ''; if ( '' == ! $ult_team_settings['team_member_description_font'] ) { $team_member_font_family = function_exists( 'get_ultimate_font_family' ) ? get_ultimate_font_family( $ult_team_settings['team_member_description_font'] ) : ''; $team_member_font_family = ( '' != $team_member_font_family ) ? $team_member_font_family : 'inherit'; $team_member_description_font_styling .= 'font-family:' . $team_member_font_family . ';'; array_push( $font_args, $ult_team_settings['team_member_description_font'] ); } if ( '' == ! $ult_team_settings['team_member_description_font_style'] ) { $team_member_description_font_styling .= $ult_team_settings['team_member_description_font_style'] . ';'; } if ( ! ( '' == $ult_team_settings['team_member_desc_color'] ) && ! ( 'inherit' == $ult_team_settings['team_member_desc_color'] ) ) { $team_member_description_font_styling .= 'color:' . $ult_team_settings['team_member_desc_color'] . ';'; } $img_hver_class = ''; $img_hver_data = ''; if ( 'on' == $ult_team_settings['img_hover_eft'] ) { $img_hver_class = 'ult-team_img_hover'; $ult_team_settings['img_hover_color'] = ( isset( $ult_team_settings['img_hover_color'] ) && trim( $ult_team_settings['img_hover_color'] ) != '' ) ? $ult_team_settings['img_hover_color'] : 'rgba(100,100,100,0.6)'; $img_hver_data = 'data-background_clr = "' . esc_attr( $ult_team_settings['img_hover_color'] ) . '"'; } elseif ( 'off' == $ult_team_settings['img_hover_eft'] ) { $img_hver_class = ''; $img_hver_data = ''; } $team_image_style = ''; if ( '' == ! $ult_team_settings['img_border_style'] ) { $team_image_style .= 'border-style:' . $ult_team_settings['img_border_style'] . ';'; } if ( '' == ! $ult_team_settings['img_border_width'] ) { $team_image_style .= 'border-width:' . $ult_team_settings['img_border_width'] . 'px;'; } if ( '' == ! $ult_team_settings['img_border_radius'] ) { $team_image_style .= 'border-radius:' . $ult_team_settings['img_border_radius'] . 'px;'; } if ( '' == ! $ult_team_settings['img_border_color'] ) { $team_image_style .= 'border-color:' . $ult_team_settings['img_border_color'] . ';'; } $img = apply_filters( 'ult_get_img_single', $ult_team_settings['image'], 'url' ); $alt = apply_filters( 'ult_get_img_single', $ult_team_settings['image'], 'alt' ); // Code for Responsive font-size [Open]. $id = uniqid( 'ultimate-heading' ); // FIX: set old font size before implementing responsive param. if ( is_numeric( $ult_team_settings['team_member_name_font_size'] ) ) { $ult_team_settings['team_member_name_font_size'] = 'desktop:' . $ult_team_settings['team_member_name_font_size'] . 'px;'; } if ( is_numeric( $ult_team_settings['team_member_name_line_height'] ) ) { $ult_team_settings['team_member_name_line_height'] = 'desktop:' . $ult_team_settings['team_member_name_line_height'] . 'px;'; } $team_name_args = array( 'target' => '.ult-team-member-bio-wrap.' . $id . ' .ult-team-member-name', 'media_sizes' => array( 'font-size' => $ult_team_settings['team_member_name_font_size'], 'line-height' => $ult_team_settings['team_member_name_line_height'], ), ); $team_member_name_responsive = get_ultimate_vc_responsive_media_css( $team_name_args ); if ( is_numeric( $ult_team_settings['team_member_position_font_size'] ) ) { $ult_team_settings['team_member_position_font_size'] = 'desktop:' . $ult_team_settings['team_member_position_font_size'] . 'px;'; } if ( is_numeric( $ult_team_settings['team_member_position_line_height'] ) ) { $ult_team_settings['team_member_position_line_height'] = 'desktop:' . $ult_team_settings['team_member_position_line_height'] . 'px;'; } $team_position_args = array( 'target' => '.ult-team-member-bio-wrap.' . $id . ' .ult-team-member-position', 'media_sizes' => array( 'font-size' => $ult_team_settings['team_member_position_font_size'], 'line-height' => $ult_team_settings['team_member_position_line_height'], ), ); $team_member_position_responsive = get_ultimate_vc_responsive_media_css( $team_position_args ); if ( is_numeric( $ult_team_settings['team_member_description_font_size'] ) ) { $ult_team_settings['team_member_description_font_size'] = 'desktop:' . $ult_team_settings['team_member_description_font_size'] . 'px;'; } if ( is_numeric( $ult_team_settings['team_member_description_line_height'] ) ) { $ult_team_settings['team_member_description_line_height'] = 'desktop:' . $ult_team_settings['team_member_description_line_height'] . 'px;'; } $team_desc_args = array( 'target' => '.ult-team-member-bio-wrap.' . $id . ' .ult-team-member-description', 'media_sizes' => array( 'font-size' => $ult_team_settings['team_member_description_font_size'], 'line-height' => $ult_team_settings['team_member_description_line_height'], ), ); $team_member_desc_responsive = get_ultimate_vc_responsive_media_css( $team_desc_args ); $ult_team_settings['team_member_divider_color'] = ( isset( $ult_team_settings['team_member_divider_color'] ) && trim( $ult_team_settings['team_member_divider_color'] ) !== '' ) ? $ult_team_settings['team_member_divider_color'] : ''; $ult_team_settings['team_member_align_style'] = ( isset( $ult_team_settings['team_member_align_style'] ) && trim( $ult_team_settings['team_member_align_style'] ) !== '' ) ? $ult_team_settings['team_member_align_style'] : 'center'; $ult_team_settings['social_icon_size'] = ( isset( $ult_team_settings['social_icon_size'] ) && trim( $ult_team_settings['social_icon_size'] ) !== '' ) ? $ult_team_settings['social_icon_size'] . 'px' : '16px'; $ult_team_settings['social_icon_space'] = ( isset( $ult_team_settings['social_icon_space'] ) && trim( $ult_team_settings['social_icon_space'] ) !== '' ) ? ( $ult_team_settings['social_icon_space'] / 2 ) . 'px' : '5px'; $ult_team_settings['team_member_divider_width'] = ( isset( $ult_team_settings['team_member_divider_width'] ) && trim( $ult_team_settings['team_member_divider_width'] ) !== '' ) ? $ult_team_settings['team_member_divider_width'] : '80'; $ult_team_settings['team_member_divider_width'] = ( $ult_team_settings['team_member_divider_width'] <= 100 ) ? $ult_team_settings['team_member_divider_width'] : '100'; $ult_team_settings['team_member_divider_height'] = ( isset( $ult_team_settings['team_member_divider_height'] ) && trim( $ult_team_settings['team_member_divider_height'] ) !== '' ) ? $ult_team_settings['team_member_divider_height'] : '1'; // Code for Responsive font-size [Closed]. ob_start(); if ( 'style-3' == $ult_team_settings['team_member_style'] ) { $team_desc_args = array( 'target' => '.ult-team-member-image.' . $id . ' .ult-team-member-description', 'media_sizes' => array( 'font-size' => $ult_team_settings['team_member_description_font_size'], 'line-height' => $ult_team_settings['team_member_description_line_height'], ), ); $team_member_desc_responsive = get_ultimate_vc_responsive_media_css( $team_desc_args ); echo '
' . do_shortcode( $content ) . '
' . do_shortcode( $content ) . '
'; $output .= $text; $output .= ''; } echo $output; // PHPCS:ignore:WordPress.Security.EscapeOutput.OutputNotEscaped return ob_get_clean(); } /** * Function that initializes settings of Team Module Module. * * @method init_team */ public function init_team() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => __( 'Team', 'ultimate_vc' ), 'base' => 'ult_team', 'icon' => 'vc_icon_team', 'class' => '', 'content_element' => true, 'controls' => 'full', 'category' => 'Ultimate VC Addons', 'description' => __( 'Show your awesome team.', 'ultimate_vc' ), 'admin_enqueue_js' => preg_replace( '/\s/', '%20', UAVC_URL . 'admin/js/team-admin.js' ), 'params' => array( // Custom Coding for new team styles. array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Team Style', 'ultimate_vc' ), 'param_name' => 'team_member_style', 'value' => array( __( 'Style 1', 'ultimate_vc' ) => 'style-1', __( 'Style 2', 'ultimate_vc' ) => 'style-2', __( 'Style 3', 'ultimate_vc' ) => 'style-3', ), 'description' => '', 'group' => 'Image', ), array( 'type' => 'ult_img_single', 'heading' => __( 'Select Image', 'ultimate_vc' ), 'param_name' => 'image', 'description' => '', 'group' => 'Image', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Grayscale Image', 'ultimate_vc' ), 'param_name' => 'team_img_grayscale', 'value' => 'on', 'options' => array( 'on' => array( 'label' => '', 'on' => 'Yes', 'off' => 'No', ), ), 'default_set' => true, 'description' => '', 'dependency' => array( 'element' => 'team_member_style', 'value' => array( 'style-1', 'style-3' ), ), 'group' => 'Image', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Image Border Style', 'ultimate_vc' ), 'param_name' => 'img_border_style', 'value' => array( __( 'None', 'ultimate_vc' ) => '', __( 'Solid', 'ultimate_vc' ) => 'solid', __( 'Dashed', 'ultimate_vc' ) => 'dashed', __( 'Dotted', 'ultimate_vc' ) => 'dotted', __( 'Double', 'ultimate_vc' ) => 'double', __( 'Inset', 'ultimate_vc' ) => 'inset', __( 'Outset', 'ultimate_vc' ) => 'outset', ), 'description' => '', 'group' => 'Image', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Border Width', 'ultimate_vc' ), 'param_name' => 'img_border_width', 'value' => '', 'suffix' => '', 'dependency' => array( 'element' => 'img_border_style', 'not_empty' => true, ), 'description' => '', 'group' => 'Image', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Image Border Color', 'ultimate_vc' ), 'param_name' => 'img_border_color', 'value' => '', 'dependency' => array( 'element' => 'img_border_style', 'not_empty' => true, ), 'description' => '', 'group' => 'Image', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image border radius', 'ultimate_vc' ), 'param_name' => 'img_border_radius', 'value' => '0', 'min' => '0', 'max' => '500', 'step' => '1', 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'img_border_style', 'not_empty' => true, ), 'group' => 'Image', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Image Hover Effect', 'ultimate_vc' ), 'param_name' => 'img_hover_eft', 'value' => 'off', 'options' => array( 'on' => array( 'label' => __( 'Hover effect for the team member image', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'description' => '', 'dependency' => array( 'element' => 'team_member_style', 'value' => 'style-1', ), 'group' => 'Image', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Image Hover Color', 'ultimate_vc' ), 'param_name' => 'img_hover_color', 'value' => '', 'description' => '', 'group' => 'Image', 'dependency' => array( 'element' => 'img_hover_eft', 'value' => 'on', ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'team_img_bg_color', 'value' => '', 'description' => '', 'group' => 'Image', 'dependency' => array( 'element' => 'team_member_style', 'value' => array( 'style-2', 'style-3' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Opacity', 'ultimate_vc' ), 'param_name' => 'team_img_opacity', 'value' => 1, 'min' => 0, 'max' => 1, 'description' => __( 'Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)', 'ultimate_vc' ), 'group' => 'Image', 'dependency' => array( 'element' => 'team_member_style', 'value' => array( 'style-2' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Opacity on Hover', 'ultimate_vc' ), 'param_name' => 'team_img_hover_opacity', 'value' => '0.65', 'min' => 0, 'max' => 1, 'description' => __( 'Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)', 'ultimate_vc' ), 'group' => 'Image', 'dependency' => array( 'element' => 'team_member_style', 'value' => array( 'style-2' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Image Opacity on Hover', 'ultimate_vc' ), 'param_name' => 'team_img_hover_opacity_style3', 'value' => 0.1, 'min' => 0, 'max' => 1, 'description' => __( 'Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)', 'ultimate_vc' ), 'group' => 'Image', 'dependency' => array( 'element' => 'team_member_style', 'value' => array( 'style-3' ), ), ), array( 'type' => 'textfield', 'heading' => __( 'Custom Class', 'ultimate_vc' ), 'param_name' => 'custom_team_class', 'description' => '', 'group' => 'Image', ), array( 'type' => 'textfield', 'heading' => __( 'Name', 'ultimate_vc' ), 'param_name' => 'name', 'admin_label' => true, 'description' => '', 'group' => 'Text', 'edit_field_class' => 'vc_col-sm-8', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Tag', 'ultimate_vc' ), 'param_name' => 'team_member_name_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'h2', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H3', 'ultimate_vc' ) => 'h3', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H5', 'ultimate_vc' ) => 'h5', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'Div', 'ultimate_vc' ) => 'div', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is H2', 'ultimate_vc' ), 'group' => 'Text', 'edit_field_class' => 'ult-param-padding-remove vc_col-sm-4', ), array( 'type' => 'textfield', 'heading' => __( 'Designation', 'ultimate_vc' ), 'param_name' => 'pos_in_org', 'description' => '', 'group' => 'Text', ), array( 'type' => 'textarea_html', 'heading' => __( 'Description', 'ultimate_vc' ), 'param_name' => 'content', 'description' => '', 'group' => 'Text', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Text Alignment', 'ultimate_vc' ), 'param_name' => 'team_member_align_style', 'value' => array( __( 'Center', 'ultimate_vc' ) => 'center', __( 'Left', 'ultimate_vc' ) => 'left', __( 'Right', 'ultimate_vc' ) => 'right', ), 'description' => '', 'group' => 'Text', ), array( 'type' => 'ultimate_spacing', 'heading' => __( 'Space around text', 'ultimate_vc' ), 'param_name' => 'title_box_padding', 'mode' => 'padding', 'unit' => 'px', 'positions' => array( __( 'Top', 'ultimate_vc' ) => '', __( 'Right', 'ultimate_vc' ) => '', __( 'Bottom', 'ultimate_vc' ) => '', __( 'Left', 'ultimate_vc' ) => '', ), 'group' => __( 'Text', 'ultimate_vc' ), ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Enable Social Icons', 'ultimate_vc' ), 'param_name' => 'social_icon_effect', 'value' => 'off', 'options' => array( 'on' => array( 'label' => __( 'Add Social Icon links to connect on social network', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'description' => '', 'group' => 'Social Links', ), array( 'type' => 'param_group', 'heading' => __( 'Add Social Links', 'ultimate_vc' ), 'param_name' => 'social_links', 'group' => __( 'Social Links', 'ultimate_vc' ), 'value' => rawurlencode( wp_json_encode( array( array( 'selected_team_icon' => '', 'social_title' => '', 'social_icon_url' => '', 'social_icon_color' => '', 'social_icon_hover_color' => '', ), ) ) ), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Title', 'my-text-domain' ), 'param_name' => 'social_link_title', 'value' => '', 'description' => '', 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => __( 'Link', 'ultimate_vc' ), 'param_name' => 'social_icon_url', 'description' => '', 'value' => '#', ), array( 'type' => 'icon_manager', 'heading' => __( 'Select Icon', 'js_composer' ), 'param_name' => 'selected_team_icon', 'value' => '', 'description' => __( 'Select icon from library.', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon Color', 'ultimate_vc' ), 'param_name' => 'social_icon_color', 'value' => '', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Icon hover Color', 'ultimate_vc' ), 'param_name' => 'social_icon_hover_color', 'value' => '', ), ), 'dependency' => array( 'element' => 'social_icon_effect', 'value' => 'on', ), 'callbacks' => array( 'after_add' => 'vcChartParamAfterAddCallback', ), ), array( 'type' => 'number', 'heading' => __( 'Social Icon Size', 'ultimate_vc' ), 'param_name' => 'social_icon_size', 'value' => '16', 'suffix' => 'px', 'dependency' => array( 'element' => 'img_border_style', 'not_empty' => true, ), 'description' => '', 'dependency' => array( 'element' => 'social_icon_effect', 'value' => 'on', ), 'group' => __( 'Social Links', 'ultimate_vc' ), ), array( 'type' => 'number', 'heading' => __( 'Spacing Between Social Icons', 'ultimate_vc' ), 'param_name' => 'social_icon_space', 'value' => '10', 'suffix' => 'px', 'dependency' => array( 'element' => 'img_border_style', 'not_empty' => true, ), 'description' => '', 'dependency' => array( 'element' => 'social_icon_effect', 'value' => 'on', ), 'group' => __( 'Social Links', 'ultimate_vc' ), ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Separator', 'ultimate_vc' ), 'param_name' => 'divider_effect', 'value' => 'off', 'options' => array( 'on' => array( 'label' => __( 'Separator between description & social icons', 'ultimate_vc' ), 'on' => 'Yes', 'off' => 'No', ), ), 'description' => '', 'group' => 'Social Links', 'dependency' => array( 'element' => 'social_icon_effect', 'value' => 'on', ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Separator Color', 'ultimate_vc' ), 'param_name' => 'team_member_divider_color', 'value' => '', 'description' => '', 'group' => 'Social Links', 'dependency' => array( 'element' => 'divider_effect', 'value' => 'on', ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Separator Height', 'ultimate_vc' ), 'param_name' => 'team_member_divider_height', 'value' => 1, 'min' => 1, 'max' => 500, 'suffix' => 'px', 'group' => 'Social Links', 'dependency' => array( 'element' => 'divider_effect', 'value' => 'on', ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Separator Width', 'ultimate_vc' ), 'param_name' => 'team_member_divider_width', 'value' => '80', 'suffix' => '%', 'description' => '', 'group' => 'Social Links', 'dependency' => array( 'element' => 'divider_effect', 'value' => 'on', ), ), array( 'type' => 'text', 'param_name' => 'title_text_typography', 'heading' => __( '
'; $output .= $text; $output .= ''; } return $output; } } } if ( class_exists( 'AIO_Stats_Counter' ) ) { $aio_stats_counter = new AIO_Stats_Counter(); } if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Stat_Counter' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Stat_Counter extends WPBakeryShortCode { } } modules/ultimate_pricing_tables.php 0000644 00000064454 15021177567 0013646 0 ustar 00 __( 'Price Box', 'ultimate_vc' ), 'base' => 'ultimate_pricing', 'class' => 'vc_ultimate_pricing', 'icon' => 'vc_ultimate_pricing', 'category' => 'Ultimate VC Addons', 'description' => __( 'Create nice looking pricing tables.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Select Design Style', 'ultimate_vc' ), 'param_name' => 'design_style', 'value' => array( __( 'Design 01', 'ultimate_vc' ) => 'design01', __( 'Design 02', 'ultimate_vc' ) => 'design02', __( 'Design 03', 'ultimate_vc' ) => 'design03', __( 'Design 04', 'ultimate_vc' ) => 'design04', __( 'Design 05', 'ultimate_vc' ) => 'design05', __( 'Design 06', 'ultimate_vc' ) => 'design06', ), 'description' => __( 'Select Pricing table design you would like to use', 'ultimate_vc' ), ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Select Color Scheme', 'ultimate_vc' ), 'param_name' => 'color_scheme', 'value' => array( __( 'Black', 'ultimate_vc' ) => 'black', __( 'Red', 'ultimate_vc' ) => 'red', __( 'Blue', 'ultimate_vc' ) => 'blue', __( 'Yellow', 'ultimate_vc' ) => 'yellow', __( 'Green', 'ultimate_vc' ) => 'green', __( 'Gray', 'ultimate_vc' ) => 'gray', __( 'Design Your Own', 'ultimate_vc' ) => 'custom', ), 'description' => __( 'Which color scheme would like to use?', 'ultimate_vc' ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Main background Color', 'ultimate_vc' ), 'param_name' => 'color_bg_main', 'value' => '', 'description' => __( 'Select normal background color.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'color_scheme', 'value' => array( 'custom' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Main text Color', 'ultimate_vc' ), 'param_name' => 'color_txt_main', 'value' => '', 'description' => __( 'Select normal background color.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'color_scheme', 'value' => array( 'custom' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Highlight background Color', 'ultimate_vc' ), 'param_name' => 'color_bg_highlight', 'value' => '', 'description' => __( 'Select highlight background color.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'color_scheme', 'value' => array( 'custom' ), ), ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Highlight text Color', 'ultimate_vc' ), 'param_name' => 'color_txt_highlight', 'value' => '', 'description' => __( 'Select highlight background color.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'color_scheme', 'value' => array( 'custom' ), ), ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Package Name / Title', 'ultimate_vc' ), 'param_name' => 'package_heading', 'admin_label' => true, 'value' => '', 'description' => __( 'Enter the package name or table heading', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-8', ), array( 'type' => 'dropdown', 'heading' => __( 'Package Name / Title Tag', 'ultimate_vc' ), 'param_name' => 'heading_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'h3', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H2', 'ultimate_vc' ) => 'h2', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H5', 'ultimate_vc' ) => 'h5', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'Div', 'ultimate_vc' ) => 'div', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is H3', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-padding-remove vc_col-sm-4', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Sub Heading', 'ultimate_vc' ), 'param_name' => 'package_sub_heading', 'value' => '', 'description' => __( 'Enter short description for this package', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-8', ), array( 'type' => 'dropdown', 'heading' => __( 'Sub Heading Tag', 'ultimate_vc' ), 'param_name' => 'sub_heading_tag', 'value' => array( __( 'Default', 'ultimate_vc' ) => 'h5', __( 'H1', 'ultimate_vc' ) => 'h1', __( 'H2', 'ultimate_vc' ) => 'h2', __( 'H3', 'ultimate_vc' ) => 'h3', __( 'H4', 'ultimate_vc' ) => 'h4', __( 'H6', 'ultimate_vc' ) => 'h6', __( 'Div', 'ultimate_vc' ) => 'div', __( 'p', 'ultimate_vc' ) => 'p', __( 'span', 'ultimate_vc' ) => 'span', ), 'description' => __( 'Default is H5', 'ultimate_vc' ), 'edit_field_class' => 'ult-param-padding-remove vc_col-sm-4', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Package Price', 'ultimate_vc' ), 'param_name' => 'package_price', 'value' => '', 'description' => __( 'Enter the price for this package. e.g. $157', 'ultimate_vc' ), ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Price Unit', 'ultimate_vc' ), 'param_name' => 'package_unit', 'value' => '', 'description' => __( 'Enter the price unit for this package. e.g. per month', 'ultimate_vc' ), ), array( 'type' => 'textarea_html', 'class' => '', 'heading' => __( 'Features', 'ultimate_vc' ), 'param_name' => 'content', 'value' => '', 'description' => __( 'Create the features list using un-ordered list elements.', 'ultimate_vc' ), 'edit_field_class' => 'ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Button Text', 'ultimate_vc' ), 'param_name' => 'package_btn_text', 'value' => '', 'description' => __( 'Enter call to action button text', 'ultimate_vc' ), ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Button Link', 'smile' ), 'param_name' => 'package_link', 'value' => '', 'description' => __( 'Select / enter the link for call to action button', 'ultimate_vc' ), ), array( 'type' => 'checkbox', 'class' => '', 'heading' => '', 'param_name' => 'package_featured', 'value' => array( 'Make this pricing box as featured' => 'enable' ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Minimum Height For Price Box', 'ultimate_vc' ), 'param_name' => 'min_ht', 'min' => '', 'suffix' => 'px', 'description' => __( 'Adjust height of your price box.', 'ultimate_vc' ), ), array( 'type' => 'textfield', 'heading' => __( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'ultimate_vc' ), ), /* typoraphy - package */ array( 'type' => 'ult_param_heading', 'text' => __( 'Package Name/Title Settings', 'ultimate_vc' ), 'param_name' => 'package_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'package_name_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'package_name_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'package_name_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'package_name_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'package_name_font_color', 'value' => '', 'group' => 'Typography', ), /* typoraphy - sub heading */ array( 'type' => 'ult_param_heading', 'text' => __( 'Sub-Heading Settings', 'ultimate_vc' ), 'param_name' => 'subheading_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'subheading_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'subheading_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'subheading_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'subheading_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'subheading_font_color', 'value' => '', 'group' => 'Typography', ), /* typoraphy - price */ array( 'type' => 'ult_param_heading', 'text' => __( 'Price Settings', 'ultimate_vc' ), 'param_name' => 'price_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'price_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'price_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'price_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'price_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'price_font_color', 'value' => '', 'group' => 'Typography', ), /* typoraphy - price unit*/ array( 'type' => 'ult_param_heading', 'text' => __( 'Price Unit Settings', 'ultimate_vc' ), 'param_name' => 'price_unit_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'smile' ), 'param_name' => 'price_unit_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'price_unit_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'price_unit_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'price_unit_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'price_unit_font_color', 'value' => '', 'group' => 'Typography', ), /* typoraphy - feature*/ array( 'type' => 'ult_param_heading', 'text' => __( 'Features Settings', 'ultimate_vc' ), 'param_name' => 'features_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'features_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'features_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'features_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'features_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'features_font_color', 'value' => '', 'group' => 'Typography', ), /* typoraphy - button */ array( 'type' => 'ult_param_heading', 'text' => __( 'Button Settings', 'ultimate_vc' ), 'param_name' => 'button_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'button_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'button_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => 'font-size', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'button_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'button_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'button_font_color', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_price_box', 'group' => __( 'Design ', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), // params. ) );// vc_map. } } /** * Render function for Pricing Tables Module. * * @param array $atts represts module attribuits. * @param string $content value has been set to null. * @access public */ public function ultimate_pricing_shortcode( $atts, $content = null ) { $ult_price_settings = shortcode_atts( array( 'design_style' => 'design01', ), $atts ); $output = ''; require_once __ULTIMATE_ROOT__ . '/templates/pricing/pricing-' . $ult_price_settings['design_style'] . '.php'; $design_func = 'ult_price_generate_' . $ult_price_settings['design_style']; $output .= $design_func( $atts, $content ); $is_preset = false; // Display settings for Preset. if ( isset( $_GET['preset'] ) ) { // PHPCS:ignore:WordPress.Security.NonceVerification.Recommended $is_preset = true; } if ( $is_preset ) { $text = 'array ( '; foreach ( $atts as $key => $att ) { $text .= '
'; $output .= $text; $output .= ''; } return $output; } } // class Ultimate_Pricing_Table. new Ultimate_Pricing_Table(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ultimate_Pricing' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Ultimate_Pricing extends WPBakeryShortCode { } } } modules/ultimate_buttons.php 0000644 00000112300 15021177567 0012337 0 ustar 00 '', 'btn_link' => '', 'btn_size' => 'ubtn-normal', 'btn_width' => '', 'btn_height' => '', 'btn_padding_left' => '', 'btn_padding_top' => '', 'btn_hover' => 'ubtn-no-hover-bg', 'btn_bg_color' => '#e0e0e0', 'btn_radius' => '', 'btn_shadow' => '', 'btn_shadow_color' => '', 'btn_shadow_size' => '', 'btn_bg_color_hover' => '', 'btn_title_color_hover' => '', 'btn_border_style' => '', 'btn_color_border' => '', 'btn_color_border_hover' => '', 'btn_border_size' => '', 'btn_font_family' => '', 'btn_font_style' => '', 'btn_title_color' => '#000000', 'btn_font_size' => '', 'btn_line_height' => '', 'icon' => '', 'icon_size' => '', 'icon_color' => '', 'btn_icon_pos' => '', 'btn_anim_effect' => 'none', 'button_bg_img' => '', 'btn_align' => 'ubtn-left', 'btn_shadow_color_hover' => '', 'btn_shadow_click' => '', 'enable_tooltip' => '', 'tooltip_text' => '', 'tooltip_pos' => 'left', 'rel_attr' => '', 'el_class' => '', 'css_adv_btn' => '', 'ult_btn_custom_onclick' => '', 'ult_btn_custom_onclick_code' => '', ), $atts ); $style = ''; $hover_style = ''; $btn_style_inline = ''; $link_sufix = ''; $link_prefix = ''; $img = ''; $shadow_hover = ''; $shadow_click = ''; $shadow_color = ''; $box_shadow = ''; $main_extra_class = ''; $main_extra_class = $ult_ub_settings['el_class']; $tooltip = ''; $tooltip_class = ''; $ult_ub_settings['el_class'] = ''; $css_btn_design = ''; $ult_ub_settings['el_class'] .= ' ' . $ult_ub_settings['btn_anim_effect'] . ' '; $uniqid = uniqid(); $tooltip_class = 'tooltip-' . $uniqid; $vc_version = ( defined( 'WPB_VC_VERSION' ) ) ? WPB_VC_VERSION : 0; $is_vc_49_plus = ( version_compare( 4.9, $vc_version, '<=' ) ) ? 'ult-adjust-bottom-margin' : ''; $css_btn_design = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_ub_settings['css_adv_btn'], ' ' ), 'ult_buttons', $atts ); $css_btn_design = esc_attr( $css_btn_design ); if ( 'yes' == $ult_ub_settings['enable_tooltip'] ) { wp_enqueue_script( 'ultimate-tooltip' ); wp_enqueue_style( 'ultimate-tooltip' ); $tooltip .= 'data-toggle="tooltip" data-placement="' . esc_attr( $ult_ub_settings['tooltip_pos'] ) . '" title="' . esc_attr( $ult_ub_settings['tooltip_text'] ) . '"'; $tooltip_class .= ' ubtn-tooltip ' . $ult_ub_settings['tooltip_pos']; } if ( 'enable' !== $ult_ub_settings['btn_shadow_click'] ) { $shadow_click = 'none'; } if ( '' == $ult_ub_settings['btn_shadow_color_hover'] ) { $shadow_color = $ult_ub_settings['btn_shadow_color']; } else { $shadow_color = $ult_ub_settings['btn_shadow_color_hover']; } $alt = 'icon'; if ( '' !== $ult_ub_settings['button_bg_img'] ) { $img = apply_filters( 'ult_get_img_single', $ult_ub_settings['button_bg_img'], 'url' ); $alt = apply_filters( 'ult_get_img_single', $ult_ub_settings['button_bg_img'], 'alt' ); } if ( '' !== $ult_ub_settings['btn_link'] ) { $href = vc_build_link( $ult_ub_settings['btn_link'] ); if ( '' !== $href['url'] ) { $url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : ''; $target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : ''; $link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : ''; $rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : ''; if ( '' == $rel ) { $rel .= esc_attr( $ult_ub_settings['rel_attr'] ); } else { $rel .= ' ' . esc_attr( $ult_ub_settings['rel_attr'] ); } if ( 'ubtn-block' == $ult_ub_settings['btn_size'] ) { $tooltip_class .= ' ubtn-block'; } $link_prefix .= ''; $link_sufix .= ''; } } else { if ( '' !== $ult_ub_settings['enable_tooltip'] ) { $link_prefix .= ''; $link_sufix .= ''; } } if ( '' !== $ult_ub_settings['btn_icon_pos'] && 'none' !== $ult_ub_settings['icon'] && '' !== $ult_ub_settings['icon'] ) { $ult_ub_settings['el_class'] .= ' ubtn-sep-icon ' . $ult_ub_settings['btn_icon_pos'] . ' '; } if ( '' != $ult_ub_settings['btn_font_family'] ) { $mhfont_family = get_ultimate_font_family( $ult_ub_settings['btn_font_family'] ); $btn_style_inline .= 'font-family:\'' . $mhfont_family . '\';'; } $btn_style_inline .= get_ultimate_font_style( $ult_ub_settings['btn_font_style'] ); $adv_btn_id = 'ubtn-' . wp_rand( 1000, 9999 ); if ( is_numeric( $ult_ub_settings['btn_font_size'] ) ) { $ult_ub_settings['btn_font_size'] = 'desktop:' . $ult_ub_settings['btn_font_size'] . 'px;'; } if ( is_numeric( $ult_ub_settings['btn_line_height'] ) ) { $ult_ub_settings['btn_line_height'] = 'desktop:' . $ult_ub_settings['btn_line_height'] . 'px'; } $advbtnargs = array( 'target' => '#' . $adv_btn_id, 'media_sizes' => array( 'font-size' => $ult_ub_settings['btn_font_size'], // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input. 'line-height' => $ult_ub_settings['btn_line_height'], ), ); $data_list = get_ultimate_vc_responsive_media_css( $advbtnargs ); $style .= $btn_style_inline; if ( 'ubtn-custom' == $ult_ub_settings['btn_size'] ) { $style .= 'width:' . $ult_ub_settings['btn_width'] . 'px;'; $style .= 'min-height:' . $ult_ub_settings['btn_height'] . 'px;'; $style .= 'padding:' . $ult_ub_settings['btn_padding_top'] . 'px ' . $ult_ub_settings['btn_padding_left'] . 'px;'; } if ( '' !== $ult_ub_settings['btn_border_style'] ) { $style .= 'border-radius:' . $ult_ub_settings['btn_radius'] . 'px;'; $style .= 'border-width:' . $ult_ub_settings['btn_border_size'] . 'px;'; $style .= 'border-color:' . $ult_ub_settings['btn_color_border'] . ';'; $style .= 'border-style:' . $ult_ub_settings['btn_border_style'] . ';'; } else { $style .= 'border:none;'; } if ( '' !== $ult_ub_settings['btn_shadow'] ) { switch ( $ult_ub_settings['btn_shadow'] ) { case 'shd-top': $style .= 'box-shadow: 0 -' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $ult_ub_settings['btn_shadow_color'] . ';'; $box_shadow .= '0 -' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $ult_ub_settings['btn_shadow_color'] . ';'; if ( 'none' !== $shadow_click ) { $shadow_hover .= '0 -3px ' . $shadow_color . ';'; } else { $shadow_hover .= '0 -' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $shadow_color . ';'; } break; case 'shd-bottom': $style .= 'box-shadow: 0 ' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $ult_ub_settings['btn_shadow_color'] . ';'; $box_shadow .= '0 ' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $ult_ub_settings['btn_shadow_color'] . ';'; if ( 'none' !== $shadow_click ) { $shadow_hover .= '0 3px ' . $shadow_color . ';'; } else { $shadow_hover .= '0 ' . $ult_ub_settings['btn_shadow_size'] . 'px ' . $shadow_color . ';'; } break; case 'shd-left': $style .= 'box-shadow: -' . $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $ult_ub_settings['btn_shadow_color'] . ';'; $box_shadow .= '-' . $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $ult_ub_settings['btn_shadow_color'] . ';'; if ( 'none' !== $shadow_click ) { $shadow_hover .= '-3px 0 ' . $shadow_color . ';'; } else { $shadow_hover .= '-' . $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $shadow_color . ';'; } break; case 'shd-right': $style .= 'box-shadow: ' . $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $ult_ub_settings['btn_shadow_color'] . ';'; $box_shadow .= $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $ult_ub_settings['btn_shadow_color'] . ';'; if ( 'none' !== $shadow_click ) { $shadow_hover .= '3px 0 ' . $shadow_color . ';'; } else { $shadow_hover .= $ult_ub_settings['btn_shadow_size'] . 'px 0 ' . $shadow_color . ';'; } break; } } $btn_custom_onclick_code = ''; if ( ! empty( $ult_ub_settings['ult_btn_custom_onclick'] ) && $ult_ub_settings['ult_btn_custom_onclick_code'] ) { $btn_custom_onclick_code = 'onclick="' . esc_attr( ult_prepareAtts( $ult_ub_settings['ult_btn_custom_onclick_code'] ) ) . '"'; } if ( '' !== $ult_ub_settings['btn_bg_color'] ) { $style .= 'background: ' . $ult_ub_settings['btn_bg_color'] . ';'; } if ( '' !== $ult_ub_settings['btn_title_color'] ) { $style .= 'color: ' . $ult_ub_settings['btn_title_color'] . ';'; } if ( $ult_ub_settings['btn_shadow'] ) { $ult_ub_settings['el_class'] .= ' ubtn-shd '; } if ( $ult_ub_settings['btn_align'] ) { $ult_ub_settings['el_class'] .= ' ' . $ult_ub_settings['btn_align'] . ' '; } if ( '' == $ult_ub_settings['btn_title'] && '' !== $ult_ub_settings['icon'] ) { $ult_ub_settings['el_class'] .= ' ubtn-only-icon '; } if ( '' === $ult_ub_settings['btn_link'] ) { $ult_ub_settings['el_class'] .= $main_extra_class; } $output .= ''; $output = $link_prefix . $output . $link_sufix; // Add a wrapper class to handle bottom margin. $wrapper_class = ''; switch ( $ult_ub_settings['btn_align'] ) { case 'ubtn-inline': $wrapper_class = 'ubtn-ctn-inline'; break; case 'ubtn-center': $wrapper_class = 'ubtn-ctn-center'; break; case 'ubtn-right': $wrapper_class = 'ubtn-ctn-right'; break; case 'ubtn-left': default: $wrapper_class = 'ubtn-ctn-left'; break; } if ( '' !== $img ) { $output = '
'; $output .= $text; $output .= ''; // remove backslash once copied. } return $output; } /** * Function to intialize the button module * * @since ---- * @access public */ public function init_buttons() { if ( function_exists( 'vc_map' ) ) { $json = ultimate_get_icon_position_json(); vc_map( array( 'name' => __( 'Advanced Button', 'ultimate_vc' ), 'base' => 'ult_buttons', 'icon' => 'ult_buttons', 'class' => 'ult_buttons', 'content_element' => true, 'controls' => 'full', 'category' => 'Ultimate VC Addons', 'description' => __( 'Create creative buttons.', 'ultimate_vc' ), 'params' => array( array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Button Title', 'ultimate_vc' ), 'param_name' => 'btn_title', 'value' => '', 'description' => '', 'group' => 'General', 'admin_label' => true, ), array( 'type' => 'vc_link', 'class' => '', 'heading' => __( 'Button Link', 'ultimate_vc' ), 'param_name' => 'btn_link', 'value' => '', 'description' => '', 'group' => 'General', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Alignment', 'ultimate_vc' ), 'param_name' => 'btn_align', 'value' => array( 'Left Align' => 'ubtn-left', 'Center Align' => 'ubtn-center', 'Right Align' => 'ubtn-right', 'Inline' => 'ubtn-inline', ), 'description' => '', 'group' => 'General', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Size', 'ultimate_vc' ), 'param_name' => 'btn_size', 'value' => array( __( 'Normal Button', 'ultimate_vc' ) => 'ubtn-normal', __( 'Mini Button', 'ultimate_vc' ) => 'ubtn-mini', __( 'Small Button', 'ultimate_vc' ) => 'ubtn-small', __( 'Large Button', 'ultimate_vc' ) => 'ubtn-large', __( 'Button Block', 'ultimate_vc' ) => 'ubtn-block', __( 'Custom Size', 'ultimate_vc' ) => 'ubtn-custom', ), 'description' => '', 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Button Width', 'ultimate_vc' ), 'param_name' => 'btn_width', 'value' => '', 'min' => 10, 'max' => 1000, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_size', 'value' => 'ubtn-custom', ), 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Button Height', 'ultimate_vc' ), 'param_name' => 'btn_height', 'value' => '', 'min' => 10, 'max' => 1000, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_size', 'value' => 'ubtn-custom', ), 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Button Left / Right Padding', 'ultimate_vc' ), 'param_name' => 'btn_padding_left', 'value' => '', 'min' => 10, 'max' => 1000, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_size', 'value' => 'ubtn-custom', ), 'group' => 'General', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Button Top / Bottom Padding', 'ultimate_vc' ), 'param_name' => 'btn_padding_top', 'value' => '', 'min' => 10, 'max' => 1000, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_size', 'value' => 'ubtn-custom', ), 'group' => 'General', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Button Title Color', 'ultimate_vc' ), 'param_name' => 'btn_title_color', 'value' => '#000000', 'description' => '', 'group' => 'General', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Background Color', 'ultimate_vc' ), 'param_name' => 'btn_bg_color', 'value' => '#e0e0e0', 'description' => '', 'group' => 'General', ), array( 'type' => 'textfield', 'heading' => __( 'Extra class name', 'ultimate_vc' ), 'param_name' => 'el_class', 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'ultimate_vc' ), 'group' => 'General', ), array( 'type' => 'textfield', 'heading' => __( 'Rel Attribute', 'ultimate_vc' ), 'param_name' => 'rel_attr', 'description' => __( 'This is useful when you want to trigger third party features. Example- prettyPhoto, thickbox etc', 'ultimate_vc' ), 'group' => 'General', ), array( 'type' => 'checkbox', 'heading' => __( 'Advanced on click action', 'ultimate_vc' ), 'param_name' => 'ult_btn_custom_onclick', 'description' => __( 'Insert inline onclick javascript action.', 'ultimate_vc' ), 'group' => 'General', ), array( 'type' => 'textfield', 'heading' => __( 'On click code', 'ultimate_vc' ), 'param_name' => 'ult_btn_custom_onclick_code', 'description' => __( 'Enter onclick action code.', 'ultimate_vc' ), 'dependency' => array( 'element' => 'ult_btn_custom_onclick', 'not_empty' => true, ), 'group' => 'General', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Hover Background Effect', 'ultimate_vc' ), 'param_name' => 'btn_hover', 'value' => array( __( 'No Effect', 'ultimate_vc' ) => 'ubtn-no-hover-bg', __( 'Fade Background', 'ultimate_vc' ) => 'ubtn-fade-bg', __( 'Fill Background from Top', 'ultimate_vc' ) => 'ubtn-top-bg', __( 'Fill Background from Bottom', 'ultimate_vc' ) => 'ubtn-bottom-bg', __( 'Fill Background from Left', 'ultimate_vc' ) => 'ubtn-left-bg', __( 'Fill Background from Right', 'ultimate_vc' ) => 'ubtn-right-bg', __( 'Fill Background from Center Horizontally', 'ultimate_vc' ) => 'ubtn-center-hz-bg', __( 'Fill Background from Center Vertically', 'ultimate_vc' ) => 'ubtn-center-vt-bg', __( 'Fill Background from Center Diagonal', 'ultimate_vc' ) => 'ubtn-center-dg-bg', ), 'description' => '', 'group' => 'Background', ), array( 'type' => 'dropdown', 'class' => 'no-ult-effect', 'edit_field_class' => 'ult-no-effect vc_column vc_col-sm-12', 'heading' => __( 'Button Hover Animation Effects', 'ultimate_vc' ), 'param_name' => 'btn_anim_effect', 'value' => array( 'No Effect' => 'none', 'Grow' => 'ulta-grow', 'Shrink' => 'ulta-shrink', 'Pulse' => 'ulta-pulse', 'Pulse Grow' => 'ulta-pulse-grow', 'Pulse Shrink' => 'ulta-pulse-shrink', 'Push' => 'ulta-push', 'Pop' => 'ulta-pop', 'Rotate' => 'ulta-rotate', 'Grow Rotate' => 'ulta-grow-rotate', 'Float' => 'ulta-float', 'Sink' => 'ulta-sink', 'Hover' => 'ulta-hover', 'Hang' => 'ulta-hang', 'Skew' => 'ulta-skew', 'Skew Forward' => 'ulta-skew-forward', 'Skew Backward' => 'ulta-skew-backward', 'Wobble Horizontal' => 'ulta-wobble-horizontal', 'Wobble Vertical' => 'ulta-wobble-vertical', 'Wobble to Bottom Right' => 'ulta-wobble-to-bottom-right', 'Wobble to Top Right' => 'ulta-wobble-to-top-right', 'Wobble Top' => 'ulta-wobble-top', 'Wobble Bottom' => 'ulta-wobble-bottom', 'Wobble Skew' => 'ulta-wobble-skew', 'Buzz' => 'ulta-buzz', 'Buzz Out' => 'ulta-buzz-out', ), 'description' => '', 'group' => 'Background', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Hover Background Color', 'ultimate_vc' ), 'param_name' => 'btn_bg_color_hover', 'value' => '', 'description' => '', 'group' => 'Background', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Hover Text Color', 'ultimate_vc' ), 'param_name' => 'btn_title_color_hover', 'value' => '', 'description' => '', 'group' => 'Background', ), array( 'type' => 'ult_img_single', 'class' => '', 'heading' => __( 'Button Background Image', 'ultimate_vc' ), 'param_name' => 'button_bg_img', 'value' => '', 'description' => __( 'Upload the image on which you want to place the button.', 'ultimate_vc' ), 'group' => 'Background', ), array( 'type' => 'icon_manager', 'class' => '', 'heading' => __( 'Select Icon ', 'ultimate_vc' ), 'param_name' => 'icon', 'value' => '', 'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose, you can", 'ultimate_vc' ) . " " . __( 'add new here', 'ultimate_vc' ) . '.', 'group' => 'Icon', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Size of Icon', 'ultimate_vc' ), 'param_name' => 'icon_size', 'value' => 32, 'min' => 12, 'max' => 72, 'suffix' => 'px', 'description' => __( 'How big would you like it?', 'ultimate_vc' ), 'group' => 'Icon', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Color', 'ultimate_vc' ), 'param_name' => 'icon_color', 'value' => '', 'description' => __( 'Give it a nice paint!', 'ultimate_vc' ), 'group' => 'Icon', ), array( 'type' => 'ult_button', 'class' => '', 'heading' => __( 'Icon Position ', 'ultimate_vc' ), 'param_name' => 'btn_icon_pos', 'value' => '', 'json' => $json, 'description' => '', 'group' => 'Icon', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Border Style', 'ultimate_vc' ), 'param_name' => 'btn_border_style', 'value' => array( 'None' => '', 'Solid' => 'solid', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Inset' => 'inset', 'Outset' => 'outset', ), 'description' => '', 'group' => 'Styling', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color', 'ultimate_vc' ), 'param_name' => 'btn_color_border', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'group' => 'Styling', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Border Color on Hover', 'ultimate_vc' ), 'param_name' => 'btn_color_border_hover', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'group' => 'Styling', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Width', 'ultimate_vc' ), 'param_name' => 'btn_border_size', 'value' => 1, 'min' => 1, 'max' => 10, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'group' => 'Styling', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Border Radius', 'ultimate_vc' ), 'param_name' => 'btn_radius', 'value' => 3, 'min' => 0, 'max' => 500, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_border_style', 'not_empty' => true, ), 'group' => 'Styling', ), array( 'type' => 'css_editor', 'heading' => __( 'Css', 'ultimate_vc' ), 'param_name' => 'css_adv_btn', 'group' => __( 'Styling', 'ultimate_vc' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Button Shadow', 'ultimate_vc' ), 'param_name' => 'btn_shadow', 'value' => array( __( 'No Shadow', 'ultimate_vc' ) => '', __( 'Shadow at Top', 'ultimate_vc' ) => 'shd-top', __( 'Shadow at Bottom', 'ultimate_vc' ) => 'shd-bottom', __( 'Shadow at Left', 'ultimate_vc' ) => 'shd-left', __( 'Shadow at Right', 'ultimate_vc' ) => 'shd-right', ), 'group' => 'Shadow', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Shadow Color', 'ultimate_vc' ), 'param_name' => 'btn_shadow_color', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'btn_shadow', 'not_empty' => true, ), 'group' => 'Shadow', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Shadow Color on Hover', 'ultimate_vc' ), 'param_name' => 'btn_shadow_color_hover', 'value' => '', 'description' => '', 'dependency' => array( 'element' => 'btn_shadow', 'not_empty' => true, ), 'group' => 'Shadow', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Shadow Size', 'ultimate_vc' ), 'param_name' => 'btn_shadow_size', 'value' => 5, 'min' => 0, 'max' => 100, 'suffix' => 'px', 'description' => '', 'dependency' => array( 'element' => 'btn_shadow', 'not_empty' => true, ), 'group' => 'Shadow', ), array( 'type' => 'ult_switch', 'class' => '', 'heading' => __( 'Button Click Effect', 'ultimate_vc' ), 'param_name' => 'btn_shadow_click', 'value' => '', 'options' => array( 'enable' => array( 'label' => '', 'on' => 'Yes', 'off' => 'No', ), ), 'description' => __( 'Enable Click effect on hover', 'ultimate_vc' ), 'dependency' => array( 'element' => 'btn_shadow', 'not_empty' => true, ), 'group' => 'Shadow', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'btn_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'btn_font_style', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Font size', 'ultimate_vc' ), 'param_name' => 'btn_font_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'btn_line_height', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Typography', ), array( 'type' => 'checkbox', 'class' => '', 'heading' => __( 'Tooltip Options', 'ultimate_vc' ), 'param_name' => 'enable_tooltip', 'value' => array( 'Enable tooltip on button' => 'yes' ), 'group' => 'Tooltip', ), array( 'type' => 'textfield', 'class' => '', 'heading' => __( 'Text', 'ultimate_vc' ), 'param_name' => 'tooltip_text', 'value' => '', 'dependency' => array( 'element' => 'enable_tooltip', 'value' => 'yes', ), 'group' => 'Tooltip', ), array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Position', 'ultimate_vc' ), 'param_name' => 'tooltip_pos', 'value' => array( __( 'Tooltip from Left', 'ultimate_vc' ) => 'left', __( 'Tooltip from Right', 'ultimate_vc' ) => 'right', __( 'Tooltip from Top', 'ultimate_vc' ) => 'top', __( 'Tooltip from Bottom', 'ultimate_vc' ) => 'bottom', ), 'description' => __( 'Select the tooltip position', 'ultimate_vc' ), 'dependency' => array( 'element' => 'enable_tooltip', 'value' => 'yes', ), 'group' => 'Tooltip', ), array( 'type' => 'ult_param_heading', 'text' => "" . __( 'Watch Video Tutorial', 'ultimate_vc' ) . " ", 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12', 'group' => 'General', ), ), ) ); } } } new Ultimate_Buttons(); if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Ult_Buttons' ) ) { /** * Function that initializes Ultimate Buttons Module * * @class WPBakeryShortCode_Ult_Buttons */ class WPBakeryShortCode_Ult_Buttons extends WPBakeryShortCode { } } } modules/ultimate_video_banner.php 0000644 00000042553 15021177567 0013310 0 ustar 00 __( 'Video Banner', 'ultimate_vc' ), 'base' => 'ultimate_video_banner', 'icon' => 'vc_ultimate_video_banner', 'category' => 'Ultimate VC Addons', 'description' => __( 'Show your video in ease.', 'ultimate_vc' ), 'deprecated' => '3.13.5', 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Link to the video in MP4 Format', 'ultimate_vc' ), 'param_name' => 'video_banner_mp4_link', ), array( 'type' => 'textfield', 'heading' => __( 'Link to the video in WebM / Ogg Format', 'ultimate_vc' ), 'param_name' => 'video_banner_webm_ogg_link', 'description' => __( 'IE, Chrome & Safari', 'ultimate_vc' ) . ' ' . __( 'support', 'ultimate_vc' ) . ' ' . __( 'MP4 format, while Firefox & Opera prefer WebM / Ogg formats.', 'ultimate_vc' ) . ' ' . __( 'You can upload the video through', 'ultimate_vc' ) . ' ' . __( 'WordPress Media Library', 'ultimate_vc' ) . '.', ), array( 'type' => 'ult_img_single', 'heading' => __( 'Placeholder', 'ultimate_vc' ), 'param_name' => 'video_banner_placeholder', ), array( 'type' => 'dropdown', 'heading' => __( 'Effect', 'ultimate_vc' ), 'param_name' => 'video_banner_effect', 'value' => array( __( 'Style 1', 'ultimate_vc' ) => 'ult-vdo-effect-style1', __( 'Style 2', 'ultimate_vc' ) => 'ult-vdo-effect-style2', __( 'Style 3', 'ultimate_vc' ) => 'ult-vdo-effect-style3', __( 'Style 4', 'ultimate_vc' ) => 'ult-vdo-effect-style4', __( 'Style 5', 'ultimate_vc' ) => 'ult-vdo-effect-style5', __( 'Style 6', 'ultimate_vc' ) => 'ult-vdo-effect-style6', __( 'Style 7', 'ultimate_vc' ) => 'ult-vdo-effect-style7', ), ), array( 'type' => 'textfield', 'heading' => __( 'Title', 'ultimate_vc' ), 'param_name' => 'video_banner_title', 'group' => 'Content', ), array( 'type' => 'textarea', 'heading' => __( 'Content', 'ultimate_vc' ), 'param_name' => 'video_banner_content', 'group' => 'Content', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Title Settings', 'ultimate_vc' ), 'param_name' => 'title_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'title_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'title_font_style', 'group' => 'Typography', ), array( 'type' => 'number', 'class' => 'font-size', 'heading' => __( 'Font Size', 'ultimate_vc' ), 'param_name' => 'title_font_size', 'min' => 10, 'suffix' => 'px', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'title_color', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'title_line_height', 'value' => '', 'suffix' => 'px', 'group' => 'Typography', ), array( 'type' => 'ult_param_heading', 'text' => __( 'Desciption Settings', 'ultimate_vc' ), 'param_name' => 'desc_typograpy', 'group' => 'Typography', 'class' => 'ult-param-heading', 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12', ), array( 'type' => 'ultimate_google_fonts', 'heading' => __( 'Font Family', 'ultimate_vc' ), 'param_name' => 'desc_font_family', 'description' => __( 'Select the font of your choice.', 'ultimate_vc' ) . ' ' . __( 'You can', 'ultimate_vc' ) . " " . __( 'add new in the collection here', 'ultimate_vc' ) . '.', 'group' => 'Typography', ), array( 'type' => 'ultimate_google_fonts_style', 'heading' => __( 'Font Style', 'ultimate_vc' ), 'param_name' => 'desc_font_style', 'group' => 'Typography', ), array( 'type' => 'number', 'class' => 'font-size', 'heading' => __( 'Font Size', 'ultimate_vc' ), 'param_name' => 'desc_font_size', 'min' => 10, 'suffix' => 'px', 'group' => 'Typography', ), array( 'type' => 'colorpicker', 'class' => '', 'heading' => __( 'Font Color', 'ultimate_vc' ), 'param_name' => 'desc_color', 'value' => '', 'group' => 'Typography', ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Line Height', 'ultimate_vc' ), 'param_name' => 'desc_line_height', 'value' => '', 'suffix' => 'px', 'group' => 'Typography', ), array( 'type' => 'ultimate_responsive', 'heading' => __( 'Banner Size', 'ultimate_vc' ), 'param_name' => 'video_banner_size', 'unit' => 'px', 'media' => array( 'Desktop' => '', 'Tablet' => '', 'Tablet Portrait' => '', 'Mobile Landscape' => '', 'Mobile' => '', ), 'group' => 'Design', ), array( 'type' => 'colorpicker', 'heading' => __( 'Overlay Color', 'ultimate_vc' ), 'param_name' => 'video_banner_overlay_color', 'group' => 'Design', ), array( 'type' => 'colorpicker', 'heading' => __( 'Overlay Hover Color', 'ultimate_vc' ), 'param_name' => 'video_banner_overlay_hover_color', 'group' => 'Design', ), array( 'type' => 'css_editor', 'heading' => __( 'CSS', 'ultimate_vc' ), 'param_name' => 'video_banner_vc_css', 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border video_banner_css_editor', 'group' => 'Design', ), array( 'type' => 'number', 'heading' => __( 'Start Time', 'ultimate_vc' ), 'param_name' => 'video_banner_start_time', 'suffix' => 'in seconds', 'group' => 'Advanced Settings', ), array( 'type' => 'checkbox', 'heading' => __( 'Mute', 'ultimate_vc' ), 'param_name' => 'video_banner_mute', 'value' => array( __( 'Enable', 'ultimate_vc' ) => 'muted', ), 'group' => 'Advanced Settings', ), ), ) ); } } /** * Render function for Ultimate Heading Module. * * @param array $atts represts module attribuits. * @param string $content value has been set to null. * @access public */ public function ultimate_video_banner_shortcode( $atts, $content = null ) { $ult_vb_settings = shortcode_atts( array( 'video_banner_mp4_link' => '', 'video_banner_webm_ogg_link' => '', 'video_banner_effect' => 'ult-vdo-effect-style1', 'video_banner_placeholder' => '', 'video_banner_title' => '', 'video_banner_content' => '', 'title_font_family' => '', 'title_font_style' => '', 'title_font_size' => '', 'title_color' => '', 'title_line_height' => '', 'desc_font_family' => '', 'desc_font_style' => '', 'desc_font_size' => '', 'desc_color' => '', 'desc_line_height' => '', 'video_banner_size' => '', 'video_banner_overlay_color' => '', 'video_banner_overlay_hover_color' => '', 'video_banner_vc_css' => '', 'video_banner_start_time' => '0', 'video_banner_mute' => '', ), $atts ); $output = ''; $placeholder = ''; $placeholder_css = ''; $vc_css_class = ''; $vc_css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_vb_settings['video_banner_vc_css'], ' ' ), 'ultimate_video_banner', $atts ); $video_id = 'ult-video-banner-' . uniqid( wp_rand() ); $args = array( 'target' => '#' . $video_id, 'media_sizes' => array( 'width' => $ult_vb_settings['video_banner_size'], ), ); $banner_height_responsive_data = get_ultimate_vc_responsive_media_css( $args ); if ( preg_match( '/^#[a-f0-9]{6}$/i', $ult_vb_settings['video_banner_overlay_color'] ) ) { // hex color is valid. $ult_vb_settings['video_banner_overlay_color'] = hex2rgbUltParallax( $ult_vb_settings['video_banner_overlay_color'], $opacity = 0.8 ); } if ( preg_match( '/^#[a-f0-9]{6}$/i', $ult_vb_settings['video_banner_overlay_hover_color'] ) ) { // hex color is valid. $ult_vb_settings['video_banner_overlay_hover_color'] = hex2rgbUltParallax( $ult_vb_settings['video_banner_overlay_hover_color'], $opacity = 0.4 ); } /* ---- main heading styles ---- */ $title_style_inline = ''; if ( '' != $ult_vb_settings['title_font_family'] ) { $ult_vb_settings['title_font_family'] = get_ultimate_font_family( $ult_vb_settings['title_font_family'] ); if ( $ult_vb_settings['title_font_family'] ) { $title_style_inline .= 'font-family:\'' . $ult_vb_settings['title_font_family'] . '\';'; } } // main heading font style. $title_style_inline .= get_ultimate_font_style( $ult_vb_settings['title_font_style'] ); // attach font size if set. if ( '' != $ult_vb_settings['title_font_size'] ) { $title_style_inline .= 'font-size:' . $ult_vb_settings['title_font_size'] . 'px;'; } // attach font color if set. if ( '' != $ult_vb_settings['title_color'] ) { $title_style_inline .= 'color:' . $ult_vb_settings['title_color'] . ';'; } // line height. if ( '' != $ult_vb_settings['title_line_height'] ) { $title_style_inline .= 'line-height:' . $ult_vb_settings['title_line_height'] . 'px;'; } /* ---- description styles ---- */ $desc_style_inline = ''; if ( '' != $ult_vb_settings['desc_font_family'] ) { $ult_vb_settings['desc_font_family'] = get_ultimate_font_family( $ult_vb_settings['desc_font_family'] ); if ( $ult_vb_settings['desc_font_family'] ) { $desc_style_inline .= 'font-family:\'' . $ult_vb_settings['desc_font_family'] . '\';'; } } // desc font style. $desc_style_inline .= get_ultimate_font_style( $ult_vb_settings['desc_font_style'] ); // attach font size if set. if ( '' != $ult_vb_settings['desc_font_size'] ) { $desc_style_inline .= 'font-size:' . $ult_vb_settings['desc_font_size'] . 'px;'; } // attach font color if set. if ( '' != $ult_vb_settings['desc_color'] ) { $desc_style_inline .= 'color:' . $ult_vb_settings['desc_color'] . ';'; } // line height. if ( '' != $ult_vb_settings['desc_line_height'] ) { $desc_style_inline .= 'line-height:' . $ult_vb_settings['desc_line_height'] . 'px;'; } if ( '' != $ult_vb_settings['video_banner_placeholder'] ) { $img_info = apply_filters( 'ult_get_img_single', $ult_vb_settings['video_banner_placeholder'], 'url', 'full' ); $placeholder = $img_info; $placeholder_css = 'background-image:url(' . esc_url( $placeholder ) . ');'; } $output = '
'; $output .= $text; $output .= ''; } return $output; } } } if ( class_exists( 'AIO_Just_Icon' ) ) { $aio_just_icon = new AIO_Just_Icon(); } if ( class_exists( 'WPBakeryShortCode' ) && ! class_exists( 'WPBakeryShortCode_Just_Icon' ) ) { /** * Function that checks if the class is exists or not. */ class WPBakeryShortCode_Just_Icon extends WPBakeryShortCode { } } modules/ultimate_modals.php 0000644 00000202260 15021177567 0012125 0 ustar 00 'none', 'icon' => '', 'icon_img' => '', 'modal_on' => 'ult-button', 'modal_on_selector' => '', 'close_icon_position' => 'top-right', 'modal_contain' => 'ult-html', 'onload_delay' => '2', 'init_extra_class' => '', 'btn_size' => 'sm', 'overlay_bg_color' => '#333333', 'overlay_bg_opacity' => '80', 'btn_bg_color' => '#333333', 'btn_bg_hover_color' => '', 'btn_txt_color' => '#FFFFFF', 'img_close_background_color' => '', 'keypress_enable_controls' => 'keypress_controls', 'overlay_click_enable_controls' => 'overlay_click_controls', 'btn_text' => '', 'read_text' => '', 'txt_color' => '#f60f60', 'btn_img' => '', 'modal_title' => '', 'modal_size' => 'small', 'modal_style' => 'overlay-cornerbottomleft', 'content_bg_color' => '', 'content_text_color' => '', 'header_bg_color' => '', 'header_text_color' => '#333333', 'modal_on_align' => 'center', 'modal_border_style' => 'solid', 'modal_border_width' => '2', 'modal_border_color' => '#333333', 'modal_border_radius' => '0', 'el_class' => '', 'img_size' => '', 'header_typography' => '', 'header_font' => '', 'header_font_style' => '', 'header_font_size' => '', 'header_line_height' => '', 'content_font' => '', 'content_font_style' => '', 'content_font_size' => '', 'content_line_height' => '', 'trigger_text_font' => '', 'trigger_text_font_style' => '', 'trigger_text_font_size' => '', 'trigger_text_line_height' => '', 'button_text_font' => '', 'button_text_font_style' => '', 'button_text_font_size' => '', 'button_text_line_height' => '', 'ult_hide_modal' => '', 'ult_hide_modal_tablet' => '', 'ult_hide_modal_mobile' => '', 'css_modal_box' => '', ), $atts, 'ultimate_modal' ); $ult_modal_box_settings['css_modal_box'] = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $ult_modal_box_settings['css_modal_box'], ' ' ), 'ultimate_modal', $atts ); $ult_modal_box_settings['css_modal_box'] = esc_attr( $ult_modal_box_settings['css_modal_box'] ); $vc_version = ( defined( 'WPB_VC_VERSION' ) ) ? WPB_VC_VERSION : 0; $is_vc_49_plus = ( version_compare( 4.9, $vc_version, '<=' ) ) ? 'ult-adjust-bottom-margin' : ''; $html = ''; $style = ''; $box_icon = ''; $modal_class = ''; $modal_data_class = ''; $uniq = ''; $overlay_bg = ''; $trigger_text_style = ''; $content_style = ''; $header_style = ''; $border_style = ''; $button_text_style = ''; if ( 'ult-button' == $ult_modal_box_settings['modal_on'] ) { $ult_modal_box_settings['modal_on'] = 'button'; } // Create style for content background color. if ( '' !== $ult_modal_box_settings['content_bg_color'] ) { $content_style .= 'background:' . $ult_modal_box_settings['content_bg_color'] . ';'; } // Create style for content text color. if ( '' !== $ult_modal_box_settings['content_text_color'] ) { $content_style .= 'color:' . $ult_modal_box_settings['content_text_color'] . ';'; } if ( '' != $ult_modal_box_settings['content_font'] ) { $font_family = get_ultimate_font_family( $ult_modal_box_settings['content_font'] ); if ( '' != $font_family ) { $content_style .= 'font-family:\'' . $font_family . '\';'; } } if ( '' != $ult_modal_box_settings['content_font_style'] ) { $content_style .= get_ultimate_font_style( $ult_modal_box_settings['content_font_style'] ); } // Responsive param. if ( is_numeric( $ult_modal_box_settings['content_font_size'] ) ) { $ult_modal_box_settings['content_font_size'] = 'desktop:' . $ult_modal_box_settings['content_font_size'] . 'px;'; } if ( is_numeric( $ult_modal_box_settings['content_line_height'] ) ) { $ult_modal_box_settings['content_line_height'] = 'desktop:' . $ult_modal_box_settings['content_line_height'] . 'px;'; } $modal_uid = 'ult-modal-wrap-' . wp_rand( 0000, 9999 ); $modal_content_args = array( 'target' => '#' . $modal_uid . ' .ult_modal-body', 'media_sizes' => array( 'font-size' => $ult_modal_box_settings['content_font_size'], 'line-height' => $ult_modal_box_settings['content_line_height'], ), ); $madal_content_data_list = get_ultimate_vc_responsive_media_css( $modal_content_args ); // Create style for header background color. if ( '' !== $ult_modal_box_settings['header_bg_color'] ) { $header_style .= 'background:' . $ult_modal_box_settings['header_bg_color'] . ';'; } // Create style for header text color. if ( '' !== $ult_modal_box_settings['header_text_color'] ) { $header_style .= 'color:' . $ult_modal_box_settings['header_text_color'] . ';'; } if ( '' != $ult_modal_box_settings['header_font'] ) { $font_family = get_ultimate_font_family( $ult_modal_box_settings['header_font'] ); if ( '' != $font_family ) { $header_style .= 'font-family:\'' . $font_family . '\';'; } } if ( '' != $ult_modal_box_settings['header_font_style'] ) { $header_style .= get_ultimate_font_style( $ult_modal_box_settings['header_font_style'] ); } // Responsive param. if ( is_numeric( $ult_modal_box_settings['header_font_size'] ) ) { $ult_modal_box_settings['header_font_size'] = 'desktop:' . $ult_modal_box_settings['header_font_size'] . 'px;'; } if ( is_numeric( $ult_modal_box_settings['header_line_height'] ) ) { $ult_modal_box_settings['header_line_height'] = 'desktop:' . $ult_modal_box_settings['header_line_height'] . 'px;'; } $modal_heading_args = array( 'target' => '#' . $modal_uid . ' .ult_modal-title', 'media_sizes' => array( 'font-size' => $ult_modal_box_settings['header_font_size'], 'line-height' => $ult_modal_box_settings['header_line_height'], ), ); $madal_heading_data_list = get_ultimate_vc_responsive_media_css( $modal_heading_args ); if ( '' != $ult_modal_box_settings['trigger_text_font'] ) { $font_family = get_ultimate_font_family( $ult_modal_box_settings['trigger_text_font'] ); if ( '' != $font_family ) { $trigger_text_style .= 'font-family:\'' . $font_family . '\';'; } } if ( '' != $ult_modal_box_settings['trigger_text_font_style'] ) { $trigger_text_style .= get_ultimate_font_style( $ult_modal_box_settings['trigger_text_font_style'] ); } // Responsive param. if ( is_numeric( $ult_modal_box_settings['trigger_text_font_size'] ) ) { $ult_modal_box_settings['trigger_text_font_size'] = 'desktop:' . $ult_modal_box_settings['trigger_text_font_size'] . 'px;'; } if ( is_numeric( $ult_modal_box_settings['trigger_text_line_height'] ) ) { $ult_modal_box_settings['trigger_text_line_height'] = 'desktop:' . $ult_modal_box_settings['trigger_text_line_height'] . 'px;'; } $modal_trgs_id = 'modal-trg-txt-wrap-' . wp_rand( 1000, 9999 ); $modal_trg_args = array( 'target' => '#' . $modal_trgs_id . ' .mycust', 'media_sizes' => array( 'font-size' => $ult_modal_box_settings['trigger_text_font_size'], 'line-height' => $ult_modal_box_settings['trigger_text_line_height'], ), ); $madal_trg_data_list = get_ultimate_vc_responsive_media_css( $modal_trg_args ); if ( '' != $ult_modal_box_settings['button_text_font'] ) { $font_family = get_ultimate_font_family( $ult_modal_box_settings['button_text_font'] ); if ( '' != $font_family ) { $button_text_style .= 'font-family:\'' . $font_family . '\';'; } } if ( '' != $ult_modal_box_settings['button_text_font_style'] ) { $button_text_style .= get_ultimate_font_style( $ult_modal_box_settings['button_text_font_style'] ); } // Responsive param. if ( is_numeric( $ult_modal_box_settings['button_text_font_size'] ) ) { $ult_modal_box_settings['button_text_font_size'] = 'desktop:' . $ult_modal_box_settings['button_text_font_size'] . 'px;'; } if ( is_numeric( $ult_modal_box_settings['button_text_line_height'] ) ) { $ult_modal_box_settings['button_text_line_height'] = 'desktop:' . $ult_modal_box_settings['button_text_line_height'] . 'px;'; } $button_trg_args = array( 'target' => '#' . $modal_trgs_id . ' .btn-modal', 'media_sizes' => array( 'font-size' => $ult_modal_box_settings['button_text_font_size'], 'line-height' => $ult_modal_box_settings['button_text_line_height'], ), ); $button_trg_data_list = get_ultimate_vc_responsive_media_css( $button_trg_args ); if ( '' !== $ult_modal_box_settings['modal_border_style'] ) { $border_style .= 'border-style:' . $ult_modal_box_settings['modal_border_style'] . ';'; $border_style .= 'border-width:' . $ult_modal_box_settings['modal_border_width'] . 'px;'; $border_style .= 'border-radius:' . $ult_modal_box_settings['modal_border_radius'] . 'px;'; $border_style .= 'border-color:' . $ult_modal_box_settings['modal_border_color'] . ';'; $header_style .= 'border-color:' . $ult_modal_box_settings['modal_border_color'] . ';'; } $ult_modal_box_settings['overlay_bg_opacity'] = ( $ult_modal_box_settings['overlay_bg_opacity'] / 100 ); if ( '' !== $ult_modal_box_settings['overlay_bg_color'] ) { if ( strlen( $ult_modal_box_settings['overlay_bg_color'] ) <= 7 ) { $overlay_bg = ultimate_hex2rgb( $ult_modal_box_settings['overlay_bg_color'], $ult_modal_box_settings['overlay_bg_opacity'] ); } else { $overlay_bg = $ult_modal_box_settings['overlay_bg_color']; } if ( 'overlay-show-cornershape' != $ult_modal_box_settings['modal_style'] && 'overlay-show-genie' != $ult_modal_box_settings['modal_style'] && 'overlay-show-boxes' != $ult_modal_box_settings['modal_style'] ) { $overlay_bg = 'background:' . $overlay_bg . ';'; } else { $overlay_bg = 'fill:' . $overlay_bg . ';'; } } if ( 'onload' == $ult_modal_box_settings['modal_on'] && '' != $ult_modal_box_settings['ult_hide_modal_mobile'] && '' != $ult_modal_box_settings['ult_hide_modal'] ) { if ( ( ! self::uavc_is_medium_device() ) && wp_is_mobile() ) { $ult_modal_box_settings['ult_hide_modal'] = 'modal-hide-' . $ult_modal_box_settings['ult_hide_modal_mobile']; } } if ( 'onload' == $ult_modal_box_settings['modal_on'] && '' != $ult_modal_box_settings['ult_hide_modal_tablet'] && '' != $ult_modal_box_settings['ult_hide_modal'] ) { if ( self::uavc_is_medium_device() ) { $ult_modal_box_settings['ult_hide_modal'] = ' modal-hide-' . $ult_modal_box_settings['ult_hide_modal_tablet']; } } $uniq = uniqid( '', true ); $uniq = str_replace( '.', '-', $uniq ); if ( 'custom' == $ult_modal_box_settings['icon_type'] ) { $ico_img = apply_filters( 'ult_get_img_single', $ult_modal_box_settings['icon_img'], 'url' ); $ico_alt = apply_filters( 'ult_get_img_single', $ult_modal_box_settings['icon_img'], 'alt' ); $box_icon = ' '; } elseif ( 'selector' == $ult_modal_box_settings['icon_type'] ) { if ( '' !== $ult_modal_box_settings['icon'] ) { $box_icon = ' '; } } if ( 'overlay-show-cornershape' != $ult_modal_box_settings['modal_style'] && 'overlay-show-genie' != $ult_modal_box_settings['modal_style'] && 'overlay-show-boxes' != $ult_modal_box_settings['modal_style'] ) { $modal_class = 'overlay-show'; $modal_data_class = 'data-overlay-class="' . esc_attr( $ult_modal_box_settings['modal_style'] ) . '"'; } else { $modal_class = $ult_modal_box_settings['modal_style']; $modal_data_class = ''; } $keypress_controls = ''; $overlay_controls = ''; $keypress_controls_selector = ''; $overlay_controls_selector = ''; if ( 'keypress_controls' == $ult_modal_box_settings['keypress_enable_controls'] ) { $keypress_controls = 'data-keypress-control="keypress-control-enable"'; $keypress_controls_selector = 'keypress-control-enable'; } if ( 'overlay_click_controls' == $ult_modal_box_settings['overlay_click_enable_controls'] ) { $overlay_controls = 'data-overlay-control="overlay-control-enable"'; $overlay_controls_selector = 'overlay-control-enable'; } $html .= '