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 /** * Button Shortcode */ /* Shortcode generator config * ----------------------------------------------------- */ $shortcodes_config['button'] = array( 'no_preview' => false, 'options' => array( /** 'style' => array( 'name' => __('Button Style', 'inbound-pro' ), 'desc' => __('Select the button style.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'default' => 'Default', 'flat' => 'flat', 'sunk' => 'sunk' ), 'std' => 'default' ),*/ 'content' => array( 'name' => __('Button Text', 'inbound-pro' ), 'desc' => __('Enter the button text label.', 'inbound-pro' ), 'type' => 'text', 'std' => 'Button Text' ), 'url' => array( 'name' => __('Button Link', 'inbound-pro' ), 'desc' => __('Enter the destination URL.', 'inbound-pro' ), 'type' => 'text', 'std' => '' ), 'font-size' => array( 'name' => __('Font Size', 'inbound-pro' ), 'desc' => __('Size of Button Font. This also determines default button size', 'inbound-pro' ), 'type' => 'text', 'std' => '20' ), /** 'color' => array( 'name' => __('Button Color', 'inbound-pro' ), 'desc' => __('Select the button color.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'default' => 'Default', 'black' => 'Black', 'blue' => 'Blue', 'brown' => 'Brown', 'green' => 'Green', 'orange' => 'Orange', 'pink' => 'Pink', 'purple' => 'Purple', 'red' => 'Red', 'silver' => 'Silver', 'yellow' => 'Yellow', 'white' => 'White' ), 'std' => 'default' ), */ 'color' => array( 'name' => __('Button Color', 'inbound-pro' ), 'desc' => __('Color of button', 'inbound-pro' ), 'type' => 'colorpicker', 'std' => '#c8232b' ), 'text-color' => array( 'name' => __('Button Text Color', 'inbound-pro' ), 'desc' => __('Color of text', 'inbound-pro' ), 'type' => 'colorpicker', 'std' => '#ffffff' ), 'icon' => array( 'name' => __('Icon', 'inbound-pro' ), 'desc' => __('Select an icon.', 'inbound-pro' ), 'type' => 'select', 'options' => $fontawesome, 'std' => '' ), 'width' => array( 'name' => __('Custom Width', 'inbound-pro' ), 'desc' => __('Enter in pixel width or % width. Example: 200 <u>or</u> 100%', 'inbound-pro' ), 'type' => 'text', 'std' => '', 'class' => 'main-design-settings', ), 'target' => array( 'name' => __('Open Link in New Tab?', 'inbound-pro' ), 'checkbox_text' => __('Do you want to open links in this window or a new one?', 'inbound-pro' ), 'desc' => '', 'type' => 'select', 'options' => array( '_self' => 'Open Link in Same Window', '_blank' => 'Open Link in New Tab', ), 'std' => '_self' ), ), // style="{{style}}" 'shortcode' => '[inbound_button font_size="{{font-size}}" color="{{color}}" text_color="{{text-color}}" icon="{{icon}}" url="{{url}}" width="{{width}}" target="{{target}}"]{{content}}[/inbound_button]', 'popup_title' =>'Insert Button Shortcode' ); /* Add shortcode * ----------------------------------------------------- */