Server IP : 192.64.118.117 / Your IP : 3.143.213.242 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/mobilecreationz.com/wp-content/plugins/leads/shared/shortcodes/shortcodes/ |
Upload File : |
<?php /** * Icon Shortcode */ /* Shortcode generator config * ----------------------------------------------------- */ $shortcodes_config['icon'] = array( 'options' => array( 'icon' => array( 'name' => __('Icon', 'inbound-pro' ), 'desc' => __('Select the icon.', 'inbound-pro' ), 'type' => 'select', 'options' => $fontawesome, 'std' => 'none' ), 'size' => array( 'name' => __('Size', 'inbound-pro' ), 'desc' => __('Select the icon size.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'normal' => __('Normal Size', 'inbound-pro' ), 'large' => __('Large Size', 'inbound-pro' ), '2x' => __('2x Size', 'inbound-pro' ), '3x' => __('3x Size', 'inbound-pro' ), '4x' => __('4x Size', 'inbound-pro' ) ), 'std' => 'normal' ), 'style' => array( 'name' => __('Style', 'inbound-pro' ), 'desc' => __('Select the icon style.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'normal' => __('Normal', 'inbound-pro' ), 'muted' => __('Muted', 'inbound-pro' ), 'border' => __('Border', 'inbound-pro' ), 'spin' => __('Spin', 'inbound-pro' ) ), 'std' => 'normal' ), ), 'shortcode' => '[icon icon="{{icon}}" size="{{size}}" style="{{style}}"]', 'popup_title' => 'Insert Icon Shortcode' ); /* Add shortcode * ----------------------------------------------------- */ add_shortcode('icon', 'inbound_shortcode_icon'); function inbound_shortcode_icon( $atts, $content = null ) { extract(shortcode_atts(array( 'icon' => '', 'size' => '', 'style' => '' ), $atts)); return '<i class="icon-'. $icon .' icon-'. $size .' icon-'. $style .'"></i>'; }