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 /** * Alert Shortcode */ /* Shortcode generator config * ----------------------------------------------------- */ $shortcodes_config['alert'] = array( 'no_preview' => true, 'options' => array( 'color' => array( 'name' => __('Color Style', 'inbound-pro' ), 'desc' => __('Select the style.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'default' => __('Default', 'inbound-pro' ), 'blue' => __('Blue', 'inbound-pro' ), 'green' => __('Green', 'inbound-pro' ), 'red' => __('Red', 'inbound-pro' ), 'yellow' => __('Yellow', 'inbound-pro' ) ), 'std' => '' ), 'content' => array( 'name' => __('Message', 'inbound-pro' ), 'desc' => __('Your message here.', 'inbound-pro' ), 'type' => 'textarea', 'std' => '' ) ), 'shortcode' => '[alert color="{{color}}"]{{content}}[/alert]', 'popup_title' => 'Insert Alert Message Shortcode' ); /* Add shortcode * ----------------------------------------------------- */ add_shortcode('alert', 'inbound_shortcode_alert'); if (!function_exists('inbound_shortcode_alert')) { function inbound_shortcode_alert( $atts, $content = null ) { extract(shortcode_atts(array( 'color' => '' ), $atts)); return '<div class="alert-message '.$color.'">'.do_shortcode($content).'</div>'; } }