Server IP : 192.64.118.117 / Your IP : 3.22.208.99 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 /** * Intro Shortcode */ /* Shortcode generator config * ----------------------------------------------------- */ $shortcodes_config['intro'] = array( 'no_preview' => true, 'options' => array( 'title' => array( 'name' => __('Title', 'inbound-pro' ), 'desc' => __('Enter the heading text.', 'inbound-pro' ), 'type' => 'text', 'std' => '' ), 'alignment' => array( 'name' => __('Text Alignment', 'inbound-pro' ), 'desc' => __('Enter text alignment.', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'align-center' => __('Align Center', 'inbound-pro' ), 'align-left' => __('Align Left', 'inbound-pro' ), 'align-right' => __('Align Right', 'inbound-pro' ) ), 'std' => 'align-left', ), 'content' => array( 'name' => __('Content', 'inbound-pro' ), 'desc' => __('Enter the content', 'inbound-pro' ), 'type' => 'textarea', 'std' => '' ) ), 'shortcode' => '[intro title="{{title}}" alignment="{{alignment}}"]{{content}}[/intro]', 'popup_title' => 'Insert Intro Shortcode' ); /* Page builder module config * ----------------------------------------------------- */ $freshbuilder_modules['intro'] = array( 'name' => __('Intro', 'inbound-pro' ), 'size' => 'one_full', 'options' => array( 'title' => array( 'name' => __('Title', 'inbound-pro' ), 'desc' => __('Enter the heading text.', 'inbound-pro' ), 'type' => 'text', 'class' => '', 'is_content' => 0 ), 'alignment' => array( 'name' => __('Text Alignment', 'inbound-pro' ), 'desc' => __('The text alignment', 'inbound-pro' ), 'type' => 'select', 'options' => array( 'align-center' => __('Align Center', 'inbound-pro' ), 'align-left' => __('Align Left', 'inbound-pro' ), 'align-right' => __('Align Right', 'inbound-pro' ) ), 'std' => 'align-left', 'class' => '', 'is_content' => 0 ), 'content' => array( 'name' => __('Content', 'inbound-pro' ), 'desc' => __('Enter the content', 'inbound-pro' ), 'type' => 'textarea', 'std' => '', 'class' => '', 'is_content' => 1 ) ) ); /* Add shortcode * ----------------------------------------------------- */ add_shortcode('intro', 'inbound_shortcode_intro'); function inbound_shortcode_intro( $atts, $content = null ) { extract(shortcode_atts(array( 'title' => '', 'alignment' => '' ), $atts)); $out = ''; $out .= '<div class="intro clearfix '. $alignment .'">'; $out .= '<h1>'. $title .'</h1>'; $out .= '<div class="intro-content">'. do_shortcode($content) .'</div>'; $out .= '</div>'; return $out; }