"", "title" => "", "subtitle" => "", "short_info" => "", "additional_info" => "", "image" => "", "price" => "0", "currency" => "$", "price_period" => "/mo", "show_button" => "yes", "link" => "", "target" => "_self", "button_text" => "Purchase", "button_size" => "", "active" => "", "active_text" => "Best price" ); extract(shortcode_atts($args, $atts)); $html = ""; $pricing_table_clasess = ''; if($target == ""){ $target = "_self"; } if($active == "yes") { $pricing_table_clasess .= ' active'; } if($type != "") { $pricing_table_clasess .= ' qode_pricing_table_' . $type; } if($type == 'advanced'){ $new_content = preg_replace('#^<\/p>|

$#', '', $content); $html .= '

'; if($image != ''){ if (is_numeric($image)) { $image_src = wp_get_attachment_url($image); $image_alt = get_post_meta($image, '_wp_attachment_image_alt', true); } $html .= '
'; $html .= ''.$image_alt.''; $html .= '
'; } $html .= '
'; $html .= '
'; $html .= '
'; $html .= ''.$price.''; $html .= ''.$currency.''; $html .= ''.$price_period.''; $html .= '
'; // close div.price_table_prices_inner $html .= '
'; // close div.price_table_prices $html .= ''; $html .= '
'; //close div.price_table_inner if($additional_info != '') { $html .= "
"; $html .= ''; $html .= $additional_info; $html .= '
'; } $html .='
'; //close div.q_price_table } else { $html .= "
"; $html .= "
"; if($active == 'yes') { $html .= "
".__($active_text, 'qode')."
"; } $html .= ""; $html .= "
"; //close div.price_table_inner $html .="
"; //close div.q_price_table } echo $html;