''], $atts); $name = $all_attr['name']; /* Returned variable. */ $table_view = ''; /* Gets the pricing table. */ $args = ['post_type' => 'rpt_pricing_table', 'name' => $name]; $custom_posts = get_posts($args); foreach ($custom_posts as $post) { setup_postdata($post); /* Gets the plans. */ $plans = get_post_meta($post->ID, '_rpt_plan_group', true); /* Counts the plans. */ $nb_plans = count($plans); /* Gets 'force font' setting. */ $original_font = get_post_meta($post->ID, '_rpt_original_font', true); if ('no' == $original_font) { $ori_f = ''; } else { $ori_f = 'rpt_plugin_f'; } /* Gets title align settings. */ $title_align = get_post_meta($post->ID, '_rpt_title_alignment', true); if ('center' == $title_align) { $title_align_style = 'center'; } else { $title_align_style = 'left'; } /* Gets font size settings. */ $title_fontsize = get_post_meta($post->ID, '_rpt_title_fontsize', true); if ('small' == $title_fontsize) { $title_fs_class = ' rpt_sm_title'; } elseif ('tiny' == $title_fontsize) { $title_fs_class = ' rpt_xsm_title'; } else { $title_fs_class = ''; } $subtitle_fontsize = get_post_meta($post->ID, '_rpt_subtitle_fontsize', true); if ('small' == $subtitle_fontsize) { $subtitle_fs_class = ' rpt_sm_subtitle'; } elseif ('tiny' == $subtitle_fontsize) { $subtitle_fs_class = ' rpt_xsm_subtitle'; } else { $subtitle_fs_class = ''; } $description_fontsize = get_post_meta($post->ID, '_rpt_description_fontsize', true); if ('small' == $description_fontsize) { $description_fs_class = ' rpt_sm_description'; } else { $description_fs_class = ''; } $price_fontsize = get_post_meta($post->ID, '_rpt_price_fontsize', true); if ('small' == $price_fontsize) { $price_fs_class = ' rpt_sm_price'; } elseif ('tiny' == $price_fontsize) { $price_fs_class = ' rpt_xsm_price'; } elseif ('supertiny' == $price_fontsize) { $price_fs_class = ' rpt_xxsm_price'; } else { $price_fs_class = ''; } $recurrence_fontsize = get_post_meta($post->ID, '_rpt_recurrence_fontsize', true); if ('small' == $recurrence_fontsize) { $recurrence_fs_class = ' rpt_sm_recurrence'; } else { $recurrence_fs_class = ''; } $features_fontsize = get_post_meta($post->ID, '_rpt_features_fontsize', true); if ('small' == $features_fontsize) { $features_fs_class = ' rpt_sm_features'; } else { $features_fs_class = ''; } $button_fontsize = get_post_meta($post->ID, '_rpt_button_fontsize', true); if ('small' == $button_fontsize) { $button_fs_class = ' rpt_sm_button'; } else { $button_fs_class = ''; } /* START pricing table. */ $table_view .= '