__('ARPrice Lite', ARPLITE_PT_TXTDOMAIN), 'description' => __('Responsive Wordpress Pricing Table / Team Showcase Plugin', ARPLITE_PT_TXTDOMAIN), 'base' => 'ARPLite', 'category' => __('Content', ARPLITE_PT_TXTDOMAIN), 'class' => '', 'controls' => 'full', 'admin_enqueue_css' => array(ARPLITE_PRICINGTABLE_URL . '/core/vc/arpricelite_vc.css'), 'front_enqueue_css' => ARPLITE_PRICINGTABLE_URL . '/core/vc/arpricelite_vc.css', 'icon' => 'arpricelite_vc_icon', 'params' => array( array( "type" => "ARPrice_lite_Shortode", 'heading' => false, 'param_name' => 'id', 'value' => false, 'description' => __(' ', ARPLITE_PT_TXTDOMAIN), 'admin_label' => true ) ) )); } } public function callmyfunction() { if (function_exists('vc_add_shortcode_param')) { vc_add_shortcode_param('ARPrice_lite_Shortode', array($this, 'arpricelite_param_html'), ARPLITE_PRICINGTABLE_URL . '/core/vc/arpricelite_vc.js'); } } public function arpricelite_param_html($settings, $value) { $html = ''; if ($settings) { $html .= ''; $html .= ''; global $wpdb; $arp_short_code_data = array(); $templates = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "arplite_arprice WHERE status = %s and is_template != %d ORDER BY ID ASC", 'published', 1)); if (!empty($templates)) { foreach ($templates as $key => $template) { $active_class = ""; $active_class = ($template->ID == $value) ? ' arp_active ' : ''; $html .= '
'; if ($template->is_template == '1') { $html .= '' . esc_attr($template->table_name) . ''; } else { $html .= '' . esc_attr($template->table_name) . ''; } $html .= '
'; } } } if (!empty($templates)) { return '
' . __('Please Select Your Pricing Table', ARPLITE_PT_TXTDOMAIN) . '
' . $html . '
'; } else{ return '
' . __('Pricing Table Not Found', ARPLITE_PT_TXTDOMAIN) . '
'; } } } ?>