Current File : /home/inlingua/www/bestbuyind/wp-content/plugins/lead-form-builder/inc/lf-shortcode.php |
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
function lfb_lead_form_shortcode($atts) {
$output = '';
$pull_quote_atts = shortcode_atts(array(
'form-id' => 1,
'title' => '',
'new_title'=>'',
), $atts);
$this_form_id = absint($pull_quote_atts['form-id']);
$new_title = esc_html($pull_quote_atts['new_title']);
$th_front_end_froms = new LFB_Front_end_FORMS();
$output = $th_front_end_froms->lfb_show_front_end_forms($this_form_id,$new_title);
return $output;
}
add_shortcode('lead-form', 'lfb_lead_form_shortcode');
add_filter('widget_text', 'do_shortcode');