prefix."arplite_arprice t LEFT JOIN ".$wpdb->prefix."arplite_arprice_analytics a ON t.ID = a.pricing_table_id WHERE t.is_template = %d GROUP BY t.ID ORDER BY t.ID DESC"; $arp_my_templates = $wpdb->get_results($wpdb->prepare($editable_templates, 0)); ?>
0 ){ ?>
$template ){ $template_view = 0; $template_opt = maybe_unserialize($template->general_options); $template_name = $template_opt['template_setting']['template']; $reference_template = $template_opt['general_settings']['reference_template']; $table_name = $template->table_name; $arp_template_id = $template->ID; $total_visit = $template->views; $last_update_date = $template->arp_last_updated_date; $thumb_img_dir = ARPLITE_PRICINGTABLE_UPLOAD_DIR . '/template_images/arplitetemplate_' . $arp_template_id . '_large.png'; $thumb_img_path = ARPLITE_PRICINGTABLE_UPLOAD_URL . '/template_images/arplitetemplate_' . $arp_template_id . '_large.png'; $img_thumb_content = '
'; if(!file_exists($thumb_img_dir)){ $img_thumb_content = '
No Image
'; } if($total_visit>0){ $template_view = 1; } $date_format = get_option('date_format'); if ($last_update_date == "0000-00-00 00:00:00"){ $last_update_date = $template->create_date; } $date_to_display = date($date_format, strtotime($last_update_date)); ?>

  

prefix . "arplite_arprice WHERE is_template = '%d' AND status = '%s' ORDER BY is_template DESC, is_animated ASC, ID ASC"; $default_templates = $wpdb->get_results($wpdb->prepare($default_templates, 1, 'published')); $template_orders = $arplite_pricingtable->arp_template_order(); $pro_templates = $arplite_pricingtable->arp_template_pro_images(); $template_new_orders = array(); $total_default = count($default_templates); $total_ordered = count($template_orders); $x = 0; foreach ($template_orders as $key => $value) { foreach ($default_templates as $key1 => $template) { $template_opt = maybe_unserialize($template->general_options); $reference_template = $template_opt['general_settings']['reference_template']; if ($key == $reference_template) { $template_new_orders[$x] = $default_templates[$key1]; } } $x++; } ?>
$template ){ $template_img = 'arp_template_'.$template->template_name.'.png'; $template_img_url = ARPLITE_PRICINGTABLE_IMAGES_URL.'/template_images/'.$template_img; $template_img_hover = 'arp_template_'.$template->template_name.'_hover.png'; $template_img_url_hover = ARPLITE_PRICINGTABLE_IMAGES_URL.'/template_images/'.$template_img_hover; $tour_guide_tpl_id = "id='arp_template_".$template->template_name."'"; //$tpl_id = "arp_template_".$template->template_name; if($tour_guide_tpl_id=='arp_template_8'){ $tour_guide_tpl_id = 'id="arp_template_8"'; } ?>
>
";print_r($pro_templates);die; foreach ($pro_templates as $key => $value) { $template_id = str_replace('arptemplate_', '', $value); //echo "
template_id : ".$template_id."----"; /*$template_img_url = ARPLITE_PRICINGTABLE_IMAGES_URL . '/template_images/' . $value . '_v' . $arpricelite_img_css_version . '_preview.png'; $template_img_url_hover = ARPLITE_PRICINGTABLE_IMAGES_URL . '/template_images/' . $value . '_v' . $arpricelite_img_css_version . '_preview.png';*/ if( $template_id >= 20 ){ $template_id = $template_id - 3; } $template_img = 'arp_template_'.$template_id.'.png'; $template_img_url = ARPLITE_PRICINGTABLE_IMAGES_URL.'/template_images/'.$template_img; $template_img_hover = 'arp_template_'.$template_id.'_hover.png'; $template_img_url_hover = ARPLITE_PRICINGTABLE_IMAGES_URL.'/template_images/'.$template_img_hover; ?>
>