BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
wp-content
/
plugins
/
porto-functionality
/
shortcodes
/
shortcodes
📤 Upload
📝 New File
📁 New Folder
Close
Editing: porto_info_list_item.php
<?php // Porto info_list_item add_action( 'vc_after_init', 'porto_load_info_list_item_shortcode' ); function porto_load_info_list_item_shortcode() { $custom_class = porto_vc_custom_class(); vc_map( array( 'name' => __( 'Porto Info List Item', 'porto-functionality' ), 'base' => 'porto_info_list_item', 'icon' => PORTO_WIDGET_URL . 'info-list.png', 'class' => 'porto-wpb-widget porto_info_list_item', 'category' => __( 'Porto', 'porto-functionality' ), 'description' => __( 'Text blocks connected together in one list.', 'porto-functionality' ), 'as_child' => array( 'only' => 'porto_info_list' ), 'content_element' => true, 'show_settings_on_create' => true, 'is_container' => false, 'params' => array( array( 'type' => 'dropdown', 'heading' => __( 'Icon Type', 'porto-functionality' ), 'param_name' => 'icon_type', 'value' => array( __( 'Font Awesome', 'porto-functionality' ) => 'fontawesome', __( 'Simple Line Icon', 'porto-functionality' ) => 'simpleline', __( 'Porto Icon', 'porto-functionality' ) => 'porto', __( 'Icon Image', 'porto-functionality' ) => 'image', ), ), array( 'type' => 'iconpicker', 'class' => '', 'heading' => __( 'Icon', 'porto-functionality' ), 'param_name' => 'list_icon', 'description' => __( 'Select the icon.', 'porto-functionality' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'fontawesome' ), ), ), array( 'type' => 'iconpicker', 'class' => '', 'heading' => __( 'Icon', 'porto-functionality' ), 'param_name' => 'list_icon_simpleline', 'description' => __( 'Select the icon.', 'porto-functionality' ), 'settings' => array( 'type' => 'simpleline', 'iconsPerPage' => 4000, ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'simpleline' ), ), ), array( 'type' => 'iconpicker', 'class' => '', 'heading' => __( 'Icon', 'porto-functionality' ), 'param_name' => 'list_icon_porto', 'description' => __( 'Select the icon.', 'porto-functionality' ), 'settings' => array( 'type' => 'porto', 'iconsPerPage' => 4000, ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'porto' ), ), ), array( 'type' => 'attach_image', 'class' => '', 'heading' => __( 'Icon Image', 'porto-functionality' ), 'param_name' => 'list_icon_img', 'description' => __( 'Select the icon image.', 'porto-functionality' ), 'dependency' => array( 'element' => 'icon_type', 'value' => array( 'image' ), ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Desc Font Size (px)', 'porto-functionality' ), 'param_name' => 'desc_font_size', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'font-size: {{VALUE}}px;', ), ), array( 'type' => 'dropdown', 'heading' => __( 'Desc Font Weight', 'porto-functionality' ), 'param_name' => 'desc_font_weight', 'value' => array( __( 'Default', 'porto-functionality' ) => '', '100' => '100', '200' => '200', '300' => '300', '400' => '400', '500' => '500', '600' => '600', '700' => '700', '800' => '800', '900' => '900', ), 'std' => '', 'admin_label' => true, 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'font-weight: {{VALUE}};', ), ), array( 'type' => 'dropdown', 'heading' => __( 'Desc Text Transform', 'porto-functionality' ), 'param_name' => 'desc_text_transform', 'value' => array( __( 'Default', 'porto-functionality' ) => '', __( 'None', 'porto-functionality' ) => 'none', __( 'Uppercase', 'porto-functionality' ) => 'uppercase', __( 'Capitalize', 'porto-functionality' ) => 'capitalize', __( 'Lowercase', 'porto-functionality' ) => 'lowercase', ), 'std' => '', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'text-transform: {{VALUE}};', ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Desc Line Height (px)', 'porto-functionality' ), 'param_name' => 'desc_line_height', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'line-height: {{VALUE}}px;', ), ), array( 'type' => 'number', 'class' => '', 'heading' => __( 'Desc Letter Spacing (px)', 'porto-functionality' ), 'param_name' => 'desc_letter_spacing', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'letter-spacing: {{VALUE}}px;', ), ), array( 'type' => 'colorpicker', 'heading' => __( 'Desc Color', 'porto-functionality' ), 'param_name' => 'desc_color', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc' => 'color: {{VALUE}};', ), ), array( 'type' => 'colorpicker', 'heading' => __( 'Desc Hover Color', 'porto-functionality' ), 'param_name' => 'desc_h_color', 'selectors' => array( '{{WRAPPER}} .porto-info-list-item-desc:hover' => 'color: {{VALUE}}; cursor: pointer;', ), ), array( 'type' => 'textarea_html', 'class' => '', 'heading' => __( 'Description', 'porto-functionality' ), 'param_name' => 'content', 'value' => '', 'description' => __( 'Provide the description for this icon box.', 'porto-functionality' ), 'edit_field_class' => 'vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param', ), $custom_class, ), ) ); class WPBakeryShortCode_porto_info_list_item extends WPBakeryShortCode { } }
Save
Cancel