Responsive Pricing Table - Version 5.0.4

Version Description

  • Fixed issues with button URL on saving
Download this release

Release Info

Developer spwebguy
Plugin Icon 128x128 Responsive Pricing Table
Version 5.0.4
Comparing to
See all releases

Code changes from version 5.0.3 to 5.0.4

inc/css/rpt_style.css CHANGED
File without changes
inc/css/rpt_style.min.css CHANGED
File without changes
inc/dmb/dmb.css CHANGED
File without changes
inc/dmb/dmb.js CHANGED
@@ -1,6 +1,5 @@
1
  /**
2
  * Responsive Pricing Table Admin JS
3
- * Last updated: December 5, 2017
4
  */
5
 
6
  ;(function($){
1
  /**
2
  * Responsive Pricing Table Admin JS
 
3
  */
4
 
5
  ;(function($){
inc/dmb/dmb.min.css CHANGED
File without changes
inc/dmb/dmb.min.js CHANGED
@@ -1,19 +1,18 @@
1
  /**
2
  * Responsive Pricing Table Admin JS (minified)
3
- * Last updated: Nov 29, 2017
4
  */
5
 
6
- ;(function($){$(document).ready(function(){(function(original){jQuery.fn.clone=function(){var result=original.apply(this,arguments),my_textareas=this.find('textarea').add(this.filter('textarea')),result_textareas=result.find('textarea').add(result.filter('textarea')),my_selects=this.find('select').add(this.filter('select')),result_selects=result.find('select').add(result.filter('select'));for(var i=0,l=my_textareas.length;i<l;++i)$(result_textareas[i]).val($(my_textareas[i]).val());for(var i=0,l=my_selects.length;i<l;++i)result_selects[i].selectedIndex=my_selects[i].selectedIndex;return result}})(jQuery.fn.clone);var pluginFolderSlug='dk-pricr-responsive-pricing-table';$('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function refreshPlanCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_plan').length>0){$('.dmb_no_plan_notice').hide()}else{$('.dmb_no_plan_notice').show()}
7
- if($('.dmb_main').not('.dmb_empty_plan').length>4){$('.dmb_add_row, .clone-row').hide()}else{$('.dmb_add_row, .clone-row').show()}}
8
  refreshPlanCountRelatedUI();var hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function dmb_rgb2hex(rgb){rgb=rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return "#"+dmb_hex(rgb[1])+dmb_hex(rgb[2])+dmb_hex(rgb[3])}
9
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
10
  function dmb_strip_tags(input,allowed){allowed=(((allowed||'')+'').toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join('');var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,'').replace(tags,function($0,$1){return allowed.indexOf('<'+$1.toLowerCase()+'>')>-1?$0:''})}
11
- $('.dmb_icon_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-icon");if(imgUrl!=''){$(this).siblings('.dmb_icon_field').val(imgUrl);$("<img src='"+imgUrl+"' class='dmb_icon_img'/><div class='dmb_clearfix imgClearfix'></div>").insertAfter($(this).parent().find('.dmb_field_title'));$(this).parent().append('<a class="dmb_remove_icon_btn dmb_small_button_secondary" href="#"><span class="dashicons dashicons-no-alt"></span></a>')}});$('.dmb_main').not('.dmb_empty_plan').each(function(i,obj){var featureDump=$(this).find('.dmb_feature_dump').val();var features=$(this).find('.dmb_features');if(featureDump!=''){featureDump=featureDump+'\n';$.each(featureDump.split("\n").slice(0,-1),function(index,item){cleanedItem=item.replace(')--(',',');features.append('<div class="dmb_feature"><input class="dmb_field dmb_feature_field" type="text" value="" /><a class="dmb_remove_feature_btn" href="#"><span class="dashicons dashicons-no-alt"></span></a></div>');features.find('.dmb_feature_field:last').val(cleanedItem)})}});$('.dmb_remove_icon_btn').live("click",function(e){$(this).parent().find('.dmb_icon_img').remove();$(this).parent().find('.imgClearfix').remove();$(this).parent().find('.dmb_icon_field').val('');$(this).remove();return!1});$('.dmb_upload_icon_btn').click(function(){upload_button=$(this);isAlreadyImg=$(this).siblings('.dmb_icon_data_url').attr("data-icon");window.send_to_editor=function(html){imgUrl=$(html).attr('src');if(isAlreadyImg){upload_button.parent().find('.dmb_icon_img').remove();upload_button.parent().find('.dmb_remove_icon_btn').remove()}
 
12
  upload_button.parent().append('<a class="dmb_remove_icon_btn dmb_small_button_secondary" href="#"><span class="dashicons dashicons-no-alt"></span></a>');$("<img src='"+imgUrl+"' class='dmb_icon_img'/><div class='dmb_clearfix imgClearfix'></div>").insertAfter(upload_button.parent().find('.dmb_field_title'));upload_button.siblings('.dmb_icon_field').val(imgUrl);tb_remove()}
13
  tb_show('','media-upload.php?type=image&amp;TB_iframe=true');return!1});$('.dmb_remove_feature_btn').click(function(e){removeButton=$(this);removedFeature=$(this).closest('.dmb_feature').find('.dmb_feature_field');removedFeature.remove();featureList=removeButton.closest('.dmb_main').find('.dmb_feature_field');remainingFeatures=[];featureDump=$(this).closest('.dmb_main').find('.dmb_feature_dump');if(featureList.length==0){featureDump.val('');removeButton.parent().remove();return!1}else{featureList.each(function(i,obj){if($(this).val()){var cleanFeature=$(this).val().split(',').join(')--(');remainingFeatures.push(cleanFeature);var newFeatures=remainingFeatures.toString().split(',').join("\n").split(')--(').join(',');featureDump.val(newFeatures)}});removeButton.parent().remove();return!1}});$('.dmb_add_feature').on('click',function(){var lastFeature=$(this).siblings('.dmb_features').find('.dmb_feature:last .dmb_feature_field');if(lastFeature.val()!=''){var feature=$('.empty-feature').clone(!0);feature.removeClass('empty-feature').show();$(this).siblings('.dmb_features').append(feature);feature.find('.dmb_feature_field').focus();return!1}else{lastFeature.focus()}
14
  return!1});$('.dmb_feature_field').live("keyup",function(e){featureUpdated=$(this);featuresUpdated=$(this).parent().parent().siblings('.dmb_feature_dump');var featuresList=featureUpdated.parent().parent().find('.dmb_feature_field'),features=[];if(featuresList.length<1){featuresUpdated.val('')}else{featuresList.each(function(i,obj){if($(this).val()){var cleanFeature=$(this).val().split(',').join(')--(');features.push(cleanFeature);var newFeatures=features.toString().split(',').join("\n").split(')--(').join(',');featuresUpdated.val(newFeatures)}})}});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_plan').clone(!0);row.removeClass('dmb_empty_plan').addClass('dmb_main').show();row.find('.emptyDump').removeClass('emptyDump').addClass('dmb_feature_dump');row.insertBefore($('.dmb_empty_plan'));row.find('.dmb_title_of_plan').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);refreshPlanCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshPlanCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_plans').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_plan').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_plans').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingPlan=$(this).closest('.dmb_main').clone(!0);movingPlan.insertAfter($(this).closest('.dmb_main').next());var rgbColorToMove=movingPlan.find('.wp-color-result').css('backgroundColor');movingPlan.find('.wp-picker-container').remove();movingPlan.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');movingPlan.find('.dmb_color_picker').wpColorPicker();$(this).closest('.dmb_main').remove()}
15
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingPlan=$(this).closest('.dmb_main').clone(!0);movingPlan.insertBefore($(this).closest('.dmb_main').prev());var rgbColorToMove=movingPlan.find('.wp-color-result').css('backgroundColor');movingPlan.find('.wp-picker-container').remove();movingPlan.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');movingPlan.find('.dmb_color_picker').wpColorPicker();$(this).closest('.dmb_main').remove()}
16
- return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_title_of_plan').val()+' ('+objectL10n.copy+')');clone.find('.dmb_title_of_plan').focus();var rgbColorToMove=$(this).closest('.dmb_main').find('.wp-color-result').css('backgroundColor');clone.find('.wp-picker-container').remove();clone.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');clone.find('.dmb_color_picker').wpColorPicker();refreshPlanCountRelatedUI();return!1});$('.dmb_title_of_plan').each(function(i,obj){if($(this).val()!=''){var handleTitle=$(this).closest('.dmb_main').find('.dmb_handle_title');handleTitle.html($(this).val())}});$('.dmb_title_of_plan').live("keyup",function(e){var titleField=$(this);var handleTitle=titleField.closest('.dmb_main').find('.dmb_handle_title');(titleField.val()!='')?handleTitle.html(titleField.val()):handleTitle.html(objectL10n.untitled)});$('.dmb_text_settings_box_show').click(function(){$('.dmb_text_settings_box').toggle()});$('.dmb_show_preview_table').click(function(){var settings={};settings.planCount=$('.dmb_main').not('.dmb_empty_plan').size();settings.tableCurrency=$("input[name='table_currency']").val();settings.fontTitleAlignment=$("select[name='font_title_alignment'] option:selected").val();settings.fontSizeTitle=$("select[name='font_size_title'] option:selected").val();settings.fontSizeSubtitle=$("select[name='font_size_subtitle'] option:selected").val();settings.fontSizeDescription=$("select[name='font_size_description'] option:selected").val();settings.fontSizePrice=$("select[name='font_size_price'] option:selected").val();settings.fontSizeRecurrence=$("select[name='font_size_recurrence'] option:selected").val();settings.fontSizeButton=$("select[name='font_size_button'] option:selected").val();settings.fontSizeFeatures=$("select[name='font_size_features'] option:selected").val();if(settings.fontSizeTitle=='small'){settings.fontSizeTitle=' rpt_sm_title'}
17
  else if(settings.fontSizeTitle=='tiny'){settings.fontSizeTitle=' rpt_xsm_title'}
18
  else{settings.fontSizeTitle=''}
19
  if(settings.fontSizeSubtitle=='small'){settings.fontSizeSubtitle=' rpt_sm_subtitle'}
@@ -31,17 +30,21 @@ if(settings.fontSizeFeatures=='small'){settings.fontSizeFeatures=' rpt_sm_featur
31
  else{settings.fontSizeFeatures=''}
32
  if(settings.fontSizeButton=='small'){settings.fontSizeButton=' rpt_sm_button'}
33
  else{settings.fontSizeButton=''}
34
- var preview_html='';preview_html+='<div id="rpt_pricr" style="margin-top:100px;" class="rpt_plans rpt_'+settings.planCount+'_plans rpt_style_basic">';preview_html+='<div class="'+settings.fontSizeTitle+' '+settings.fontSizeSubtitle+' '+settings.fontSizeDescription+' '+settings.fontSizePrice+' '+settings.fontSizeRecurrence+' '+settings.fontSizeButton+' '+settings.fontSizeFeatures+'">';preview_html+='<style>.rpt_plans .rpt_plan .rpt_foot{line-height:34px;} #rpt_pricr{font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 300; line-height: 27px;}</style>'
35
- $('.dmb_main').not('.dmb_empty_plan').each(function(i,obj){var fields={},plan={};fields.title=$(this).find(".dmb_title_of_plan").val();fields.subtitle=$(this).find(".dmb_subtitle_of_plan").val();fields.recurrence=$(this).find(".dmb_recurrence_of_plan").val();fields.price=$(this).find(".dmb_price_of_plan").val();fields.description=$(this).find(".dmb_description_of_plan").val();fields.icon=$(this).find(".dmb_icon_of_plan").attr('data-icon');fields.recommended=$(this).find(".dmb_switch_recommended").find(":selected").val();fields.free=$(this).find(".dmb_switch_free").find(":selected").val();fields.features=$(this).find(".dmb_features_of_plan").val();fields.buttonText=$(this).find(".dmb_button_text_of_plan").val();fields.customButton=$(this).find(".dmb_custom_button_of_plan").val();fields.color=dmb_rgb2hex($(this).find(".wp-color-result").css('backgroundColor'))||'#8dba09';if(fields.recommended&&fields.recommended=='yes'){plan.recoClass='rpt_recommended_plan';plan.recoImg='<img class="rpt_recommended" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/rpt_recommended.png"/>'}else{plan.recoImg='';plan.recoClass=''}
36
- preview_html+='<div class="rpt_plan rpt_plan_'+i+' '+plan.recoClass+'">';plan.titleStyle='style="text-align:'+settings.fontTitleAlignment+';"';if(fields.title){preview_html+='<div '+plan.titleStyle+' class="rpt_title rpt_title_'+i+'">';if(fields.icon){preview_html+='<img height=30px width=30px src="'+fields.icon+'" class="rpt_icon rpt_icon_'+i+'"/> '}
37
- preview_html+=fields.title;preview_html+=plan.recoImg+'</div>'}
38
- preview_html+='<div class="rpt_head rpt_head_'+i+'">';if(fields.recurrence){preview_html+='<div class="rpt_recurrence rpt_recurrence_'+i+'">'+fields.recurrence+'</div>'}
39
- if(fields.price){preview_html+='<div class="rpt_price rpt_price_'+i+'">';if(fields.free=='yes'||fields.free=='on'){preview_html+='<span class="rpt_currency">';preview_html+='</span>'}else{if(settings.tableCurrency){preview_html+='<span class="rpt_currency">';preview_html+=settings.tableCurrency;preview_html+='</span>'}else{preview_html+='<span class="rpt_currency">';preview_html+='</span>'}}
40
- preview_html+=fields.price;preview_html+='</div>'}
41
- if(fields.subtitle){preview_html+='<div style="color:'+fields.color+';" class="rpt_subtitle rpt_subtitle_'+i+'">'+fields.subtitle+'</div>'}
 
42
  if(fields.description){preview_html+='<div class="rpt_description rpt_description_'+i+'">'+fields.description+'</div>'}
43
  preview_html+='<div style="clear:both;"></div>';preview_html+='</div>';if(fields.features){preview_html+='<div class="rpt_features rpt_features_'+i+'">';plan.features=[];plan.featureString=fields.features;plan.featureStringArray=plan.featureString.split("\n");plan.featureStringArray=plan.featureStringArray.map(function(el){return el.trim()});$.each(plan.featureStringArray,function(index,value){plan.features.push(dmb_strip_tags(value,'<strong></strong><br><br/></br><img><a>'))});$.each(plan.featureStringArray,function(smallKey,feature){if(feature){var check=feature.substr(0,2);if(check=='-n'){feature=feature.substr(2);var checkColor='#bbbbbb'}else{checkColor='black'}
44
- preview_html+='<div style="color:'+checkColor+';" class="rpt_feature rpt_feature_'+i+'-'+smallKey+'">';preview_html+=feature;preview_html+='</div>'}});preview_html+='</div>';preview_html+='<div style="clear:both;"></div>'}
45
- if(fields.customButton){preview_html+='<div class="rpt_custom_btn" style="background-color:'+fields.color+'">';preview_html+=fields.customButton;preview_html+='</div>'}else{if(fields.buttonText){preview_html+='<a href="#" style="background:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">';preview_html+=fields.buttonText}else{preview_html+='<a style="background:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">'}
46
- preview_html+='</a>'}
47
- preview_html+='</div>'});preview_html+='</div>';preview_html+='</div>';preview_html+='<div style="clear:both;"></div>';preview_html+='<div class="dmb_accuracy_preview_notice">'+objectL10n.previewAccuracy+'</div>';(settings.planCount==0)?$('#dmb_preview_table').append('<div class="dmb_no_plan_preview_notice">'+objectL10n.noPlan+'</div>'):$('#dmb_preview_table').append(preview_html);$('#dmb_preview_table').fadeIn(100)});$('.dmb_preview_table_close').click(function(){$('#dmb_preview_table #rpt_pricr, .dmb_accuracy_preview_notice, .dmb_no_plan_preview_notice').remove();$('#dmb_preview_table').fadeOut(100)})})})(jQuery);
 
 
 
1
  /**
2
  * Responsive Pricing Table Admin JS (minified)
 
3
  */
4
 
5
+ ;(function($){$(document).ready(function(){(function(original){jQuery.fn.clone=function(){var result=original.apply(this,arguments),my_textareas=this.find('textarea').add(this.filter('textarea')),result_textareas=result.find('textarea').add(result.filter('textarea')),my_selects=this.find('select').add(this.filter('select')),result_selects=result.find('select').add(result.filter('select'));for(var i=0,l=my_textareas.length;i<l;++i)$(result_textareas[i]).val($(my_textareas[i]).val());for(var i=0,l=my_selects.length;i<l;++i)result_selects[i].selectedIndex=my_selects[i].selectedIndex;return result}})(jQuery.fn.clone);var pluginFolderSlug='responsive-pricing-table-pro';$('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function refreshPlanCountRelatedUI(){($('.dmb_main').not('.dmb_empty_plan').length>0)?$('.dmb_no_plan_notice').hide():$('.dmb_no_plan_notice').show();($('.dmb_main').not('.dmb_empty_plan').length>4)?$('.dmb_add_row, .clone-row').hide():$('.dmb_add_row, .clone-row').show()}
 
6
  refreshPlanCountRelatedUI();var hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function dmb_rgb2hex(rgb){rgb=rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return "#"+dmb_hex(rgb[1])+dmb_hex(rgb[2])+dmb_hex(rgb[3])}
7
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
8
  function dmb_strip_tags(input,allowed){allowed=(((allowed||'')+'').toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join('');var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,'').replace(tags,function($0,$1){return allowed.indexOf('<'+$1.toLowerCase()+'>')>-1?$0:''})}
9
+ function rpt_equalize(){$('.rpt_plans').each(function(){var current_plan=$(this);if(parseInt($(window).width())>640){if(current_plan.hasClass('rpt_plan_eq')){var titles=[],heads=[],features=[];var biggestTitle=[],biggestHead=[],biggestFeatures=[];current_plan.find('.rpt_title').each(function(){var current_title=$(this);titles.push(current_title.outerHeight())});current_plan.find('.rpt_head').each(function(){var current_head=$(this);heads.push(current_head.outerHeight())});current_plan.find('.rpt_features').each(function(){var current_features=$(this);features.push(current_features.outerHeight())});biggestTitle=Math.max.apply(Math,titles);biggestHead=Math.max.apply(Math,heads);biggestFeatures=Math.max.apply(Math,features);current_plan.find('.rpt_title').outerHeight(biggestTitle);current_plan.find('.rpt_head').outerHeight(biggestHead);current_plan.find('.rpt_features').outerHeight(biggestFeatures)}}else{current_plan.find('.rpt_title').outerHeight('auto');current_plan.find('.rpt_head').outerHeight('auto');current_plan.find('.rpt_features').outerHeight('auto')}})}
10
+ $(window).resize(function(){rpt_equalize()});$('.dmb_icon_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-icon");if(imgUrl!=''){$(this).siblings('.dmb_icon_field').val(imgUrl);$("<img src='"+imgUrl+"' class='dmb_icon_img'/><div class='dmb_clearfix imgClearfix'></div>").insertAfter($(this).parent().find('.dmb_field_title'));$(this).parent().append('<a class="dmb_remove_icon_btn dmb_small_button_secondary" href="#"><span class="dashicons dashicons-no-alt"></span></a>')}});$('.dmb_main').not('.dmb_empty_plan').each(function(i,obj){var featureDump=$(this).find('.dmb_feature_dump').val();var features=$(this).find('.dmb_features');if(featureDump!=''){featureDump=featureDump+'\n';$.each(featureDump.split("\n").slice(0,-1),function(index,item){cleanedItem=item.replace(')--(',',');features.append('<div class="dmb_feature"><input class="dmb_field dmb_feature_field" type="text" value="" /><a class="dmb_remove_feature_btn" href="#"><span class="dashicons dashicons-no-alt"></span></a></div>');features.find('.dmb_feature_field:last').val(cleanedItem)})}});$('.dmb_remove_icon_btn').live("click",function(e){$(this).parent().find('.dmb_icon_img').remove();$(this).parent().find('.imgClearfix').remove();$(this).parent().find('.dmb_icon_field').val('');$(this).remove();return!1});$('.dmb_upload_icon_btn').click(function(){upload_button=$(this);isAlreadyImg=$(this).siblings('.dmb_icon_data_url').attr("data-icon");window.send_to_editor=function(html){imgUrl=$(html).attr('src');if(isAlreadyImg){upload_button.parent().find('.dmb_icon_img').remove();upload_button.parent().find('.dmb_remove_icon_btn').remove()}
11
  upload_button.parent().append('<a class="dmb_remove_icon_btn dmb_small_button_secondary" href="#"><span class="dashicons dashicons-no-alt"></span></a>');$("<img src='"+imgUrl+"' class='dmb_icon_img'/><div class='dmb_clearfix imgClearfix'></div>").insertAfter(upload_button.parent().find('.dmb_field_title'));upload_button.siblings('.dmb_icon_field').val(imgUrl);tb_remove()}
12
  tb_show('','media-upload.php?type=image&amp;TB_iframe=true');return!1});$('.dmb_remove_feature_btn').click(function(e){removeButton=$(this);removedFeature=$(this).closest('.dmb_feature').find('.dmb_feature_field');removedFeature.remove();featureList=removeButton.closest('.dmb_main').find('.dmb_feature_field');remainingFeatures=[];featureDump=$(this).closest('.dmb_main').find('.dmb_feature_dump');if(featureList.length==0){featureDump.val('');removeButton.parent().remove();return!1}else{featureList.each(function(i,obj){if($(this).val()){var cleanFeature=$(this).val().split(',').join(')--(');remainingFeatures.push(cleanFeature);var newFeatures=remainingFeatures.toString().split(',').join("\n").split(')--(').join(',');featureDump.val(newFeatures)}});removeButton.parent().remove();return!1}});$('.dmb_add_feature').on('click',function(){var lastFeature=$(this).siblings('.dmb_features').find('.dmb_feature:last .dmb_feature_field');if(lastFeature.val()!=''){var feature=$('.empty-feature').clone(!0);feature.removeClass('empty-feature').show();$(this).siblings('.dmb_features').append(feature);feature.find('.dmb_feature_field').focus();return!1}else{lastFeature.focus()}
13
  return!1});$('.dmb_feature_field').live("keyup",function(e){featureUpdated=$(this);featuresUpdated=$(this).parent().parent().siblings('.dmb_feature_dump');var featuresList=featureUpdated.parent().parent().find('.dmb_feature_field'),features=[];if(featuresList.length<1){featuresUpdated.val('')}else{featuresList.each(function(i,obj){if($(this).val()){var cleanFeature=$(this).val().split(',').join(')--(');features.push(cleanFeature);var newFeatures=features.toString().split(',').join("\n").split(')--(').join(',');featuresUpdated.val(newFeatures)}})}});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_plan').clone(!0);row.removeClass('dmb_empty_plan').addClass('dmb_main').show();row.find('.emptyDump').removeClass('emptyDump').addClass('dmb_feature_dump');row.insertBefore($('.dmb_empty_plan'));row.find('.dmb_title_of_plan').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);refreshPlanCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshPlanCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_plans').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_plan').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_plans').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingPlan=$(this).closest('.dmb_main').clone(!0);movingPlan.insertAfter($(this).closest('.dmb_main').next());var rgbColorToMove=movingPlan.find('.wp-color-result').css('backgroundColor');movingPlan.find('.wp-picker-container').remove();movingPlan.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');movingPlan.find('.dmb_color_picker').wpColorPicker();$(this).closest('.dmb_main').remove()}
14
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingPlan=$(this).closest('.dmb_main').clone(!0);movingPlan.insertBefore($(this).closest('.dmb_main').prev());var rgbColorToMove=movingPlan.find('.wp-color-result').css('backgroundColor');movingPlan.find('.wp-picker-container').remove();movingPlan.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');movingPlan.find('.dmb_color_picker').wpColorPicker();$(this).closest('.dmb_main').remove()}
15
+ return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_title_of_plan').val()+' ('+objectL10n.copy+')');clone.find('.dmb_title_of_plan').focus();var rgbColorToMove=$(this).closest('.dmb_main').find('.wp-color-result').css('backgroundColor');clone.find('.wp-picker-container').remove();clone.find('.dmb_color_box').append('<input class="dmb_color_picker dmb_field" name="plan_colors[]" type="text" value="'+dmb_rgb2hex(rgbColorToMove)+'" />');clone.find('.dmb_color_picker').wpColorPicker();refreshPlanCountRelatedUI();return!1});$('.dmb_title_of_plan').each(function(i,obj){if($(this).val()!=''){var handleTitle=$(this).closest('.dmb_main').find('.dmb_handle_title');handleTitle.html($(this).val())}});$('.dmb_title_of_plan').live("keyup",function(e){var titleField=$(this);var handleTitle=titleField.closest('.dmb_main').find('.dmb_handle_title');(titleField.val()!='')?handleTitle.html(titleField.val()):handleTitle.html(objectL10n.untitled)});$('.dmb_text_settings_box_show').click(function(){$('.dmb_text_settings_box').toggle()});$('.dmb_show_preview_table').click(function(){var settings={};settings.planCount=$('.dmb_main').not('.dmb_empty_plan').size();settings.tableCurrency=$("input[name='table_currency']").val();settings.tableEq=$("select[name='table_equalizer'] option:selected").val();settings.tableSkin=$("select[name='table_skin'] option:selected").val();settings.fontTitleAlignment=$("select[name='font_title_alignment'] option:selected").val();settings.fontSizeTitle=$("select[name='font_size_title'] option:selected").val();settings.fontSizeSubtitle=$("select[name='font_size_subtitle'] option:selected").val();settings.fontSizeDescription=$("select[name='font_size_description'] option:selected").val();settings.fontSizePrice=$("select[name='font_size_price'] option:selected").val();settings.fontSizeRecurrence=$("select[name='font_size_recurrence'] option:selected").val();settings.fontSizeButton=$("select[name='font_size_button'] option:selected").val();settings.fontSizeFeatures=$("select[name='font_size_features'] option:selected").val();if(settings.fontSizeTitle=='small'){settings.fontSizeTitle=' rpt_sm_title'}
16
  else if(settings.fontSizeTitle=='tiny'){settings.fontSizeTitle=' rpt_xsm_title'}
17
  else{settings.fontSizeTitle=''}
18
  if(settings.fontSizeSubtitle=='small'){settings.fontSizeSubtitle=' rpt_sm_subtitle'}
30
  else{settings.fontSizeFeatures=''}
31
  if(settings.fontSizeButton=='small'){settings.fontSizeButton=' rpt_sm_button'}
32
  else{settings.fontSizeButton=''}
33
+ switch(settings.tableSkin){case 'lottacolor':settings.skinClass='rpt_style_loc';break;case 'spec':settings.skinClass='rpt_style_spec';break;case 'bitcolor':settings.skinClass='rpt_style_bic';break;case 'sweetlines':settings.skinClass='rpt_style_swl';break;default:settings.skinClass='rpt_style_basic'}
34
+ if(settings.tableEq=='no'||!settings.tableEq){settings.EqClass=''}
35
+ else{settings.EqClass='rpt_plan_eq'}
36
+ var preview_html='';preview_html+='<div id="rpt_pricr" style="margin-top:100px;" class="rpt_plans rpt_'+settings.planCount+'_plans '+settings.EqClass+' '+settings.skinClass+'">';preview_html+='<div class="'+settings.fontSizeTitle+' '+settings.fontSizeSubtitle+' '+settings.fontSizeDescription+' '+settings.fontSizePrice+' '+settings.fontSizeRecurrence+' '+settings.fontSizeButton+' '+settings.fontSizeFeatures+'">';preview_html+='<style>.rpt_plans .rpt_plan .rpt_foot{line-height:34px;} #rpt_pricr{font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 300; line-height: 27px;}</style>'
37
+ $('.dmb_main').not('.dmb_empty_plan').each(function(i,obj){var fields={},plan={};fields.title=$(this).find(".dmb_title_of_plan").val();fields.subtitle=$(this).find(".dmb_subtitle_of_plan").val();fields.recurrence=$(this).find(".dmb_recurrence_of_plan").val();fields.price=$(this).find(".dmb_price_of_plan").val();fields.description=$(this).find(".dmb_description_of_plan").val();fields.icon=$(this).find(".dmb_icon_of_plan").attr('data-icon');fields.recommended=$(this).find(".dmb_switch_recommended").find(":selected").val();fields.free=$(this).find(".dmb_switch_free").find(":selected").val();fields.features=$(this).find(".dmb_features_of_plan").val();fields.buttonText=$(this).find(".dmb_button_text_of_plan").val();fields.customButton=$(this).find(".dmb_custom_button_of_plan").val();fields.color=dmb_rgb2hex($(this).find(".wp-color-result").css('backgroundColor'))||'#8dba09';if(fields.recommended&&fields.recommended=='yes'){plan.recoClass='rpt_recommended_plan';(settings.tableSkin=='sweetlines'||settings.tableSkin=='lottacolor')?plan.recoImg='<img class="rpt_recommended" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/rpt_recommendedw.png"/>':plan.recoImg='<img class="rpt_recommended" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/rpt_recommended.png"/>'}else{plan.recoImg='';plan.recoClass=''}(settings.tableSkin=='sweetlines')?preview_html+='<div style="border:4px solid '+fields.color+';" class="rpt_plan rpt_plan_'+i+' '+plan.recoClass+'">':preview_html+='<div class="rpt_plan rpt_plan_'+i+' '+plan.recoClass+'">';if(settings.tableSkin=='lottacolor'){plan.titleStyle='style="text-align:'+settings.fontTitleAlignment+'; opacity:0.8; background-color:'+fields.color+';"'}else if(settings.tableSkin=='sweetlines'){plan.titleStyle='style="text-align:'+settings.fontTitleAlignment+'; background-color:'+fields.color+';"'}else{plan.titleStyle='style="text-align:'+settings.fontTitleAlignment+';"'}
38
+ if(fields.title){preview_html+='<div '+plan.titleStyle+' class="rpt_title rpt_title_'+i+'">';if(fields.icon){preview_html+='<img height=30px width=30px src="'+fields.icon+'" class="rpt_icon rpt_icon_'+i+'"/> '}
39
+ preview_html+=fields.title;preview_html+=plan.recoImg+'</div>'}(settings.tableSkin=='lottacolor'||settings.tableSkin=='bitcolor')?plan.headStyle='style="background-color:'+fields.color+';"':plan.headStyle='';preview_html+='<div '+plan.headStyle+' class="rpt_head rpt_head_'+i+'">';if(fields.recurrence){preview_html+='<div class="rpt_recurrence rpt_recurrence_'+i+'">'+fields.recurrence+'</div>'}
40
+ if(fields.price){(settings.tableSkin=='sweetlines')?preview_html+='<div style="color:'+fields.color+'" class="rpt_price rpt_price_'+i+'">':preview_html+='<div class="rpt_price rpt_price_'+i+'">';if(fields.free=='yes'||fields.free=='on'){preview_html+='<span class="rpt_currency">';preview_html+='</span>'}else{if(settings.tableCurrency){preview_html+='<span class="rpt_currency">';preview_html+=settings.tableCurrency;preview_html+='</span>'}else{preview_html+='<span class="rpt_currency">';preview_html+='</span>'}}
41
+ preview_html+=fields.price;preview_html+='</div>'}(settings.tableSkin=='lottacolor'||settings.tableSkin=='bitcolor')?plan.subtitleColor='white':plan.subtitleColor=fields.color;if(fields.subtitle){preview_html+='<div style="color:'+plan.subtitleColor+';" class="rpt_subtitle rpt_subtitle_'+i+'">'+fields.subtitle+'</div>'}
42
  if(fields.description){preview_html+='<div class="rpt_description rpt_description_'+i+'">'+fields.description+'</div>'}
43
  preview_html+='<div style="clear:both;"></div>';preview_html+='</div>';if(fields.features){preview_html+='<div class="rpt_features rpt_features_'+i+'">';plan.features=[];plan.featureString=fields.features;plan.featureStringArray=plan.featureString.split("\n");plan.featureStringArray=plan.featureStringArray.map(function(el){return el.trim()});$.each(plan.featureStringArray,function(index,value){plan.features.push(dmb_strip_tags(value,'<strong></strong><br><br/></br><img><a>'))});$.each(plan.featureStringArray,function(smallKey,feature){if(feature){var check=feature.substr(0,2);if(check=='-n'){feature=feature.substr(2);var checkColor='#bbbbbb'}else{checkColor='black'}
44
+ if(feature.indexOf('{')!==-1&&feature.indexOf('}')!==-1){var tooltipText=feature.substring(feature.lastIndexOf("{")+1,feature.lastIndexOf("}"));feature=feature.replace(/{.+}/,'');feature+='<span class="rpt_tooltip_plus" style="color:'+fields.color+' !important;"> +</span>';(settings.tableSkin=='sweetlines')?preview_html+='<div style="color:'+checkColor+';" class="rpt_feature rpt_feature_'+i+'-'+smallKey+'"><a href="javascript:void(0)" style="color:'+checkColor+';" class="rpt_tooltip">':preview_html+='<div style="color:'+checkColor+';" class="rpt_feature rpt_feature_'+i+'-'+smallKey+'"><a href="javascript:void(0)" style="color:'+checkColor+';" class="rpt_tooltip">';preview_html+='<span class="intool"><b></b>'+tooltipText+'</span>';preview_html+=feature;preview_html+='</a></div>'}else{preview_html+='<div style="color:'+checkColor+';" class="rpt_feature rpt_feature_'+i+'-'+smallKey+'">';preview_html+=feature;preview_html+='</div>'}}});preview_html+='</div>';preview_html+='<div style="clear:both;"></div>'}
45
+ if(fields.customButton){if(settings.tableSkin=='basic'){preview_html+='<div class="rpt_custom_btn" style="background-color:'+fields.color+'">';preview_html+=fields.customButton;preview_html+='</div>'}
46
+ if(settings.tableSkin=='sweetlines'){preview_html+='<div class="rpt_custom_btn">';preview_html+=fields.customButton;preview_html+='</div>'}
47
+ if(settings.tableSkin!='basic'&&settings.tableSkin!='sweetlines'){preview_html+='<div class="rpt_custom_btn" style="background-color:'+fields.color+'">';preview_html+=fields.customButton;preview_html+='</div>'}}else{if(fields.buttonText){if(settings.tableSkin=='sweetlines'){preview_html+='<a href="#" style="background:white; color:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">'}else{preview_html+='<a href="#" style="background:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">'}}else{if(settings.tableSkin=='sweetlines'){preview_html+='<a style="background:white; color:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">'}else{preview_html+='<a style="background:'+fields.color+'" class="rpt_foot rpt_foot_'+i+'">'}}
48
+ preview_html+=fields.buttonText;preview_html+='</a>'}
49
+ preview_html+='</div>'});preview_html+='</div>';preview_html+='</div>';preview_html+='<div style="clear:both;"></div>';preview_html+='<div class="dmb_accuracy_preview_notice">'+objectL10n.previewAccuracy+'</div>';if(settings.planCount==0){$('#dmb_preview_table').append('<div class="dmb_no_plan_preview_notice">'+objectL10n.noPlan+'</div>')}else{$('#dmb_preview_table').append(preview_html);setTimeout(function(){rpt_equalize()})}
50
+ $('#dmb_preview_table').fadeIn(100)});$('.dmb_preview_table_close').click(function(){$('#dmb_preview_table #rpt_pricr, .dmb_accuracy_preview_notice, .dmb_no_plan_preview_notice').remove();$('#dmb_preview_table').fadeOut(100)})})})(jQuery);
inc/img/rpt_recommended.png CHANGED
File without changes
inc/js/rpt.js CHANGED
File without changes
inc/js/rpt.min.js CHANGED
File without changes
inc/rpt-admin-scripts.php CHANGED
File without changes
inc/rpt-front-scripts.php CHANGED
File without changes
inc/rpt-metaboxes-help.php CHANGED
@@ -37,8 +37,8 @@ function dmb_rpts_help_display() { ?>
37
  <div class="dmb_help_title">
38
  Get support
39
  </div>
40
- <a target="_blank" href="https://wpdarko.com/ask-for-support/">Submit a ticket</a><br/>
41
- <a target="_blank" href="https://wpdarko.com/docs/guide-responsive-pricing-table/">View documentation</a>
42
  </div>
43
 
44
  <?php } ?>
37
  <div class="dmb_help_title">
38
  Get support
39
  </div>
40
+ <a target="_blank" href="https://wpdarko.com/support/submit-a-request/">Submit a ticket</a><br/>
41
+ <a target="_blank" href="https://wpdarko.com/support/docs/get-started-with-the-responsive-pricing-table-plugin/">View documentation</a>
42
  </div>
43
 
44
  <?php } ?>
inc/rpt-metaboxes-plans.php CHANGED
@@ -169,8 +169,8 @@ function dmb_rpts_plan_display() {
169
  <div class="dmb_tip">
170
  <?php
171
  // Feature tips
172
- $dmb_image_tip = "<a class='dmb_tooltip_large' data-tooltip=\"<img src='http://yoursite.com/media/image.png'/>\">[?]</a>";
173
- $dmb_link_tip = "<a class='dmb_tooltip_large' data-tooltip=\"<a href='http://yoursite.com'>Click here</a>\">[?]</a>";
174
  $dmb_bold_text_tip = "<a class='dmb_tooltip_small' data-tooltip=\"<strong>Bold</strong>\">[?]</a>";
175
  printf(
176
  /* translators: 1: image tooltip 2: link tooltip 3: bold text tooltip (leave at the end) */
@@ -351,8 +351,8 @@ function dmb_rpts_plan_display() {
351
  <div class="dmb_tip">
352
  <?php
353
  // Feature tips
354
- $dmb_image_tip = "<a class='dmb_tooltip_large' data-tooltip=\"<img src='http://yoursite.com/media/image.png'/>\">[?]</a>";
355
- $dmb_link_tip = "<a class='dmb_tooltip_large' data-tooltip=\"<a href='http://yoursite.com'>Click here</a>\">[?]</a>";
356
  $dmb_bold_text_tip = "<a class='dmb_tooltip_small' data-tooltip=\"<strong>Bold</strong>\">[?]</a>";
357
  printf(
358
  /* translators: 1: image tooltip 2: link tooltip 3: bold text tooltip (leave at the end) */
169
  <div class="dmb_tip">
170
  <?php
171
  // Feature tips
172
+ $dmb_image_tip = "<a class='dmb_tooltip_large' data-tooltip='<img src=\"http://yoursite.com/media/image.png\"/>'>[?]</a>";
173
+ $dmb_link_tip = "<a class='dmb_tooltip_large' data-tooltip='<a href=\"http://yoursite.com\">Click here</a>'>[?]</a>";
174
  $dmb_bold_text_tip = "<a class='dmb_tooltip_small' data-tooltip=\"<strong>Bold</strong>\">[?]</a>";
175
  printf(
176
  /* translators: 1: image tooltip 2: link tooltip 3: bold text tooltip (leave at the end) */
351
  <div class="dmb_tip">
352
  <?php
353
  // Feature tips
354
+ $dmb_image_tip = "<a class='dmb_tooltip_large' data-tooltip='<img src=\"http://yoursite.com/media/image.png\"/>'>[?]</a>";
355
+ $dmb_link_tip = "<a class='dmb_tooltip_large' data-tooltip='<a href=\"http://yoursite.com\">Click here</a>'>[?]</a>";
356
  $dmb_bold_text_tip = "<a class='dmb_tooltip_small' data-tooltip=\"<strong>Bold</strong>\">[?]</a>";
357
  printf(
358
  /* translators: 1: image tooltip 2: link tooltip 3: bold text tooltip (leave at the end) */
inc/rpt-metaboxes-pro.php CHANGED
File without changes
inc/rpt-metaboxes-settings.php CHANGED
File without changes
inc/rpt-post-type.php CHANGED
File without changes
inc/rpt-pro-version-check.php CHANGED
File without changes
inc/rpt-save-metaboxes.php CHANGED
@@ -58,11 +58,11 @@ function dmb_rpts_plan_meta_box_save($post_id) {
58
  (isset($_POST['plan_descriptions'][$i]) && $_POST['plan_descriptions'][$i]) ? $new_plans[$i]['_rpt_description'] = stripslashes( wp_kses_post( $_POST['plan_descriptions'][$i] ) ) : $new_plans[$i]['_rpt_description'] = '';
59
 
60
  /* Features */
61
- (isset($_POST['plan_features'][$i]) && $_POST['plan_features'][$i]) ? $new_plans[$i]['_rpt_features'] = wp_kses_post($_POST['plan_features'][$i] ) : $new_plans[$i]['_rpt_features'] = '';
62
 
63
  /* Button. */
64
  (isset($_POST['plan_button_texts'][$i]) && $_POST['plan_button_texts'][$i]) ? $new_plans[$i]['_rpt_btn_text'] = stripslashes( wp_kses_post( $_POST['plan_button_texts'][$i] ) ) : $new_plans[$i]['_rpt_btn_text'] = '';
65
- (isset($_POST['plan_button_urls'][$i]) && $_POST['plan_button_urls'][$i]) ? $new_plans[$i]['_rpt_btn_link'] = stripslashes( strip_tags( sanitize_text_field( $_POST['plan_button_urls'][$i] ) ) ) : $new_plans[$i]['_rpt_btn_link'] = '';
66
  (isset($_POST['plan_custom_buttons'][$i]) && $_POST['plan_custom_buttons'][$i]) ? $new_plans[$i]['_rpt_btn_custom_btn'] = balanceTags($_POST['plan_custom_buttons'][$i]) : $new_plans[$i]['_rpt_btn_custom_btn'] = '';
67
 
68
  /* Styling. */
58
  (isset($_POST['plan_descriptions'][$i]) && $_POST['plan_descriptions'][$i]) ? $new_plans[$i]['_rpt_description'] = stripslashes( wp_kses_post( $_POST['plan_descriptions'][$i] ) ) : $new_plans[$i]['_rpt_description'] = '';
59
 
60
  /* Features */
61
+ (isset($_POST['plan_features'][$i]) && $_POST['plan_features'][$i]) ? $new_plans[$i]['_rpt_features'] = wp_kses_post( $_POST['plan_features'][$i] ) : $new_plans[$i]['_rpt_features'] = '';
62
 
63
  /* Button. */
64
  (isset($_POST['plan_button_texts'][$i]) && $_POST['plan_button_texts'][$i]) ? $new_plans[$i]['_rpt_btn_text'] = stripslashes( wp_kses_post( $_POST['plan_button_texts'][$i] ) ) : $new_plans[$i]['_rpt_btn_text'] = '';
65
+ (isset($_POST['plan_button_urls'][$i]) && $_POST['plan_button_urls'][$i]) ? $new_plans[$i]['_rpt_btn_link'] = wp_kses_post( $_POST['plan_button_urls'][$i] ) : $new_plans[$i]['_rpt_btn_link'] = '';
66
  (isset($_POST['plan_custom_buttons'][$i]) && $_POST['plan_custom_buttons'][$i]) ? $new_plans[$i]['_rpt_btn_custom_btn'] = balanceTags($_POST['plan_custom_buttons'][$i]) : $new_plans[$i]['_rpt_btn_custom_btn'] = '';
67
 
68
  /* Styling. */
inc/rpt-shortcode-column.php CHANGED
File without changes
inc/rpt-shortcode.php CHANGED
@@ -19,242 +19,242 @@ function rpt_sc($atts) {
19
 
20
  foreach($custom_posts as $post) : setup_postdata($post);
21
 
22
- /* Gets the plans. */
23
- $plans = get_post_meta( $post->ID, '_rpt_plan_group', true );
24
-
25
- /* Counts the plans. */
26
- $nb_plans = count($plans);
27
-
28
- /* Gets 'force font' setting. */
29
- $original_font = get_post_meta( $post->ID, '_rpt_original_font', true );
30
- if ($original_font == 'no' || empty($original_font)){ $ori_f = ''; }
31
- else { $ori_f = 'rpt_plan_ori'; }
32
-
33
- /* Gets title align settings. */
34
- $title_align = get_post_meta( $post->ID, '_rpt_title_alignment', true );
35
- if ($title_align == 'center'){ $title_align_style = 'center'; }
36
- else { $title_align_style = 'left'; }
37
-
38
- /* Gets font size settings. */
39
- $title_fontsize = get_post_meta( $post->ID, '_rpt_title_fontsize', true );
40
- if ($title_fontsize == 'small') { $title_fs_class = ' rpt_sm_title'; }
41
- else if ($title_fontsize == 'tiny') { $title_fs_class = ' rpt_xsm_title'; }
42
- else { $title_fs_class = ''; }
43
-
44
- $subtitle_fontsize = get_post_meta( $post->ID, '_rpt_subtitle_fontsize', true );
45
- if ($subtitle_fontsize == 'small') { $subtitle_fs_class = ' rpt_sm_subtitle'; }
46
- else if ($subtitle_fontsize == 'tiny') { $subtitle_fs_class = ' rpt_xsm_subtitle'; }
47
- else { $subtitle_fs_class = ''; }
48
-
49
- $description_fontsize = get_post_meta( $post->ID, '_rpt_description_fontsize', true );
50
- if ($description_fontsize == 'small') { $description_fs_class = ' rpt_sm_description'; }
51
- else { $description_fs_class = ''; }
52
-
53
- $price_fontsize = get_post_meta( $post->ID, '_rpt_price_fontsize', true );
54
- if ($price_fontsize == 'small') { $price_fs_class = ' rpt_sm_price'; }
55
- else if ($price_fontsize == 'tiny') { $price_fs_class = ' rpt_xsm_price'; }
56
- else if ($price_fontsize == 'supertiny') { $price_fs_class = ' rpt_xxsm_price'; }
57
- else { $price_fs_class = ''; }
58
-
59
- $recurrence_fontsize = get_post_meta( $post->ID, '_rpt_recurrence_fontsize', true );
60
- if ($recurrence_fontsize == 'small') { $recurrence_fs_class = ' rpt_sm_recurrence'; }
61
- else { $recurrence_fs_class = ''; }
62
-
63
- $features_fontsize = get_post_meta( $post->ID, '_rpt_features_fontsize', true );
64
- if ($features_fontsize == 'small') { $features_fs_class = ' rpt_sm_features'; }
65
- else { $features_fs_class = ''; }
66
-
67
- $button_fontsize = get_post_meta( $post->ID, '_rpt_button_fontsize', true );
68
- if ($button_fontsize == 'small') { $button_fs_class = ' rpt_sm_button'; }
69
- else { $button_fs_class = ''; }
70
-
71
- /* START pricing table. */
72
- $table_view .= '<div id="rpt_pricr" class="rpt_plans rpt_'.$nb_plans .'_plans rpt_style_basic">';
73
-
74
- /* START inner. */
75
- $table_view .= '<div class="'. $title_fs_class . $subtitle_fs_class . $description_fs_class . $price_fs_class . $recurrence_fs_class . $features_fs_class. $button_fs_class .'">';
76
-
77
- if (is_array($plans) || is_object($plans)) {
78
-
79
- /* For each plan. */
80
- foreach ($plans as $key => $plan) {
81
-
82
- /* If recommended plan. */
83
- if (!empty($plan['_rpt_recommended'])){
84
- $is_reco = $plan['_rpt_recommended'];
85
- if ($is_reco == 'no' || empty($is_reco)){
86
- $reco = '';
87
- $reco_class = '';
 
 
 
 
 
88
  } else {
89
- $reco = '<img class="rpt_recommended" src="' . plugins_url('img/rpt_recommended.png', __FILE__) . '"/>';
90
- $reco_class = 'rpt_recommended_plan';
91
  }
92
- /* If NOT recommended plan. */
93
- } else {
94
- $reco = '';
95
- $reco_class = '';
96
- }
97
 
98
- if (empty($plan['_rpt_custom_classes'])){
99
- $plan['_rpt_custom_classes'] = '';
100
- }
101
 
102
- /* START plan. */
103
- $table_view .= '<div class="rpt_plan '.$ori_f.' rpt_plan_' . $key . ' ' . $reco_class . ' ' . $plan['_rpt_custom_classes'] . '">';
104
 
105
- /* Title. */
106
- $title_style = 'style="text-align:'.$title_align_style.';"';
107
 
108
- if (!empty($plan['_rpt_title'])){
109
- $table_view .= '<div ' . $title_style . ' class="rpt_title rpt_title_' . $key . '">';
110
 
111
- if (!empty($plan['_rpt_icon'])){
112
- $table_view .= '<img src="' . $plan['_rpt_icon'] . '" class="rpt_icon rpt_icon_' . $key . '"/> ';
 
 
 
 
113
  }
114
 
115
- $table_view .= $plan['_rpt_title'];
116
- $table_view .= $reco . '</div>';
117
- }
118
 
119
- /* START plan head (price). */
120
- $table_view .= '<div class="rpt_head rpt_head_' . $key . '">';
 
 
121
 
122
- /* Recurrence. */
123
- if (!empty($plan['_rpt_recurrence'])){
124
- $table_view .= '<div class="rpt_recurrence rpt_recurrence_' . $key . '">' . $plan['_rpt_recurrence'] . '</div>';
125
- }
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
- /* Price. */
128
- if (!empty($plan['_rpt_price']) || $plan['_rpt_price'] == 0){
129
 
130
- $table_view .= '<div class="rpt_price rpt_price_' . $key . '">';
131
 
132
- if ( !empty($plan['_rpt_free']) && $plan['_rpt_free'] != 'no' ){
133
- $table_view .= '<span class="rpt_currency"></span>' . $plan['_rpt_price'];
134
- } else {
135
 
136
- $currency = get_post_meta( $post->ID, '_rpt_currency', true );
137
-
138
- if (!empty($currency)){
139
- $table_view .= '<span class="rpt_currency">';
140
- $table_view .= $currency;
141
- $table_view .= '</span>';
142
- }
143
 
144
- $table_view .= $plan['_rpt_price'];
 
 
 
145
 
 
 
 
146
  }
147
 
148
- $table_view .= '</div>';
149
-
150
- }
151
-
152
- /* Subtitle. */
153
- if (!empty($plan['_rpt_subtitle'])){
154
- $table_view .= '<div style="color:' . $plan['_rpt_color'] . ';" class="rpt_subtitle rpt_subtitle_' . $key . '">' . $plan['_rpt_subtitle'] . '</div>';
155
- }
156
 
157
- /* Description. */
158
- if (!empty($plan['_rpt_description'])){
159
- $table_view .= '<div class="rpt_description rpt_description_' . $key . '">' . $plan['_rpt_description'] . '</div>';
160
- }
161
 
162
- /* END plan head. */
163
- $table_view .= '</div>';
164
 
165
- /* Features. */
166
- if (!empty($plan['_rpt_features'])){
167
 
168
- $table_view .= '<div class="rpt_features rpt_features_' . $key . '">'; // open
 
 
169
 
170
- $features = array();
 
 
171
 
172
- $string = $plan['_rpt_features'];
173
- $stringAr = explode("\n", $string);
174
- $stringAr = array_filter($stringAr, 'trim');
175
 
176
- foreach ($stringAr as $feature) {
177
- $features[] = strip_tags($feature,'<strong></strong><br><br/></br><img><a>');
178
- }
 
 
 
 
179
 
180
- foreach ($features as $small_key => $feature){
181
- if (!empty($feature)){
 
182
 
183
- $check = substr($feature, 0, 2);
184
- if ($check == '-n') {
185
- $feature = substr($feature, 2);
186
- $check_color = '#bbbbbb';
187
- } else {
188
- $check_color = 'black';
189
  }
190
-
191
- $table_view .= '<div style="color:' . $check_color . ';" class="rpt_feature rpt_feature_' . $key . '-' . $small_key . '">';
192
- $table_view .= $feature;
193
- $table_view .= '</div>';
194
-
195
  }
196
- }
197
-
198
- $table_view .= '</div>'; // close
199
- }
200
 
201
- /* Gets button data. */
202
- if (!empty($plan['_rpt_btn_text'])){
203
- $btn_text = $plan['_rpt_btn_text'];
204
- if (!empty($plan['_rpt_btn_link'])){
205
- $btn_link = $plan['_rpt_btn_link'];
206
- } else { $btn_link = '#'; }
207
- } else {
208
- $btn_text = '';
209
- $btn_link = '#';
210
- }
211
 
212
- /* Gets button behavior data. */
213
- $newcurrentwindow = get_post_meta( $post->ID, '_rpt_open_newwindow', true );
214
- if ($newcurrentwindow == 'newwindow'){
215
- $link_behavior = 'target="_blank"';
216
- } else {
217
- $link_behavior = 'target="_self"';
218
- }
 
 
 
219
 
220
- /* If custom button. */
221
- if (!empty($plan['_rpt_btn_custom_btn'])){
 
 
 
 
 
222
 
223
- $table_view .= '<div class="rpt_custom_btn" style="background-color:'.$plan['_rpt_color'].'">';
224
- $table_view .= do_shortcode($plan['_rpt_btn_custom_btn']);
225
- $table_view .= '</div>';
226
 
227
- /* If NOT custom button. */
228
- } else {
 
229
 
230
- /* START default button. */
231
- if (!empty($plan['_rpt_btn_text'])){
232
- $table_view .= '<a '. $link_behavior .' href="' . do_shortcode($btn_link) . '" style="background:' . $plan['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
233
  } else {
234
- $table_view .= '<a '. $link_behavior .' style="background:' . $plan['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
235
- }
236
 
237
- $table_view .= do_shortcode($btn_text);
 
 
 
 
 
 
 
238
 
239
- /* END default button. */
240
- $table_view .= '</a>';
241
 
242
- }
243
 
244
- /* END plan. */
245
- $table_view .= '</div>';
 
 
246
 
247
  }
248
 
249
- }
 
250
 
251
- /* END inner. */
252
  $table_view .= '</div>';
253
 
254
- /* END pricing table. */
255
- $table_view .= '</div>';
256
-
257
- $table_view .= '<div style="clear:both;"></div>';
258
 
259
  endforeach; wp_reset_postdata();
260
  return $table_view;
19
 
20
  foreach($custom_posts as $post) : setup_postdata($post);
21
 
22
+ /* Gets the plans. */
23
+ $plans = get_post_meta( $post->ID, '_rpt_plan_group', true );
24
+
25
+ /* Counts the plans. */
26
+ $nb_plans = count($plans);
27
+
28
+ /* Gets 'force font' setting. */
29
+ $original_font = get_post_meta( $post->ID, '_rpt_original_font', true );
30
+ if ($original_font == 'no' || empty($original_font)){ $ori_f = ''; }
31
+ else { $ori_f = 'rpt_plan_ori'; }
32
+
33
+ /* Gets title align settings. */
34
+ $title_align = get_post_meta( $post->ID, '_rpt_title_alignment', true );
35
+ if ($title_align == 'center'){ $title_align_style = 'center'; }
36
+ else { $title_align_style = 'left'; }
37
+
38
+ /* Gets font size settings. */
39
+ $title_fontsize = get_post_meta( $post->ID, '_rpt_title_fontsize', true );
40
+ if ($title_fontsize == 'small') { $title_fs_class = ' rpt_sm_title'; }
41
+ else if ($title_fontsize == 'tiny') { $title_fs_class = ' rpt_xsm_title'; }
42
+ else { $title_fs_class = ''; }
43
+
44
+ $subtitle_fontsize = get_post_meta( $post->ID, '_rpt_subtitle_fontsize', true );
45
+ if ($subtitle_fontsize == 'small') { $subtitle_fs_class = ' rpt_sm_subtitle'; }
46
+ else if ($subtitle_fontsize == 'tiny') { $subtitle_fs_class = ' rpt_xsm_subtitle'; }
47
+ else { $subtitle_fs_class = ''; }
48
+
49
+ $description_fontsize = get_post_meta( $post->ID, '_rpt_description_fontsize', true );
50
+ if ($description_fontsize == 'small') { $description_fs_class = ' rpt_sm_description'; }
51
+ else { $description_fs_class = ''; }
52
+
53
+ $price_fontsize = get_post_meta( $post->ID, '_rpt_price_fontsize', true );
54
+ if ($price_fontsize == 'small') { $price_fs_class = ' rpt_sm_price'; }
55
+ else if ($price_fontsize == 'tiny') { $price_fs_class = ' rpt_xsm_price'; }
56
+ else if ($price_fontsize == 'supertiny') { $price_fs_class = ' rpt_xxsm_price'; }
57
+ else { $price_fs_class = ''; }
58
+
59
+ $recurrence_fontsize = get_post_meta( $post->ID, '_rpt_recurrence_fontsize', true );
60
+ if ($recurrence_fontsize == 'small') { $recurrence_fs_class = ' rpt_sm_recurrence'; }
61
+ else { $recurrence_fs_class = ''; }
62
+
63
+ $features_fontsize = get_post_meta( $post->ID, '_rpt_features_fontsize', true );
64
+ if ($features_fontsize == 'small') { $features_fs_class = ' rpt_sm_features'; }
65
+ else { $features_fs_class = ''; }
66
+
67
+ $button_fontsize = get_post_meta( $post->ID, '_rpt_button_fontsize', true );
68
+ if ($button_fontsize == 'small') { $button_fs_class = ' rpt_sm_button'; }
69
+ else { $button_fs_class = ''; }
70
+
71
+ /* START pricing table. */
72
+ $table_view .= '<div id="rpt_pricr" class="rpt_plans rpt_'.$nb_plans .'_plans rpt_style_basic">';
73
+
74
+ /* START inner. */
75
+ $table_view .= '<div class="'. $title_fs_class . $subtitle_fs_class . $description_fs_class . $price_fs_class . $recurrence_fs_class . $features_fs_class. $button_fs_class .'">';
76
+
77
+ if (is_array($plans) || is_object($plans)) {
78
+
79
+ /* For each plan. */
80
+ foreach ($plans as $key => $plan) {
81
+
82
+ /* If recommended plan. */
83
+ if (!empty($plan['_rpt_recommended'])){
84
+ $is_reco = $plan['_rpt_recommended'];
85
+ if ($is_reco == 'no' || empty($is_reco)){
86
+ $reco = '';
87
+ $reco_class = '';
88
+ } else {
89
+ $reco = '<img class="rpt_recommended" src="' . plugins_url('img/rpt_recommended.png', __FILE__) . '"/>';
90
+ $reco_class = 'rpt_recommended_plan';
91
+ }
92
+ /* If NOT recommended plan. */
93
  } else {
94
+ $reco = '';
95
+ $reco_class = '';
96
  }
 
 
 
 
 
97
 
98
+ if (empty($plan['_rpt_custom_classes'])){
99
+ $plan['_rpt_custom_classes'] = '';
100
+ }
101
 
102
+ /* START plan. */
103
+ $table_view .= '<div class="rpt_plan '.$ori_f.' rpt_plan_' . $key . ' ' . $reco_class . ' ' . $plan['_rpt_custom_classes'] . '">';
104
 
105
+ /* Title. */
106
+ $title_style = 'style="text-align:'.$title_align_style.';"';
107
 
108
+ if (!empty($plan['_rpt_title'])){
109
+ $table_view .= '<div ' . $title_style . ' class="rpt_title rpt_title_' . $key . '">';
110
 
111
+ if (!empty($plan['_rpt_icon'])){
112
+ $table_view .= '<img src="' . $plan['_rpt_icon'] . '" class="rpt_icon rpt_icon_' . $key . '"/> ';
113
+ }
114
+
115
+ $table_view .= $plan['_rpt_title'];
116
+ $table_view .= $reco . '</div>';
117
  }
118
 
119
+ /* START plan head (price). */
120
+ $table_view .= '<div class="rpt_head rpt_head_' . $key . '">';
 
121
 
122
+ /* Recurrence. */
123
+ if (!empty($plan['_rpt_recurrence'])){
124
+ $table_view .= '<div class="rpt_recurrence rpt_recurrence_' . $key . '">' . $plan['_rpt_recurrence'] . '</div>';
125
+ }
126
 
127
+ /* Price. */
128
+ if (!empty($plan['_rpt_price']) || $plan['_rpt_price'] == 0){
129
+
130
+ $table_view .= '<div class="rpt_price rpt_price_' . $key . '">';
131
+
132
+ if ( !empty($plan['_rpt_free']) && $plan['_rpt_free'] != 'no' ){
133
+ $table_view .= '<span class="rpt_currency"></span>' . $plan['_rpt_price'];
134
+ } else {
135
+
136
+ $currency = get_post_meta( $post->ID, '_rpt_currency', true );
137
+
138
+ if (!empty($currency)){
139
+ $table_view .= '<span class="rpt_currency">';
140
+ $table_view .= $currency;
141
+ $table_view .= '</span>';
142
+ }
143
 
144
+ $table_view .= $plan['_rpt_price'];
 
145
 
146
+ }
147
 
148
+ $table_view .= '</div>';
 
 
149
 
150
+ }
 
 
 
 
 
 
151
 
152
+ /* Subtitle. */
153
+ if (!empty($plan['_rpt_subtitle'])){
154
+ $table_view .= '<div style="color:' . $plan['_rpt_color'] . ';" class="rpt_subtitle rpt_subtitle_' . $key . '">' . $plan['_rpt_subtitle'] . '</div>';
155
+ }
156
 
157
+ /* Description. */
158
+ if (!empty($plan['_rpt_description'])){
159
+ $table_view .= '<div class="rpt_description rpt_description_' . $key . '">' . $plan['_rpt_description'] . '</div>';
160
  }
161
 
162
+ /* END plan head. */
163
+ $table_view .= '</div>';
 
 
 
 
 
 
164
 
165
+ /* Features. */
166
+ if (!empty($plan['_rpt_features'])){
 
 
167
 
168
+ $table_view .= '<div class="rpt_features rpt_features_' . $key . '">'; // open
 
169
 
170
+ $features = array();
 
171
 
172
+ $string = $plan['_rpt_features'];
173
+ $stringAr = explode("\n", $string);
174
+ $stringAr = array_filter($stringAr, 'trim');
175
 
176
+ foreach ($stringAr as $feature) {
177
+ $features[] = strip_tags($feature,'<strong></strong><br><br/></br><img><a>');
178
+ }
179
 
180
+ foreach ($features as $small_key => $feature){
181
+ if (!empty($feature)){
 
182
 
183
+ $check = substr($feature, 0, 2);
184
+ if ($check == '-n') {
185
+ $feature = substr($feature, 2);
186
+ $check_color = '#bbbbbb';
187
+ } else {
188
+ $check_color = 'black';
189
+ }
190
 
191
+ $table_view .= '<div style="color:' . $check_color . ';" class="rpt_feature rpt_feature_' . $key . '-' . $small_key . '">';
192
+ $table_view .= $feature;
193
+ $table_view .= '</div>';
194
 
 
 
 
 
 
 
195
  }
 
 
 
 
 
196
  }
 
 
 
 
197
 
198
+ $table_view .= '</div>'; // close
199
+ }
 
 
 
 
 
 
 
 
200
 
201
+ /* Gets button data. */
202
+ if (!empty($plan['_rpt_btn_text'])){
203
+ $btn_text = $plan['_rpt_btn_text'];
204
+ if (!empty($plan['_rpt_btn_link'])){
205
+ $btn_link = $plan['_rpt_btn_link'];
206
+ } else { $btn_link = '#'; }
207
+ } else {
208
+ $btn_text = '';
209
+ $btn_link = '#';
210
+ }
211
 
212
+ /* Gets button behavior data. */
213
+ $newcurrentwindow = get_post_meta( $post->ID, '_rpt_open_newwindow', true );
214
+ if ($newcurrentwindow == 'newwindow'){
215
+ $link_behavior = 'target="_blank"';
216
+ } else {
217
+ $link_behavior = 'target="_self"';
218
+ }
219
 
220
+ /* If custom button. */
221
+ if (!empty($plan['_rpt_btn_custom_btn'])){
 
222
 
223
+ $table_view .= '<div class="rpt_custom_btn" style="background-color:'.$plan['_rpt_color'].'">';
224
+ $table_view .= do_shortcode($plan['_rpt_btn_custom_btn']);
225
+ $table_view .= '</div>';
226
 
227
+ /* If NOT custom button. */
 
 
228
  } else {
 
 
229
 
230
+ /* START default button. */
231
+ if (!empty($plan['_rpt_btn_text'])){
232
+ $table_view .= '<a '. $link_behavior .' href="' . do_shortcode($btn_link) . '" style="background:' . $plan['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
233
+ } else {
234
+ $table_view .= '<a '. $link_behavior .' style="background:' . $plan['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
235
+ }
236
+
237
+ $table_view .= do_shortcode($btn_text);
238
 
239
+ /* END default button. */
240
+ $table_view .= '</a>';
241
 
242
+ }
243
 
244
+ /* END plan. */
245
+ $table_view .= '</div>';
246
+
247
+ }
248
 
249
  }
250
 
251
+ /* END inner. */
252
+ $table_view .= '</div>';
253
 
254
+ /* END pricing table. */
255
  $table_view .= '</div>';
256
 
257
+ $table_view .= '<div style="clear:both;"></div>';
 
 
 
258
 
259
  endforeach; wp_reset_postdata();
260
  return $table_view;
inc/rpt-text-domain.php CHANGED
File without changes
lang/dk-pricr-responsive-pricing-table.pot CHANGED
File without changes
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: spwebguy
3
  Tags: pricing table, pricing tables, prices, pricing, plans, offer, shortcode, price, responsive, pricing, tables, pricing plan
4
  Requires at least: 3.6
5
- Tested up to: 4.9
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
@@ -40,10 +40,10 @@ The [PRO version](https://wpdarko.com/items/responsive-pricing-table-pro) adds n
40
  * Font size presets
41
 
42
  = Usage/Video tutorial =
43
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-responsive-pricing-table) if you need more information on how to use this plugin.
44
 
45
  = Support =
46
- Find help on [our website](https://wpdarko.com/ask-for-support) for this plugin (we’ll answer you fast, promise).
47
 
48
  == Installation ==
49
 
@@ -54,10 +54,10 @@ Find help on [our website](https://wpdarko.com/ask-for-support) for this plugin
54
  4. Activate the plugin
55
 
56
  = Usage/Video tutorial =
57
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-responsive-pricing-table) if you need more information on how to use this plugin.
58
 
59
  = Support =
60
- Find help on [our website](https://wpdarko.com/ask-for-support) for this plugin (we’ll answer you fast, promise).
61
 
62
  == Frequently Asked Questions ==
63
  = No limitation for the Free version =
@@ -66,10 +66,10 @@ The Free version of the Responsive Pricing Table plugin is **not limited**.
66
  The [PRO version](https://wpdarko.com/items/responsive-pricing-table-pro) adds new features: **skins**, **tooltips** and **equalizer**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features. The plan equalizer automatically evens out your plans' height.
67
 
68
  = Usage/Video tutorial =
69
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-responsive-pricing-table) if you need more information on how to use this plugin.
70
 
71
  = Support =
72
- Find help on [our website](https://wpdarko.com/ask-for-support) for this plugin (we’ll answer you fast, promise).
73
 
74
  == Screenshots ==
75
  1. Displaying the pricing table (front view)
@@ -80,6 +80,8 @@ Find help on [our website](https://wpdarko.com/ask-for-support) for this plugin
80
  6. Finding the shortcode (admin view)
81
 
82
  == Changelog ==
 
 
83
 
84
  = 5.0.3 =
85
  * Fixed issues when cloning/moving plans
2
  Contributors: spwebguy
3
  Tags: pricing table, pricing tables, prices, pricing, plans, offer, shortcode, price, responsive, pricing, tables, pricing plan
4
  Requires at least: 3.6
5
+ Tested up to: 5.3
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
40
  * Font size presets
41
 
42
  = Usage/Video tutorial =
43
+ Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-responsive-pricing-table-plugin/) if you need more information on how to use this plugin.
44
 
45
  = Support =
46
+ Find help on [our support platform](https://wpdarko.com/support) for this plugin (we’ll answer you fast, promise).
47
 
48
  == Installation ==
49
 
54
  4. Activate the plugin
55
 
56
  = Usage/Video tutorial =
57
+ Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-responsive-pricing-table-plugin/) if you need more information on how to use this plugin.
58
 
59
  = Support =
60
+ Find help on [our support platform](https://wpdarko.com/support) for this plugin (we’ll answer you fast, promise).
61
 
62
  == Frequently Asked Questions ==
63
  = No limitation for the Free version =
66
  The [PRO version](https://wpdarko.com/items/responsive-pricing-table-pro) adds new features: **skins**, **tooltips** and **equalizer**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features. The plan equalizer automatically evens out your plans' height.
67
 
68
  = Usage/Video tutorial =
69
+ Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-responsive-pricing-table-plugin/) if you need more information on how to use this plugin.
70
 
71
  = Support =
72
+ Find help on [our support platform](https://wpdarko.com/support) for this plugin (we’ll answer you fast, promise).
73
 
74
  == Screenshots ==
75
  1. Displaying the pricing table (front view)
80
  6. Finding the shortcode (admin view)
81
 
82
  == Changelog ==
83
+ = 5.0.4 =
84
+ * Fixed issues with button URL on saving
85
 
86
  = 5.0.3 =
87
  * Fixed issues when cloning/moving plans
rpt.php CHANGED
@@ -3,8 +3,8 @@
3
  /**
4
  * Plugin Name: Responsive Pricing Table
5
  * Plugin URI: https://wpdarko.com/items/responsive-pricing-table-pro/
6
- * Description: A responsive, easy and elegant way to present your offer to your visitors. Just create a new pricing table (custom type) and copy-paste the shortcode into your posts/pages. Find help and information on our <a href="https://wpdarko.com/ask-for-support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/responsive-pricing-table-pro/'>PRO version</a> for more great features.
7
- * Version: 5.0.3
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: dk-pricr-responsive-pricing-table
3
  /**
4
  * Plugin Name: Responsive Pricing Table
5
  * Plugin URI: https://wpdarko.com/items/responsive-pricing-table-pro/
6
+ * Description: A responsive, easy and elegant way to present your offer to your visitors. Just create a new pricing table (custom type) and copy-paste the shortcode into your posts/pages. Find help and information on our <a href="https://wpdarko.com/support">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/responsive-pricing-table-pro/'>PRO version</a> for more great features.
7
+ * Version: 5.0.4
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: dk-pricr-responsive-pricing-table