BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
CTR
/
wp-content
/
plugins
/
porto-functionality
/
shortcodes
/
shortcodes
📤 Upload
📝 New File
📁 New Folder
Close
Editing: porto_icons.php
<?php // Porto Icons add_action( 'vc_after_init', 'porto_load_icons_shortcode' ); function porto_load_icons_shortcode() { $animation_type = porto_vc_animation_type(); $animation_duration = porto_vc_animation_duration(); $animation_delay = porto_vc_animation_delay(); $custom_class = porto_vc_custom_class(); vc_map( array( 'name' => __( 'Porto Icons', 'porto-functionality' ), 'base' => 'porto_icons', 'class' => 'porto-wpb-widget porto_icons', 'icon' => PORTO_WIDGET_URL . 'icons.png', 'category' => __( 'Porto', 'porto-functionality' ), 'description' => __( 'Add a set of multiple icons and give some custom style.', 'porto-functionality' ), 'as_parent' => array( 'only' => 'porto_single_icon' ), 'content_element' => true, 'show_settings_on_create' => true, 'js_view' => 'VcColumnView', 'params' => array( array( 'type' => 'dropdown', 'class' => '', 'heading' => __( 'Alignment', 'porto-functionality' ), 'param_name' => 'align', 'value' => array( __( 'Left Align', 'porto-functionality' ) => 'porto-icons-left', __( 'Right Align', 'porto-functionality' ) => 'porto-icons-right', __( 'Center Align', 'porto-functionality' ) => 'porto-icons-center', ), ), $custom_class, array( 'type' => 'css_editor', 'heading' => __( 'Css', 'porto-functionality' ), 'param_name' => 'css_icon', 'group' => __( 'Design', 'porto-functionality' ), 'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor', ), ), ) ); if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_porto_icons extends WPBakeryShortCodesContainer { } } }
Save
Cancel