%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/wordpress/wp-content/plugins/easy-pricing-tables/includes/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/wordpress/wp-content/plugins/easy-pricing-tables/includes/shortcodes.php

<?php

// include required for dh_ptp_generate_pricing_table()
include ( PTP_PLUGIN_PATH . '/includes/table-generation/table-generator.php');

/**
 * execute on shortcode appearance
 * @param  [type] $atts
 * @return [type]
 */
function dh_ptp_message_shortcode( $atts) {

	// extract id shortcode
    extract(shortcode_atts( array('id' => ''), $atts));  

    // check if id exists
    if ($id != '' ) {
		
    	global $features_metabox;
		$meta = get_post_meta($id, $features_metabox->get_the_id(), TRUE);

        // check if our pricing table contains any content
		if ($meta != "") {
            // if the table contains content, call the function that generates the table
			return do_shortcode(dh_ptp_generate_pricing_table($id));
		}
	}
	
	return __('Pricing table does not exist. Please check your shortcode.', PTP_LOC);
}
// add the shortcode
add_shortcode( 'easy-pricing-table', 'dh_ptp_message_shortcode' );

Zerion Mini Shell 1.0