| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/landing-pages/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>';
}