arprice_responsive_width_array(); $arplite_mainoptionsarr = $arplite_pricingtable->arp_mainoptions(); $arplite_templateresponsivearr = $arplite_pricingtable->arp_template_responsive_type_array(); $arp_col_wrapper_height = $arpricelite_default_settings->arprice_column_wrapper_height(); $id = $table_id; $name = $pricetable_name; if ($is_tbl_preview && $is_tbl_preview == 1) { if (isset($_REQUEST['optid']) && $_REQUEST['optid'] != '') { $post_values = get_option($_REQUEST['optid']); $post_values = json_decode(stripslashes_deep($post_values['filtered_data']), true); $get_preview_data = $arpricelite_form->get_preview_table($post_values); /* /update_option( $_REQUEST['optid'], '' ); */ $id = $table_id = $get_preview_data['table_id']; $is_template = $get_preview_data['is_template']; $is_animated = $get_preview_data['is_animated']; $opts = maybe_unserialize($get_preview_data['table_options']); $general_option = maybe_unserialize($get_preview_data['general_options']); $arp_template_name = $get_preview_data['template_name']; } } else { $sql = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "arplite_arprice WHERE ID = %d AND status = %s ", $id, 'published')); $table_id = $sql->ID; $sql_opt = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "arplite_arprice_options WHERE table_id = %d ", $table_id)); $is_template = $sql->is_template; $is_animated = $sql->is_animated; $opts = maybe_unserialize($sql_opt[0]->table_options); $general_option = maybe_unserialize($sql->general_options); $arp_template_name = $sql->template_name; } $table_cols = array(); $table_cols = $table_cols_new = $opts['columns']; if (isset($is_template) && !empty($is_template) && $is_template == 1) { wp_register_style('arplitetemplate_' . $table_id . '_v' . $arpricelite_img_css_version . '_css', ARPLITE_PRICINGTABLE_URL . '/css/templates/arplitetemplate_' . $table_id . '_v' . $arpricelite_img_css_version . '.css', array(), null); wp_enqueue_style('arplitetemplate_' . $table_id . '_v' . $arpricelite_img_css_version . '_css'); } else { wp_register_style('arplitetemplate_' . $table_id . '_css', ARPLITE_PRICINGTABLE_UPLOAD_URL . '/css/arplitetemplate_' . $table_id . '.css', array(), null); wp_enqueue_style('arplitetemplate_' . $table_id . '_css'); } include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $maxrowcount = 0; if (is_array($table_cols)) { foreach ($table_cols as $countcol) { if ($countcol['rows'] && count($countcol['rows']) > $maxrowcount) $maxrowcount = count($countcol['rows']); } $maxrowcount--; } $arp_tablet_view_width = $arplite_mainoptionsarr['general_options']['template_options']['arp_tablet_view_width']; $opts['columns'] = $table_cols; $column_settings = $general_option['column_settings']; $hover_type = $column_settings['column_highlight_on_hover']; $arp_global_button_type = isset($column_settings['arp_global_button_type']) ? $column_settings['arp_global_button_type'] : 'flat'; $arp_global_button_class_array = $arpricelite_default_settings->arp_button_type(); $arp_global_button_class_array[$arp_global_button_type]['class'] = isset($arp_global_button_class_array[$arp_global_button_type]['class']) ? $arp_global_button_class_array[$arp_global_button_type]['class'] : ''; if (isset($column_settings['disable_button_hover_effect']) && $column_settings['disable_button_hover_effect'] == 1) { $arp_global_button_class = @$arp_global_button_class_array[$arp_global_button_type]['class'] . ' arp_button_hover_disable'; } else { $arp_global_button_class = @$arp_global_button_class_array[$arp_global_button_type]['class']; } $template_settings = $general_option['template_setting']; $general_settings = $general_option['general_settings']; $template_type = $template_settings['template_type']; $template = $template_settings['template']; $template_id = $template_settings['template']; $ref_template = $general_settings['reference_template']; $is_responsive = $general_option['column_settings']['is_responsive']; $template_feature = $arplite_mainoptionsarr['general_options']['template_options']['features'][$ref_template]; $hide_blank_row = isset($general_option['column_settings']['column_hide_blank_rows']) ? $general_option['column_settings']['column_hide_blank_rows'] : ''; if ($is_tbl_preview == 1 || ( isset($_REQUEST['home_view']) && $_REQUEST['home_view'] == 1 )) { if ($is_template == 1) { do_action('arplite_enqueue_preview_style', $arp_template_name, $arp_template_name, 0, $is_template); } else { do_action('arplite_enqueue_preview_style', $id, $id, 0, $is_template); } } $tablestring = ""; if ($column_settings['column_border_radius_top_left'] > 0 or $column_settings['column_border_radius_top_right'] > 0 or $column_settings['column_border_radius_bottom_right'] > 0 or $column_settings['column_border_radius_bottom_left'] > 0) { $tablestring .= ""; } $title_cls = ""; $animation_margin = ''; /* /pre render action */ do_action('arplite_predisplay_pt_action', $table_id); do_action('arplite_predisplay_pt_action' . $table_id, $table_id); $tablestring = apply_filters('arplite_predisplay_pricingtable_filter', $tablestring, $table_id); $tablestring .= ""; if ($column_settings['column_wrapper_width_txtbox'] != '') { $container_width = $column_settings['column_wrapper_width_txtbox'] . 'px;'; } else { $container_width = $arplite_mainoptionsarr['general_options']['wrapper_width'] . 'px;'; } $caption_row_border = isset($column_settings['arp_caption_row_border_size']) ? $column_settings['arp_caption_row_border_size'] : ''; $row_border = isset($column_settings['arp_row_border_size']) ? $column_settings['arp_row_border_size'] : ''; $tablestring .= "
"; $template_main_css = ""; if( isset($is_tbl_preview) && ($is_tbl_preview == 1 || $is_tbl_preview == 2) ){ $template_main_css = "padding-bottom:40px;"; } $tablestring .= "
"; $tablestring .= ""; $column_ord = str_replace('\'', '"', $general_settings['column_order']); $col_ord_arr = json_decode($column_ord, true); if ($is_template == 1) { $template_name = $arp_template_name; } else { $template_name = $table_id; } $arp_default_character_arr = get_option('arplite_css_character_set'); $arp_subset = (isset($arp_default_character_arr) and ! empty($arp_default_character_arr)) ? "&subset=" . implode(',', $arp_default_character_arr) : ''; if (is_ssl()) $googlefontbaseurl = "https://fonts.googleapis.com/css?family="; else $googlefontbaseurl = "http://fonts.googleapis.com/css?family="; $default_fonts = $arpricelite_fonts->get_default_fonts(); $including_google_fonts = array(); $general_column_settings = isset($general_option['column_settings'])?$general_option['column_settings']:array(); if (!in_array($general_column_settings['price_font_family_global'], $default_fonts) && $general_column_settings['price_font_family_global'] != '') { if (!in_array($general_column_settings['price_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['price_font_family_global']; } } if (!in_array($general_column_settings['description_font_family_global'], $default_fonts) && $general_column_settings['description_font_family_global'] != '') { if (!in_array($general_column_settings['description_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['description_font_family_global']; } } if (!in_array($general_column_settings['header_font_family_global'], $default_fonts) && $general_column_settings['header_font_family_global'] != '') { if (!in_array($general_column_settings['header_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['header_font_family_global']; } } if (!in_array($general_column_settings['body_font_family_global'], $default_fonts) && $general_column_settings['body_font_family_global'] != '') { if (!in_array($general_column_settings['body_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['body_font_family_global']; } } if (!in_array($general_column_settings['footer_font_family_global'], $default_fonts) && $general_column_settings['footer_font_family_global'] != '') { if (!in_array($general_column_settings['footer_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['footer_font_family_global']; } } if (!in_array($general_column_settings['button_font_family_global'], $default_fonts) && $general_column_settings['button_font_family_global'] != '') { if (!in_array($general_column_settings['button_font_family_global'], $including_google_fonts)) { $including_google_fonts[] = $general_column_settings['button_font_family_global']; } } /* Toggle Content Style End */ if (isset($including_google_fonts) and is_array($including_google_fonts) and ! empty($including_google_fonts)) { foreach ($including_google_fonts as $google_fonts) { $tablestring .= ''; } } $tablestring .= ""; $template_id = $template_settings['template']; $color_scheme = 'arp' . $template_settings['skin']; $hover_class = $hover_type; if (!in_array($hover_class, array('hover_effect', 'shadow_effect'))) { $hover_class .= ' arp_hover_animated_effect'; $arp_inc_effect_css[] = 1; } $animation_class = 'no_animation'; $global_column_width = ""; $col_array = array(); foreach ($opts['columns'] as $j => $columns) { if (isset($columns['is_caption']) && $columns['is_caption'] == 1) $col_array[] = 1; else $col_array[] = 0; } $tablestring .= "
"; $tablestring .= "
"; $x = 0; if ($opts['columns'] and count($opts['columns']) > 0) { $header_img = array(); foreach ($opts['columns'] as $j => $columns) { if (isset($columns['arp_header_shortcode']) && $columns['arp_header_shortcode'] != '') $header_img[] = 1; else $header_img[] = 0; } foreach ($opts['columns'] as $j => $columns) { if ($columns['column_width'] != '' && $columns['column_width'] > 0) { $inline_column_width[] = 1; } else { $inline_column_width[] = 0; } } $margin_top_all_div = ""; if (isset($column_animation['is_animation']) and $column_animation['is_animation'] == 'yes') { $margin_top_all_div = 'padding-top:22px;'; } $tablestring .= "
"; $style_ = 0; foreach ($opts['columns'] as $j => $columns) { if ($columns['is_caption'] == 1 and $template_feature['caption_style'] == 'default') { $inlinecolumnwidth = ""; if ($columns["column_width"] != "") $inlinecolumnwidth = 'width:' . $columns["column_width"] . 'px'; $column_highlight = $opts['columns'][$j]['column_highlight']; if ($column_highlight && $column_highlight == 1) $highlighted_column = 'column_highlight'; if ($columns['column_width'] != '') { $has_custom_column_width = 'data-has_custom_column_width="true"'; $has_custom_width = ''; } else { $has_custom_column_width = 'data-has_custom_column_width="false"'; $has_custom_width = ''; } if (isset($column_settings['space_between_column']) && $column_settings['space_between_column'] == 'yes' and $column_settings['column_space'] > 0) { $has_column_space = 'data-has_column_space="' . $column_settings['column_space'] . '" data-is_column_space="true"'; } else { $has_column_space = 'data-has_column_space="false" data-is_column_space="false"'; } $footer_hover_class = ""; if ($columns['footer_content'] != '' and $template_feature['has_footer_content'] == 1) { $footer_hover_class .= ' has_footer_content'; if ($columns['footer_content_position'] == 0) { $footer_hover_class .= " footer_below_content"; } else { $footer_hover_class .= " footer_above_content"; } } else { $footer_hover_class = ""; } $column_settings['hide_caption_column'] = isset($column_settings['hide_caption_column']) ? $column_settings['hide_caption_column'] : ""; if (!empty($general_option['column_settings']['column_box_shadow_effect']) && $general_option['column_settings']['column_border_radius_top_left'] == 0 && $general_option['column_settings']['column_border_radius_top_right'] == 0 && $general_option['column_settings']['column_border_radius_bottom_right'] == 0 && $general_option['column_settings']['column_border_radius_bottom_left'] == 0) { if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_1') $shadow_default_class = 'shadow_style_1'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_2') $shadow_default_class = 'shadow_style_2'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_3') $shadow_default_class = 'shadow_style_3'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_4') $shadow_default_class = 'shadow_style_4'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_5') $shadow_default_class = 'shadow_style_5'; else $shadow_default_class = 'shadow_none'; } else { $shadow_default_class = ''; } if( $column_settings['hide_caption_column'] ){ $hide_caption_column = ' arp_hidden_captioncolumn '; } else { $hide_caption_column = ' '; } $tablestring .= "
0) { $tablestring .= $inlinecolumnwidth; } else { if ($is_responsive != 1) { $tablestring .= $global_column_width; } } $tablestring .= "'"; $tablestring.= " >"; $new_clickable_class = ""; $tablestring .= "
"; if ($columns['is_caption'] == 1) { if ($template_feature['caption_title'] == 'default') { if ($template == 'arplitetemplate_1' && in_array(1, $header_img)) $header_cls = 'has_header_code'; else $header_cls = ''; $tablestring .= "
" . do_shortcode(stripslashes_deep($columns['html_content'])) . "
"; } else if ($template_feature['caption_title'] == 'style_1') { $tablestring .= "
" . do_shortcode(stripslashes_deep($columns['html_content'])) . "
"; } } else { $tablestring .= "
" . do_shortcode(stripslashes_deep($columns['package_title'])) . "
" . do_shortcode(stripslashes_deep($columns['html_content'])) . "
"; } $tablestring .= "
    "; $r = 0; $row_order = isset($opts['columns'][$j]['row_order']) ? $opts['columns'][$j]['row_order'] : array(); if ($row_order && is_array($row_order)) { $rows = array(); asort($row_order); $ji = 0; $maxorder = max($row_order) ? max($row_order) : 0; foreach ($opts['columns'][$j]['rows'] as $rowno => $row) { $row_order[$rowno] = isset($row_order[$rowno]) ? $row_order[$rowno] : ($maxorder + 1); } foreach ($row_order as $row_id => $order_id) { if ($opts['columns'][$j]['rows'][$row_id]) { $rows['row_' . $ji] = $opts['columns'][$j]['rows'][$row_id]; $ji++; } } $opts['columns'][$j]['rows'] = $rows; } for ($ri = 0; $ri <= $maxrowcount; $ri++) { $rows = isset($opts['columns'][$j]['rows']['row_' . $ri]) ? $opts['columns'][$j]['rows']['row_' . $ri] : array(); if ($columns['is_caption'] == 1) { if (($ri + 1) % 2 == 0) { $cls = 'rowlightcolorstyle'; } else { $cls = ''; } } else { if ($x % 2 == 0) { if (($ri + 1) % 2 == 0) { $cls = 'rowdarkcolorstyle'; } else { $cls = ''; } } else { if (($ri + 1) % 2 == 0) { $cls = 'rowlightcolorstyle'; } else { $cls = ''; } } } if (($ri + 1 ) % 2 == 0) { $cls .= " arp_even_row"; } else { $cls .= " arp_odd_row"; } $li_class = $ref_template . '_' . $j . '_row_' . $ri; $tablestring .= "
  • "; $tablestring .= "
  • "; array_push($font_awesome_match, $rows['row_description']); array_push($font_awesome_match, $rows['row_label']); } $tablestring .= "
"; if ($template_feature['button_position'] == 'default') { $tablestring .= "
"; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $template_feature['has_footer_content'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } if ($columns['button_text'] == '' && empty($columns['btn_img'])) { $hide_default_btn_true = ""; $tablestring .= "
 
"; } else { $paypal_btn = 0; $hide_default_btn_true = ""; $tablestring .= "
"; $tablestring .= ""; $tablestring .= "
"; } $tablestring .= "
"; } $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
"; $x++; $style_++; } else if ($columns['is_caption'] == 1 and $template_feature['caption_style'] == 'style_1') { for ($i = 0; $i <= $maxrowcount; $i++) { $rows = isset($opts['columns'][$j]['rows']['row_' . $i]) ? $opts['columns'][$j]['rows']['row_' . $i] : array(); $caption_li[$i] = stripslashes_deep($rows['row_description']); } } else if ($columns['is_caption'] == 1 and $template_feature['caption_style'] == 'style_2') { for ($i = 0; $i <= $maxrowcount; $i++) { $rows = isset($opts['columns'][$j]['rows']['row_' . $i]) ? $opts['columns'][$j]['rows']['row_' . $i] : array(); $caption_li[$i] = stripslashes_deep($rows['row_description']); } } array_push($font_awesome_match, @$columns['html_content']); array_push($font_awesome_match, @$columns['footer_content']); } $c = $x; if ($c == 0) { $c = $x = 1; } $new_arr = array(); if (is_array($col_ord_arr) && count($col_ord_arr) > 0) { foreach ($col_ord_arr as $key => $value) { $new_value = str_replace('main_', '', $value); $new_col_id = $new_value; foreach ($opts['columns'] as $j => $columns) { if ($new_col_id == $j) { $new_arr['columns'][$new_col_id] = $columns; } } } } else { $new_arr = $opts; } foreach ($new_arr['columns'] as $j => $columns) { $shortcode_class = ''; $shortcode_class_array = $arpricelite_default_settings->arp_shortcode_custom_type(); if (isset($columns['arp_shortcode_customization_style'])) { $shortcode_class = @$columns['arp_shortcode_customization_size'] . ' ' . @$shortcode_class_array[$columns['arp_shortcode_customization_style']]['class']; } if ($columns['is_caption'] == 0) { $inlinecolumnwidth = ""; if ($columns["column_width"] != "") $inlinecolumnwidth = 'width:' . $columns["column_width"] . 'px'; $column_highlight = $opts['columns'][$j]['column_highlight']; if ($column_highlight && $column_highlight == 1) $highlighted_column = 'column_highlight '; else $highlighted_column = ''; if ($columns['column_width'] != '') { $has_custom_column_width = 'data-has_custom_column_width="true"'; $has_custom_width = ''; } else { $has_custom_column_width = 'data-has_custom_column_width="false"'; $has_custom_width = ''; } $footer_hover_class = ""; if ($columns['footer_content'] != '' and $template_feature['has_footer_content'] == 1) { $footer_hover_class .= ' has_footer_content'; if ($columns['footer_content_position'] == 0) { $footer_hover_class .= " footer_below_content"; } else { $footer_hover_class .= " footer_above_content"; } } else { $footer_hover_class = ""; } if (isset($column_settings['space_between_column']) && $column_settings['space_between_column'] == 'yes' and $column_settings['column_space'] > 0) { $has_column_space = 'data-has_column_space="' . $column_settings['column_space'] . '" data-is_column_space="true"'; } else { $has_column_space = 'data-has_column_space="false" data-is_column_space="false"'; } if (!empty($general_option['column_settings']['column_box_shadow_effect']) && $general_option['column_settings']['column_border_radius_top_left'] == 0 && $general_option['column_settings']['column_border_radius_top_right'] == 0 && $general_option['column_settings']['column_border_radius_bottom_right'] == 0 && $general_option['column_settings']['column_border_radius_bottom_left'] == 0) { if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_1') $shadow_default_class = 'shadow_style_1'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_2') $shadow_default_class = 'shadow_style_2'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_3') $shadow_default_class = 'shadow_style_3'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_4') $shadow_default_class = 'shadow_style_4'; else if ($general_option['column_settings']['column_box_shadow_effect'] == 'shadow_style_5') $shadow_default_class = 'shadow_style_5'; else $shadow_default_class = 'shadow_none'; } else { $shadow_default_class = ''; } $tablestring .= "
0) { $tablestring .= $inlinecolumnwidth; } else { if ($is_responsive != 1) { $tablestring .= $global_column_width; } } $tablestring .= "'"; $tablestring .= " data-column-footer-position='{$columns['footer_content_position']}'"; $tablestring.= ">"; $new_clickable_class = ""; $tablestring .= "
"; if (isset($columns['arp_header_shortcode']) && $columns['arp_header_shortcode'] != '') $header_cls = 'has_arp_shortcode'; else $header_cls = ''; $columns_custom_ribbon_position = ''; if ($columns['ribbon_setting'] and $columns['ribbon_setting']['arp_ribbon'] != '' and $columns['ribbon_setting']['arp_ribbon_content'] != '') { $basic_col = $arplite_mainoptionsarr['general_options']['arp_basic_colors']; $ribbon_bg_col = $columns['ribbon_setting']['arp_ribbon_bgcol']; $base_color = $ribbon_bg_col; $base_color_key = array_search($base_color, $basic_col); $gradient_color = $arplite_mainoptionsarr['general_options']['arp_basic_colors_gradient'][$base_color_key]; $ribbon_border_color = $arplite_mainoptionsarr['general_options']['arp_ribbon_border_color'][$base_color_key]; $tablestring .= "
"; if ($columns['ribbon_setting']['arp_ribbon'] != 'arp_ribbon_6') { $tablestring .= ""; } $tablestring .= "
"; $tablestring .= esc_html($columns['ribbon_setting']['arp_ribbon_content']); $tablestring .= "
"; $tablestring .= "
"; } $tablestring .= "
"; $tablestring .= "
"; if ($template_feature['header_shortcode_position'] == 'position_1') { $tablestring .= "
"; if ($template_feature['header_shortcode_type'] == 'normal') $tablestring .= do_shortcode($columns['arp_header_shortcode']); else if ($template_feature['header_shortcode_type'] == 'rounded_corner') { $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
" . do_shortcode($columns['arp_header_shortcode']) . "
"; $tablestring .= "
"; $tablestring .= "
"; } $tablestring .= "
"; } if ($columns['is_caption'] == 1) { $tablestring .= "
" . do_shortcode(stripslashes_deep($columns['html_content'])) . "
"; } else { $tablestring .= "
"; $tablestring .= "
" . do_shortcode(stripslashes_deep($columns['package_title'])) . "
"; if ($template_feature['column_description'] == 'enable' && $template_feature['column_description_style'] == 'style_1') { $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; } $tablestring .= "
"; if ($template_feature['column_description'] == 'enable' && $template_feature['column_description_style'] == 'style_3') { $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; } if ($template_feature['button_position'] == 'position_2') { $columns['paypal_code'] = isset($columns['paypal_code']) ? $columns['paypal_code'] : ""; $columns['btn_img'] = isset($columns['btn_img']) ? $columns['btn_img'] : ""; if ($columns['paypal_code'] != '') { $columns['paypal_code'] = do_shortcode($columns['paypal_code']); $paypal_btn = 1; } else { $paypal_btn = 0; } $tablestring .= "
"; $hide_default_btn_true = ""; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 1 and $template_feature['has_footer_content'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; $tablestring .= ""; $tablestring .= "
"; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 0) $footer_content_below_btn = "display:block;"; else $footer_content_below_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; } if ($template_feature['header_shortcode_position'] == 'default') { if ($template_feature['header_shortcode_type'] == 'normal') { $tablestring .= "
" . do_shortcode($columns['arp_header_shortcode']) . "
"; } else if ($template_feature['header_shortcode_type'] == 'rounded_border') { $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
" . do_shortcode($columns['arp_header_shortcode']) . "
"; $tablestring .= "
"; $tablestring .= "
"; } } if ($template_feature['amount_style'] != 'style_3') { $tablestring .= "
"; if ($template_feature['amount_style'] == 'default') { $tablestring .= "
"; $tablestring .= $columns['price_text']; $tablestring .= "
"; $tablestring .= isset($columns['html_content']) ? $columns['html_content'] : ""; } else if ($template_feature['amount_style'] == 'style_1') { $tablestring .= "
"; $tablestring .= "
"; $tablestring .= ""; $tablestring .= $columns['price_text']; $tablestring .= ""; $tablestring .= ""; $tablestring .= $columns['price_label']; $tablestring .= ""; $tablestring .= "
"; $tablestring .= "
"; } else if ($template_feature['amount_style'] == 'style_2') { $tablestring .= "
"; $tablestring .= ""; $tablestring .= $columns['price_label']; $tablestring .= ""; $tablestring .= ""; $tablestring .= $columns['price_text']; $tablestring .= ""; $tablestring .= "
"; $tablestring .= do_shortcode(isset($columns['html_content']) ? $columns['html_content'] : "" ); } if ($template_feature['column_description'] == 'enable' && $template_feature['column_description_style'] == 'style_2') { $tablestring .= "
"; $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; $tablestring .= ""; $tablestring .= ""; $tablestring .= "
"; } if ($template_feature['column_description'] == 'enable' && $template_feature['column_description_style'] == 'style_4') { $first_desc_blank = $second_desc_blank = $third_desc_blank = ''; $first_desc_blank = empty($columns['column_description']) ? ' desc_content_blank' : ''; $second_desc_blank = empty($columns['column_description_second']) ? ' desc_content_blank' : ''; $third_desc_blank = empty($columns['column_description_third']) ? ' desc_content_blank' : ''; $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; } if ($template_feature['button_position'] == 'position_1') { $columns['paypal_code'] = isset($columns['paypal_code']) ? $columns['paypal_code'] : ""; $columns['btn_img'] = isset($columns['btn_img']) ? $columns['btn_img'] : ""; $paypal_btn = 0; $tablestring .= "
"; $hide_default_btn_true = ""; $footer_content_above_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; $tablestring .= ""; $tablestring .= "
"; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 0) $footer_content_below_btn = "display:block;"; else $footer_content_below_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring.= "
"; } $tablestring .= "
"; } } if ($template_feature['header_shortcode_position'] == 'position_2') { $tablestring .= "
"; if ($template_feature['header_shortcode_type'] == 'normal') $tablestring .= do_shortcode($columns['arp_header_shortcode']); else if ($template_feature['header_shortcode_type'] == 'rounded_corner') { $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
" . do_shortcode($columns['arp_header_shortcode']) . "
"; $tablestring .= "
"; $tablestring .= "
"; } $tablestring .= "
"; } $tablestring .= "
"; $tablestring .= "
"; if ($template_feature['button_position'] == 'position_3') { $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; $columns['btn_img'] = isset($columns['btn_img']) ? $columns['btn_img'] : ""; $tablestring .= "
"; $paypal_btn = 0; $hide_default_btn_true = ""; $footer_content_above_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; $tablestring .= ""; $tablestring .= do_shortcode($columns['paypal_code']); $tablestring .= "
"; $tablestring .= "
"; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 0) $footer_content_below_btn = "display:block;"; else $footer_content_below_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; } $tablestring .= "
    "; $r = 0; $row_order = isset($opts['columns'][$j]['row_order']) ? $opts['columns'][$j]['row_order'] : array(); if ($row_order && is_array($row_order)) { $rows = array(); asort($row_order); $ji = 0; $maxorder = max($row_order) ? max($row_order) : 0; foreach ($opts['columns'][$j]['rows'] as $rowno => $row) { $row_order[$rowno] = isset($row_order[$rowno]) ? $row_order[$rowno] : ($maxorder + 1); } foreach ($row_order as $row_id => $order_id) { if ($opts['columns'][$j]['rows'][$row_id]) { $rows['row_' . $ji] = $opts['columns'][$j]['rows'][$row_id]; $ji++; } } $opts['columns'][$j]['rows'] = $rows; } for ($ri = 0; $ri <= $maxrowcount; $ri++) { $rows = isset($opts['columns'][$j]['rows']['row_' . $ri]) ? $opts['columns'][$j]['rows']['row_' . $ri] : array(); if ($columns['is_caption'] == 1) { if (($ri + 1) % 2 == 0) { $cls = 'rowlightcolorstyle'; } else { $cls = ''; } } else { if ($x % 2 == 0) { if (($ri + 1) % 2 == 0) { $cls = 'rowdarkcolorstyle'; } else { $cls = ''; } } else { if (($ri + 1) % 2 == 0) { $cls = 'rowlightcolorstyle'; } else { $cls = ''; } } } if (($ri + 1 ) % 2 == 0) { $cls .= " arp_even_row"; } else { $cls .= " arp_odd_row"; } $fa_pattern = '/class\=\'(fa)\s(.*?)\'/i'; $columns['column_title'] = isset($columns['column_title']) ? $columns['column_title'] : ""; $columns['html_content'] = isset($columns['html_content']) ? $columns['html_content'] : ""; if ($template_feature['caption_style'] == 'style_1' and $template_feature['list_alignment'] != 'default') { $tablestring .= "
  • "; $tablestring .= ""; $tablestring .= "
    " . (( isset($rows['row_label']) && $rows['row_label'] != '' ) ? stripslashes_deep($rows['row_label']) : '') . "
    "; $tablestring .= "
    "; $tablestring .= ""; $tablestring .= "
    " . (( isset($rows['row_description']) && $rows['row_description'] != '' ) ? stripslashes_deep($rows['row_description']) : ''); $tablestring .= "
    "; $tablestring .= "
  • "; } else if ($template_feature['caption_style'] == 'style_2') { $tablestring .= "
  • "; $tablestring .= ""; $tablestring .= "
  • "; } else if ($template_feature['list_alignment'] != 'default') { $tablestring .= "
  • "; /* / first step description */ $tablestring .= "
    "; /* / first step description */ $tablestring .= "
    " . (( isset($rows['row_description']) && $rows['row_description'] != '' ) ? stripslashes_deep($rows['row_description']) : ''); $tablestring .= "
    "; $tablestring .= "
  • "; } $last_li_cls = $cls; array_push($font_awesome_match, $rows['row_label']); array_push($font_awesome_match, $rows['row_description']); } if ($template_feature['button_position'] != 'default') { $tablestring .= "
  • "; } $tablestring .= "
"; $tablestring .= "
"; if ($template_feature['amount_style'] === 'style_3') { $tablestring .= "
"; $tablestring .= "
"; $tablestring .= ""; $tablestring .= $columns['price_label']; $tablestring .= ""; $tablestring .= ""; $tablestring .= $columns['price_text']; $tablestring .= ""; $tablestring .= "
"; $tablestring .= do_shortcode($columns['html_content']); if ($template_feature['button_position'] == 'position_4') { $tablestring .= "
"; $columns['btn_img'] = isset($columns['btn_img']) ? $columns['btn_img'] : ""; $hide_default_btn_true = ""; $footer_content_above_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; $paypal_btn = 0; $tablestring .= ""; $tablestring .= "
"; $footer_content_below_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 0) $footer_content_below_btn = "display:block;"; else $footer_content_below_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; } $tablestring .= "
"; } if ($template_feature['button_position'] == 'default') { $tablestring .= "
"; if ($template_feature['second_btn'] == true && $columns['button_s_text'] != '') { $has_s_btn = 'has_second_btn'; } else { $has_s_btn = 'no_second_btn'; } $hide_default_btn_true = ""; $footer_content_above_btn = ""; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 1) $footer_content_above_btn = "display:block;"; else $footer_content_above_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; $paypal_btn = 0; $columns['btn_img'] = isset($columns['btn_img']) ? $columns['btn_img'] : ""; $columns['hide_default_btn'] = isset($columns['hide_default_btn']) ? $columns['hide_default_btn'] : ''; $tablestring .= ""; $tablestring .= "
"; $footer_content_below_btn = ''; if ($columns['footer_content'] != '' and $columns['footer_content_position'] == 0) $footer_content_below_btn = "display:block;"; else $footer_content_below_btn = "display:none;"; if ($template_feature['has_footer_content'] == 1) { $tablestring .= ""; } $tablestring .= "
"; if ($template_feature['column_description'] == 'enable' and $template_feature['column_description_style'] == 'after_button') { $tablestring .= "
" . stripslashes_deep($columns['column_description']) . "
"; } } $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
"; $tablestring .= "
"; $c++; if ($x % 5 == 0) { $c = 1; } $x++; $style_++; } array_push($font_awesome_match, @$columns['ribbon_setting']['arp_ribbon_content']); array_push($font_awesome_match, @$columns['html_content']); array_push($font_awesome_match, @$columns['package_title']); array_push($font_awesome_match, @$columns['column_description']); array_push($font_awesome_match, @$columns['arp_header_shortcode']); array_push($font_awesome_match, @$columns['footer_content']); array_push($font_awesome_match, @$columns['button_text']); array_push($font_awesome_match, @$columns['price_text']); array_push($font_awesome_match, @$columns['price_label']); } $tablestring .= ""; if( $arp_is_lightbox ){ $tablestring .= "
"; } } else { $tablestring .= __('Please select valid table', 'ARPricelite'); } $tablestring .= ""; $tablestring .= ""; $tablestring .= ""; $tablestring .= ""; $tablestring = apply_filters('arplite_postdisplay_pricingtable_filter', $tablestring, $table_id); /* /post render action */ do_action('arplite_postdisplay_pt_action', $table_id); do_action('arplite_postdisplay_pt_action' . $table_id, $table_id); global $arplite_has_tooltip; $arplite_has_tooltip = 0; if ($arplite_has_tooltip == 1) $arp_inc_effect_css[] = 1; /* / Pattern to check if font awesome is in pricing table or not. */ $fa_pattern = '/class\=(\'|")(fa)\s(.*?)(\'|")/i'; /* / Remove Empty array elements of content which may have font awesome class. */ $filtered_font_awesome_match = array_values(array_filter($font_awesome_match)); if (preg_grep($fa_pattern, $filtered_font_awesome_match)) { global $arplite_has_fontawesome; $arplite_has_fontawesome = 1; } $arplite_effect_css = 0; /* / changes for replace \n for remove p tag 08jan2015 */ $tablestring .= "
"; $tablestring = preg_replace("~\r?~", "", $tablestring); $tablestring = preg_replace("~\r\n?~", "", $tablestring); $tablestring = preg_replace("/\n\n+/", "", $tablestring); $tablestring = preg_replace("|\n|", "", $tablestring); $tablestring = preg_replace("~\n~", "", $tablestring); $tablestring = $arplite_pricingtable->arprice_font_icon_size_parser($tablestring); $tablestring = $arplite_pricingtable->arp_remove_style_tag($tablestring); return $tablestring; /* / return table string */ } } ?>