| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/wst2024/wp-content/plugins/ohio-extra/shortcodes/button/ |
Upload File : |
<?php
/**
* WPBakery Page Builder Ohio Button shortcode params
*/
vc_lean_map( 'ohio_button', 'ohio_button_sc_map' );
function ohio_button_sc_map() {
return array(
'name' => __( 'Button', 'ohio-extra' ),
'description' => __( 'Simple eye catching button', 'ohio-extra' ),
'base' => 'ohio_button',
'category' => __( 'Ohio', 'ohio-extra' ),
'icon' => OHIO_EXTRA_DIR_URL . 'assets/images/shortcodes/button_icon.svg',
'params' => array(
// General
array(
'type' => 'ohio_choose_box',
'group' => __( 'General', 'ohio-extra' ),
'heading' => __( 'Layout type', 'ohio-extra' ),
'param_name' => 'layout',
'value' => array(
array(
'icon' => plugin_dir_url( __FILE__ ) . 'images/wpb_params_023.svg',
'key' => 'fill',
'title' => __( 'Fill', 'ohio-extra' ),
),
array(
'icon' => plugin_dir_url( __FILE__ ) . 'images/wpb_params_024.svg',
'key' => 'outline',
'title' => __( 'Outline', 'ohio-extra' ),
),
array(
'icon' => plugin_dir_url( __FILE__ ) . 'images/wpb_params_025.svg',
'key' => 'flat',
'title' => __( 'Flat', 'ohio-extra' ),
),
array(
'icon' => plugin_dir_url( __FILE__ ) . 'images/wpb_params_026.svg',
'key' => 'link',
'title' => __( 'Link', 'ohio-extra' ),
)
)
),
array(
'type' => 'vc_link',
'group' => __( 'General', 'ohio-extra' ),
'heading' => __( 'Link', 'ohio-extra' ),
'param_name' => 'link',
'description' => __( 'Fill link text field to change the \'Get started\' label.', 'ohio-extra' ),
),
array(
'type' => 'dropdown',
'group' => __( 'General', 'ohio-extra' ),
'heading' => __( 'Button size', 'ohio-extra' ),
'param_name' => 'shape_size',
'std' => 'default',
'value' => array(
__( 'Small', 'ohio-extra' ) => 'small',
__( 'Default', 'ohio-extra' ) => 'default',
__( 'Large', 'ohio-extra' ) => 'large',
__( 'Huge', 'ohio-extra' ) => 'huge',
),
),
array(
'type' => 'dropdown',
'group' => __( 'General', 'ohio-extra' ),
'heading' => __( 'Button position', 'ohio-extra' ),
'param_name' => 'shape_position',
'std' => 'center',
'value' => array(
__( 'Left', 'ohio-extra' ) => 'left',
__( 'Center', 'ohio-extra' ) => 'center',
__( 'Right', 'ohio-extra' ) => 'right',
),
'description' => __( 'You can choose button alignment position.', 'ohio-extra' ),
),
array(
'type' => 'ohio_check',
'group' => __( 'General', 'ohio-extra' ),
'heading' => __( 'Full width', 'ohio-extra' ),
'param_name' => 'full_width',
'value' => array(
__( 'Yes, set 100% width', 'ohio-extra' ) => '0'
),
),
// Icon
array(
'type' => 'ohio_check',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Add icon', 'ohio-extra' ),
'param_name' => 'icon_use',
'value' => array(
__( 'Yes, add icon', 'ohio-extra' ) => '0'
),
'description' => __( 'You can add icon instead or with text.', 'ohio-extra' )
),
array(
'type' => 'ohio_check',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Swap icon to text on hover', 'ohio-extra' ),
'param_name' => 'text_on_hover',
'value' => array(
__( 'Yes', 'ohio-extra' ) => '0'
),
'dependency' => array(
'element' => 'icon_use',
'value' => '1'
),
'description' => __( 'This add "rolling" effect on hover.', 'ohio-extra' ),
),
array(
'type' => 'dropdown',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Icon position', 'ohio-extra' ),
'param_name' => 'icon_position',
'std' => 'left',
'value' => array(
__( 'Left', 'ohio-extra' ) => 'left',
__( 'Right', 'ohio-extra' ) => 'right',
),
'dependency' => array(
'element' => 'icon_use',
'value' => '1'
)
),
array(
'type' => 'dropdown',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Icon type', 'ohio-extra' ),
'param_name' => 'icon_type',
'value' => array(
__( 'Font icon', 'ohio-extra' ) => 'font_icon',
__( 'Custom image', 'ohio-extra' ) => 'user_image'
),
'dependency' => array(
'element' => 'icon_use',
'value' => '1'
),
'description' => __( 'Choose icon from font icons packs or your custom image.', 'ohio-extra' ),
),
array(
'type' => 'ohio_icon_picker',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Icon', 'ohio-extra' ),
'param_name' => 'icon_as_icon',
'description' => __( 'Choose icon.', 'ohio-extra' ),
'settings' => array(),
'dependency' => array(
'element' => 'icon_type',
'value' => array(
'font_icon'
)
)
),
array(
'type' => 'attach_image',
'group' => __( 'Icon', 'ohio-extra' ),
'heading' => __( 'Icon image', 'ohio-extra' ),
'param_name' => 'icon_as_image',
'description' => __( 'Choose icon image.', 'ohio-extra' ),
'dependency' => array(
'element' => 'icon_type',
'value' => array(
'user_image'
)
)
),
// Typography
array(
'type' => 'ohio_divider',
'group' => __( 'Typography', 'ohio-extra' ),
'param_name' => 'typo_tab_divider_heading',
'value' => __( 'Button text', 'ohio-extra' ),
),
array(
'type' => 'ohio_typography',
'group' => __( 'Typography', 'ohio-extra' ),
'param_name' => 'title_typo',
),
array(
'type' => 'ohio_divider',
'group' => __( 'Typography', 'ohio-extra' ),
'param_name' => 'typo_tab_divider_heading_hover',
'value' => __( 'Button text on hover', 'ohio-extra' )
),
array(
'type' => 'ohio_typography',
'group' => __( 'Typography', 'ohio-extra' ),
'param_name' => 'title_typo_hover'
),
// Color settings
array(
'type' => 'ohio_divider',
'group' => __( 'Styles & Colors', 'ohio-extra' ),
'param_name' => 'color_settings_title',
'value' => __( 'Color settings', 'ohio-extra' ),
),
array(
'type' => 'ohio_colorpicker',
'group' => __( 'Styles & Colors', 'ohio-extra' ),
'heading' => __( 'Button background', 'ohio-extra' ),
'param_name' => 'color',
'description' => __( 'This color is also used for button border.', 'ohio-extra' ),
),
// Custom CSS Class
array(
'type' => 'ohio_divider',
'group' => __( 'Styles & Colors', 'ohio-extra' ),
'param_name' => 'other_settings_title',
'value' => __( 'Other', 'ohio-extra' ),
),
array(
'type' => 'textfield',
'group' => __( 'Styles & Colors', 'ohio-extra' ),
'heading' => __( 'Custom CSS class', 'ohio-extra' ),
'param_name' => 'css_class',
'description' => __( 'If you want to add own styles to a specific unit, use this field to add custom CSS class.', 'ohio-extra' )
),
// Appear Effect
array(
'type' => 'dropdown',
'group' => __( 'Appear Effect', 'ohio-extra' ),
'heading' => __( 'Appear effect', 'ohio-extra' ),
'param_name' => 'appearance_effect',
'value' => array(
__( 'None', 'ohio-extra' ) => 'none',
__( 'Fade up', 'ohio-extra' ) => 'fade-up',
__( 'Fade left', 'ohio-extra' ) => 'fade-left',
__( 'Fade right', 'ohio-extra' ) => 'fade-right',
__( 'Slide up', 'ohio-extra' ) => 'slide-up',
__( 'Flip up', 'ohio-extra' ) => 'flip-up',
__( 'Zoom in', 'ohio-extra' ) => 'zoom-in'
)
),
array(
'type' => 'textfield',
'group' => __( 'Appear Effect', 'ohio-extra' ),
'heading' => __( 'Animation duration', 'ohio-extra' ),
'param_name' => 'appearance_duration',
'description' => __( 'Duration accept values from 50 to 3000 (ms), with step 50.', 'ohio-extra' ),
),
array(
'type' => 'textfield',
'group' => __( 'Appear Effect', 'ohio-extra' ),
'heading' => __( 'Animation delay', 'ohio-extra' ),
'param_name' => 'appearance_delay',
'description' => __( 'A delay before animation, accepted values are in range from 50 to 3000 (ms), with a step of 50.', 'ohio-extra' ),
),
array(
'type' => 'ohio_check',
'group' => __( 'Appear Effect', 'ohio-extra' ),
'heading' => __( 'Animation repeat', 'ohio-extra' ),
'description' => 'Repeat animation while scrolling page up and down',
'param_name' => 'appearance_once',
'value' => array(
__( 'Yes', 'ohio-extra' ) => '1'
)
),
)
);
}