Business Directory Plugin - Version 4.1.13

Version Description

Download this release

Release Info

Developer businessdirectoryplugin
Plugin Icon 128x128 Business Directory Plugin
Version 4.1.13
Comparing to
See all releases

Code changes from version 4.1.12.1 to 4.1.13

README.TXT CHANGED
@@ -3,9 +3,9 @@ Contributors: businessdirectoryplugin
3
  Donate link: http://businessdirectoryplugin.com/premium-modules/
4
  Tags: business directory, directory plugin, company business directory, chamber of commerce business directory, church directory, address book, contact directory, custom business directory, local business directory, listings directory, link directory, member directory, staff directory
5
  Requires at least: 4.3
6
- Tested up to: 4.7.5
7
- Last Updated: 2017-May-17
8
- Stable tag: tags/4.1.12.1
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
@@ -143,6 +143,21 @@ If you are having problems please visit [support forum](http://www.businessdirec
143
 
144
  == Changelog ==
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  = Version 4.1.12.1 =
147
  * Backward compatibility fix for ZIP search--module update order problem
148
 
3
  Donate link: http://businessdirectoryplugin.com/premium-modules/
4
  Tags: business directory, directory plugin, company business directory, chamber of commerce business directory, church directory, address book, contact directory, custom business directory, local business directory, listings directory, link directory, member directory, staff directory
5
  Requires at least: 4.3
6
+ Tested up to: 4.7.6
7
+ Last Updated: 2017-Jun-5
8
+ Stable tag: 4.1.13
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
143
 
144
  == Changelog ==
145
 
146
+ = Version 4.1.13 =
147
+ * Add shortcode to output Quick Search.
148
+ * Added shortcode for displaying the latest listings.
149
+ * Added shortcode for displaying a random set of featured listings.
150
+ * Added shortcode for displaying a random set listings.
151
+ * Prevent PHP Warning in show_tag.php.
152
+ * Prevent CSFR exploit that could allow attackers to upload images to the Media Library.
153
+ * Do not set contenteditable to false on Firefox when handling setting dependencies.
154
+ * Fix JavaScript error due to necessary script not loaded.
155
+ * Improve performance of CSV Importer.
156
+ * Update Swedish translation for BD.
157
+ * Fix bug in code that generates search queries SQL.
158
+ * Fix format for address field in themes.
159
+ * Fix conflict with WPML caused by WP bug 40906.
160
+
161
  = Version 4.1.12.1 =
162
  * Backward compatibility fix for ZIP search--module update order problem
163
 
assets/js/admin.js CHANGED
@@ -605,6 +605,28 @@ WPBDP_Admin.ProgressBar = function($item, settings) {
605
  });
606
 
607
  $.each( this._whenTrueActivateChilds, function( p, chs ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
608
  $('input[name="wpbdp-' + p + '"]').change(function(e) {
609
  t.handleToggle( p );
610
  });
@@ -627,18 +649,22 @@ WPBDP_Admin.ProgressBar = function($item, settings) {
627
  // FIXME: 'disabled' fields result in the setting being "cleared" in the backend. Why?
628
  if ( 'true' === req ) {
629
  if ( checked ) {
630
- $s.prop( 'contenteditable', true );
 
631
  $row.removeClass( 'disabled' );
632
  } else {
633
- $s.prop( 'contenteditable', false );
 
634
  $row.addClass( 'disabled' );
635
  }
636
  } else if ( 'false' === req ) {
637
  if ( checked ) {
638
- $s.pop( 'contenteditable', false );
 
639
  $row.addClass( 'disabled' );
640
  } else {
641
- $s.prop( 'contenteditable', true );
 
642
  $row.removeClass( 'disabled' );
643
  }
644
  }
605
  });
606
 
607
  $.each( this._whenTrueActivateChilds, function( p, chs ) {
608
+ $.each( chs, function( i, ch ) {
609
+ var $ch = $( '[name="wpbdp-' + ch + '"], [name="wpbdp-' + ch + '[]"]' );
610
+
611
+ $ch.change(function(e) {
612
+ if ( ! $(this).data( 'wpbdp-disabled' ) ) {
613
+ return true;
614
+ }
615
+
616
+ if ( $ch.is( '[type="checkbox"]' ) ) {
617
+ if ( $ch[0].defaultChecked ) {
618
+ $ch.prop( 'checked', true );
619
+ } else {
620
+ $ch.prop( 'checked', false );
621
+ }
622
+ } else if ( $ch.is( 'select' ) ) {
623
+ // Nothing to do for now.
624
+ } else {
625
+ $ch.val( $ch[0].defaultValue );
626
+ }
627
+ });
628
+ } );
629
+
630
  $('input[name="wpbdp-' + p + '"]').change(function(e) {
631
  t.handleToggle( p );
632
  });
649
  // FIXME: 'disabled' fields result in the setting being "cleared" in the backend. Why?
650
  if ( 'true' === req ) {
651
  if ( checked ) {
652
+ $s.data( 'wpbdp-disabled', false );
653
+ // $s.prop( 'contenteditable', true );
654
  $row.removeClass( 'disabled' );
655
  } else {
656
+ $s.data( 'wpbdp-disabled', true );
657
+ // $s.prop( 'contenteditable', false );
658
  $row.addClass( 'disabled' );
659
  }
660
  } else if ( 'false' === req ) {
661
  if ( checked ) {
662
+ $s.data( 'wpbdp-disabled', true );
663
+ // $s.pop( 'contenteditable', false );
664
  $row.addClass( 'disabled' );
665
  } else {
666
+ $s.data( 'wpbdp-disabled', false );
667
+ // $s.prop( 'contenteditable', true );
668
  $row.removeClass( 'disabled' );
669
  }
670
  }
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- function wpbdp_load_placeholder($v){var action=$v.attr("data-action"),post_id=$v.attr("data-post_id"),baseurl=$v.attr("data-baseurl");$v.load(ajaxurl,{action:action,post_id:post_id,baseurl:baseurl})}var WPBDP_associations_fieldtypes={};!function($){var WPBDPAdmin_FormFields={$f_association:null,$f_fieldtype:null,init:function(){WPBDPAdmin_FormFields.$f_association=$("form#wpbdp-formfield-form select#field-association");WPBDPAdmin_FormFields.$f_association.change(WPBDPAdmin_FormFields.onAssociationChange);WPBDPAdmin_FormFields.$f_fieldtype=$("form#wpbdp-formfield-form select#field-type");WPBDPAdmin_FormFields.$f_fieldtype.change(WPBDPAdmin_FormFields.onFieldTypeChange);$("#wpbdp-fieldsettings .iframe-confirm a").click(function(e){e.preventDefault();if($(this).hasClass("yes"))$(this).parents(".iframe-confirm").hide();else{$('#wpbdp-fieldsettings input[name="field[allow_iframes]"]').prop("checked",!1);$(this).parents(".iframe-confirm").hide()}});$('#wpbdp-fieldsettings input[name="field[allow_iframes]"]').change(function(){$(this).is(":checked")?$(".iframe-confirm").show():$(".iframe-confirm").hide()});$("table.formfields tbody").sortable({placeholder:"wpbdp-draggable-highlight",handle:".wpbdp-drag-handle",axis:"y",cursor:"move",opacity:.9,update:function(event,ui){var sorted_items=[];$(this).find(".wpbdp-drag-handle").each(function(i,v){sorted_items.push($(v).attr("data-field-id"))});sorted_items&&$.post(ajaxurl,{action:"wpbdp-formfields-reorder",order:sorted_items})}})},onFieldTypeChange:function(){var $field_type=$(this).find("option:selected");if($field_type.length){var field_type=$field_type.val();if("url"==field_type){$("select#field-validator option").not('[value="url"]').prop({disabled:!0,selected:!1});$('select#field-validator option[value="url"]').prop("selected",!0)}else $("select#field-validator option").prop("disabled",!1);var request_data={action:"wpbdp-renderfieldsettings",association:WPBDPAdmin_FormFields.$f_association.find("option:selected").val(),field_type:field_type,field_id:$('#wpbdp-formfield-form input[name="field[id]"]').val()};$.post(ajaxurl,request_data,function(response){if(response.ok&&response.html){$("#wpbdp-fieldsettings-html").html(response.html);$("#wpbdp-fieldsettings").show()}else{$("#wpbdp-fieldsettings-html").empty();$("#wpbdp-fieldsettings").hide()}},"json")}},onAssociationChange:function(){$f_fieldtype=WPBDPAdmin_FormFields.$f_fieldtype;var association=$(this).val(),valid_types=WPBDP_associations_fieldtypes[association];$f_fieldtype.find("option").prop("disabled",!1);$f_fieldtype.find("option").each(function(i,v){$.inArray($(v).val(),valid_types)<0&&$(v).prop("disabled",!0)});$f_fieldtype.find("option:selected").prop("disabled")&&$f_fieldtype.val(valid_types[0]).change()}};$(document).ready(function(){WPBDPAdmin_FormFields.init()})}(jQuery);jQuery(document).ready(function($){$('form#wpbdp-fee-form input[name="_days"]').change(function(){var value=$(this).val();if(0==value){$("form input#wpbdp-fee-form-days-n").prop("disabled",!0);$('form input[name="fee[days]"]').val("0")}else{$("form input#wpbdp-fee-form-days-n").prop("disabled",!1);$('form input[name="fee[days]"]').val($("form input#wpbdp-fee-form-days-n").val());$("form input#wpbdp-fee-form-days-n").focus()}return!0});$(".wpbdp-page-admin-fees .wp-list-table.fees tbody").sortable({placeholder:"wpbdp-draggable-highlight",handle:".wpbdp-drag-handle",axis:"y",cursor:"move",opacity:.9,update:function(event,ui){var rel_rows=$(".free-fee-related-tr").remove();$("tr.free-fee").after(rel_rows);var sorted_items=[];$(this).find(".wpbdp-drag-handle").each(function(i,v){sorted_items.push($(v).attr("data-fee-id"))});sorted_items&&$.post(ajaxurl,{action:"wpbdp-admin-fees-reorder",order:sorted_items})}});$("form#wpbdp-fee-form").submit(function(){$('form input[name="fee[days]"]').prop("disabled",!1);return!0});$('select[name="fee_order[method]"], select[name="fee_order[order]"]').change(function(e){$.ajax({url:ajaxurl,data:$(this).parent("form").serialize(),dataType:"json",type:"POST",success:function(res){res.success&&location.reload()}})});"custom"==$('select[name="fee_order[method]"]').val()&&$(".wpbdp-page-admin-fees .wp-list-table .wpbdp-drag-handle").show();$("#BusinessDirectory_listinginfo .listing-metabox-tabs a").click(function(e){e.preventDefault();var href=$(this).attr("href"),$selected=$(this).parent("li").siblings(".selected");if($selected.length>0){if($selected.find("a:first").attr("href")==href)return;$selected.removeClass("selected");$($selected.find("a:first").attr("href")).hide()}$(this).parent("li").addClass("selected");$(href).show();$(".listing-fee-expiration-datepicker").hide()});var url_tab=$(location).attr("hash");url_tab&&$(url_tab).length>0?$('#BusinessDirectory_listinginfo a[href="'+url_tab+'"]').click():$("#BusinessDirectory_listinginfo .listing-metabox-tabs li.selected a").click();$("#listing-metabox-fees a.assignfee-link").click(function(e){e.preventDefault();$(this).siblings(".assignfee").show()});$("#listing-metabox-fees .assignfee .close-handle").click(function(e){e.preventDefault();$(this).parent(".assignfee").hide()});$(".wpbdp-ajax-placeholder").each(function(i,v){wpbdp_load_placeholder($(v))});$("input#doaction, input#doaction2").click(function(e){var action_name="doaction"==$(this).attr("id")?"action":"action2",$selected_option=$('select[name="'+action_name+'"] option:selected'),action_val=$selected_option.val();if("listing"==action_val.split("-")[0]){var action=action_val.split("-")[1];if("sep0"!=action&&"sep1"!=action&&"sep2"!=action){var $checked_posts=$('input[name="post[]"]:checked'),uri=$selected_option.attr("data-uri");$checked_posts.each(function(i,v){uri+="&post[]="+$(v).val()});window.location.href=uri;return!1}}return!0});$('.wpbdp-admin.wpbdp-page-formfields-preview form input[type="submit"]').click(function(e){e.preventDefault();alert("This form is just a preview. It doesn't work.")});$("#wpbdp-admin-debug-info-page a.nav-tab").click(function(e){e.preventDefault();$("#wpbdp-admin-debug-info-page a.nav-tab").not(this).removeClass("nav-tab-active");var $selected_tab=$(this);$selected_tab.addClass("nav-tab-active");$(".wpbdp-debug-section").hide();$('.wpbdp-debug-section[data-id="'+$(this).attr("href")+'"]').show()});$("#wpbdp-admin-debug-info-page a.nav-tab").length>0&&$("#wpbdp-admin-debug-info-page a.nav-tab").get(0).click();$(".wpbdp-page-admin-transactions .column-actions a.details-link").click(function(e){e.preventDefault();var $tr=$(this).parents("tr"),$details=$tr.find("div.more-details"),$tr_details=$tr.next("tr.more-details-row");if($tr_details.length>0){$tr_details.remove();$(this).text($(this).text().replace("-","+"))}else{$(this).text($(this).text().replace("+","-"));$tr.after('<tr class="more-details-row"><td colspan="7">'+$details.html()+"</td></tr>").show()}})});var WPBDP_Admin={};WPBDP_Admin.payments={};WPBDP_Admin.listingMetabox={};WPBDP_Admin.ProgressBar=function($item,settings){$item.empty();$item.html('<div class="wpbdp-progress-bar"><span class="progress-text">0%</span><div class="progress-bar"><div class="progress-bar-outer"><div class="progress-bar-inner" style="width: 0%;"></div></div></div>');this.$item=$item;this.$text=$item.find(".progress-text");this.$bar=$item.find(".progress-bar");this.set=function(completed,total){var pcg=Math.round(100*parseInt(completed)/parseInt(total));this.$text.text(pcg+"%");this.$bar.find(".progress-bar-inner").attr("style","width: "+pcg+"%;")}};!function($){WPBDP_Admin.dialog={};var dialog=WPBDP_Admin.dialog}(jQuery);!function($){var payments=WPBDP_Admin.payments;payments._initialize=function(){$("#BusinessDirectory_listinginfo a.payment-details-link").click(function(e){e.preventDefault();payments.viewPaymentDetails($(this).attr("data-id"))});0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'))};payments.viewPaymentDetails=function(id){$.get(ajaxurl,{action:"wpbdp-payment-details",id:id},function(res){if(res&&res.success){0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'));$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#TB_window").width($("#TB_ajaxContent").outerWidth());$("#TB_window").height()>$("#TB_ajaxContent").outerHeight()&&$("#TB_ajaxContent").height($("#TB_window").height());$("#wpbdp-modal-dialog").remove()}},"json")};$(document).ready(function(){payments._initialize()})}(jQuery);!function($){var metabox=WPBDP_Admin.listingMetabox;metabox._initialize=function(){$.extend($.datepicker,{_inlineDatepicker2:$.datepicker._inlineDatepicker,_inlineDatepicker:function(target,inst){this._inlineDatepicker2(target,inst);var beforeShow=$.datepicker._get(inst,"beforeShow");beforeShow&&beforeShow.apply(target,[target,inst])}});var _addNeverButton=function(instance){setTimeout(function(){var $buttonPane=$(instance).find(".ui-datepicker-buttonpane");if(!($buttonPane.find(".ui-datepicker-never").length>0)){var $button=$("<button>",{text:"Never Expires",click:function(){_updateExpiration($(instance),"never");return!1}}).addClass("ui-datepicker-never ui-state-default ui-priority-primary ui-corner-all");$buttonPane.append($button)}},1)},_updateExpiration=function($instance,newDate){if(newDate){var $changeLink=$instance.siblings("a.expiration-change-link"),$expirationDate=$instance.siblings(".expiration-date"),$spinner=$instance.parents(".listing-category").find(".spinner:first");$expirationDate.text("--");$spinner.show();$instance.hide();_addNeverButton($instance.get(0));$.post(ajaxurl,{action:"wpbdp-listing_set_expiration",renewal_id:$changeLink.attr("data-renewal_id"),expiration_date:newDate},function(res){if(res&&res.success){$spinner.hide();$expirationDate.text(res.data.formattedExpirationDate).show()}},"json")}};$("#listing-metabox-generalinfo, #listing-metabox-fees").each(function(i,v){var $tab=$(v);$tab.find(".expiration-date-info .datepicker").each(function(i,v){var $dp=$(v),$changeLink=$dp.siblings("a.expiration-change-link");$dp.hide().datepicker({dateFormat:"yy-mm-dd",defaultDate:$changeLink.attr("data-date"),showButtonPanel:!0,beforeShow:function(input){_addNeverButton(input)},onChangeMonthYear:function(year,month,instance){_addNeverButton(instance.input)},onSelect:function(newDate){_updateExpiration($(this),newDate)}})});$tab.find("a.expiration-change-link").click(function(e){e.preventDefault();var renewal_id=$(this).attr("data-renewal_id");$(".expiration-date-info .datepicker").not(".renewal-"+renewal_id).hide();$(".expiration-date-info .datepicker.renewal-"+renewal_id).toggle()})});$(".listing-category a.category-delete").click(function(e){e.preventDefault();var listingID=$(this).attr("data-listing"),categoryID=$(this).attr("data-category");if(listingID&&categoryID){var $category=$(".listing-category-"+categoryID);$.post(ajaxurl,{action:"wpbdp-listing_remove_category",listing:listingID,category:categoryID},function(res){if(res&&res.success){$('input[name="tax_input[wpbdp_category][]"][value="'+categoryID+'"]').prop("checked",!1);$category.fadeOut(function(){$(this).remove()})}},"json")}});$(".listing-category a.category-change-fee").click(function(e){e.preventDefault();0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'));$.post(ajaxurl,{action:"wpbdp-listing_change_fee",renewal:$(this).attr("data-renewal")},function(res){if(res&&res.success){$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#wpbdp-modal-dialog").remove()}},"json")})};$(document).ready(function(){$("#listing-metabox-fees").length>0&&metabox._initialize()})}(jQuery);!function($){var s=WPBDP_Admin.settings={_whenTrueActivateChilds:{},_whenFalseActivateChilds:{},init:function(){var t=this;$(".wpbdp-settings-email").each(function(i,v){var $email=$(v),$preview=$email.find(".short-preview"),$editor=$email.find(".editor"),$subject=$editor.find(".subject-text"),$body=$editor.find(".body-text"),data={subject:"",body:""};$preview.click(function(e){data.subject=$subject.val();data.body=$body.val();$preview.hide();$editor.show()});$(".cancel",$editor).click(function(e){e.preventDefault();$subject.val(data.subject);$body.val(data.body);$editor.hide();$preview.show()});$(".save",$editor).click(function(e){e.preventDefault();$("form#wpbdp-admin-settings #submit").click()});$(".preview-email",$editor).click(function(e){e.preventDefault();var subject=$subject.val(),body=$body.val();$.ajax({url:ajaxurl,data:{action:"wpbdp-admin-settings-email-preview",nonce:$editor.attr("data-preview-nonce"),setting:$email.attr("data-setting"),subject:subject,body:body},dataType:"json",type:"POST",success:function(res){if(res.success){0==$("#wpbdp-modal-dialog").length&&$("body").append('<div id="wpbdp-modal-dialog" style="display: none;"></div>');$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#wpbdp-modal-dialog").remove()}}})})});$("select#quick-search-fields").change(function(){var selected=$(this).find("option.textfield:selected").length;selected>0?$("span.text-fields-warning").fadeIn("fast"):$("span.text-fields-warning").fadeOut("fast")});$.each(this._whenTrueActivateChilds,function(p,chs){$('input[name="wpbdp-'+p+'"]').change(function(e){t.handleToggle(p)});t.handleToggle(p)})},handleToggle:function(setting){var childs_true=this._whenTrueActivateChilds[setting],childs_false=this._whenFalseActivateChilds[setting],childs={"true":childs_true,"false":childs_false},checked=$('input[name="wpbdp-'+setting+'"]').is(":checked");$.each(childs,function(req,settings){$.each(settings,function(i,s){var $s=$('[name="wpbdp-'+s+'"], [name="wpbdp-'+s+'[]"]'),$row=$s.parents("tr");if("true"===req)if(checked){$s.prop("contenteditable",!0);$row.removeClass("disabled")}else{$s.prop("contenteditable",!1);$row.addClass("disabled")}else if("false"===req)if(checked){$s.pop("contenteditable",!1);$row.addClass("disabled")}else{$s.prop("contenteditable",!0);$row.removeClass("disabled")}})})},add_requirement:function(setting,parent_,req){"undefined"==typeof this._whenTrueActivateChilds[parent_]&&(this._whenTrueActivateChilds[parent_]=[]);"undefined"==typeof this._whenFalseActivateChilds[parent_]&&(this._whenFalseActivateChilds[parent_]=[]);"boolean-true"==req?this._whenTrueActivateChilds[parent_].push(setting):"boolean-false"==req&&this._whenFalseActivateChilds[parent_].push(setting)}};$(document).ready(function(){0!=$(".wpbdp-page-admin-settings").length&&s.init()})}(jQuery);!function($){var u=WPBDP_Admin.uninstall={init:function(){$('form#wpbdp-uninstall-capture-form input[name="uninstall[reason_id]"]').change(function(e){var val=$(this).val();"0"==val?$('form#wpbdp-uninstall-capture-form textarea[name="uninstall[reason_text]"]').fadeIn():$('form#wpbdp-uninstall-capture-form textarea[name="uninstall[reason_text]"]').fadeOut("fast",function(){$(this).val("")})})}};$(document).ready(function(){$(".wpbdp-page-admin-uninstall").length>0&&u.init()})}(jQuery);!function($){$(document).ready(function(){0!=$("body.wp-admin.widgets-php").length&&$("body.wp-admin.widgets-php").on("change","input.wpbdp-toggle-images",function(){var checked=$(this).is(":checked");checked?$(this).parents(".widget").find(".thumbnail-width-config, .thumbnail-height-config").fadeIn("fast"):$(this).parents(".widget").find(".thumbnail-width-config, .thumbnail-height-config").fadeOut("fast")})})}(jQuery);!function($){$(document).ready(function(){$("a.wpbdp-create-main-page-button").click(function(e){e.preventDefault();var $msg=$(this).parents("div.error");$.ajax({url:ajaxurl,data:{action:"wpbdp-create-main-page",_wpnonce:$(this).attr("data-nonce")},dataType:"json",success:function(res){res.success&&$msg.fadeOut("fast",function(){$(this).html("<p>"+res.message+"</p>");$(this).removeClass("error");$(this).addClass("updated");$(this).fadeIn("fast")})}})})})}(jQuery);!function($){var l=WPBDP_Admin.licensing={init:function(){$("input.license-activate").click(function(){var module=$(this).parent(".license-activation").attr("data-module-id"),license=$('input[type="text"]#license-key-'+module).val();l.activation_change(module,license,"activate")});$("input.license-deactivate").click(function(){var module=$(this).parent(".license-activation").attr("data-module-id"),license=$('input[type="text"]#license-key-'+module);l.activation_change(module,"","deactivate")})},activation_change:function(module,license,action){var $container=$('.license-activation[data-module-id="'+module+'"]'),$msg=$(".status-message",$container),nonce=$('input[name="nonce"]',$container).val();$msg.removeClass("ok error");$msg.html($("input.license-"+action,$container).attr("data-L10n"));$.post(ajaxurl,{action:"wpbdp-"+action+"-license",module:module,key:license,nonce:nonce},function(res){if(res.success){$msg.hide().html(res.message).removeClass("error").addClass("ok").show();$("input.license-"+action,$container).hide();$('input[type="button"]',$container).not(".license-"+action).show();"activate"==action?$('input[type="text"]#license-key-'+module).prop("readonly",!0):$('input[type="text"]#license-key-'+module).prop("readonly",!1)}else{$msg.hide().html(res.error).removeClass("ok").addClass("error").show();"deactivate"==action&&$('input[type="text"]#license-key-'+module).prop("readonly",!1)}},"json")}};$(document).ready(function(){$("input.license-activate, input.license-deactivate").length>0&&l.init();$(".wpbdp-license-expired-warning").length>0&&$(".wpbdp-license-expired-warning .dismiss").click(function(e){e.preventDefault();var module_id=$(this).attr("data-module"),nonce=$(this).attr("data-nonce"),$warning=$(this).parents(".wpbdp-license-expired-warning");$.post(ajaxurl,{action:"wpbdp-license-expired-warning-dismiss",nonce:nonce,module:module_id},function(res){res.success&&$warning.fadeOut("fast")},"json")})})}(jQuery);!function($){$(function(){$(".wpbdp-notice.dismissible > .notice-dismiss").click(function(e){e.preventDefault();var $notice=$(this).parent(".wpbdp-notice"),dismissible_id=$(this).data("dismissible-id"),nonce=$(this).data("nonce");$.post(ajaxurl,{action:"wpbdp_dismiss_notification",id:dismissible_id,nonce:nonce},function(){$notice.fadeOut("fast",function(){$notice.remove()})})})})}(jQuery);
1
+ function wpbdp_load_placeholder($v){var action=$v.attr("data-action"),post_id=$v.attr("data-post_id"),baseurl=$v.attr("data-baseurl");$v.load(ajaxurl,{action:action,post_id:post_id,baseurl:baseurl})}var WPBDP_associations_fieldtypes={};!function($){var WPBDPAdmin_FormFields={$f_association:null,$f_fieldtype:null,init:function(){WPBDPAdmin_FormFields.$f_association=$("form#wpbdp-formfield-form select#field-association");WPBDPAdmin_FormFields.$f_association.change(WPBDPAdmin_FormFields.onAssociationChange);WPBDPAdmin_FormFields.$f_fieldtype=$("form#wpbdp-formfield-form select#field-type");WPBDPAdmin_FormFields.$f_fieldtype.change(WPBDPAdmin_FormFields.onFieldTypeChange);$("#wpbdp-fieldsettings .iframe-confirm a").click(function(e){e.preventDefault();if($(this).hasClass("yes"))$(this).parents(".iframe-confirm").hide();else{$('#wpbdp-fieldsettings input[name="field[allow_iframes]"]').prop("checked",!1);$(this).parents(".iframe-confirm").hide()}});$('#wpbdp-fieldsettings input[name="field[allow_iframes]"]').change(function(){$(this).is(":checked")?$(".iframe-confirm").show():$(".iframe-confirm").hide()});$("table.formfields tbody").sortable({placeholder:"wpbdp-draggable-highlight",handle:".wpbdp-drag-handle",axis:"y",cursor:"move",opacity:.9,update:function(event,ui){var sorted_items=[];$(this).find(".wpbdp-drag-handle").each(function(i,v){sorted_items.push($(v).attr("data-field-id"))});sorted_items&&$.post(ajaxurl,{action:"wpbdp-formfields-reorder",order:sorted_items})}})},onFieldTypeChange:function(){var $field_type=$(this).find("option:selected");if($field_type.length){var field_type=$field_type.val();if("url"==field_type){$("select#field-validator option").not('[value="url"]').prop({disabled:!0,selected:!1});$('select#field-validator option[value="url"]').prop("selected",!0)}else $("select#field-validator option").prop("disabled",!1);var request_data={action:"wpbdp-renderfieldsettings",association:WPBDPAdmin_FormFields.$f_association.find("option:selected").val(),field_type:field_type,field_id:$('#wpbdp-formfield-form input[name="field[id]"]').val()};$.post(ajaxurl,request_data,function(response){if(response.ok&&response.html){$("#wpbdp-fieldsettings-html").html(response.html);$("#wpbdp-fieldsettings").show()}else{$("#wpbdp-fieldsettings-html").empty();$("#wpbdp-fieldsettings").hide()}},"json")}},onAssociationChange:function(){$f_fieldtype=WPBDPAdmin_FormFields.$f_fieldtype;var association=$(this).val(),valid_types=WPBDP_associations_fieldtypes[association];$f_fieldtype.find("option").prop("disabled",!1);$f_fieldtype.find("option").each(function(i,v){$.inArray($(v).val(),valid_types)<0&&$(v).prop("disabled",!0)});$f_fieldtype.find("option:selected").prop("disabled")&&$f_fieldtype.val(valid_types[0]).change()}};$(document).ready(function(){WPBDPAdmin_FormFields.init()})}(jQuery);jQuery(document).ready(function($){$('form#wpbdp-fee-form input[name="_days"]').change(function(){var value=$(this).val();if(0==value){$("form input#wpbdp-fee-form-days-n").prop("disabled",!0);$('form input[name="fee[days]"]').val("0")}else{$("form input#wpbdp-fee-form-days-n").prop("disabled",!1);$('form input[name="fee[days]"]').val($("form input#wpbdp-fee-form-days-n").val());$("form input#wpbdp-fee-form-days-n").focus()}return!0});$(".wpbdp-page-admin-fees .wp-list-table.fees tbody").sortable({placeholder:"wpbdp-draggable-highlight",handle:".wpbdp-drag-handle",axis:"y",cursor:"move",opacity:.9,update:function(event,ui){var rel_rows=$(".free-fee-related-tr").remove();$("tr.free-fee").after(rel_rows);var sorted_items=[];$(this).find(".wpbdp-drag-handle").each(function(i,v){sorted_items.push($(v).attr("data-fee-id"))});sorted_items&&$.post(ajaxurl,{action:"wpbdp-admin-fees-reorder",order:sorted_items})}});$("form#wpbdp-fee-form").submit(function(){$('form input[name="fee[days]"]').prop("disabled",!1);return!0});$('select[name="fee_order[method]"], select[name="fee_order[order]"]').change(function(e){$.ajax({url:ajaxurl,data:$(this).parent("form").serialize(),dataType:"json",type:"POST",success:function(res){res.success&&location.reload()}})});"custom"==$('select[name="fee_order[method]"]').val()&&$(".wpbdp-page-admin-fees .wp-list-table .wpbdp-drag-handle").show();$("#BusinessDirectory_listinginfo .listing-metabox-tabs a").click(function(e){e.preventDefault();var href=$(this).attr("href"),$selected=$(this).parent("li").siblings(".selected");if($selected.length>0){if($selected.find("a:first").attr("href")==href)return;$selected.removeClass("selected");$($selected.find("a:first").attr("href")).hide()}$(this).parent("li").addClass("selected");$(href).show();$(".listing-fee-expiration-datepicker").hide()});var url_tab=$(location).attr("hash");url_tab&&$(url_tab).length>0?$('#BusinessDirectory_listinginfo a[href="'+url_tab+'"]').click():$("#BusinessDirectory_listinginfo .listing-metabox-tabs li.selected a").click();$("#listing-metabox-fees a.assignfee-link").click(function(e){e.preventDefault();$(this).siblings(".assignfee").show()});$("#listing-metabox-fees .assignfee .close-handle").click(function(e){e.preventDefault();$(this).parent(".assignfee").hide()});$(".wpbdp-ajax-placeholder").each(function(i,v){wpbdp_load_placeholder($(v))});$("input#doaction, input#doaction2").click(function(e){var action_name="doaction"==$(this).attr("id")?"action":"action2",$selected_option=$('select[name="'+action_name+'"] option:selected'),action_val=$selected_option.val();if("listing"==action_val.split("-")[0]){var action=action_val.split("-")[1];if("sep0"!=action&&"sep1"!=action&&"sep2"!=action){var $checked_posts=$('input[name="post[]"]:checked'),uri=$selected_option.attr("data-uri");$checked_posts.each(function(i,v){uri+="&post[]="+$(v).val()});window.location.href=uri;return!1}}return!0});$('.wpbdp-admin.wpbdp-page-formfields-preview form input[type="submit"]').click(function(e){e.preventDefault();alert("This form is just a preview. It doesn't work.")});$("#wpbdp-admin-debug-info-page a.nav-tab").click(function(e){e.preventDefault();$("#wpbdp-admin-debug-info-page a.nav-tab").not(this).removeClass("nav-tab-active");var $selected_tab=$(this);$selected_tab.addClass("nav-tab-active");$(".wpbdp-debug-section").hide();$('.wpbdp-debug-section[data-id="'+$(this).attr("href")+'"]').show()});$("#wpbdp-admin-debug-info-page a.nav-tab").length>0&&$("#wpbdp-admin-debug-info-page a.nav-tab").get(0).click();$(".wpbdp-page-admin-transactions .column-actions a.details-link").click(function(e){e.preventDefault();var $tr=$(this).parents("tr"),$details=$tr.find("div.more-details"),$tr_details=$tr.next("tr.more-details-row");if($tr_details.length>0){$tr_details.remove();$(this).text($(this).text().replace("-","+"))}else{$(this).text($(this).text().replace("+","-"));$tr.after('<tr class="more-details-row"><td colspan="7">'+$details.html()+"</td></tr>").show()}})});var WPBDP_Admin={};WPBDP_Admin.payments={};WPBDP_Admin.listingMetabox={};WPBDP_Admin.ProgressBar=function($item,settings){$item.empty();$item.html('<div class="wpbdp-progress-bar"><span class="progress-text">0%</span><div class="progress-bar"><div class="progress-bar-outer"><div class="progress-bar-inner" style="width: 0%;"></div></div></div>');this.$item=$item;this.$text=$item.find(".progress-text");this.$bar=$item.find(".progress-bar");this.set=function(completed,total){var pcg=Math.round(100*parseInt(completed)/parseInt(total));this.$text.text(pcg+"%");this.$bar.find(".progress-bar-inner").attr("style","width: "+pcg+"%;")}};!function($){WPBDP_Admin.dialog={};var dialog=WPBDP_Admin.dialog}(jQuery);!function($){var payments=WPBDP_Admin.payments;payments._initialize=function(){$("#BusinessDirectory_listinginfo a.payment-details-link").click(function(e){e.preventDefault();payments.viewPaymentDetails($(this).attr("data-id"))});0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'))};payments.viewPaymentDetails=function(id){$.get(ajaxurl,{action:"wpbdp-payment-details",id:id},function(res){if(res&&res.success){0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'));$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#TB_window").width($("#TB_ajaxContent").outerWidth());$("#TB_window").height()>$("#TB_ajaxContent").outerHeight()&&$("#TB_ajaxContent").height($("#TB_window").height());$("#wpbdp-modal-dialog").remove()}},"json")};$(document).ready(function(){payments._initialize()})}(jQuery);!function($){var metabox=WPBDP_Admin.listingMetabox;metabox._initialize=function(){$.extend($.datepicker,{_inlineDatepicker2:$.datepicker._inlineDatepicker,_inlineDatepicker:function(target,inst){this._inlineDatepicker2(target,inst);var beforeShow=$.datepicker._get(inst,"beforeShow");beforeShow&&beforeShow.apply(target,[target,inst])}});var _addNeverButton=function(instance){setTimeout(function(){var $buttonPane=$(instance).find(".ui-datepicker-buttonpane");if(!($buttonPane.find(".ui-datepicker-never").length>0)){var $button=$("<button>",{text:"Never Expires",click:function(){_updateExpiration($(instance),"never");return!1}}).addClass("ui-datepicker-never ui-state-default ui-priority-primary ui-corner-all");$buttonPane.append($button)}},1)},_updateExpiration=function($instance,newDate){if(newDate){var $changeLink=$instance.siblings("a.expiration-change-link"),$expirationDate=$instance.siblings(".expiration-date"),$spinner=$instance.parents(".listing-category").find(".spinner:first");$expirationDate.text("--");$spinner.show();$instance.hide();_addNeverButton($instance.get(0));$.post(ajaxurl,{action:"wpbdp-listing_set_expiration",renewal_id:$changeLink.attr("data-renewal_id"),expiration_date:newDate},function(res){if(res&&res.success){$spinner.hide();$expirationDate.text(res.data.formattedExpirationDate).show()}},"json")}};$("#listing-metabox-generalinfo, #listing-metabox-fees").each(function(i,v){var $tab=$(v);$tab.find(".expiration-date-info .datepicker").each(function(i,v){var $dp=$(v),$changeLink=$dp.siblings("a.expiration-change-link");$dp.hide().datepicker({dateFormat:"yy-mm-dd",defaultDate:$changeLink.attr("data-date"),showButtonPanel:!0,beforeShow:function(input){_addNeverButton(input)},onChangeMonthYear:function(year,month,instance){_addNeverButton(instance.input)},onSelect:function(newDate){_updateExpiration($(this),newDate)}})});$tab.find("a.expiration-change-link").click(function(e){e.preventDefault();var renewal_id=$(this).attr("data-renewal_id");$(".expiration-date-info .datepicker").not(".renewal-"+renewal_id).hide();$(".expiration-date-info .datepicker.renewal-"+renewal_id).toggle()})});$(".listing-category a.category-delete").click(function(e){e.preventDefault();var listingID=$(this).attr("data-listing"),categoryID=$(this).attr("data-category");if(listingID&&categoryID){var $category=$(".listing-category-"+categoryID);$.post(ajaxurl,{action:"wpbdp-listing_remove_category",listing:listingID,category:categoryID},function(res){if(res&&res.success){$('input[name="tax_input[wpbdp_category][]"][value="'+categoryID+'"]').prop("checked",!1);$category.fadeOut(function(){$(this).remove()})}},"json")}});$(".listing-category a.category-change-fee").click(function(e){e.preventDefault();0==$("#wpbdp-modal-dialog").length&&$("body").append($('<div id="wpbdp-modal-dialog"></div>'));$.post(ajaxurl,{action:"wpbdp-listing_change_fee",renewal:$(this).attr("data-renewal")},function(res){if(res&&res.success){$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#wpbdp-modal-dialog").remove()}},"json")})};$(document).ready(function(){$("#listing-metabox-fees").length>0&&metabox._initialize()})}(jQuery);!function($){var s=WPBDP_Admin.settings={_whenTrueActivateChilds:{},_whenFalseActivateChilds:{},init:function(){var t=this;$(".wpbdp-settings-email").each(function(i,v){var $email=$(v),$preview=$email.find(".short-preview"),$editor=$email.find(".editor"),$subject=$editor.find(".subject-text"),$body=$editor.find(".body-text"),data={subject:"",body:""};$preview.click(function(e){data.subject=$subject.val();data.body=$body.val();$preview.hide();$editor.show()});$(".cancel",$editor).click(function(e){e.preventDefault();$subject.val(data.subject);$body.val(data.body);$editor.hide();$preview.show()});$(".save",$editor).click(function(e){e.preventDefault();$("form#wpbdp-admin-settings #submit").click()});$(".preview-email",$editor).click(function(e){e.preventDefault();var subject=$subject.val(),body=$body.val();$.ajax({url:ajaxurl,data:{action:"wpbdp-admin-settings-email-preview",nonce:$editor.attr("data-preview-nonce"),setting:$email.attr("data-setting"),subject:subject,body:body},dataType:"json",type:"POST",success:function(res){if(res.success){0==$("#wpbdp-modal-dialog").length&&$("body").append('<div id="wpbdp-modal-dialog" style="display: none;"></div>');$("#wpbdp-modal-dialog").html(res.data.html);tb_show("","#TB_inline?inlineId=wpbdp-modal-dialog");$("#wpbdp-modal-dialog").remove()}}})})});$("select#quick-search-fields").change(function(){var selected=$(this).find("option.textfield:selected").length;selected>0?$("span.text-fields-warning").fadeIn("fast"):$("span.text-fields-warning").fadeOut("fast")});$.each(this._whenTrueActivateChilds,function(p,chs){$.each(chs,function(i,ch){var $ch=$('[name="wpbdp-'+ch+'"], [name="wpbdp-'+ch+'[]"]');$ch.change(function(e){if(!$(this).data("wpbdp-disabled"))return!0;$ch.is('[type="checkbox"]')?$ch[0].defaultChecked?$ch.prop("checked",!0):$ch.prop("checked",!1):$ch.is("select")||$ch.val($ch[0].defaultValue)})});$('input[name="wpbdp-'+p+'"]').change(function(e){t.handleToggle(p)});t.handleToggle(p)})},handleToggle:function(setting){var childs_true=this._whenTrueActivateChilds[setting],childs_false=this._whenFalseActivateChilds[setting],childs={"true":childs_true,"false":childs_false},checked=$('input[name="wpbdp-'+setting+'"]').is(":checked");$.each(childs,function(req,settings){$.each(settings,function(i,s){var $s=$('[name="wpbdp-'+s+'"], [name="wpbdp-'+s+'[]"]'),$row=$s.parents("tr");if("true"===req)if(checked){$s.data("wpbdp-disabled",!1);$row.removeClass("disabled")}else{$s.data("wpbdp-disabled",!0);$row.addClass("disabled")}else if("false"===req)if(checked){$s.data("wpbdp-disabled",!0);$row.addClass("disabled")}else{$s.data("wpbdp-disabled",!1);$row.removeClass("disabled")}})})},add_requirement:function(setting,parent_,req){"undefined"==typeof this._whenTrueActivateChilds[parent_]&&(this._whenTrueActivateChilds[parent_]=[]);"undefined"==typeof this._whenFalseActivateChilds[parent_]&&(this._whenFalseActivateChilds[parent_]=[]);"boolean-true"==req?this._whenTrueActivateChilds[parent_].push(setting):"boolean-false"==req&&this._whenFalseActivateChilds[parent_].push(setting)}};$(document).ready(function(){0!=$(".wpbdp-page-admin-settings").length&&s.init()})}(jQuery);!function($){var u=WPBDP_Admin.uninstall={init:function(){$('form#wpbdp-uninstall-capture-form input[name="uninstall[reason_id]"]').change(function(e){var val=$(this).val();"0"==val?$('form#wpbdp-uninstall-capture-form textarea[name="uninstall[reason_text]"]').fadeIn():$('form#wpbdp-uninstall-capture-form textarea[name="uninstall[reason_text]"]').fadeOut("fast",function(){$(this).val("")})})}};$(document).ready(function(){$(".wpbdp-page-admin-uninstall").length>0&&u.init()})}(jQuery);!function($){$(document).ready(function(){0!=$("body.wp-admin.widgets-php").length&&$("body.wp-admin.widgets-php").on("change","input.wpbdp-toggle-images",function(){var checked=$(this).is(":checked");checked?$(this).parents(".widget").find(".thumbnail-width-config, .thumbnail-height-config").fadeIn("fast"):$(this).parents(".widget").find(".thumbnail-width-config, .thumbnail-height-config").fadeOut("fast")})})}(jQuery);!function($){$(document).ready(function(){$("a.wpbdp-create-main-page-button").click(function(e){e.preventDefault();var $msg=$(this).parents("div.error");$.ajax({url:ajaxurl,data:{action:"wpbdp-create-main-page",_wpnonce:$(this).attr("data-nonce")},dataType:"json",success:function(res){res.success&&$msg.fadeOut("fast",function(){$(this).html("<p>"+res.message+"</p>");$(this).removeClass("error");$(this).addClass("updated");$(this).fadeIn("fast")})}})})})}(jQuery);!function($){var l=WPBDP_Admin.licensing={init:function(){$("input.license-activate").click(function(){var module=$(this).parent(".license-activation").attr("data-module-id"),license=$('input[type="text"]#license-key-'+module).val();l.activation_change(module,license,"activate")});$("input.license-deactivate").click(function(){var module=$(this).parent(".license-activation").attr("data-module-id"),license=$('input[type="text"]#license-key-'+module);l.activation_change(module,"","deactivate")})},activation_change:function(module,license,action){var $container=$('.license-activation[data-module-id="'+module+'"]'),$msg=$(".status-message",$container),nonce=$('input[name="nonce"]',$container).val();$msg.removeClass("ok error");$msg.html($("input.license-"+action,$container).attr("data-L10n"));$.post(ajaxurl,{action:"wpbdp-"+action+"-license",module:module,key:license,nonce:nonce},function(res){if(res.success){$msg.hide().html(res.message).removeClass("error").addClass("ok").show();$("input.license-"+action,$container).hide();$('input[type="button"]',$container).not(".license-"+action).show();"activate"==action?$('input[type="text"]#license-key-'+module).prop("readonly",!0):$('input[type="text"]#license-key-'+module).prop("readonly",!1)}else{$msg.hide().html(res.error).removeClass("ok").addClass("error").show();"deactivate"==action&&$('input[type="text"]#license-key-'+module).prop("readonly",!1)}},"json")}};$(document).ready(function(){$("input.license-activate, input.license-deactivate").length>0&&l.init();$(".wpbdp-license-expired-warning").length>0&&$(".wpbdp-license-expired-warning .dismiss").click(function(e){e.preventDefault();var module_id=$(this).attr("data-module"),nonce=$(this).attr("data-nonce"),$warning=$(this).parents(".wpbdp-license-expired-warning");$.post(ajaxurl,{action:"wpbdp-license-expired-warning-dismiss",nonce:nonce,module:module_id},function(res){res.success&&$warning.fadeOut("fast")},"json")})})}(jQuery);!function($){$(function(){$(".wpbdp-notice.dismissible > .notice-dismiss").click(function(e){e.preventDefault();var $notice=$(this).parent(".wpbdp-notice"),dismissible_id=$(this).data("dismissible-id"),nonce=$(this).data("nonce");$.post(ajaxurl,{action:"wpbdp_dismiss_notification",id:dismissible_id,nonce:nonce},function(){$notice.fadeOut("fast",function(){$notice.remove()})})})})}(jQuery);
assets/js/wpbdp.js CHANGED
@@ -125,7 +125,7 @@ WPBDP.fileUpload = {
125
  resizeIFrame: function(field_id, height) {
126
  var iframe = jQuery( '#wpbdp-upload-iframe-' + field_id )[0];
127
  var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
128
-
129
  if ( iframeWin.document.body ) {
130
  iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
131
  }
@@ -161,7 +161,7 @@ WPBDP.fileUpload = {
161
  $preview.find('img').remove();
162
 
163
  $preview.find('.delete').hide();
164
-
165
  return false;
166
  }
167
 
125
  resizeIFrame: function(field_id, height) {
126
  var iframe = jQuery( '#wpbdp-upload-iframe-' + field_id )[0];
127
  var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
128
+
129
  if ( iframeWin.document.body ) {
130
  iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
131
  }
161
  $preview.find('img').remove();
162
 
163
  $preview.find('.delete').hide();
164
+
165
  return false;
166
  }
167
 
business-directory-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
- * Version: 4.1.12.1
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
@@ -31,7 +31,7 @@
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
- define( 'WPBDP_VERSION', '4.1.12.1' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
@@ -133,7 +133,6 @@ class WPBDP_Plugin {
133
  $this->settings->register_settings();
134
 
135
  // WPBDP is intended to replace this whole class in the near future.
136
- require_once( WPBDP_INC . 'class-wpbdp.php' );
137
  $bd = new WPBDP();
138
  $bd->init();
139
 
@@ -912,7 +911,7 @@ class WPBDP_Plugin {
912
  wp_register_script(
913
  'wpbdp-js',
914
  WPBDP_URL . 'assets/js/wpbdp.min.js',
915
- array( 'jquery', 'jquery-breakpoints' )
916
  );
917
  }
918
 
@@ -1422,6 +1421,25 @@ class WPBDP_Plugin {
1422
  }
1423
 
1424
  public function ajax_file_field_upload() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1425
  echo '<form action="" method="POST" enctype="multipart/form-data">';
1426
  echo '<input type="file" name="file" class="file-upload" onchange="return window.parent.WPBDP.fileUpload.handleUpload(this);"/>';
1427
  echo '</form>';
@@ -1443,14 +1461,14 @@ class WPBDP_Plugin {
1443
  echo '</div>';
1444
 
1445
  echo '<script type="text/javascript">';
1446
- echo sprintf( 'window.parent.WPBDP.fileUpload.finishUpload(%d, %d);', $_REQUEST['field_id'], $media_id );
1447
  echo '</script>';
1448
  } else {
1449
  print $errors;
1450
  }
1451
  }
1452
 
1453
- echo sprintf( '<script type="text/javascript">window.parent.WPBDP.fileUpload.resizeIFrame(%d);</script>', $_REQUEST['field_id'] );
1454
 
1455
  exit;
1456
  }
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
+ * Version: 4.1.13
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
+ define( 'WPBDP_VERSION', '4.1.13' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
133
  $this->settings->register_settings();
134
 
135
  // WPBDP is intended to replace this whole class in the near future.
 
136
  $bd = new WPBDP();
137
  $bd->init();
138
 
911
  wp_register_script(
912
  'wpbdp-js',
913
  WPBDP_URL . 'assets/js/wpbdp.min.js',
914
+ array( 'jquery', 'jquery-breakpoints', 'jquery-ui-sortable' )
915
  );
916
  }
917
 
1421
  }
1422
 
1423
  public function ajax_file_field_upload() {
1424
+ $field_id = ! empty( $_REQUEST['field_id'] ) ? absint( $_REQUEST['field_id'] ) : 0;
1425
+ $nonce = ! empty( $_REQUEST['nonce'] ) ? $_REQUEST['nonce'] : '';
1426
+ $listing_id = ! empty( $_REQUEST['listing_id'] ) ? absint( $_REQUEST['listing_id'] ) : 0;
1427
+ $state_id = ! empty( $_REQUEST['state_id'] ) ? $_REQUEST['state_id'] : '';
1428
+
1429
+ if ( ! $field_id || ! $nonce || ( ! $listing_id && ! $state_id ) ) {
1430
+ die;
1431
+ }
1432
+
1433
+ $state_challenge = $listing_id ? ( 'listing_id-' . $listing_id ) : ( 'state_id-' . $state_id );
1434
+ if ( ! wp_verify_nonce( $nonce, 'wpbdp-file-field-upload-' . $field_id . '-' . $state_challenge ) ) {
1435
+ die;
1436
+ }
1437
+
1438
+ $field = wpbdp_get_form_field( $field_id );
1439
+ if ( ! $field || 'image' != $field->get_field_type_id() ) {
1440
+ die;
1441
+ }
1442
+
1443
  echo '<form action="" method="POST" enctype="multipart/form-data">';
1444
  echo '<input type="file" name="file" class="file-upload" onchange="return window.parent.WPBDP.fileUpload.handleUpload(this);"/>';
1445
  echo '</form>';
1461
  echo '</div>';
1462
 
1463
  echo '<script type="text/javascript">';
1464
+ echo sprintf( 'window.parent.WPBDP.fileUpload.finishUpload(%d, %d);', $field_id, $media_id );
1465
  echo '</script>';
1466
  } else {
1467
  print $errors;
1468
  }
1469
  }
1470
 
1471
+ echo sprintf( '<script type="text/javascript">window.parent.WPBDP.fileUpload.resizeIFrame(%d);</script>', $field_id );
1472
 
1473
  exit;
1474
  }
includes/admin/class-admin.php CHANGED
@@ -29,7 +29,7 @@ class WPBDP_Admin {
29
  add_action( 'admin_init', array( &$this, 'process_admin_action' ), 999 );
30
 
31
  add_action('admin_notices', array($this, 'admin_notices'));
32
- add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
33
 
34
  // Admin menu.
35
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
@@ -80,9 +80,7 @@ class WPBDP_Admin {
80
  wp_enqueue_style( 'thickbox' );
81
 
82
  wp_enqueue_style( 'wpbdp-frontend-css', WPBDP_URL . 'assets/css/wpbdp.min.css' );
83
- wp_enqueue_script( 'wpbdp-frontend-js',
84
- WPBDP_URL . 'assets/js/wpbdp.min.js',
85
- array( 'jquery' ) );
86
  wp_enqueue_script( 'wpbdp-admin-js',
87
  WPBDP_URL . 'assets/js/admin.min.js',
88
  array( 'jquery', 'thickbox', 'jquery-ui-sortable' ) );
29
  add_action( 'admin_init', array( &$this, 'process_admin_action' ), 999 );
30
 
31
  add_action('admin_notices', array($this, 'admin_notices'));
32
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 20 );
33
 
34
  // Admin menu.
35
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
80
  wp_enqueue_style( 'thickbox' );
81
 
82
  wp_enqueue_style( 'wpbdp-frontend-css', WPBDP_URL . 'assets/css/wpbdp.min.css' );
83
+ wp_enqueue_script( 'wpbdp-js' );
 
 
84
  wp_enqueue_script( 'wpbdp-admin-js',
85
  WPBDP_URL . 'assets/js/admin.min.js',
86
  array( 'jquery', 'thickbox', 'jquery-ui-sortable' ) );
includes/admin/class-csv-import.php CHANGED
@@ -242,6 +242,10 @@ class WPBDP_CSV_Import {
242
  }
243
 
244
  public function cleanup() {
 
 
 
 
245
  wpbdp_rrmdir( $this->working_dir );
246
  }
247
 
@@ -473,19 +477,26 @@ class WPBDP_CSV_Import {
473
  }
474
 
475
  // Handle fields.
476
- foreach ( $fields as $field_id => $field_data ) {
 
477
  $f = wpbdp_get_form_field( $field_id );
478
 
479
- if ( 'image' != $f->get_field_type_id() )
480
- continue;
481
 
482
- $img = trim( $field_data );
 
483
 
484
- if ( ! $img )
485
- continue;
 
486
 
487
- $media_id = $this->upload_image( $img );
488
- $fields[ $field_id ] = $media_id ? $media_id : '';
 
 
 
 
489
  }
490
 
491
  $state->fields = $fields;
@@ -496,39 +507,37 @@ class WPBDP_CSV_Import {
496
  $state->images[] = $img_id;
497
  }
498
 
 
 
 
 
 
 
 
 
 
499
  // Insert or update listing.
500
  if ( $listing_id ) {
 
 
501
  $listing = WPBDP_Listing::get( $listing_id );
502
  $listing->update( $state, array( 'append-images' => $this->settings['append-images'] ) );
503
- $listing->set_post_status( wpbdp_get_option( 'edit-post-status' ) );
504
  } else {
 
 
505
  $listing = WPBDP_Listing::create( $state );
506
- $listing->set_field_values( $state->fields );
507
  $listing->set_images( $state->images );
508
- $listing->set_categories( $state->categories );
509
- $listing->set_post_status( $this->settings['post-status'] );
510
  $listing->save();
511
  }
512
 
513
- // Set username.
514
- if ( $u = get_user_by( 'login', $meta['username'] ) )
515
- wp_update_post( array( 'ID' => $listing->get_id(), 'post_author' => $u->ID ) );
516
-
517
  // Set featured level.
518
  if ( $meta['featured_level'] ) {
519
  if ( $l = $wpbdp->listings->upgrades->get( $meta['featured_level'] ) )
520
  $wpbdp->listings->upgrades->set_sticky( $listing->get_id(), $l->id );
521
  }
522
 
523
- // Create permalink.
524
- $post = get_post( $listing->get_id() );
525
- wp_update_post( array('ID' => $post->ID,
526
- 'post_name' => wp_unique_post_slug( sanitize_title( $post->post_title ),
527
- $post->ID,
528
- $post->post_status,
529
- $post->post_type,
530
- $post->post_parent ) ) );
531
-
532
  // Update expiration dates.
533
  foreach ( $categories as $c ) {
534
  if ( ! $c['expires_on'] )
@@ -696,4 +705,22 @@ class WPBDP_CSV_Import {
696
 
697
  return $media_id;
698
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
699
  }
242
  }
243
 
244
  public function cleanup() {
245
+ global $wpdb;
246
+
247
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'wpbdp-slug-%'" );
248
+
249
  wpbdp_rrmdir( $this->working_dir );
250
  }
251
 
477
  }
478
 
479
  // Handle fields.
480
+ $post_data_associations = array( 'title', 'excerpt', 'content' );
481
+ foreach ( array_keys( $fields ) as $field_id ) {
482
  $f = wpbdp_get_form_field( $field_id );
483
 
484
+ $field_data = $fields[ $field_id ];
485
+ $association = $f->get_association();
486
 
487
+ if ( 'image' == $f->get_field_type_id() ) {
488
+ $img = trim( $field_data );
489
 
490
+ if ( ! $img ) {
491
+ continue;
492
+ }
493
 
494
+ $media_id = $this->upload_image( $img );
495
+ $fields[ $field_id ] = $media_id ? $media_id : '';
496
+ } elseif ( in_array( $association, $post_data_associations, true ) ) {
497
+ $state->{$association} = $field_data;
498
+ unset( $fields[ $field_id ] );
499
+ }
500
  }
501
 
502
  $state->fields = $fields;
507
  $state->images[] = $img_id;
508
  }
509
 
510
+ if ( isset( $state->title ) ) {
511
+ $state->post_name = $this->get_unique_post_name( sanitize_title( $state->title ) );
512
+ }
513
+
514
+ // Set username.
515
+ if ( $u = get_user_by( 'login', $meta['username'] ) ) {
516
+ $state->post_author = $u->ID;
517
+ }
518
+
519
  // Insert or update listing.
520
  if ( $listing_id ) {
521
+ $state->post_status = wpbdp_get_option( 'edit-post-status' );
522
+
523
  $listing = WPBDP_Listing::get( $listing_id );
524
  $listing->update( $state, array( 'append-images' => $this->settings['append-images'] ) );
 
525
  } else {
526
+ $state->post_status = $this->settings['post-status'];
527
+
528
  $listing = WPBDP_Listing::create( $state );
529
+ $listing->set_field_values( $state->fields, true );
530
  $listing->set_images( $state->images );
531
+ $listing->set_categories( $state->categories, 'nofix' );
 
532
  $listing->save();
533
  }
534
 
 
 
 
 
535
  // Set featured level.
536
  if ( $meta['featured_level'] ) {
537
  if ( $l = $wpbdp->listings->upgrades->get( $meta['featured_level'] ) )
538
  $wpbdp->listings->upgrades->set_sticky( $listing->get_id(), $l->id );
539
  }
540
 
 
 
 
 
 
 
 
 
 
541
  // Update expiration dates.
542
  foreach ( $categories as $c ) {
543
  if ( ! $c['expires_on'] )
705
 
706
  return $media_id;
707
  }
708
+
709
+ private function get_unique_post_name( $post_name ) {
710
+ global $wpdb;
711
+
712
+ $post_name_hash = 'wpbdp-slug-' . sha1( $post_name );
713
+
714
+ $sql = "SELECT option_value FROM $wpdb->options WHERE option_name = '%s'";
715
+ $slug_prefix = $wpdb->get_var( $wpdb->prepare( $sql, $post_name_hash ) );
716
+
717
+ if ( ! is_null( $slug_prefix ) && function_exists( '_truncate_post_slug' ) ) {
718
+ $slug_prefix = intval( $slug_prefix ) + 1;
719
+ $post_name = _truncate_post_slug( $post_name, 200 - strlen( $slug_prefix ) - 1 ) . '-' . $slug_prefix;
720
+ $sql = "UPDATE $wpdb->options SET option_value = '%s' WHERE option_name = '%s'";
721
+ $wpdb->query( $wpdb->prepare( $sql, $slug_prefix, $post_name_hash ) );
722
+ }
723
+
724
+ return $post_name;
725
+ }
726
  }
includes/admin/csv-import.php CHANGED
@@ -54,7 +54,11 @@ class WPBDP_CSVImportAdmin {
54
  $wpbdp->_importing_csv = true;
55
  $wpbdp->_importing_csv_no_email = (bool) $import->get_setting( 'disable-email-notifications' );
56
 
 
 
57
  $import->do_work();
 
 
58
 
59
  unset( $wpbdp->_importing_csv ); unset( $wpbdp->_importing_csv_no_email );
60
 
@@ -72,6 +76,26 @@ class WPBDP_CSVImportAdmin {
72
  $res->send();
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  public function ajax_autocomplete_user() {
76
  $users = get_users( array( 'search' => "*{$_REQUEST['term']}*" ) );
77
 
@@ -344,6 +368,3 @@ class WPBDP_CSVImportAdmin {
344
  }
345
 
346
  }
347
-
348
-
349
-
54
  $wpbdp->_importing_csv = true;
55
  $wpbdp->_importing_csv_no_email = (bool) $import->get_setting( 'disable-email-notifications' );
56
 
57
+ wp_defer_term_counting( true );
58
+ add_filter( 'wp_unique_post_slug', array( $this, 'cache_unique_slug_prefix' ), 10, 6 );
59
  $import->do_work();
60
+ remove_filter( 'wp_unique_post_slug', array( $this, 'cache_unique_slug_prefix' ), 10, 6 );
61
+ wp_defer_term_counting( false );
62
 
63
  unset( $wpbdp->_importing_csv ); unset( $wpbdp->_importing_csv_no_email );
64
 
76
  $res->send();
77
  }
78
 
79
+ public function cache_unique_slug_prefix( $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug ) {
80
+ global $wpdb;
81
+
82
+ if ( $slug == $original_slug ) {
83
+ return $slug;
84
+ }
85
+
86
+ if ( ! preg_match( '/-(\d+)$/', $slug, $matches ) ) {
87
+ return $slug;
88
+ }
89
+
90
+ $wpdb->insert( $wpdb->options, array(
91
+ 'option_name' => 'wpbdp-slug-' . sha1( $original_slug ),
92
+ 'option_value' => intval( $matches[1] ),
93
+ 'autoload' => 'no',
94
+ ) );
95
+
96
+ return $slug;
97
+ }
98
+
99
  public function ajax_autocomplete_user() {
100
  $users = get_users( array( 'search' => "*{$_REQUEST['term']}*" ) );
101
 
368
  }
369
 
370
  }
 
 
 
includes/admin/settings/class-settings.php CHANGED
@@ -613,6 +613,7 @@ EOF;
613
  array( 'choices' => array( array( 'left', _x( 'Show currency symbol on the left', 'admin settings', 'WPBDM' ) ),
614
  array( 'right', _x( 'Show currency symbol on the right', 'admin settings', 'WPBDM' ) ),
615
  array( 'none', _x( 'Do not show currency symbol', 'admin settings', 'WPBDM' ) ) ) ) );
 
616
 
617
  $this->add_setting($s, 'payment-message', _x('Thank you for payment message', 'admin settings', 'WPBDM'), 'text',
618
  _x('Thank you for your payment. Your payment is being verified and your listing reviewed. The verification and review process could take up to 48 hours.', 'admin settings', 'WPBDM'));
613
  array( 'choices' => array( array( 'left', _x( 'Show currency symbol on the left', 'admin settings', 'WPBDM' ) ),
614
  array( 'right', _x( 'Show currency symbol on the right', 'admin settings', 'WPBDM' ) ),
615
  array( 'none', _x( 'Do not show currency symbol', 'admin settings', 'WPBDM' ) ) ) ) );
616
+ $this->register_dep( 'currency-symbol-position', 'requires-true', 'payments-on' );
617
 
618
  $this->add_setting($s, 'payment-message', _x('Thank you for payment message', 'admin settings', 'WPBDM'), 'text',
619
  _x('Thank you for your payment. Your payment is being verified and your listing reviewed. The verification and review process could take up to 48 hours.', 'admin settings', 'WPBDM'));
includes/class-listing.php CHANGED
@@ -189,10 +189,16 @@ class WPBDP_Listing {
189
 
190
  // TODO: if there is 'current' information for the category respect the expiration time left.
191
  public function add_category( $category, $fee, $recurring = false, $recurring_data = array(), $cleanup = false ) {
192
- global $wpdb;
193
-
194
  $this->remove_category( $category, true, $cleanup );
195
 
 
 
 
 
 
 
 
 
196
  $category_id = intval( is_object( $category ) ? $category->term_id : $category );
197
  $fee = ( null === $fee ) ? $fee : ( is_object( $fee ) ? $fee : wpbdp_get_fee( $fee ) );
198
 
@@ -220,9 +226,9 @@ class WPBDP_Listing {
220
  $fee_info['expires_on'] = $expiration_date;
221
 
222
  $wpdb->insert( $wpdb->prefix . 'wpbdp_listing_fees', $fee_info );
223
- wp_set_post_terms( $this->id, array( $category_id ), WPBDP_CATEGORY_TAX, true );
224
- }
225
 
 
 
226
 
227
  private function calculate_expiration_date( $time, &$fee ) {
228
  $days = isset( $fee['days'] ) ? $fee['days'] : $fee['fee_days'];
@@ -371,11 +377,16 @@ class WPBDP_Listing {
371
  return $results;
372
  }
373
 
374
- public function set_categories( $categories ) {
375
  $category_ids = array_map( 'intval', $categories );
376
 
377
  wp_set_post_terms( $this->id, $category_ids, WPBDP_CATEGORY_TAX, false );
378
- $this->fix_categories();
 
 
 
 
 
379
  }
380
 
381
  public function fix_categories( $charge = false ) {
@@ -419,6 +430,19 @@ class WPBDP_Listing {
419
  }
420
  }
421
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  public function make_category_non_recurring( $category_id ) {
423
  global $wpdb;
424
  $wpdb->update( "{$wpdb->prefix}wpbdp_listing_fees",
@@ -590,21 +614,12 @@ class WPBDP_Listing {
590
 
591
 
592
  public function update( $state, $opts = array() ) {
593
- // Set title.
594
- $title = false;
595
 
596
- if ( isset( $state->title ) ) {
597
- $title = $state->title;
598
- } else {
599
- if ( $title_field = wpbdp_get_form_fields( array( 'association' => 'title', 'unique' => true ) ) ) {
600
- if ( isset( $state->fields[ $title_field->get_id() ] ) )
601
- $title = $state->fields[ $title_field->get_id() ];
602
- }
603
  }
604
 
605
- if ( $title )
606
- $this->set_title( $title );
607
-
608
  // Set categories.
609
  if ( isset( $state->categories ) ) {
610
  $this->set_categories( $state->categories );
@@ -623,31 +638,21 @@ class WPBDP_Listing {
623
  }
624
 
625
  public static function create( &$state ) {
626
- $title = 'Untitled Listing';
627
-
628
- if ( isset( $state->title ) ) {
629
- $title = $state->title;
630
- } else {
631
- $title_field = wpbdp_get_form_fields( array( 'association' => 'title', 'unique' => true ) );
632
-
633
- if ( isset( $state->fields[ $title_field->get_id() ] ) )
634
- $title = $state->fields[ $title_field->get_id() ];
635
- }
636
-
637
- $title = trim( strip_tags( $title ) );
638
-
639
- $post_data = array(
640
- 'post_title' => $title,
641
  'post_status' => 'pending',
642
  'post_type' => WPBDP_POST_TYPE
643
- );
644
-
645
- $post_id = wp_insert_post( $post_data );
646
 
647
  // Create author user if needed.
648
- $current_user = wp_get_current_user();
 
 
 
 
 
649
 
650
- if ( $current_user->ID == 0 ) {
651
  if ( wpbdp_get_option( 'require-login' ) )
652
  throw new Exception('Login required.');
653
 
@@ -665,14 +670,61 @@ class WPBDP_Listing {
665
  'user_pass' => wp_generate_password()
666
  ) );
667
  }
668
-
669
- wp_update_post( array( 'ID' => $post_id, 'post_author' => $post_author ) );
670
  }
671
  }
672
 
 
 
 
 
 
 
673
  return new self( $post_id );
674
  }
675
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
676
  public static function get( $id ) {
677
  if ( WPBDP_POST_TYPE !== get_post_type( $id ) )
678
  return null;
189
 
190
  // TODO: if there is 'current' information for the category respect the expiration time left.
191
  public function add_category( $category, $fee, $recurring = false, $recurring_data = array(), $cleanup = false ) {
 
 
192
  $this->remove_category( $category, true, $cleanup );
193
 
194
+ $category_id = $this->add_category_info( $category, $fee, $recurring, $recurring_data, $cleanup );
195
+
196
+ wp_set_post_terms( $this->id, array( $category_id ), WPBDP_CATEGORY_TAX, true );
197
+ }
198
+
199
+ private function add_category_info( $category, $fee, $recurring = false, $recurring_data = array(), $cleanup = false ) {
200
+ global $wpdb;
201
+
202
  $category_id = intval( is_object( $category ) ? $category->term_id : $category );
203
  $fee = ( null === $fee ) ? $fee : ( is_object( $fee ) ? $fee : wpbdp_get_fee( $fee ) );
204
 
226
  $fee_info['expires_on'] = $expiration_date;
227
 
228
  $wpdb->insert( $wpdb->prefix . 'wpbdp_listing_fees', $fee_info );
 
 
229
 
230
+ return $category_id;
231
+ }
232
 
233
  private function calculate_expiration_date( $time, &$fee ) {
234
  $days = isset( $fee['days'] ) ? $fee['days'] : $fee['fee_days'];
377
  return $results;
378
  }
379
 
380
+ public function set_categories( $categories, $fix = 'fix' ) {
381
  $category_ids = array_map( 'intval', $categories );
382
 
383
  wp_set_post_terms( $this->id, $category_ids, WPBDP_CATEGORY_TAX, false );
384
+
385
+ if ( 'fix' == $fix ) {
386
+ $this->fix_categories();
387
+ } else {
388
+ $this->set_default_fee_for_categories( $category_ids );
389
+ }
390
  }
391
 
392
  public function fix_categories( $charge = false ) {
430
  }
431
  }
432
 
433
+ private function set_default_fee_for_categories( $terms, $charge = false ) {
434
+ foreach ( $terms as $category_id ) {
435
+ $fee_options = wpbdp_get_fees_for_category( $category_id );
436
+
437
+ // Allow backend listing categories editing to always succeed.
438
+ if ( ! $fee_options && is_admin() && current_user_can( 'administrator' ) ) {
439
+ $fee_options[] = WPBDP_Fee_Plan::get_free_plan();
440
+ }
441
+
442
+ $this->add_category_info( $category_id, reset( $fee_options ) );
443
+ }
444
+ }
445
+
446
  public function make_category_non_recurring( $category_id ) {
447
  global $wpdb;
448
  $wpdb->update( "{$wpdb->prefix}wpbdp_listing_fees",
614
 
615
 
616
  public function update( $state, $opts = array() ) {
617
+ $post_data = self::get_post_data_from_state( $state );
 
618
 
619
+ if ( $post_data ) {
620
+ wp_update_post( array_merge( array( 'ID' => $this->id ), $post_data ) );
 
 
 
 
 
621
  }
622
 
 
 
 
623
  // Set categories.
624
  if ( isset( $state->categories ) ) {
625
  $this->set_categories( $state->categories );
638
  }
639
 
640
  public static function create( &$state ) {
641
+ $post_data = self::get_post_data_from_state( $state, array(
642
+ 'post_title' => 'Untitled Listing',
 
 
 
 
 
 
 
 
 
 
 
 
 
643
  'post_status' => 'pending',
644
  'post_type' => WPBDP_POST_TYPE
645
+ ) );
 
 
646
 
647
  // Create author user if needed.
648
+ if ( isset( $post_data['post_author'] ) && $post_data['post_author'] ) {
649
+ $post_author = $post_data['post_author'];
650
+ } else {
651
+ $current_user = wp_get_current_user();
652
+ $post_author = $current_user->ID;
653
+ }
654
 
655
+ if ( 0 == $post_author ) {
656
  if ( wpbdp_get_option( 'require-login' ) )
657
  throw new Exception('Login required.');
658
 
670
  'user_pass' => wp_generate_password()
671
  ) );
672
  }
 
 
673
  }
674
  }
675
 
676
+ if ( $post_author ) {
677
+ $post_data['post_author'] = $post_author;
678
+ }
679
+
680
+ $post_id = wp_insert_post( $post_data );
681
+
682
  return new self( $post_id );
683
  }
684
 
685
+ private static function get_post_data_from_state( $state, $defaults = array() ) {
686
+ $title = wpbdp_getv( $defaults, 'post_title', false );
687
+
688
+ if ( isset( $state->title ) ) {
689
+ $title = $state->title;
690
+ } else {
691
+ $title_field = wpbdp_get_form_fields( array( 'association' => 'title', 'unique' => true ) );
692
+
693
+ if ( $title_field && isset( $state->fields[ $title_field->get_id() ] ) ) {
694
+ $title = $state->fields[ $title_field->get_id() ];
695
+ }
696
+ }
697
+
698
+ $post_data = $defaults;
699
+
700
+ if ( $title ) {
701
+ $post_data['post_title'] = trim( strip_tags( $title ) );
702
+ $post_data['post_name'] = sanitize_title( $title );
703
+ }
704
+
705
+ if ( isset( $state->post_name ) ) {
706
+ $post_data['post_name'] = $state->post_name;
707
+ }
708
+
709
+ if ( isset( $state->post_status ) ) {
710
+ $post_data['post_status'] = $state->post_status;
711
+ }
712
+
713
+ if ( isset( $state->excerpt ) ) {
714
+ $post_data['post_excerpt'] = $state->excerpt;
715
+ }
716
+
717
+ if ( isset( $state->content ) ) {
718
+ $post_data['post_content'] = $state->content;
719
+ }
720
+
721
+ if ( isset( $state->post_author ) ) {
722
+ $post_data['post_author'] = $state->post_author;
723
+ }
724
+
725
+ return $post_data;
726
+ }
727
+
728
  public static function get( $id ) {
729
  if ( WPBDP_POST_TYPE !== get_post_type( $id ) )
730
  return null;
includes/class-listings-api.php CHANGED
@@ -251,8 +251,8 @@ class WPBDP_Listings_API {
251
  return;
252
 
253
  if ( isset( $_POST['original_post_status'] ) && 'auto-draft' == $_POST['original_post_status'] ) {
254
- add_action( 'save_post', array( $this, 'send_listing_published_notification' ), 99, 2 );
255
- add_action( 'save_post', array( $this, 'try_to_remove_listing_published_notification_action' ), 99 );
256
  return;
257
  }
258
 
@@ -270,8 +270,8 @@ class WPBDP_Listings_API {
270
  }
271
 
272
  public function try_to_remove_listing_published_notification_action() {
273
- remove_action( 'save_post', array( $this, 'send_listing_published_notification' ), 99, 2 );
274
- remove_action( 'save_post', array( $this, 'try_to_remove_listing_published_notification_action' ), 99 );
275
  }
276
 
277
  /**
251
  return;
252
 
253
  if ( isset( $_POST['original_post_status'] ) && 'auto-draft' == $_POST['original_post_status'] ) {
254
+ add_action( 'save_post', array( $this, 'send_listing_published_notification' ), PHP_INT_MAX, 2 );
255
+ add_action( 'save_post', array( $this, 'try_to_remove_listing_published_notification_action' ), PHP_INT_MAX );
256
  return;
257
  }
258
 
270
  }
271
 
272
  public function try_to_remove_listing_published_notification_action() {
273
+ remove_action( 'save_post', array( $this, 'send_listing_published_notification' ), PHP_INT_MAX, 2 );
274
+ remove_action( 'save_post', array( $this, 'try_to_remove_listing_published_notification_action' ), PHP_INT_MAX );
275
  }
276
 
277
  /**
includes/class-shortcodes.php CHANGED
@@ -25,26 +25,203 @@ class WPBDP__Shortcodes {
25
  // the output.
26
  global $wpbdp;
27
 
 
 
 
 
 
 
 
 
 
 
28
  $this->add( 'businessdirectory',
29
  array( $this, 'sc_main' ),
30
  array( 'business-directory', 'WPBUSDIRMANUI' ) );
 
 
 
 
 
 
 
 
 
 
 
31
  $this->add( 'businessdirectory-submit-listing',
32
  array( $this, 'sc_submit_listing' ),
33
  array( 'businessdirectory-submitlisting', 'business-directory-submitlisting', 'business-directory-submit-listing', 'WPBUSDIRMANADDLISTING' ) );
 
 
 
 
 
 
 
 
 
 
 
34
  $this->add( 'businessdirectory-manage-listings',
35
  array( $this, 'sc_manage_listings' ),
36
  array( 'businessdirectory-managelistings', 'business-directory-manage-listings', 'businessdirectory-manage_listings', 'WPBUSDIRMANMANAGELISTING' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  $this->add( 'businessdirectory-listings',
38
  array( $this, 'sc_listings' ),
39
  array( 'WPBUSDIRMANVIEWLISTINGS', 'WPBUSDIRMANMVIEWLISTINGS', 'businessdirectory-view_listings', 'businessdirectory-viewlistings' ) );
 
 
 
 
 
 
 
 
 
40
  $this->add( 'businessdirectory-search',
41
  array( $this, 'sc_search' ),
42
  array( 'business-directory-search', 'businessdirectory_search', 'business-directory_search' ) );
 
 
 
 
 
 
 
 
 
 
 
43
  $this->add( 'businessdirectory-featuredlistings', array( $this, 'sc_featured_listings' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  $this->add( 'businessdirectory-listing', array( $this, 'sc_single_listing' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  $this->add( 'businessdirectory-categories', array( $this, 'sc_categories' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  $this->add( 'businessdirectory-listing-count', array( $this, 'sc_count' ), array( 'bd-listing-count', 'business-directory-listing-count' ) );
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  do_action_ref_array( 'wpbdp_shortcodes_register', array( &$this ) );
49
 
50
  $this->shortcodes = apply_filters( 'wpbdp_shortcodes', $this->shortcodes );
@@ -149,6 +326,108 @@ class WPBDP__Shortcodes {
149
  return $v->dispatch();
150
  }
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  public function sc_featured_listings( $atts ) {
153
  global $wpbdp;
154
 
@@ -257,9 +536,33 @@ class WPBDP__Shortcodes {
257
  return $v->dispatch();
258
  }
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  //
261
  // }}
262
  //
263
 
264
  }
265
-
25
  // the output.
26
  global $wpbdp;
27
 
28
+ /*
29
+ * WordPress Shortcode:
30
+ * [businessdirectory], [business-directory], [WPBUSDIRMANUI]
31
+ * Used for:
32
+ * Displaying the main directory page and all directory content.
33
+ * Notes:
34
+ * Required. Installed by BD automatically. Cannot be removed from site unless you plan to uninstall BD.
35
+ * Example:
36
+ * `[businessdirectory]`
37
+ */
38
  $this->add( 'businessdirectory',
39
  array( $this, 'sc_main' ),
40
  array( 'business-directory', 'WPBUSDIRMANUI' ) );
41
+
42
+ /*
43
+ * WordPress Shortcode:
44
+ * [businessdirectory-submit-listing], [WPBUSDIRMANADDLISTING]
45
+ * Used for:
46
+ * Creating a separate "Submit Listing" page for BD.
47
+ * Notes:
48
+ * Optional. Not needed if you are just using the standard directory links and buttons. This allows you to have a separate page if you want to have some special content around the page.
49
+ * Example:
50
+ * `[businessdirectory-submitlisting]`
51
+ */
52
  $this->add( 'businessdirectory-submit-listing',
53
  array( $this, 'sc_submit_listing' ),
54
  array( 'businessdirectory-submitlisting', 'business-directory-submitlisting', 'business-directory-submit-listing', 'WPBUSDIRMANADDLISTING' ) );
55
+
56
+ /*
57
+ * WordPress Shortcode:
58
+ * [businessdirectory-manage-listings], [business-directory-managelistings], [WPBUSDIRMANMANAGELISTING]
59
+ * Used for:
60
+ * Bulk listing editor page for users to see and manage their listings when logged in.
61
+ * Parameters:
62
+ * - showsearchbar Allows you to control the visibility of the search bar at the top of the page. Default is 1 if not specified. (Allowed Values: 0 or 1.)
63
+ * Example:
64
+ * `[businessdirectory-manage-listings]`
65
+ */
66
  $this->add( 'businessdirectory-manage-listings',
67
  array( $this, 'sc_manage_listings' ),
68
  array( 'businessdirectory-managelistings', 'business-directory-manage-listings', 'businessdirectory-manage_listings', 'WPBUSDIRMANMANAGELISTING' ) );
69
+
70
+ /*
71
+ * WordPress Shortcode:
72
+ * [businessdirectory-listings], [businessdirectory-viewlistings], [WPBUSDIRMANVIEWLISTINGS], [WPBUSDIRMANMVIEWLISTINGS]
73
+ * Used for:
74
+ * Showing listings with a certain type, tag or filter.
75
+ * Notes:
76
+ * Good for displaying listings in a single category or from a single tag.
77
+ * Parameters:
78
+ * - tag Shows the listings with a certain tag name. (Allowed Values: Any valid tag name within the directory. Can be a comma separated list too (eg. "New, Hot").)
79
+ * - category Shows the listings with a certain category. (Allowed Values: Any valid category name or ID you have configured under Directory -> Directory Categories. Can be a comma separated list too (e.g. "Dentists, Doctors" or 1,2,56).)
80
+ * - title Adds a title to the page of listings to indicate what they are for. (Allowed Values: Any non-blank string.)
81
+ * Example:
82
+ * - Display listings from category "Dentists" with tag "New" and include a title.
83
+ *
84
+ * `[businessdirectory-listings tag="New" category="Dentists" title="Recent Listings for Dentists"]`
85
+ *
86
+ */
87
  $this->add( 'businessdirectory-listings',
88
  array( $this, 'sc_listings' ),
89
  array( 'WPBUSDIRMANVIEWLISTINGS', 'WPBUSDIRMANMVIEWLISTINGS', 'businessdirectory-view_listings', 'businessdirectory-viewlistings' ) );
90
+
91
+ /*
92
+ * WordPress Shortcode:
93
+ * [businessdirectory-search], [business-directory-search]
94
+ * Used for:
95
+ * Shows the Advanced Search Screen on any single page.
96
+ * Example:
97
+ * `[businessdirectory-search]`
98
+ */
99
  $this->add( 'businessdirectory-search',
100
  array( $this, 'sc_search' ),
101
  array( 'business-directory-search', 'businessdirectory_search', 'business-directory_search' ) );
102
+
103
+ /*
104
+ * WordPress Shortcode:
105
+ * [businessdirectory-featuredlistings]
106
+ * Used for:
107
+ * To show all of the featured listings within your directory on a single page.
108
+ * Parameters:
109
+ * - number_of_listings Maximum number of listings to display. (Allowed Values: Any positive integer or 0 for no limit)
110
+ * Example:
111
+ * `[businessdirectory-featuredlistings]`
112
+ */
113
  $this->add( 'businessdirectory-featuredlistings', array( $this, 'sc_featured_listings' ) );
114
+
115
+
116
+ /*
117
+ * WordPress Shortcode:
118
+ * [businessdirectory-listings]
119
+ * Used for:
120
+ * Displaying a single listing from the directory (by slug or ID).
121
+ * Parameters:
122
+ * - id Post ID of the listing. (Allowed Values: Any valid listing ID.)
123
+ * - slug Slug for the listing. (Allowed Values: Any valid listing slug.)
124
+ * Notes:
125
+ * At least one of the parameters `id` or `slug` must be provided.
126
+ * Example:
127
+ * `[businessdirectory-listing slug="my-listing"]`
128
+ */
129
  $this->add( 'businessdirectory-listing', array( $this, 'sc_single_listing' ) );
130
+
131
+ /*
132
+ * WordPress Shortcode:
133
+ * [businessdirectory-categories]
134
+ * Used for:
135
+ * Displaying the list of categories in a similar fashion as the main page.
136
+ * Parameters:
137
+ * - parent Parent directory category ID. (Allowed Values: A directory category term ID)
138
+ * - orderby What value to use for odering the categories. Default is taken from current BD settings. (Allowed Values: "name", "slug", "id", "description", "count" (listing count).)
139
+ * - order Whether to order in ascending or descending order. Default is taken from current BD settings. (Allowed Values: "ASC" or "DESC")
140
+ * - show_count Whether to display the listing count next to each category or not. Default is taken from current BD settings. (Allowed Values: 0 or 1)
141
+ * - hide_empty Whether to hide empty categories or not. Default is 0. (Allowed Values: 0 or 1)
142
+ * - parent_only Whether to only display direct childs of parent category or make a recursive list. Default is 0. (Allowed Values: 0 or 1)
143
+ * - no_items_msg Message to display when there are no categories found. (Allowed Values: Any non-blank string)
144
+ * Example:
145
+ * - Display the list of categories starting at the one with ID 20 and ordering by slug.
146
+ * `[businessdirectory-categories parent=20 order="slug"]`
147
+ */
148
  $this->add( 'businessdirectory-categories', array( $this, 'sc_categories' ) );
149
+
150
+ /*
151
+ * WordPress Shortcode:
152
+ * [businessdirectory-listing-count]
153
+ * Used for:
154
+ * Outputs the listing count for a given category or region.
155
+ * Parameters:
156
+ * - category What category to use. (Allowed Values: A valid category ID, name or slug.)
157
+ * - region What region to use. (Allowed Values: A valid region ID, name or slug.)
158
+ * Notes:
159
+ * If both parameters are provided the result is the number of listings inside the given category located in the given region.
160
+ * Example:
161
+ * - To count how many listings you have in the "Restaurants" category that are located in "New York"
162
+ *
163
+ * `[businessdirectory-listing-count category="Restaurants" region="New York"]`
164
+ */
165
  $this->add( 'businessdirectory-listing-count', array( $this, 'sc_count' ), array( 'bd-listing-count', 'business-directory-listing-count' ) );
166
 
167
+ /*
168
+ * WordPress Shortcode:
169
+ * [businessdirectory-quick-search], [business-directory-quick-search]
170
+ * Used for:
171
+ * Displaying the quick search box on any page.
172
+ * Parameters:
173
+ * - buttons Which menu buttons to show inside the box. Default is none. (Allowed Values: "all", "none", or a comma-separated list from the set "create", "directory" and "listings").
174
+ * Example:
175
+ * `[businessdirectory-quick-search buttons="create,listings"]`
176
+ */
177
+ $this->add( 'businessdirectory-quick-search', array( $this, 'sc_quick_search' ), array( 'business-directory-quick-search' ) );
178
+
179
+ /*
180
+ * WordPress Shortcode:
181
+ * [businessdirectory-latest-listings]
182
+ * Used for:
183
+ * Displaying the latest listings.
184
+ * Parameters:
185
+ * - limit The number of listings to show. Defaults to 10. (Allowed Values: A positive integer)
186
+ * - menu Whether to include the quick search and menu bar as part of the output. Defaults to 0. (Allowed Values: 0 or 1)
187
+ * - buttons Which menu buttons to show inside the menu (applies only when `menu` is `1`). Default is none. (Allowed Values: "all", "none", or a comma-separated list from the set "create", "directory" and "listings").
188
+ * Example:
189
+ * - Display the latest 5 listings submitted to the directory:
190
+ * `[businessdirectory-latest-listings limit=5]`
191
+ */
192
+ $this->add( 'businessdirectory-latest-listings', array( $this, 'sc_listings_latest' ) );
193
+
194
+ /*
195
+ * WordPress Shortcode:
196
+ * [businessdirectory-random-listings]
197
+ * Used for:
198
+ * Displaying a set of random listings from the directory.
199
+ * Parameters:
200
+ * - limit The number of listings to show. Defaults to 10. (Allowed Values: A positive integer)
201
+ * - menu Whether to include the quick search and menu bar as part of the output. Defaults to 0. (Allowed Values: 0 or 1)
202
+ * - buttons Which menu buttons to show inside the menu (applies only when `menu` is `1`). Default is none. (Allowed Values: "all", "none", or a comma-separated list from the set "create", "directory" and "listings").
203
+ * Example:
204
+ * - Display a set of 10 random listings, including the directory menu with only the "Create A Listing" button:
205
+ *
206
+ * `[businessdirectory-random-listings menu=1 buttons="create"]`
207
+ */
208
+ $this->add( 'businessdirectory-random-listings', array( $this, 'sc_listings_random' ) );
209
+
210
+ /*
211
+ * WordPress Shortcode:
212
+ * [businessdirectory-featured-listings]
213
+ * Used for:
214
+ * Displaying a set of featured listings from the directory.
215
+ * Parameters:
216
+ * - limit The number of listings to show. Defaults to 10. (Allowed Values: A positive integer)
217
+ * - menu Whether to include the quick search and menu bar as part of the output. Defaults to 0. (Allowed Values: 0 or 1)
218
+ * - buttons Which menu buttons to show inside the menu (applies only when `menu` is `1`). Default is none. (Allowed Values: "all", "none", or a comma-separated list from the set "create", "directory" and "listings").
219
+ * Example:
220
+ * `[businessdirectory-featured-listings limit=5]`
221
+ */
222
+ $this->add( 'businessdirectory-featured-listings', array( $this, 'sc_listings_featured' ) );
223
+
224
+
225
  do_action_ref_array( 'wpbdp_shortcodes_register', array( &$this ) );
226
 
227
  $this->shortcodes = apply_filters( 'wpbdp_shortcodes', $this->shortcodes );
326
  return $v->dispatch();
327
  }
328
 
329
+ public function sc_listings_latest( $atts ) {
330
+ $atts = shortcode_atts(
331
+ array(
332
+ 'menu' => 0,
333
+ 'buttons' => 'none',
334
+ 'limit' => 10
335
+ ),
336
+ $atts,
337
+ 'businessdirectory-latest-listings'
338
+ );
339
+
340
+ return $this->display_listings(
341
+ array(
342
+ 'orderby' => 'date',
343
+ 'order' => 'DESC',
344
+ 'posts_per_page' => $atts['limit'] ),
345
+ $atts
346
+ );
347
+ }
348
+
349
+ public function sc_listings_random( $atts ) {
350
+ $atts = shortcode_atts(
351
+ array(
352
+ 'menu' => 0,
353
+ 'buttons' => 'none',
354
+ 'limit' => 10
355
+ ),
356
+ $atts,
357
+ 'businessdirectory-random-listings'
358
+ );
359
+
360
+ return $this->display_listings(
361
+ array(
362
+ 'orderby' => 'rand',
363
+ 'posts_per_page' => $atts['limit'] ),
364
+ $atts
365
+ );
366
+ }
367
+
368
+ public function sc_listings_featured( $atts ) {
369
+ $atts = shortcode_atts(
370
+ array(
371
+ 'menu' => 0,
372
+ 'buttons' => 'none',
373
+ 'limit' => 10
374
+ ),
375
+ $atts,
376
+ 'businessdirectory-featured-listings'
377
+ );
378
+
379
+ return $this->display_listings(
380
+ array(
381
+ 'meta_query' => array( array( 'key' => '_wpbdp[sticky]', 'value' => 'sticky' ) ),
382
+ 'orderby' => 'rand',
383
+ 'posts_per_page' => $atts['limit'] ),
384
+ $atts
385
+ );
386
+ }
387
+
388
+ private function display_listings( $query_args, $args = array() ) {
389
+ $query_args = array_merge(
390
+ array(
391
+ 'post_type' => WPBDP_POST_TYPE,
392
+ 'post_status' => 'publish'
393
+ ),
394
+ $query_args,
395
+ array(
396
+ 'limit' => 10
397
+ )
398
+ );
399
+ $args = array_merge(
400
+ array(
401
+ 'menu' => 0,
402
+ 'buttons' => 'none'
403
+ ),
404
+ $args
405
+ );
406
+
407
+ $query = new WP_Query( $query_args );
408
+ wpbdp_push_query( $q );
409
+
410
+ $html = '';
411
+
412
+ if ( $query->have_posts() ) {
413
+ $vars = array();
414
+ $vars['query'] = $query;
415
+
416
+ if ( $args['menu'] ) {
417
+ $vars['_wrapper'] = 'page';
418
+ $vars['_bar'] = true;
419
+ $vars['_bar_args'] = array( 'buttons' => $args['buttons'] );
420
+ }
421
+
422
+ $html .= wpbdp_x_render( 'listings', $vars );
423
+ }
424
+
425
+ wp_reset_postdata();
426
+ wpbdp_pop_query();
427
+
428
+ return $html;
429
+ }
430
+
431
  public function sc_featured_listings( $atts ) {
432
  global $wpbdp;
433
 
536
  return $v->dispatch();
537
  }
538
 
539
+ public function sc_quick_search( $atts ) {
540
+ $defaults = array(
541
+ 'buttons' => 'none'
542
+ );
543
+ $atts = shortcode_atts( $defaults, $atts, 'businessdirectory-quick-search' );
544
+
545
+ switch ( $atts['buttons'] ) {
546
+ case 'all':
547
+ $buttons = array( 'directory', 'listings', 'create' );
548
+ break;
549
+ case 'none':
550
+ $buttons = array();
551
+ break;
552
+ default:
553
+ $buttons = array_filter( explode( ',', trim( $atts['buttons'] ) ) );
554
+ break;
555
+ }
556
+
557
+ $box_args = array(
558
+ 'buttons' => $buttons
559
+ );
560
+
561
+ return wpbdp_main_box( $box_args );
562
+ }
563
+
564
  //
565
  // }}
566
  //
567
 
568
  }
 
includes/class-wordpress-template-integration.php CHANGED
@@ -75,35 +75,51 @@ class WPBDP__WordPress_Template_Integration {
75
  remove_filter( 'the_content', 'wpautop' );
76
  // TODO: we should probably be more clever here to avoid conflicts. Run last so other hooks don't break our
77
  // output.
 
78
  add_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
 
79
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
80
  }
81
 
82
- public function spoof_post() {
83
- $GLOBALS['post'] = $this->spoofed_post();
84
  remove_action( 'the_post', array( $this, 'spoof_post' ) );
85
  }
86
 
 
 
 
 
 
 
 
 
87
  public function display_view_in_content( $content = '' ) {
 
 
88
  if ( $this->displayed ) {
89
- remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
90
  return '';
91
  }
92
 
93
- remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
94
  // add_filter( 'the_content', 'wpautop' );
95
- $this->restore_things();
96
 
97
  $html = wpbdp_current_view_output();
98
 
99
- if ( ! is_404() )
100
- $this->end_query();
101
-
102
  $this->displayed = true;
103
 
104
  return $html;
105
  }
106
 
 
 
 
 
 
 
 
 
 
 
107
  public function modify_global_post_title( $title = '' ) {
108
  global $post;
109
 
75
  remove_filter( 'the_content', 'wpautop' );
76
  // TODO: we should probably be more clever here to avoid conflicts. Run last so other hooks don't break our
77
  // output.
78
+ add_filter( 'the_content', array( $this, 'remove_spoofed_data' ), 4 );
79
  add_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
80
+ add_filter( 'the_content', array( $this, 'maybe_end_query' ), 6 );
81
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
82
  }
83
 
84
+ public function spoof_post( $post ) {
85
+ $GLOBALS['post'] = apply_filters( 'wpbdp_spoofed_post', $this->spoofed_post(), $this, $post );
86
  remove_action( 'the_post', array( $this, 'spoof_post' ) );
87
  }
88
 
89
+ public function remove_spoofed_data( $content ) {
90
+ remove_filter( 'the_content', array( $this, 'remove_spoofed_data' ), 4 );
91
+
92
+ $this->restore_things();
93
+
94
+ return $content;
95
+ }
96
+
97
  public function display_view_in_content( $content = '' ) {
98
+ remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
99
+
100
  if ( $this->displayed ) {
 
101
  return '';
102
  }
103
 
 
104
  // add_filter( 'the_content', 'wpautop' );
 
105
 
106
  $html = wpbdp_current_view_output();
107
 
 
 
 
108
  $this->displayed = true;
109
 
110
  return $html;
111
  }
112
 
113
+ public function maybe_end_query( $content ) {
114
+ remove_filter( 'the_content', array( $this, 'maybe_end_query' ), 6 );
115
+
116
+ if ( ! is_404() ) {
117
+ $this->end_query();
118
+ }
119
+
120
+ return $content;
121
+ }
122
+
123
  public function modify_global_post_title( $title = '' ) {
124
  global $post;
125
 
includes/compatibility/class-themes-compat.php CHANGED
@@ -55,6 +55,7 @@ class WPBDP__Themes_Compat {
55
  'takeawaywp',
56
  'foodiepro-2.1.8',
57
  'ultimatum',
 
58
  );
59
 
60
  return apply_filters( 'wpbdp_themes_with_fixes_list', $themes_with_fixes );
@@ -356,6 +357,36 @@ class WPBDP__Themes_Compat {
356
  return $instance;
357
  }
358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
 
360
  //
361
  // }}
55
  'takeawaywp',
56
  'foodiepro-2.1.8',
57
  'ultimatum',
58
+ 'xpro',
59
  );
60
 
61
  return apply_filters( 'wpbdp_themes_with_fixes_list', $themes_with_fixes );
357
  return $instance;
358
  }
359
 
360
+ /**
361
+ * @since 4.1.13
362
+ */
363
+ public function theme_xpro() {
364
+ add_filter( 'wpbdp_spoofed_post', array( $this, 'theme_xpro_filter_spoofed_post' ), 10, 3 );
365
+ }
366
+
367
+ /**
368
+ * @since 4.1.13
369
+ */
370
+ public function theme_xpro_filter_spoofed_post( $spoofed_post, $template_integration, $post ) {
371
+ remove_filter( 'the_content', array( $template_integration, 'display_view_in_content' ), 5 );
372
+ add_filter( 'the_content', array( $this, 'theme_xpro_filter_spoofed_post_content' ), 5 );
373
+
374
+ return $spoofed_post;
375
+ }
376
+
377
+ /**
378
+ * @since 4.1.13
379
+ */
380
+ public function theme_xpro_filter_spoofed_post_content( $content ) {
381
+ $page = get_page( wpbdp_get_page_id( 'main' ) );
382
+
383
+ if ( ! $page ) {
384
+ return $content;
385
+ }
386
+
387
+ return do_shortcode( $page->post_content );
388
+ }
389
+
390
 
391
  //
392
  // }}
includes/fields/class-fieldtypes-image.php CHANGED
@@ -40,17 +40,49 @@ class WPBDP_FieldTypes_Image extends WPBDP_Form_Field_Type {
40
 
41
  $html .= '</div>';
42
 
43
- $ajax_url = add_query_arg( array( 'action' => 'wpbdp-file-field-upload',
44
- 'field_id' => $field->get_id(),
45
- 'element' => 'listingfields[' . $field->get_id() . ']' ),
46
- admin_url( 'admin-ajax.php' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  $html .= '<div class="wpbdp-upload-widget">';
49
- $html .= sprintf( '<iframe class="wpbdp-upload-iframe" name="upload-iframe-%d" id="wpbdp-upload-iframe-%d" src="%s" scrolling="no" seamless="seamless" border="0" frameborder="0"></iframe>',
50
- $field->get_id(),
51
- $field->get_id(),
52
- $ajax_url
53
- );
 
54
  $html .= '</div>';
55
 
56
  return $html;
@@ -75,4 +107,3 @@ class WPBDP_FieldTypes_Image extends WPBDP_Form_Field_Type {
75
  }
76
 
77
  }
78
-
40
 
41
  $html .= '</div>';
42
 
43
+ // We use $state to prevent CSFR. Related to #2848.
44
+ $state_key = '';
45
+ $state_id = '';
46
+ if ( 'submit' == $context ) {
47
+ if ( ! empty( $extra->id ) ) {
48
+ $state_key = 'state_id';
49
+ $state_id = $extra->id;
50
+ } elseif ( ! empty( $extra->listing_id ) ) {
51
+ $state_key = 'listing_id';
52
+ $state_id = absint( $extra->listing_id );
53
+ }
54
+ } else if ( is_admin() ) {
55
+ global $post;
56
+
57
+ if ( ! empty( $post ) && WPBDP_POST_TYPE == $post->post_type ) {
58
+ $state_key = 'listing_id';
59
+ $state_id = $post->ID;
60
+ }
61
+ }
62
+
63
+ if ( ! $state_key || ! $state_id ) {
64
+ return wpbdp_render_msg( _x( 'Field unavailable at the moment.', 'form fields', 'WPBDM' ), 'error' );
65
+ }
66
+
67
+ $nonce = wp_create_nonce( 'wpbdp-file-field-upload-' . $field->get_id() . '-' . $state_key . '-' . $state_id );
68
+ $ajax_url = add_query_arg(
69
+ array(
70
+ 'action' => 'wpbdp-file-field-upload',
71
+ 'field_id' => $field->get_id(),
72
+ 'element' => 'listingfields[' . $field->get_id() . ']',
73
+ 'nonce' => $nonce,
74
+ $state_key => $state_id
75
+ ),
76
+ admin_url( 'admin-ajax.php' )
77
+ );
78
 
79
  $html .= '<div class="wpbdp-upload-widget">';
80
+ $html .= sprintf(
81
+ '<iframe class="wpbdp-upload-iframe" name="upload-iframe-%d" id="wpbdp-upload-iframe-%d" src="%s" scrolling="no" seamless="seamless" border="0" frameborder="0"></iframe>',
82
+ $field->get_id(),
83
+ $field->get_id(),
84
+ esc_url( $ajax_url )
85
+ );
86
  $html .= '</div>';
87
 
88
  return $html;
107
  }
108
 
109
  }
 
includes/helpers/class-field-display-list.php CHANGED
@@ -168,15 +168,13 @@ class WPBDP_Field_Display_List implements IteratorAggregate {
168
  $country = trim( $this->t_country->value );
169
  $zip = trim( $this->t_zip->value );
170
 
171
- $html = '';
172
- $html .= $address;
173
- $html .= ( $city || $state || $zip ) ? '<br />' : '';
174
- $html .= $city;
175
- $html .= ( $city && $state ) ? ', ' . $state : $state;
176
- $html .= $zip ? ' ' . $zip : '';
177
- $html .= $country ? '<br />' . $country : '';
178
-
179
- return $html;
180
  }
181
 
182
  public function helper__address_nobr() {
168
  $country = trim( $this->t_country->value );
169
  $zip = trim( $this->t_zip->value );
170
 
171
+ $first_line = $address;
172
+
173
+ $second_line = $city;
174
+ $second_line.= ( $city && $state ) ? ', ' . $state : $state;
175
+ $second_line.= $zip ? ' ' . $zip : '';
176
+
177
+ return implode( '<br />', array_filter( array( $first_line, $second_line ) ) );
 
 
178
  }
179
 
180
  public function helper__address_nobr() {
includes/helpers/class-listing-search.php CHANGED
@@ -139,7 +139,7 @@ class WPBDP__Listing_Search {
139
  $alias = $this->aliases[ $table ][ $i - 1 ];
140
  $reused = true;
141
  } else {
142
- $alias = $i > 0 ? 't_' . $i : $table;
143
  }
144
 
145
  $this->aliases[ $table ][] = $alias;
139
  $alias = $this->aliases[ $table ][ $i - 1 ];
140
  $reused = true;
141
  } else {
142
+ $alias = $i > 0 ? $table . '_t_' . $i : $table;
143
  }
144
 
145
  $this->aliases[ $table ][] = $alias;
includes/templates-ui.php CHANGED
@@ -191,25 +191,56 @@ function wpbdp_list_categories( $args=array() ) {
191
  return $html;
192
  }
193
 
194
- function wpbdp_main_links() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  $html = '';
196
  $buttons_count = 0;
197
 
198
- if ( wpbdp_get_option( 'show-directory-button' ) ) {
199
  $html .= sprintf( '<input id="wpbdp-bar-show-directory-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
200
  __('Directory', 'WPBDM'),
201
  wpbdp_url( '/' ) );
202
  $buttons_count++;
203
  }
204
 
205
- if ( wpbdp_get_option( 'show-view-listings' ) ) {
206
  $html .= sprintf( '<input id="wpbdp-bar-view-listings-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
207
  __('View All Listings', 'WPBDM'),
208
  wpbdp_url( 'all_listings' ) );
209
  $buttons_count++;
210
  }
211
 
212
- if ( ! wpbdp_get_option( 'disable-submit-listing' ) && wpbdp_get_option( 'show-submit-listing' ) ) {
213
  $html .= sprintf( '<input id="wpbdp-bar-submit-listing-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
214
  __( 'Create A Listing', 'WPBDM' ),
215
  wpbdp_url( 'submit_listing' ) );
@@ -227,8 +258,8 @@ function wpbdp_main_links() {
227
  return $content;
228
  }
229
 
230
- function wpbdp_the_main_links() {
231
- echo wpbdp_main_links();
232
  }
233
 
234
  function wpbdp_search_form() {
@@ -527,14 +558,19 @@ class WPBDP_ListingFieldDisplayItem {
527
  /**
528
  * @since next-release
529
  */
530
- function wpbdp_the_main_box() {
531
- echo wpbdp_main_box();
532
  }
533
 
534
  /**
535
  * @since next-release
536
  */
537
  function wpbdp_main_box( $args = null ) {
 
 
 
 
 
538
  $extra_fields = wpbdp_capture_action( 'wpbdp_main_box_extra_fields' );
539
  $search_url = esc_url( add_query_arg( 'wpbdp_view', 'search', wpbdp_get_page_link( 'main' ) ) );
540
  $no_cols = 1;
@@ -542,6 +578,9 @@ function wpbdp_main_box( $args = null ) {
542
  if ( $extra_fields )
543
  $no_cols = 2;
544
 
545
- $html = wpbdp_render( 'main-box', compact( 'extra_fields', 'search_url', 'no_cols' ) );
 
 
 
546
  return $html;
547
  }
191
  return $html;
192
  }
193
 
194
+ function wpbdp_main_links( $buttons = null ) {
195
+ if ( is_string( $buttons ) ) {
196
+ if ( 'none' == $buttons ) {
197
+ $buttons = array();
198
+ } else if ( 'all' == $buttons ) {
199
+ $buttons = array( 'directory', 'listings', 'create' );
200
+ } else {
201
+ $buttons = explode( ',', $buttons );
202
+ }
203
+ } else if ( ! is_array( $buttons ) ) {
204
+ // Use defaults.
205
+ $buttons = array();
206
+
207
+ if ( wpbdp_get_option( 'show-directory-button' ) ) {
208
+ $buttons[] = 'directory';
209
+ }
210
+
211
+ if ( wpbdp_get_option( 'show-view-listings' ) ) {
212
+ $buttons[] = 'listings';
213
+ }
214
+
215
+ if ( wpbdp_get_option( 'show-submit-listing' ) ) {
216
+ $buttons[] = 'create';
217
+ }
218
+ }
219
+
220
+ $buttons = array_filter( array_unique( $buttons ) );
221
+
222
+ if ( wpbdp_get_option( 'disable-submit-listing' ) ) {
223
+ $buttons = array_diff( $buttons, array( 'create' ) );
224
+ }
225
+
226
  $html = '';
227
  $buttons_count = 0;
228
 
229
+ if ( in_array( 'directory', $buttons ) ) {
230
  $html .= sprintf( '<input id="wpbdp-bar-show-directory-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
231
  __('Directory', 'WPBDM'),
232
  wpbdp_url( '/' ) );
233
  $buttons_count++;
234
  }
235
 
236
+ if ( in_array( 'listings', $buttons ) ) {
237
  $html .= sprintf( '<input id="wpbdp-bar-view-listings-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
238
  __('View All Listings', 'WPBDM'),
239
  wpbdp_url( 'all_listings' ) );
240
  $buttons_count++;
241
  }
242
 
243
+ if ( in_array( 'create', $buttons ) ) {
244
  $html .= sprintf( '<input id="wpbdp-bar-submit-listing-button" type="button" value="%s" onclick="window.location.href = \'%s\'" class="button wpbdp-button" />',
245
  __( 'Create A Listing', 'WPBDM' ),
246
  wpbdp_url( 'submit_listing' ) );
258
  return $content;
259
  }
260
 
261
+ function wpbdp_the_main_links( $buttons = null ) {
262
+ echo wpbdp_main_links( $buttons );
263
  }
264
 
265
  function wpbdp_search_form() {
558
  /**
559
  * @since next-release
560
  */
561
+ function wpbdp_the_main_box( $args = array() ) {
562
+ echo wpbdp_main_box( $args = array() );
563
  }
564
 
565
  /**
566
  * @since next-release
567
  */
568
  function wpbdp_main_box( $args = null ) {
569
+ $defaults = array(
570
+ 'buttons' => 'all'
571
+ );
572
+ $args = wp_parse_args( $args, $defaults );
573
+
574
  $extra_fields = wpbdp_capture_action( 'wpbdp_main_box_extra_fields' );
575
  $search_url = esc_url( add_query_arg( 'wpbdp_view', 'search', wpbdp_get_page_link( 'main' ) ) );
576
  $no_cols = 1;
578
  if ( $extra_fields )
579
  $no_cols = 2;
580
 
581
+ $template_vars = compact( 'extra_fields', 'search_url', 'no_cols' );
582
+ $template_vars = array_merge( $template_vars, $args );
583
+
584
+ $html = wpbdp_render( 'main-box', $template_vars );
585
  return $html;
586
  }
includes/views/show_tag.php CHANGED
@@ -8,14 +8,23 @@ class WPBDP__Views__Show_Tag extends WPBDP_NView {
8
  wpbdp_push_query( $wp_query );
9
 
10
  $term = get_queried_object();
11
- $term->is_tag = true;
12
-
13
- $html = $this->_render( 'tag',
14
- array( 'title' => $term->name,
15
- 'term' => $term,
16
- 'query' => $wp_query,
17
- 'in_shortcode' => false ),
18
- 'page' );
 
 
 
 
 
 
 
 
 
19
  wpbdp_pop_query();
20
 
21
  return $html;
8
  wpbdp_push_query( $wp_query );
9
 
10
  $term = get_queried_object();
11
+
12
+ // TODO: figure out why get_queried_object would return
13
+ // something other thana taxonomy term when this method
14
+ // is executed.
15
+ if ( is_object( $term ) ) {
16
+ $term->is_tag = true;
17
+
18
+ $html = $this->_render( 'tag',
19
+ array( 'title' => $term->name,
20
+ 'term' => $term,
21
+ 'query' => $wp_query,
22
+ 'in_shortcode' => false ),
23
+ 'page' );
24
+ } else {
25
+ $html = '';
26
+ }
27
+
28
  wpbdp_pop_query();
29
 
30
  return $html;
languages/WPBDM-ar.mo CHANGED
Binary file
languages/WPBDM-ar.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -4091,7 +4091,7 @@ msgctxt "themes"
4091
  msgid "Could not move new theme into theme directory."
4092
  msgstr "تعذر نقل القالب الجديد الى مجلد القالب."
4093
 
4094
- #: includes/utils.php:106
4095
  msgctxt "utils"
4096
  msgid ""
4097
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4099,54 +4099,54 @@ msgstr ""
4099
  "تجاوزت البيانات التي تم نشرها الحد الأقصى لإعدادات PHP. أنظر توجيه "
4100
  "\"post_max_size\"."
4101
 
4102
- #: includes/utils.php:164
4103
  msgctxt "utils"
4104
  msgid "File size (%s) exceeds maximum file size of %s"
4105
  msgstr "حجم الملف (%s) يتجاوز الحجم الأقصى للملف %s"
4106
 
4107
- #: includes/utils.php:172
4108
  msgctxt "utils"
4109
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4110
  msgstr "حجم الملف (%s) أقل من الحد الأدنى المطلوب لحجم الملف لـ %s"
4111
 
4112
- #: includes/utils.php:181 includes/utils.php:188
4113
  msgctxt "utils"
4114
  msgid "File type \"%s\" is not allowed"
4115
  msgstr "غير مسموح بنوع الملف \"%s\""
4116
 
4117
- #: includes/utils.php:195
4118
  msgctxt "utils"
4119
  msgid "Unkown error while uploading file."
4120
  msgstr "حدث خطأ مجهول أثناء رفع الملف."
4121
 
4122
- #: includes/utils.php:214
4123
  msgctxt "utils"
4124
  msgid "Uploaded file is not an image"
4125
  msgstr "الملف الذي تم رفعه ليس صورة"
4126
 
4127
- #: includes/utils.php:223
4128
  msgctxt "utils"
4129
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4130
  msgstr "عرض الصورة (%s px) هو أقل من الحد الأدنى للعرض المطلوب لـ %s px "
4131
 
4132
- #: includes/utils.php:229
4133
  msgctxt "utils"
4134
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4135
  msgstr ""
4136
  "ارتفاع الصورة (%s px) هو أقل من الحد الأدنى للارتفاع المطلوب لـ %s px "
4137
 
4138
- #: includes/utils.php:235
4139
  msgctxt "utils"
4140
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4141
  msgstr "عرض الصورة (%s px) هو أكبر من الحد الأقصى للعرض المسموح به لـ %s px "
4142
 
4143
- #: includes/utils.php:241
4144
  msgctxt "utils"
4145
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4146
  msgstr ""
4147
  "ارتفاع الصورة (%s px) هو أكبر من الحد الأقصى للارتفاع المطلوب لـ %s px "
4148
 
4149
- #: includes/utils.php:255
4150
  msgctxt "utils"
4151
  msgid "Error while uploading file"
4152
  msgstr "حدث خطأ أثناء رفع الملف."
@@ -5784,7 +5784,7 @@ msgctxt "form-fields admin"
5784
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5785
  msgstr "المرجو مراجعة <a>وثائق حقول الاستمارة</a> للحصول على مزيد من التفاصيل."
5786
 
5787
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5788
  #. Plugin Name of the plugin/theme
5789
  #: templates/admin/header.tpl.php:4
5790
  msgid "Business Directory Plugin"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
4091
  msgid "Could not move new theme into theme directory."
4092
  msgstr "تعذر نقل القالب الجديد الى مجلد القالب."
4093
 
4094
+ #: includes/utils.php:107
4095
  msgctxt "utils"
4096
  msgid ""
4097
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4099
  "تجاوزت البيانات التي تم نشرها الحد الأقصى لإعدادات PHP. أنظر توجيه "
4100
  "\"post_max_size\"."
4101
 
4102
+ #: includes/utils.php:165
4103
  msgctxt "utils"
4104
  msgid "File size (%s) exceeds maximum file size of %s"
4105
  msgstr "حجم الملف (%s) يتجاوز الحجم الأقصى للملف %s"
4106
 
4107
+ #: includes/utils.php:173
4108
  msgctxt "utils"
4109
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4110
  msgstr "حجم الملف (%s) أقل من الحد الأدنى المطلوب لحجم الملف لـ %s"
4111
 
4112
+ #: includes/utils.php:182 includes/utils.php:189
4113
  msgctxt "utils"
4114
  msgid "File type \"%s\" is not allowed"
4115
  msgstr "غير مسموح بنوع الملف \"%s\""
4116
 
4117
+ #: includes/utils.php:196
4118
  msgctxt "utils"
4119
  msgid "Unkown error while uploading file."
4120
  msgstr "حدث خطأ مجهول أثناء رفع الملف."
4121
 
4122
+ #: includes/utils.php:215
4123
  msgctxt "utils"
4124
  msgid "Uploaded file is not an image"
4125
  msgstr "الملف الذي تم رفعه ليس صورة"
4126
 
4127
+ #: includes/utils.php:224
4128
  msgctxt "utils"
4129
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4130
  msgstr "عرض الصورة (%s px) هو أقل من الحد الأدنى للعرض المطلوب لـ %s px "
4131
 
4132
+ #: includes/utils.php:230
4133
  msgctxt "utils"
4134
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4135
  msgstr ""
4136
  "ارتفاع الصورة (%s px) هو أقل من الحد الأدنى للارتفاع المطلوب لـ %s px "
4137
 
4138
+ #: includes/utils.php:236
4139
  msgctxt "utils"
4140
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4141
  msgstr "عرض الصورة (%s px) هو أكبر من الحد الأقصى للعرض المسموح به لـ %s px "
4142
 
4143
+ #: includes/utils.php:242
4144
  msgctxt "utils"
4145
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4146
  msgstr ""
4147
  "ارتفاع الصورة (%s px) هو أكبر من الحد الأقصى للارتفاع المطلوب لـ %s px "
4148
 
4149
+ #: includes/utils.php:256
4150
  msgctxt "utils"
4151
  msgid "Error while uploading file"
4152
  msgstr "حدث خطأ أثناء رفع الملف."
5784
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5785
  msgstr "المرجو مراجعة <a>وثائق حقول الاستمارة</a> للحصول على مزيد من التفاصيل."
5786
 
5787
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5788
  #. Plugin Name of the plugin/theme
5789
  #: templates/admin/header.tpl.php:4
5790
  msgid "Business Directory Plugin"
languages/WPBDM-de_DE.mo CHANGED
Binary file
languages/WPBDM-de_DE.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "PO-Revision-Date: 2017-03-29 10:08+0200\n"
9
  "Last-Translator: Axel J. Metayer <axel@kfz.net>\n"
10
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
@@ -4096,7 +4096,7 @@ msgctxt "themes"
4096
  msgid "Could not move new theme into theme directory."
4097
  msgstr "Momentan sind keine Einträge im Verzeichnis vorhanden."
4098
 
4099
- #: includes/utils.php:106
4100
  msgctxt "utils"
4101
  msgid ""
4102
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4104,56 +4104,56 @@ msgstr ""
4104
  "Gepustete Daten haben Maximum erreicht. Schau dir den Eintrag \"post_ma_size"
4105
  "\"in deiner php.ini an."
4106
 
4107
- #: includes/utils.php:164
4108
  msgctxt "utils"
4109
  msgid "File size (%s) exceeds maximum file size of %s"
4110
  msgstr "Dateigröße (%s) hat das Maximum von %s erreicht"
4111
 
4112
- #: includes/utils.php:172
4113
  msgctxt "utils"
4114
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4115
  msgstr "Dateigröße (%s) hat das Maximum von %s erreicht"
4116
 
4117
- #: includes/utils.php:181 includes/utils.php:188
4118
  msgctxt "utils"
4119
  msgid "File type \"%s\" is not allowed"
4120
  msgstr "Dateityp \"%s\" ist nicht erlaubt"
4121
 
4122
- #: includes/utils.php:195
4123
  msgctxt "utils"
4124
  msgid "Unkown error while uploading file."
4125
  msgstr "Unbekannter Fehler beim Hochladen der Datei."
4126
 
4127
- #: includes/utils.php:214
4128
  msgctxt "utils"
4129
  msgid "Uploaded file is not an image"
4130
  msgstr "Hochgeladene Datei ist kein Bild."
4131
 
4132
- #: includes/utils.php:223
4133
  msgctxt "utils"
4134
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4135
  msgstr "Die Bildbreite (%s px) ist kleiner als die benötigte Breite von %s px."
4136
 
4137
- #: includes/utils.php:229
4138
  msgctxt "utils"
4139
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4140
  msgstr ""
4141
  "Die Bildhöhe (%s px) ist kleiner als die benötigte Mindesthöhe von %s px."
4142
 
4143
- #: includes/utils.php:235
4144
  msgctxt "utils"
4145
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4146
  msgstr ""
4147
  "Die Bildbreite (%s Pixel) ist größer als die maximal zulässige Breite von %s "
4148
  "Pixel."
4149
 
4150
- #: includes/utils.php:241
4151
  msgctxt "utils"
4152
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4153
  msgstr ""
4154
  "Die Bildhöhe (%s px) ist größer als die maximal zulässige Höhe von %s px."
4155
 
4156
- #: includes/utils.php:255
4157
  msgctxt "utils"
4158
  msgid "Error while uploading file"
4159
  msgstr "Fehler während des Hochladens der Datei"
@@ -5835,7 +5835,7 @@ msgstr ""
5835
  "Bitte schauen Sie Sich die weitere Informationen in der Dokumentation "
5836
  "<a>Formularfelder</a>."
5837
 
5838
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5839
  #. Plugin Name of the plugin/theme
5840
  #: templates/admin/header.tpl.php:4
5841
  msgid "Business Directory Plugin"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "PO-Revision-Date: 2017-03-29 10:08+0200\n"
9
  "Last-Translator: Axel J. Metayer <axel@kfz.net>\n"
10
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
4096
  msgid "Could not move new theme into theme directory."
4097
  msgstr "Momentan sind keine Einträge im Verzeichnis vorhanden."
4098
 
4099
+ #: includes/utils.php:107
4100
  msgctxt "utils"
4101
  msgid ""
4102
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4104
  "Gepustete Daten haben Maximum erreicht. Schau dir den Eintrag \"post_ma_size"
4105
  "\"in deiner php.ini an."
4106
 
4107
+ #: includes/utils.php:165
4108
  msgctxt "utils"
4109
  msgid "File size (%s) exceeds maximum file size of %s"
4110
  msgstr "Dateigröße (%s) hat das Maximum von %s erreicht"
4111
 
4112
+ #: includes/utils.php:173
4113
  msgctxt "utils"
4114
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4115
  msgstr "Dateigröße (%s) hat das Maximum von %s erreicht"
4116
 
4117
+ #: includes/utils.php:182 includes/utils.php:189
4118
  msgctxt "utils"
4119
  msgid "File type \"%s\" is not allowed"
4120
  msgstr "Dateityp \"%s\" ist nicht erlaubt"
4121
 
4122
+ #: includes/utils.php:196
4123
  msgctxt "utils"
4124
  msgid "Unkown error while uploading file."
4125
  msgstr "Unbekannter Fehler beim Hochladen der Datei."
4126
 
4127
+ #: includes/utils.php:215
4128
  msgctxt "utils"
4129
  msgid "Uploaded file is not an image"
4130
  msgstr "Hochgeladene Datei ist kein Bild."
4131
 
4132
+ #: includes/utils.php:224
4133
  msgctxt "utils"
4134
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4135
  msgstr "Die Bildbreite (%s px) ist kleiner als die benötigte Breite von %s px."
4136
 
4137
+ #: includes/utils.php:230
4138
  msgctxt "utils"
4139
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4140
  msgstr ""
4141
  "Die Bildhöhe (%s px) ist kleiner als die benötigte Mindesthöhe von %s px."
4142
 
4143
+ #: includes/utils.php:236
4144
  msgctxt "utils"
4145
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4146
  msgstr ""
4147
  "Die Bildbreite (%s Pixel) ist größer als die maximal zulässige Breite von %s "
4148
  "Pixel."
4149
 
4150
+ #: includes/utils.php:242
4151
  msgctxt "utils"
4152
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4153
  msgstr ""
4154
  "Die Bildhöhe (%s px) ist größer als die maximal zulässige Höhe von %s px."
4155
 
4156
+ #: includes/utils.php:256
4157
  msgctxt "utils"
4158
  msgid "Error while uploading file"
4159
  msgstr "Fehler während des Hochladens der Datei"
5835
  "Bitte schauen Sie Sich die weitere Informationen in der Dokumentation "
5836
  "<a>Formularfelder</a>."
5837
 
5838
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5839
  #. Plugin Name of the plugin/theme
5840
  #: templates/admin/header.tpl.php:4
5841
  msgid "Business Directory Plugin"
languages/WPBDM-en_US.mo CHANGED
Binary file
languages/WPBDM-en_US.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -3843,58 +3843,58 @@ msgctxt "themes"
3843
  msgid "Could not move new theme into theme directory."
3844
  msgstr ""
3845
 
3846
- #: includes/utils.php:106
3847
  msgctxt "utils"
3848
  msgid ""
3849
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
3850
  msgstr ""
3851
 
3852
- #: includes/utils.php:164
3853
  msgctxt "utils"
3854
  msgid "File size (%s) exceeds maximum file size of %s"
3855
  msgstr ""
3856
 
3857
- #: includes/utils.php:172
3858
  msgctxt "utils"
3859
  msgid "File size (%s) is inferior to the required minimum file size of %s"
3860
  msgstr ""
3861
 
3862
- #: includes/utils.php:181 includes/utils.php:188
3863
  msgctxt "utils"
3864
  msgid "File type \"%s\" is not allowed"
3865
  msgstr ""
3866
 
3867
- #: includes/utils.php:195
3868
  msgctxt "utils"
3869
  msgid "Unkown error while uploading file."
3870
  msgstr ""
3871
 
3872
- #: includes/utils.php:214
3873
  msgctxt "utils"
3874
  msgid "Uploaded file is not an image"
3875
  msgstr ""
3876
 
3877
- #: includes/utils.php:223
3878
  msgctxt "utils"
3879
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
3880
  msgstr ""
3881
 
3882
- #: includes/utils.php:229
3883
  msgctxt "utils"
3884
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
3885
  msgstr ""
3886
 
3887
- #: includes/utils.php:235
3888
  msgctxt "utils"
3889
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
3890
  msgstr ""
3891
 
3892
- #: includes/utils.php:241
3893
  msgctxt "utils"
3894
  msgid "Image height (%s px) is greater than maximum required height of %s px."
3895
  msgstr ""
3896
 
3897
- #: includes/utils.php:255
3898
  msgctxt "utils"
3899
  msgid "Error while uploading file"
3900
  msgstr ""
@@ -5442,7 +5442,7 @@ msgctxt "form-fields admin"
5442
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5443
  msgstr ""
5444
 
5445
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5446
  #. Plugin Name of the plugin/theme
5447
  #: templates/admin/header.tpl.php:4
5448
  msgid "Business Directory Plugin"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
3843
  msgid "Could not move new theme into theme directory."
3844
  msgstr ""
3845
 
3846
+ #: includes/utils.php:107
3847
  msgctxt "utils"
3848
  msgid ""
3849
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
3850
  msgstr ""
3851
 
3852
+ #: includes/utils.php:165
3853
  msgctxt "utils"
3854
  msgid "File size (%s) exceeds maximum file size of %s"
3855
  msgstr ""
3856
 
3857
+ #: includes/utils.php:173
3858
  msgctxt "utils"
3859
  msgid "File size (%s) is inferior to the required minimum file size of %s"
3860
  msgstr ""
3861
 
3862
+ #: includes/utils.php:182 includes/utils.php:189
3863
  msgctxt "utils"
3864
  msgid "File type \"%s\" is not allowed"
3865
  msgstr ""
3866
 
3867
+ #: includes/utils.php:196
3868
  msgctxt "utils"
3869
  msgid "Unkown error while uploading file."
3870
  msgstr ""
3871
 
3872
+ #: includes/utils.php:215
3873
  msgctxt "utils"
3874
  msgid "Uploaded file is not an image"
3875
  msgstr ""
3876
 
3877
+ #: includes/utils.php:224
3878
  msgctxt "utils"
3879
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
3880
  msgstr ""
3881
 
3882
+ #: includes/utils.php:230
3883
  msgctxt "utils"
3884
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
3885
  msgstr ""
3886
 
3887
+ #: includes/utils.php:236
3888
  msgctxt "utils"
3889
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
3890
  msgstr ""
3891
 
3892
+ #: includes/utils.php:242
3893
  msgctxt "utils"
3894
  msgid "Image height (%s px) is greater than maximum required height of %s px."
3895
  msgstr ""
3896
 
3897
+ #: includes/utils.php:256
3898
  msgctxt "utils"
3899
  msgid "Error while uploading file"
3900
  msgstr ""
5442
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5443
  msgstr ""
5444
 
5445
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5446
  #. Plugin Name of the plugin/theme
5447
  #: templates/admin/header.tpl.php:4
5448
  msgid "Business Directory Plugin"
languages/WPBDM-es_ES.mo CHANGED
Binary file
languages/WPBDM-es_ES.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "PO-Revision-Date: 2017-05-16 17:09-0500\n"
9
  "Last-Translator: Willington Vega <wvega@wvega.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -4143,7 +4143,7 @@ msgctxt "themes"
4143
  msgid "Could not move new theme into theme directory."
4144
  msgstr "No se pudo mover el nuevo tema al directorio de temas."
4145
 
4146
- #: includes/utils.php:106
4147
  msgctxt "utils"
4148
  msgid ""
4149
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4151,54 +4151,54 @@ msgstr ""
4151
  "Los datos enviados via POST superan el valor máximo configurado en PHP. "
4152
  "Revise la directiva \"post_max_size\" de su configuración."
4153
 
4154
- #: includes/utils.php:164
4155
  msgctxt "utils"
4156
  msgid "File size (%s) exceeds maximum file size of %s"
4157
  msgstr "El tamaño de archivo (%s) excede el tamaño máximo permitido de %s"
4158
 
4159
- #: includes/utils.php:172
4160
  msgctxt "utils"
4161
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4162
  msgstr "El tamaño de archivo (%s) es inferior al tamaño mínimo requerido de %s"
4163
 
4164
- #: includes/utils.php:181 includes/utils.php:188
4165
  msgctxt "utils"
4166
  msgid "File type \"%s\" is not allowed"
4167
  msgstr "El tipo de archivo \"%s\" no está permitido"
4168
 
4169
- #: includes/utils.php:195
4170
  msgctxt "utils"
4171
  msgid "Unkown error while uploading file."
4172
  msgstr "Error desconocido mientras se subía el archivo."
4173
 
4174
- #: includes/utils.php:214
4175
  msgctxt "utils"
4176
  msgid "Uploaded file is not an image"
4177
  msgstr "El archivo subido no es una imagen"
4178
 
4179
- #: includes/utils.php:223
4180
  msgctxt "utils"
4181
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4182
  msgstr ""
4183
  "El ancho de la imagen (%s px) es inferior al mínimo requerido de %s px."
4184
 
4185
- #: includes/utils.php:229
4186
  msgctxt "utils"
4187
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4188
  msgstr "El alto de la imagen (%s px) es inferior al mínimo requerido de %s px."
4189
 
4190
- #: includes/utils.php:235
4191
  msgctxt "utils"
4192
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4193
  msgstr ""
4194
  "El ancho de la imagen (%s px) es superior al máximo permitido de %s px."
4195
 
4196
- #: includes/utils.php:241
4197
  msgctxt "utils"
4198
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4199
  msgstr "El alto de la imagen (%s px) es superior al máximo permitido de %s px."
4200
 
4201
- #: includes/utils.php:255
4202
  msgctxt "utils"
4203
  msgid "Error while uploading file"
4204
  msgstr "Ocurrió un error mientras se subía el archivo"
@@ -5876,6 +5876,7 @@ msgstr ""
5876
  "Por favor vea la <a>documentación de Campos de Formulario</a> para más "
5877
  "detalles."
5878
 
 
5879
  #. Plugin Name of the plugin/theme
5880
  #: templates/admin/header.tpl.php:4
5881
  msgid "Business Directory Plugin"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "PO-Revision-Date: 2017-05-16 17:09-0500\n"
9
  "Last-Translator: Willington Vega <wvega@wvega.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
4143
  msgid "Could not move new theme into theme directory."
4144
  msgstr "No se pudo mover el nuevo tema al directorio de temas."
4145
 
4146
+ #: includes/utils.php:107
4147
  msgctxt "utils"
4148
  msgid ""
4149
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4151
  "Los datos enviados via POST superan el valor máximo configurado en PHP. "
4152
  "Revise la directiva \"post_max_size\" de su configuración."
4153
 
4154
+ #: includes/utils.php:165
4155
  msgctxt "utils"
4156
  msgid "File size (%s) exceeds maximum file size of %s"
4157
  msgstr "El tamaño de archivo (%s) excede el tamaño máximo permitido de %s"
4158
 
4159
+ #: includes/utils.php:173
4160
  msgctxt "utils"
4161
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4162
  msgstr "El tamaño de archivo (%s) es inferior al tamaño mínimo requerido de %s"
4163
 
4164
+ #: includes/utils.php:182 includes/utils.php:189
4165
  msgctxt "utils"
4166
  msgid "File type \"%s\" is not allowed"
4167
  msgstr "El tipo de archivo \"%s\" no está permitido"
4168
 
4169
+ #: includes/utils.php:196
4170
  msgctxt "utils"
4171
  msgid "Unkown error while uploading file."
4172
  msgstr "Error desconocido mientras se subía el archivo."
4173
 
4174
+ #: includes/utils.php:215
4175
  msgctxt "utils"
4176
  msgid "Uploaded file is not an image"
4177
  msgstr "El archivo subido no es una imagen"
4178
 
4179
+ #: includes/utils.php:224
4180
  msgctxt "utils"
4181
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4182
  msgstr ""
4183
  "El ancho de la imagen (%s px) es inferior al mínimo requerido de %s px."
4184
 
4185
+ #: includes/utils.php:230
4186
  msgctxt "utils"
4187
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4188
  msgstr "El alto de la imagen (%s px) es inferior al mínimo requerido de %s px."
4189
 
4190
+ #: includes/utils.php:236
4191
  msgctxt "utils"
4192
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4193
  msgstr ""
4194
  "El ancho de la imagen (%s px) es superior al máximo permitido de %s px."
4195
 
4196
+ #: includes/utils.php:242
4197
  msgctxt "utils"
4198
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4199
  msgstr "El alto de la imagen (%s px) es superior al máximo permitido de %s px."
4200
 
4201
+ #: includes/utils.php:256
4202
  msgctxt "utils"
4203
  msgid "Error while uploading file"
4204
  msgstr "Ocurrió un error mientras se subía el archivo"
5876
  "Por favor vea la <a>documentación de Campos de Formulario</a> para más "
5877
  "detalles."
5878
 
5879
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5880
  #. Plugin Name of the plugin/theme
5881
  #: templates/admin/header.tpl.php:4
5882
  msgid "Business Directory Plugin"
languages/WPBDM-fr_FR.mo CHANGED
Binary file
languages/WPBDM-fr_FR.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "PO-Revision-Date: 2017-02-13 19:14-0500\n"
9
  "Last-Translator: Laurent Provin <lprovin@yahoo.fr>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -4093,7 +4093,7 @@ msgctxt "themes"
4093
  msgid "Could not move new theme into theme directory."
4094
  msgstr "Impossible de déplacer le nouveau thème dans le dossier à thèmes"
4095
 
4096
- #: includes/utils.php:106
4097
  msgctxt "utils"
4098
  msgid ""
4099
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4101,62 +4101,62 @@ msgstr ""
4101
  "Les données affichées dépassent les configurations maximale permisent par "
4102
  "PHP. Voir les directive \"post_max_size\"."
4103
 
4104
- #: includes/utils.php:164
4105
  msgctxt "utils"
4106
  msgid "File size (%s) exceeds maximum file size of %s"
4107
  msgstr "La taille du fichier (%s) excède la taille maximale permise de %s"
4108
 
4109
- #: includes/utils.php:172
4110
  msgctxt "utils"
4111
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4112
  msgstr ""
4113
  "La taille du fichier (%s) est inférieur au minimum de taille de fichier "
4114
  "requise de %s"
4115
 
4116
- #: includes/utils.php:181 includes/utils.php:188
4117
  msgctxt "utils"
4118
  msgid "File type \"%s\" is not allowed"
4119
  msgstr "Le type de fichier \"%s\" n'est pas autorisé"
4120
 
4121
- #: includes/utils.php:195
4122
  msgctxt "utils"
4123
  msgid "Unkown error while uploading file."
4124
  msgstr "Une erreur inconnue est survenu lors de l'upload du fichier."
4125
 
4126
- #: includes/utils.php:214
4127
  msgctxt "utils"
4128
  msgid "Uploaded file is not an image"
4129
  msgstr "Le fichier transféré n'est pas une image"
4130
 
4131
- #: includes/utils.php:223
4132
  msgctxt "utils"
4133
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4134
  msgstr ""
4135
  "La largeur de l'image (%s px) est inférieur à la largeur minimum requise de "
4136
  "%s px."
4137
 
4138
- #: includes/utils.php:229
4139
  msgctxt "utils"
4140
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4141
  msgstr ""
4142
  "La hauteur de l'image (%s px) est inférieur à la hauteur minimum requise de "
4143
  "%s px."
4144
 
4145
- #: includes/utils.php:235
4146
  msgctxt "utils"
4147
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4148
  msgstr ""
4149
  "La largeur de l'image (%s px) est supérieur à la largeur maximum requise de "
4150
  "%s px."
4151
 
4152
- #: includes/utils.php:241
4153
  msgctxt "utils"
4154
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4155
  msgstr ""
4156
  "La hauteur de l'image (%s px) est supérieure à la hauteur maximum requise de "
4157
  "%s px."
4158
 
4159
- #: includes/utils.php:255
4160
  msgctxt "utils"
4161
  msgid "Error while uploading file"
4162
  msgstr "Erreur durant l'upload du fichier"
@@ -5826,7 +5826,7 @@ msgstr ""
5826
  "Veuillez voir la <a>Documentation de champs de formulaire</a> pour plus de "
5827
  "détails."
5828
 
5829
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5830
  #. Plugin Name of the plugin/theme
5831
  #: templates/admin/header.tpl.php:4
5832
  msgid "Business Directory Plugin"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "PO-Revision-Date: 2017-02-13 19:14-0500\n"
9
  "Last-Translator: Laurent Provin <lprovin@yahoo.fr>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
4093
  msgid "Could not move new theme into theme directory."
4094
  msgstr "Impossible de déplacer le nouveau thème dans le dossier à thèmes"
4095
 
4096
+ #: includes/utils.php:107
4097
  msgctxt "utils"
4098
  msgid ""
4099
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4101
  "Les données affichées dépassent les configurations maximale permisent par "
4102
  "PHP. Voir les directive \"post_max_size\"."
4103
 
4104
+ #: includes/utils.php:165
4105
  msgctxt "utils"
4106
  msgid "File size (%s) exceeds maximum file size of %s"
4107
  msgstr "La taille du fichier (%s) excède la taille maximale permise de %s"
4108
 
4109
+ #: includes/utils.php:173
4110
  msgctxt "utils"
4111
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4112
  msgstr ""
4113
  "La taille du fichier (%s) est inférieur au minimum de taille de fichier "
4114
  "requise de %s"
4115
 
4116
+ #: includes/utils.php:182 includes/utils.php:189
4117
  msgctxt "utils"
4118
  msgid "File type \"%s\" is not allowed"
4119
  msgstr "Le type de fichier \"%s\" n'est pas autorisé"
4120
 
4121
+ #: includes/utils.php:196
4122
  msgctxt "utils"
4123
  msgid "Unkown error while uploading file."
4124
  msgstr "Une erreur inconnue est survenu lors de l'upload du fichier."
4125
 
4126
+ #: includes/utils.php:215
4127
  msgctxt "utils"
4128
  msgid "Uploaded file is not an image"
4129
  msgstr "Le fichier transféré n'est pas une image"
4130
 
4131
+ #: includes/utils.php:224
4132
  msgctxt "utils"
4133
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4134
  msgstr ""
4135
  "La largeur de l'image (%s px) est inférieur à la largeur minimum requise de "
4136
  "%s px."
4137
 
4138
+ #: includes/utils.php:230
4139
  msgctxt "utils"
4140
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4141
  msgstr ""
4142
  "La hauteur de l'image (%s px) est inférieur à la hauteur minimum requise de "
4143
  "%s px."
4144
 
4145
+ #: includes/utils.php:236
4146
  msgctxt "utils"
4147
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4148
  msgstr ""
4149
  "La largeur de l'image (%s px) est supérieur à la largeur maximum requise de "
4150
  "%s px."
4151
 
4152
+ #: includes/utils.php:242
4153
  msgctxt "utils"
4154
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4155
  msgstr ""
4156
  "La hauteur de l'image (%s px) est supérieure à la hauteur maximum requise de "
4157
  "%s px."
4158
 
4159
+ #: includes/utils.php:256
4160
  msgctxt "utils"
4161
  msgid "Error while uploading file"
4162
  msgstr "Erreur durant l'upload du fichier"
5826
  "Veuillez voir la <a>Documentation de champs de formulaire</a> pour plus de "
5827
  "détails."
5828
 
5829
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5830
  #. Plugin Name of the plugin/theme
5831
  #: templates/admin/header.tpl.php:4
5832
  msgid "Business Directory Plugin"
languages/WPBDM-pl_PL.mo CHANGED
Binary file
languages/WPBDM-pl_PL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v3.6.5\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
5
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
6
  "PO-Revision-Date: 2017-01-16 17:49-0500\n"
7
  "Last-Translator: HomeSupport <admin@homesupport.pl>\n"
8
  "Language-Team: HomeSupport\n"
@@ -4700,7 +4700,7 @@ msgid "Could not move new theme into theme directory."
4700
  msgstr "Nie masz aktualnie ofert w katalogu."
4701
 
4702
  # @ WPBDM
4703
- #: includes/utils.php:106
4704
  msgctxt "utils"
4705
  msgid ""
4706
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4709,61 +4709,61 @@ msgstr ""
4709
  "Zobacz dyrektywę \"post_max_size\"."
4710
 
4711
  # @ WPBDM
4712
- #: includes/utils.php:164
4713
  msgctxt "utils"
4714
  msgid "File size (%s) exceeds maximum file size of %s"
4715
  msgstr "Rozmiar pliku (%s) przekracz maksymalny dozwolony rozmiar %s"
4716
 
4717
  # @ WPBDM
4718
- #: includes/utils.php:172
4719
  msgctxt "utils"
4720
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4721
  msgstr "Rozmiar pliku (%s) jest mniejszyod wymaganego minimum: %s"
4722
 
4723
  # @ WPBDM
4724
- #: includes/utils.php:181 includes/utils.php:188
4725
  msgctxt "utils"
4726
  msgid "File type \"%s\" is not allowed"
4727
  msgstr "Pliki typu \"%s\" , nie są dozwolone"
4728
 
4729
  # @ WPBDM
4730
- #: includes/utils.php:195
4731
  msgctxt "utils"
4732
  msgid "Unkown error while uploading file."
4733
  msgstr "Nieznany błąd podczas przesyłania pliku."
4734
 
4735
  # @ WPBDM
4736
- #: includes/utils.php:214
4737
  msgctxt "utils"
4738
  msgid "Uploaded file is not an image"
4739
  msgstr "Ładowany plik nie jest plikiem obrazu."
4740
 
4741
  # @ WPBDM
4742
- #: includes/utils.php:223
4743
  msgctxt "utils"
4744
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4745
  msgstr "Szerokość obrazu (%s px) jest mniejsza od wymaganego minimum: %s px."
4746
 
4747
  # @ WPBDM
4748
- #: includes/utils.php:229
4749
  msgctxt "utils"
4750
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4751
  msgstr "Wysokość obrazu (%s px) jest mniejsza od wymaganego minimum: %s px."
4752
 
4753
  # @ WPBDM
4754
- #: includes/utils.php:235
4755
  msgctxt "utils"
4756
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4757
  msgstr "Szerokość obrazu (%s px) jest większa od dozwolonego maksimum: %s px."
4758
 
4759
  # @ WPBDM
4760
- #: includes/utils.php:241
4761
  msgctxt "utils"
4762
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4763
  msgstr "Wysokość obrazu (%s px) jest większa od dozwolonego maksimum: %s px."
4764
 
4765
  # @ WPBDM
4766
- #: includes/utils.php:255
4767
  msgctxt "utils"
4768
  msgid "Error while uploading file"
4769
  msgstr "Błąd podczas przesyłania pliku."
@@ -6672,7 +6672,7 @@ msgstr ""
6672
  "poznać wiecej możliwości."
6673
 
6674
  # @ WPBDM
6675
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
6676
  #. Plugin Name of the plugin/theme
6677
  #: templates/admin/header.tpl.php:4
6678
  msgid "Business Directory Plugin"
2
  msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v3.6.5\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
5
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
6
  "PO-Revision-Date: 2017-01-16 17:49-0500\n"
7
  "Last-Translator: HomeSupport <admin@homesupport.pl>\n"
8
  "Language-Team: HomeSupport\n"
4700
  msgstr "Nie masz aktualnie ofert w katalogu."
4701
 
4702
  # @ WPBDM
4703
+ #: includes/utils.php:107
4704
  msgctxt "utils"
4705
  msgid ""
4706
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4709
  "Zobacz dyrektywę \"post_max_size\"."
4710
 
4711
  # @ WPBDM
4712
+ #: includes/utils.php:165
4713
  msgctxt "utils"
4714
  msgid "File size (%s) exceeds maximum file size of %s"
4715
  msgstr "Rozmiar pliku (%s) przekracz maksymalny dozwolony rozmiar %s"
4716
 
4717
  # @ WPBDM
4718
+ #: includes/utils.php:173
4719
  msgctxt "utils"
4720
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4721
  msgstr "Rozmiar pliku (%s) jest mniejszyod wymaganego minimum: %s"
4722
 
4723
  # @ WPBDM
4724
+ #: includes/utils.php:182 includes/utils.php:189
4725
  msgctxt "utils"
4726
  msgid "File type \"%s\" is not allowed"
4727
  msgstr "Pliki typu \"%s\" , nie są dozwolone"
4728
 
4729
  # @ WPBDM
4730
+ #: includes/utils.php:196
4731
  msgctxt "utils"
4732
  msgid "Unkown error while uploading file."
4733
  msgstr "Nieznany błąd podczas przesyłania pliku."
4734
 
4735
  # @ WPBDM
4736
+ #: includes/utils.php:215
4737
  msgctxt "utils"
4738
  msgid "Uploaded file is not an image"
4739
  msgstr "Ładowany plik nie jest plikiem obrazu."
4740
 
4741
  # @ WPBDM
4742
+ #: includes/utils.php:224
4743
  msgctxt "utils"
4744
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4745
  msgstr "Szerokość obrazu (%s px) jest mniejsza od wymaganego minimum: %s px."
4746
 
4747
  # @ WPBDM
4748
+ #: includes/utils.php:230
4749
  msgctxt "utils"
4750
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4751
  msgstr "Wysokość obrazu (%s px) jest mniejsza od wymaganego minimum: %s px."
4752
 
4753
  # @ WPBDM
4754
+ #: includes/utils.php:236
4755
  msgctxt "utils"
4756
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4757
  msgstr "Szerokość obrazu (%s px) jest większa od dozwolonego maksimum: %s px."
4758
 
4759
  # @ WPBDM
4760
+ #: includes/utils.php:242
4761
  msgctxt "utils"
4762
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4763
  msgstr "Wysokość obrazu (%s px) jest większa od dozwolonego maksimum: %s px."
4764
 
4765
  # @ WPBDM
4766
+ #: includes/utils.php:256
4767
  msgctxt "utils"
4768
  msgid "Error while uploading file"
4769
  msgstr "Błąd podczas przesyłania pliku."
6672
  "poznać wiecej możliwości."
6673
 
6674
  # @ WPBDM
6675
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
6676
  #. Plugin Name of the plugin/theme
6677
  #: templates/admin/header.tpl.php:4
6678
  msgid "Business Directory Plugin"
languages/WPBDM-ru_RU.mo CHANGED
Binary file
languages/WPBDM-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Business Directory Plugin 3.6.11\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
5
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
6
  "PO-Revision-Date: 2017-01-16 17:49-0500\n"
7
  "Last-Translator: Mick Levin <mikhaillevin@hotmail.com>\n"
8
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -4095,7 +4095,7 @@ msgctxt "themes"
4095
  msgid "Could not move new theme into theme directory."
4096
  msgstr "Не удалось переместить новую тему в директорию темы."
4097
 
4098
- #: includes/utils.php:106
4099
  msgctxt "utils"
4100
  msgid ""
4101
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4103,56 +4103,56 @@ msgstr ""
4103
  "Данные, переданные на сервер методом POST превышают максимальный размер для "
4104
  "PHP. Обратите внимание на параметр \"post_max_size\" в вашем файле php.ini."
4105
 
4106
- #: includes/utils.php:164
4107
  msgctxt "utils"
4108
  msgid "File size (%s) exceeds maximum file size of %s"
4109
  msgstr "Размер файла (%s) превышает максимальный размер файла - %s"
4110
 
4111
- #: includes/utils.php:172
4112
  msgctxt "utils"
4113
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4114
  msgstr "Размер файла (%s) меньше, чем минимальный разрешённый размер - %s"
4115
 
4116
- #: includes/utils.php:181 includes/utils.php:188
4117
  msgctxt "utils"
4118
  msgid "File type \"%s\" is not allowed"
4119
  msgstr "Файл типа \"%s\" не допускается к загрузке"
4120
 
4121
- #: includes/utils.php:195
4122
  msgctxt "utils"
4123
  msgid "Unkown error while uploading file."
4124
  msgstr "Неизвестная ошибка при загрузке файла."
4125
 
4126
- #: includes/utils.php:214
4127
  msgctxt "utils"
4128
  msgid "Uploaded file is not an image"
4129
  msgstr "Загруженный файл не является изображением."
4130
 
4131
- #: includes/utils.php:223
4132
  msgctxt "utils"
4133
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4134
  msgstr "Ширина изображения меньше минимально разрешённой ширины - %s пиксел."
4135
 
4136
- #: includes/utils.php:229
4137
  msgctxt "utils"
4138
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4139
  msgstr "Высота изображения меньше минимально разрешённой высоты - %s пиксел."
4140
 
4141
- #: includes/utils.php:235
4142
  msgctxt "utils"
4143
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4144
  msgstr ""
4145
  "Ширина изображения (%s пиксел) больше чем разрешённая максимальная ширина - "
4146
  "%s пиксел."
4147
 
4148
- #: includes/utils.php:241
4149
  msgctxt "utils"
4150
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4151
  msgstr ""
4152
  "Высота изображения (%s пиксел) больше чем разрешённая максимальная высота - "
4153
  "%s пиксел."
4154
 
4155
- #: includes/utils.php:255
4156
  msgctxt "utils"
4157
  msgid "Error while uploading file"
4158
  msgstr "Ошибка при загрузке файла"
@@ -5805,7 +5805,7 @@ msgstr ""
5805
  "<br />Для дополнительной информации обратитесь к <a>Документации по полям "
5806
  "форм</a>."
5807
 
5808
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5809
  #. Plugin Name of the plugin/theme
5810
  #: templates/admin/header.tpl.php:4
5811
  msgid "Business Directory Plugin"
2
  msgstr ""
3
  "Project-Id-Version: Business Directory Plugin 3.6.11\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
5
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
6
  "PO-Revision-Date: 2017-01-16 17:49-0500\n"
7
  "Last-Translator: Mick Levin <mikhaillevin@hotmail.com>\n"
8
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
4095
  msgid "Could not move new theme into theme directory."
4096
  msgstr "Не удалось переместить новую тему в директорию темы."
4097
 
4098
+ #: includes/utils.php:107
4099
  msgctxt "utils"
4100
  msgid ""
4101
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4103
  "Данные, переданные на сервер методом POST превышают максимальный размер для "
4104
  "PHP. Обратите внимание на параметр \"post_max_size\" в вашем файле php.ini."
4105
 
4106
+ #: includes/utils.php:165
4107
  msgctxt "utils"
4108
  msgid "File size (%s) exceeds maximum file size of %s"
4109
  msgstr "Размер файла (%s) превышает максимальный размер файла - %s"
4110
 
4111
+ #: includes/utils.php:173
4112
  msgctxt "utils"
4113
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4114
  msgstr "Размер файла (%s) меньше, чем минимальный разрешённый размер - %s"
4115
 
4116
+ #: includes/utils.php:182 includes/utils.php:189
4117
  msgctxt "utils"
4118
  msgid "File type \"%s\" is not allowed"
4119
  msgstr "Файл типа \"%s\" не допускается к загрузке"
4120
 
4121
+ #: includes/utils.php:196
4122
  msgctxt "utils"
4123
  msgid "Unkown error while uploading file."
4124
  msgstr "Неизвестная ошибка при загрузке файла."
4125
 
4126
+ #: includes/utils.php:215
4127
  msgctxt "utils"
4128
  msgid "Uploaded file is not an image"
4129
  msgstr "Загруженный файл не является изображением."
4130
 
4131
+ #: includes/utils.php:224
4132
  msgctxt "utils"
4133
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4134
  msgstr "Ширина изображения меньше минимально разрешённой ширины - %s пиксел."
4135
 
4136
+ #: includes/utils.php:230
4137
  msgctxt "utils"
4138
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4139
  msgstr "Высота изображения меньше минимально разрешённой высоты - %s пиксел."
4140
 
4141
+ #: includes/utils.php:236
4142
  msgctxt "utils"
4143
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4144
  msgstr ""
4145
  "Ширина изображения (%s пиксел) больше чем разрешённая максимальная ширина - "
4146
  "%s пиксел."
4147
 
4148
+ #: includes/utils.php:242
4149
  msgctxt "utils"
4150
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4151
  msgstr ""
4152
  "Высота изображения (%s пиксел) больше чем разрешённая максимальная высота - "
4153
  "%s пиксел."
4154
 
4155
+ #: includes/utils.php:256
4156
  msgctxt "utils"
4157
  msgid "Error while uploading file"
4158
  msgstr "Ошибка при загрузке файла"
5805
  "<br />Для дополнительной информации обратитесь к <a>Документации по полям "
5806
  "форм</a>."
5807
 
5808
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5809
  #. Plugin Name of the plugin/theme
5810
  #: templates/admin/header.tpl.php:4
5811
  msgid "Business Directory Plugin"
languages/WPBDM-sv_SE.mo CHANGED
Binary file
languages/WPBDM-sv_SE.po CHANGED
@@ -4,22 +4,21 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
- "PO-Revision-Date: 2017-01-16 17:49-0500\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: sv_SE\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8.11\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
 
18
  #: business-directory-plugin.php:594
19
- #, fuzzy
20
  msgctxt "listing image upload"
21
  msgid "Can not upload any more images for this listing."
22
- msgstr "Kategorier för denna annons"
23
 
24
  #: business-directory-plugin.php:708
25
  msgctxt "admin plugins"
@@ -53,19 +52,20 @@ msgid "Listings tagged: %s"
53
  msgstr "Annonser med tagg: %s"
54
 
55
  #: business-directory-plugin.php:1587
56
- #, fuzzy
57
  msgid ""
58
  "The directory features are disabled at this time because a <a>manual "
59
  "upgrade</a> is pending."
60
  msgstr ""
61
  "Business Directorys funktioner är för närvarande avaktiverade på grund av "
62
- "att pluginet behöver en manuell uppgradering innan du fortsätter."
63
 
64
  #: business-directory-plugin.php:1594
65
  msgid ""
66
  "The directory is not available at this time. Please try again in a few "
67
  "minutes or contact the administrator if the problem persists."
68
  msgstr ""
 
 
69
 
70
  #: includes/admin/class-admin-listings.php:40
71
  msgctxt "admin category filter"
@@ -630,10 +630,9 @@ msgid "Theme installed successfully."
630
  msgstr "Temat har installerats med framgång."
631
 
632
  #: includes/admin/class-themes-admin.php:229
633
- #, fuzzy
634
  msgctxt "themes"
635
  msgid "Theme was deleted successfully."
636
- msgstr "Temat har tagits bort med framgång."
637
 
638
  #: includes/admin/class-themes-admin.php:232
639
  msgctxt "themes"
@@ -963,10 +962,9 @@ msgid "State"
963
  msgstr "Län"
964
 
965
  #: includes/admin/form-fields.php:298
966
- #, fuzzy
967
  msgctxt "form-fields admin"
968
  msgid "Country"
969
- msgstr "Land:"
970
 
971
  #: includes/admin/form-fields.php:299
972
  msgctxt "form-fields admin"
@@ -1572,6 +1570,8 @@ msgctxt "admin settings"
1572
  msgid ""
1573
  "Include CSS rules to give their own style to View, Edit and Delete buttons?"
1574
  msgstr ""
 
 
1575
 
1576
  #: includes/admin/settings/class-settings.php:189
1577
  #: includes/admin/settings/class-settings.php:688
@@ -1665,6 +1665,11 @@ msgid ""
1665
  "comments. Use the 2nd option if you want to allow comments on listings "
1666
  "first, and if that doesn't work, try the 3rd option instead."
1667
  msgstr ""
 
 
 
 
 
1668
 
1669
  #: includes/admin/settings/class-settings.php:236
1670
  msgctxt "admin settings"
@@ -1680,6 +1685,8 @@ msgstr "Inkludera kommentarsfält på annonssidan?"
1680
  msgctxt "admin settings"
1681
  msgid "Include comment form, BD invoked (use only if 2nd option doesn't work)"
1682
  msgstr ""
 
 
1683
 
1684
  #: includes/admin/settings/class-settings.php:246
1685
  msgctxt "admin settings"
@@ -2437,7 +2444,7 @@ msgstr "Japanska yen (JPY)"
2437
  #: includes/admin/settings/class-settings.php:586
2438
  msgctxt "admin settings"
2439
  msgid "Moroccan Dirham (MAD)"
2440
- msgstr ""
2441
 
2442
  #: includes/admin/settings/class-settings.php:587
2443
  msgctxt "admin settings"
@@ -2920,10 +2927,9 @@ msgid "Could not update theme: %s"
2920
  msgstr "Det gick inte att uppdatera tema:%s"
2921
 
2922
  #: includes/admin/upgrades/class-themes-updater.php:165
2923
- #, fuzzy
2924
  msgctxt "themes"
2925
  msgid "Theme was updated successfully."
2926
- msgstr "Tema uppdaterades framgångsrikt."
2927
 
2928
  #: includes/api.php:405
2929
  msgid "Free"
@@ -3228,7 +3234,7 @@ msgstr "— Välj ett —"
3228
  #: includes/fields/class-fieldtypes-select.php:112
3229
  msgctxt "form-fields-api select"
3230
  msgid "— None —"
3231
- msgstr ""
3232
 
3233
  #: includes/fields/class-fieldtypes-select.php:162
3234
  msgctxt "form-fields admin"
@@ -3715,6 +3721,7 @@ msgid ""
3715
  "Cleaning up stored meta data for Checkbox, Radio and Select fields... (%d "
3716
  "records left)"
3717
  msgstr ""
 
3718
 
3719
  #: includes/installer.php:1061
3720
  msgid "Business Directory - Manual Upgrade Required"
@@ -3760,14 +3767,11 @@ msgid "Pause Upgrade"
3760
  msgstr "Pausa uppgraderingen"
3761
 
3762
  #: includes/installer.php:1110
3763
- #, fuzzy
3764
  msgctxt "manual-upgrade"
3765
  msgid ""
3766
  "The upgrade was successfully performed. Business Directory Plugin is now "
3767
  "available."
3768
- msgstr ""
3769
- "Uppgraderingen utfördes framgångsrikt. Business Directory Plugin är nu "
3770
- "tillgängligt."
3771
 
3772
  #: includes/installer.php:1113
3773
  msgctxt "manual-upgrade"
@@ -3808,6 +3812,9 @@ msgid ""
3808
  "that information if you need to contact support about problems trying to "
3809
  "activate your licenses."
3810
  msgstr ""
 
 
 
3811
 
3812
  #: includes/licensing.php:154 includes/licensing.php:188
3813
  msgctxt "licensing"
@@ -4090,7 +4097,7 @@ msgctxt "themes"
4090
  msgid "Could not move new theme into theme directory."
4091
  msgstr "Det gick inte att flytta det nya temat till temakatalogen."
4092
 
4093
- #: includes/utils.php:106
4094
  msgctxt "utils"
4095
  msgid ""
4096
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
@@ -4098,52 +4105,52 @@ msgstr ""
4098
  "Postat data överskrider PHP config. max. Se \\\"post_max_size \\\" "
4099
  "direktivet."
4100
 
4101
- #: includes/utils.php:164
4102
  msgctxt "utils"
4103
  msgid "File size (%s) exceeds maximum file size of %s"
4104
  msgstr "Filstorlek (%s) överskrider maximal filstorlek på %s"
4105
 
4106
- #: includes/utils.php:172
4107
  msgctxt "utils"
4108
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4109
  msgstr "Filstorlek (%s) är sämre än den minifilstiorleken på%s"
4110
 
4111
- #: includes/utils.php:181 includes/utils.php:188
4112
  msgctxt "utils"
4113
  msgid "File type \"%s\" is not allowed"
4114
  msgstr "Filtyp \"%s\" är inte tillåten"
4115
 
4116
- #: includes/utils.php:195
4117
  msgctxt "utils"
4118
  msgid "Unkown error while uploading file."
4119
  msgstr "Okänt fel uppstod när filen laddades upp."
4120
 
4121
- #: includes/utils.php:214
4122
  msgctxt "utils"
4123
  msgid "Uploaded file is not an image"
4124
  msgstr "Den uppladdade filen är inte en bild"
4125
 
4126
- #: includes/utils.php:223
4127
  msgctxt "utils"
4128
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4129
  msgstr "Bildbredd (%s px) är mindre än minimikravet på bredden %s px."
4130
 
4131
- #: includes/utils.php:229
4132
  msgctxt "utils"
4133
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4134
  msgstr "Bildhöjden (%s px) är mindre än minimikravet på höjden %s px."
4135
 
4136
- #: includes/utils.php:235
4137
  msgctxt "utils"
4138
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4139
  msgstr "Bildbredden (%s px) är större än högsta tillåtna bredd%s px."
4140
 
4141
- #: includes/utils.php:241
4142
  msgctxt "utils"
4143
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4144
  msgstr "Bildhöjden (%s px) är större än maximalt tillåtna höjd%s px."
4145
 
4146
- #: includes/utils.php:255
4147
  msgctxt "utils"
4148
  msgid "Error while uploading file"
4149
  msgstr "Okänt fel uppstod när filen laddades upp."
@@ -4188,10 +4195,9 @@ msgid "← Return to Directory."
4188
  msgstr "← Tillbaka till katalogen."
4189
 
4190
  #: includes/views/checkout.php:130
4191
- #, fuzzy
4192
  msgctxt "checkout"
4193
  msgid "Your payment was received successfully."
4194
- msgstr "Din betalning mottogs framgångsrikt."
4195
 
4196
  #: includes/views/checkout.php:137
4197
  msgctxt "checkout"
@@ -4429,10 +4435,10 @@ msgid "Find A Listing"
4429
  msgstr "Hitta en annons"
4430
 
4431
  #: includes/views/show_listing.php:12
4432
- #, fuzzy
4433
  msgctxt "preview"
4434
  msgid "This is just a preview. The listing has not been published yet."
4435
- msgstr "Annonsen har publicerats."
 
4436
 
4437
  #: includes/views/submit_listing.php:16
4438
  msgctxt "templates"
@@ -4512,14 +4518,13 @@ msgid ""
4512
  msgstr "Du är inloggad som administratör. Alla betalningssteg hoppas över."
4513
 
4514
  #: includes/views/view-submit-listing.php:108
4515
- #, fuzzy
4516
  msgctxt "submit-listing-view"
4517
  msgid ""
4518
  "<b>Business Directory Plugin</b> requires a field associated with the "
4519
  "<b>post category</b> in order to work correctly."
4520
  msgstr ""
4521
- "<b>Tillägget Business Direcotry </b> kräver ett fält med en<b>%s</b> "
4522
- "association för att fungera korrekt."
4523
 
4524
  #: includes/views/view-submit-listing.php:110
4525
  msgctxt "submit-listing-view"
@@ -4527,18 +4532,19 @@ msgid ""
4527
  "Please go to the <manage-form-fields-link>Manage Form Fields</manage-form-"
4528
  "fields-link> admin page to create the field."
4529
  msgstr ""
 
 
4530
 
4531
  #: includes/views/view-submit-listing.php:119
4532
- #, fuzzy
4533
  msgctxt "submit-listing-view"
4534
  msgid ""
4535
  "Your listing cannot be added at this time. Please try again later. If this "
4536
  "is not the first time you see this warning, please ask the site "
4537
  "administrator to check the Directory for possible configuration problems."
4538
  msgstr ""
4539
- "Din annons kan inte läggas in vid denna tidpunkt. Vänligen försök igen "
4540
- "senare. Om det inte är första gången du ser detta meddelande, be "
4541
- "administratören att lägga upp en eller flera kategorier i Business Directory."
4542
 
4543
  #: includes/views/view-submit-listing.php:238
4544
  msgctxt "templates"
@@ -4826,7 +4832,7 @@ msgstr "Inställningar för CSV-fil"
4826
  #: templates/admin/csv-export.tpl.php:94
4827
  msgctxt "admin csv-export"
4828
  msgid "What operating system will you use to edit the CSV file?"
4829
- msgstr ""
4830
 
4831
  #: templates/admin/csv-export.tpl.php:94 templates/admin/csv-export.tpl.php:113
4832
  #: templates/admin/csv-export.tpl.php:124 templates/admin/csv-import.tpl.php:43
@@ -4841,12 +4847,12 @@ msgstr "obligatoriskt"
4841
  #: templates/admin/csv-export.tpl.php:101
4842
  msgctxt "admin csv-export"
4843
  msgid "Windows"
4844
- msgstr ""
4845
 
4846
  #: templates/admin/csv-export.tpl.php:106
4847
  msgctxt "admin csv-export"
4848
  msgid "macOS"
4849
- msgstr ""
4850
 
4851
  #: templates/admin/csv-export.tpl.php:108
4852
  msgctxt "admin csv-export"
@@ -4856,6 +4862,10 @@ msgid ""
4856
  "edit the CSV file, we need to generate different versions of the file for "
4857
  "each operating system."
4858
  msgstr ""
 
 
 
 
4859
 
4860
  #: templates/admin/csv-export.tpl.php:113
4861
  msgctxt "admin csv-export"
@@ -5136,17 +5146,17 @@ msgstr "Kolumnavgränsare"
5136
  #: templates/admin/csv-import.tpl.php:117
5137
  msgctxt "admin csv-import"
5138
  msgid "Comma (,)"
5139
- msgstr ""
5140
 
5141
  #: templates/admin/csv-import.tpl.php:123
5142
  msgctxt "admin csv-import"
5143
  msgid "Semicolon (;)"
5144
- msgstr ""
5145
 
5146
  #: templates/admin/csv-import.tpl.php:129
5147
  msgctxt "admin csv-import"
5148
  msgid "TAB"
5149
- msgstr ""
5150
 
5151
  #: templates/admin/csv-import.tpl.php:135
5152
  msgctxt "admin csv-import"
@@ -5798,7 +5808,7 @@ msgctxt "form-fields admin"
5798
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5799
  msgstr "Se <a>formulärfältsdokumentationen</a> för mer information."
5800
 
5801
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5802
  #. Plugin Name of the plugin/theme
5803
  #: templates/admin/header.tpl.php:4
5804
  msgid "Business Directory Plugin"
@@ -6675,13 +6685,11 @@ msgid "Phone Number:"
6675
  msgstr "Telefonnummer:"
6676
 
6677
  #: templates/billing-information-form.tpl.php:161
6678
- #, fuzzy
6679
  msgctxt "checkout form"
6680
  msgid "Cancel"
6681
  msgstr "Avbryt"
6682
 
6683
  #: templates/billing-information-form.tpl.php:162
6684
- #, fuzzy
6685
  msgctxt "checkout form"
6686
  msgid "Submit Payment"
6687
  msgstr "Skicka betalning"
@@ -6987,7 +6995,6 @@ msgid "There are no fees available for this category."
6987
  msgstr "Det finns inga avgifter för denna kategori."
6988
 
6989
  #: templates/parts/category-fee-selection.tpl.php:29
6990
- #, fuzzy
6991
  msgctxt "templates"
6992
  msgid "day"
6993
  msgid_plural "days"
@@ -6995,7 +7002,6 @@ msgstr[0] "dagar"
6995
  msgstr[1] "dagar"
6996
 
6997
  #: templates/parts/category-fee-selection.tpl.php:47
6998
- #, fuzzy
6999
  msgctxt "templates"
7000
  msgid "%d image"
7001
  msgid_plural "%d images"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
+ "PO-Revision-Date: 2017-05-20 19:34+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: sv_SE\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 2.0.1\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
 
18
  #: business-directory-plugin.php:594
 
19
  msgctxt "listing image upload"
20
  msgid "Can not upload any more images for this listing."
21
+ msgstr "Fler bilder kan inte laddas upp för denna annons."
22
 
23
  #: business-directory-plugin.php:708
24
  msgctxt "admin plugins"
52
  msgstr "Annonser med tagg: %s"
53
 
54
  #: business-directory-plugin.php:1587
 
55
  msgid ""
56
  "The directory features are disabled at this time because a <a>manual "
57
  "upgrade</a> is pending."
58
  msgstr ""
59
  "Business Directorys funktioner är för närvarande avaktiverade på grund av "
60
+ "att pluginet behöver <a> en manuell uppgradering</a>."
61
 
62
  #: business-directory-plugin.php:1594
63
  msgid ""
64
  "The directory is not available at this time. Please try again in a few "
65
  "minutes or contact the administrator if the problem persists."
66
  msgstr ""
67
+ "Katalogen är inte tillgänglig just nu. Vänligen försök igen om en lite stund "
68
+ "eller kontakta administratören om problemet kvarstår."
69
 
70
  #: includes/admin/class-admin-listings.php:40
71
  msgctxt "admin category filter"
630
  msgstr "Temat har installerats med framgång."
631
 
632
  #: includes/admin/class-themes-admin.php:229
 
633
  msgctxt "themes"
634
  msgid "Theme was deleted successfully."
635
+ msgstr "Temat är borttaget."
636
 
637
  #: includes/admin/class-themes-admin.php:232
638
  msgctxt "themes"
962
  msgstr "Län"
963
 
964
  #: includes/admin/form-fields.php:298
 
965
  msgctxt "form-fields admin"
966
  msgid "Country"
967
+ msgstr "Land"
968
 
969
  #: includes/admin/form-fields.php:299
970
  msgctxt "form-fields admin"
1570
  msgid ""
1571
  "Include CSS rules to give their own style to View, Edit and Delete buttons?"
1572
  msgstr ""
1573
+ "Vill du inkludera CSS-regler för att ge Visa-, Redigera- och Ta bort-"
1574
+ "knapparna eget utseende?"
1575
 
1576
  #: includes/admin/settings/class-settings.php:189
1577
  #: includes/admin/settings/class-settings.php:688
1665
  "comments. Use the 2nd option if you want to allow comments on listings "
1666
  "first, and if that doesn't work, try the 3rd option instead."
1667
  msgstr ""
1668
+ "BD använder WordPress standardkommentarer, men många teman tillåter endast "
1669
+ "kommentarer på inlägg, inte sidor. Vissa teman tillåter båda. BD visas på en "
1670
+ "sida, därför behövs ett tema som kan hantera kommentarer på både sidor och "
1671
+ "inlägg. Använd det andra valet om du vill tillåta kommentarer på annonser "
1672
+ "först, och om det inte fungerar, använd det tredje valet."
1673
 
1674
  #: includes/admin/settings/class-settings.php:236
1675
  msgctxt "admin settings"
1685
  msgctxt "admin settings"
1686
  msgid "Include comment form, BD invoked (use only if 2nd option doesn't work)"
1687
  msgstr ""
1688
+ "Inkludera kommentarsfält anropat från BD (använd endast om andra valet inte "
1689
+ "fungerar)"
1690
 
1691
  #: includes/admin/settings/class-settings.php:246
1692
  msgctxt "admin settings"
2444
  #: includes/admin/settings/class-settings.php:586
2445
  msgctxt "admin settings"
2446
  msgid "Moroccan Dirham (MAD)"
2447
+ msgstr "Marockanska Dirham (MAD)"
2448
 
2449
  #: includes/admin/settings/class-settings.php:587
2450
  msgctxt "admin settings"
2927
  msgstr "Det gick inte att uppdatera tema:%s"
2928
 
2929
  #: includes/admin/upgrades/class-themes-updater.php:165
 
2930
  msgctxt "themes"
2931
  msgid "Theme was updated successfully."
2932
+ msgstr "Temat har uppdaterats."
2933
 
2934
  #: includes/api.php:405
2935
  msgid "Free"
3234
  #: includes/fields/class-fieldtypes-select.php:112
3235
  msgctxt "form-fields-api select"
3236
  msgid "— None —"
3237
+ msgstr "— Inget —"
3238
 
3239
  #: includes/fields/class-fieldtypes-select.php:162
3240
  msgctxt "form-fields admin"
3721
  "Cleaning up stored meta data for Checkbox, Radio and Select fields... (%d "
3722
  "records left)"
3723
  msgstr ""
3724
+ "Rensar lagrad metadata för Checkbox, Radio och Välj-fält... (%d data kvar)"
3725
 
3726
  #: includes/installer.php:1061
3727
  msgid "Business Directory - Manual Upgrade Required"
3767
  msgstr "Pausa uppgraderingen"
3768
 
3769
  #: includes/installer.php:1110
 
3770
  msgctxt "manual-upgrade"
3771
  msgid ""
3772
  "The upgrade was successfully performed. Business Directory Plugin is now "
3773
  "available."
3774
+ msgstr "Uppdateringen lyckades. Business Directory Plugin är nu tillgängligt."
 
 
3775
 
3776
  #: includes/installer.php:1113
3777
  msgctxt "manual-upgrade"
3812
  "that information if you need to contact support about problems trying to "
3813
  "activate your licenses."
3814
  msgstr ""
3815
+ "Din servers IP-adress är <ip-address>. Var vänlig och säkerställ att den "
3816
+ "information som behövs är inkluderad om du behöver kontakta supporten vid "
3817
+ "problem vid aktivering av licens."
3818
 
3819
  #: includes/licensing.php:154 includes/licensing.php:188
3820
  msgctxt "licensing"
4097
  msgid "Could not move new theme into theme directory."
4098
  msgstr "Det gick inte att flytta det nya temat till temakatalogen."
4099
 
4100
+ #: includes/utils.php:107
4101
  msgctxt "utils"
4102
  msgid ""
4103
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
4105
  "Postat data överskrider PHP config. max. Se \\\"post_max_size \\\" "
4106
  "direktivet."
4107
 
4108
+ #: includes/utils.php:165
4109
  msgctxt "utils"
4110
  msgid "File size (%s) exceeds maximum file size of %s"
4111
  msgstr "Filstorlek (%s) överskrider maximal filstorlek på %s"
4112
 
4113
+ #: includes/utils.php:173
4114
  msgctxt "utils"
4115
  msgid "File size (%s) is inferior to the required minimum file size of %s"
4116
  msgstr "Filstorlek (%s) är sämre än den minifilstiorleken på%s"
4117
 
4118
+ #: includes/utils.php:182 includes/utils.php:189
4119
  msgctxt "utils"
4120
  msgid "File type \"%s\" is not allowed"
4121
  msgstr "Filtyp \"%s\" är inte tillåten"
4122
 
4123
+ #: includes/utils.php:196
4124
  msgctxt "utils"
4125
  msgid "Unkown error while uploading file."
4126
  msgstr "Okänt fel uppstod när filen laddades upp."
4127
 
4128
+ #: includes/utils.php:215
4129
  msgctxt "utils"
4130
  msgid "Uploaded file is not an image"
4131
  msgstr "Den uppladdade filen är inte en bild"
4132
 
4133
+ #: includes/utils.php:224
4134
  msgctxt "utils"
4135
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
4136
  msgstr "Bildbredd (%s px) är mindre än minimikravet på bredden %s px."
4137
 
4138
+ #: includes/utils.php:230
4139
  msgctxt "utils"
4140
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
4141
  msgstr "Bildhöjden (%s px) är mindre än minimikravet på höjden %s px."
4142
 
4143
+ #: includes/utils.php:236
4144
  msgctxt "utils"
4145
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
4146
  msgstr "Bildbredden (%s px) är större än högsta tillåtna bredd%s px."
4147
 
4148
+ #: includes/utils.php:242
4149
  msgctxt "utils"
4150
  msgid "Image height (%s px) is greater than maximum required height of %s px."
4151
  msgstr "Bildhöjden (%s px) är större än maximalt tillåtna höjd%s px."
4152
 
4153
+ #: includes/utils.php:256
4154
  msgctxt "utils"
4155
  msgid "Error while uploading file"
4156
  msgstr "Okänt fel uppstod när filen laddades upp."
4195
  msgstr "← Tillbaka till katalogen."
4196
 
4197
  #: includes/views/checkout.php:130
 
4198
  msgctxt "checkout"
4199
  msgid "Your payment was received successfully."
4200
+ msgstr "Vi har mottagit din betalning."
4201
 
4202
  #: includes/views/checkout.php:137
4203
  msgctxt "checkout"
4435
  msgstr "Hitta en annons"
4436
 
4437
  #: includes/views/show_listing.php:12
 
4438
  msgctxt "preview"
4439
  msgid "This is just a preview. The listing has not been published yet."
4440
+ msgstr ""
4441
+ "Detta är enbart en förhandsgranskning, annonsen har inte publicerats ännu."
4442
 
4443
  #: includes/views/submit_listing.php:16
4444
  msgctxt "templates"
4518
  msgstr "Du är inloggad som administratör. Alla betalningssteg hoppas över."
4519
 
4520
  #: includes/views/view-submit-listing.php:108
 
4521
  msgctxt "submit-listing-view"
4522
  msgid ""
4523
  "<b>Business Directory Plugin</b> requires a field associated with the "
4524
  "<b>post category</b> in order to work correctly."
4525
  msgstr ""
4526
+ "<b>Tillägget Business Direcotry </b> kräver ett fält associerat "
4527
+ "med<b>inläggskategorier</b> för att fungera korrekt."
4528
 
4529
  #: includes/views/view-submit-listing.php:110
4530
  msgctxt "submit-listing-view"
4532
  "Please go to the <manage-form-fields-link>Manage Form Fields</manage-form-"
4533
  "fields-link> admin page to create the field."
4534
  msgstr ""
4535
+ "Vänligen besök <manage-form-fields-link>Hantera formulärfält</manage-form-"
4536
+ "fields-link> för att skapa fältet."
4537
 
4538
  #: includes/views/view-submit-listing.php:119
 
4539
  msgctxt "submit-listing-view"
4540
  msgid ""
4541
  "Your listing cannot be added at this time. Please try again later. If this "
4542
  "is not the first time you see this warning, please ask the site "
4543
  "administrator to check the Directory for possible configuration problems."
4544
  msgstr ""
4545
+ "Din annons kan inte läggas in just nu. Vänligen försök igen senare. Om det "
4546
+ "inte är första gången du ser detta meddelande ber vi dig kontakta "
4547
+ "administratören för felsökning."
4548
 
4549
  #: includes/views/view-submit-listing.php:238
4550
  msgctxt "templates"
4832
  #: templates/admin/csv-export.tpl.php:94
4833
  msgctxt "admin csv-export"
4834
  msgid "What operating system will you use to edit the CSV file?"
4835
+ msgstr "Vilket operativsystem använder du för att redigera CSV-filen?"
4836
 
4837
  #: templates/admin/csv-export.tpl.php:94 templates/admin/csv-export.tpl.php:113
4838
  #: templates/admin/csv-export.tpl.php:124 templates/admin/csv-import.tpl.php:43
4847
  #: templates/admin/csv-export.tpl.php:101
4848
  msgctxt "admin csv-export"
4849
  msgid "Windows"
4850
+ msgstr "Windows"
4851
 
4852
  #: templates/admin/csv-export.tpl.php:106
4853
  msgctxt "admin csv-export"
4854
  msgid "macOS"
4855
+ msgstr "MacOS"
4856
 
4857
  #: templates/admin/csv-export.tpl.php:108
4858
  msgctxt "admin csv-export"
4862
  "edit the CSV file, we need to generate different versions of the file for "
4863
  "each operating system."
4864
  msgstr ""
4865
+ "Excel för Windows och MacOS hanterar CSV-filer olika. För att vara säker på "
4866
+ "att all din annonsinformation visas korrekt när du ska visa eller redigera "
4867
+ "CSV-filen behöver vi generera olika versioner av filen för varje "
4868
+ "operativsystem."
4869
 
4870
  #: templates/admin/csv-export.tpl.php:113
4871
  msgctxt "admin csv-export"
5146
  #: templates/admin/csv-import.tpl.php:117
5147
  msgctxt "admin csv-import"
5148
  msgid "Comma (,)"
5149
+ msgstr "Komma (,)"
5150
 
5151
  #: templates/admin/csv-import.tpl.php:123
5152
  msgctxt "admin csv-import"
5153
  msgid "Semicolon (;)"
5154
+ msgstr "Semikolon (;)"
5155
 
5156
  #: templates/admin/csv-import.tpl.php:129
5157
  msgctxt "admin csv-import"
5158
  msgid "TAB"
5159
+ msgstr "Tab"
5160
 
5161
  #: templates/admin/csv-import.tpl.php:135
5162
  msgctxt "admin csv-import"
5808
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5809
  msgstr "Se <a>formulärfältsdokumentationen</a> för mer information."
5810
 
5811
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5812
  #. Plugin Name of the plugin/theme
5813
  #: templates/admin/header.tpl.php:4
5814
  msgid "Business Directory Plugin"
6685
  msgstr "Telefonnummer:"
6686
 
6687
  #: templates/billing-information-form.tpl.php:161
 
6688
  msgctxt "checkout form"
6689
  msgid "Cancel"
6690
  msgstr "Avbryt"
6691
 
6692
  #: templates/billing-information-form.tpl.php:162
 
6693
  msgctxt "checkout form"
6694
  msgid "Submit Payment"
6695
  msgstr "Skicka betalning"
6995
  msgstr "Det finns inga avgifter för denna kategori."
6996
 
6997
  #: templates/parts/category-fee-selection.tpl.php:29
 
6998
  msgctxt "templates"
6999
  msgid "day"
7000
  msgid_plural "days"
7002
  msgstr[1] "dagar"
7003
 
7004
  #: templates/parts/category-fee-selection.tpl.php:47
 
7005
  msgctxt "templates"
7006
  msgid "%d image"
7007
  msgid_plural "%d images"
languages/WPBDM.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Business Directory Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Business Directory Plugin 4.1.12\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2017-05-16 22:07:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -3839,58 +3839,58 @@ msgctxt "themes"
3839
  msgid "Could not move new theme into theme directory."
3840
  msgstr ""
3841
 
3842
- #: includes/utils.php:106
3843
  msgctxt "utils"
3844
  msgid ""
3845
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
3846
  msgstr ""
3847
 
3848
- #: includes/utils.php:164
3849
  msgctxt "utils"
3850
  msgid "File size (%s) exceeds maximum file size of %s"
3851
  msgstr ""
3852
 
3853
- #: includes/utils.php:172
3854
  msgctxt "utils"
3855
  msgid "File size (%s) is inferior to the required minimum file size of %s"
3856
  msgstr ""
3857
 
3858
- #: includes/utils.php:181 includes/utils.php:188
3859
  msgctxt "utils"
3860
  msgid "File type \"%s\" is not allowed"
3861
  msgstr ""
3862
 
3863
- #: includes/utils.php:195
3864
  msgctxt "utils"
3865
  msgid "Unkown error while uploading file."
3866
  msgstr ""
3867
 
3868
- #: includes/utils.php:214
3869
  msgctxt "utils"
3870
  msgid "Uploaded file is not an image"
3871
  msgstr ""
3872
 
3873
- #: includes/utils.php:223
3874
  msgctxt "utils"
3875
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
3876
  msgstr ""
3877
 
3878
- #: includes/utils.php:229
3879
  msgctxt "utils"
3880
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
3881
  msgstr ""
3882
 
3883
- #: includes/utils.php:235
3884
  msgctxt "utils"
3885
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
3886
  msgstr ""
3887
 
3888
- #: includes/utils.php:241
3889
  msgctxt "utils"
3890
  msgid "Image height (%s px) is greater than maximum required height of %s px."
3891
  msgstr ""
3892
 
3893
- #: includes/utils.php:255
3894
  msgctxt "utils"
3895
  msgid "Error while uploading file"
3896
  msgstr ""
@@ -5438,7 +5438,7 @@ msgctxt "form-fields admin"
5438
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5439
  msgstr ""
5440
 
5441
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12) #-#-#-#-#
5442
  #. Plugin Name of the plugin/theme
5443
  #: templates/admin/header.tpl.php:4
5444
  msgid "Business Directory Plugin"
2
  # This file is distributed under the same license as the Business Directory Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Business Directory Plugin 4.1.12.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2017-05-22 23:05:34+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
3839
  msgid "Could not move new theme into theme directory."
3840
  msgstr ""
3841
 
3842
+ #: includes/utils.php:107
3843
  msgctxt "utils"
3844
  msgid ""
3845
  "POSTed data exceeds PHP config. maximum. See \"post_max_size\" directive."
3846
  msgstr ""
3847
 
3848
+ #: includes/utils.php:165
3849
  msgctxt "utils"
3850
  msgid "File size (%s) exceeds maximum file size of %s"
3851
  msgstr ""
3852
 
3853
+ #: includes/utils.php:173
3854
  msgctxt "utils"
3855
  msgid "File size (%s) is inferior to the required minimum file size of %s"
3856
  msgstr ""
3857
 
3858
+ #: includes/utils.php:182 includes/utils.php:189
3859
  msgctxt "utils"
3860
  msgid "File type \"%s\" is not allowed"
3861
  msgstr ""
3862
 
3863
+ #: includes/utils.php:196
3864
  msgctxt "utils"
3865
  msgid "Unkown error while uploading file."
3866
  msgstr ""
3867
 
3868
+ #: includes/utils.php:215
3869
  msgctxt "utils"
3870
  msgid "Uploaded file is not an image"
3871
  msgstr ""
3872
 
3873
+ #: includes/utils.php:224
3874
  msgctxt "utils"
3875
  msgid "Image width (%s px) is inferior to minimum required width of %s px."
3876
  msgstr ""
3877
 
3878
+ #: includes/utils.php:230
3879
  msgctxt "utils"
3880
  msgid "Image height (%s px) is inferior to minimum required height of %s px."
3881
  msgstr ""
3882
 
3883
+ #: includes/utils.php:236
3884
  msgctxt "utils"
3885
  msgid "Image width (%s px) is greater than maximum allowed width of %s px."
3886
  msgstr ""
3887
 
3888
+ #: includes/utils.php:242
3889
  msgctxt "utils"
3890
  msgid "Image height (%s px) is greater than maximum required height of %s px."
3891
  msgstr ""
3892
 
3893
+ #: includes/utils.php:256
3894
  msgctxt "utils"
3895
  msgid "Error while uploading file"
3896
  msgstr ""
5438
  msgid "Please see the <a>Form Fields documentation</a> for more details."
5439
  msgstr ""
5440
 
5441
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.12.1) #-#-#-#-#
5442
  #. Plugin Name of the plugin/theme
5443
  #: templates/admin/header.tpl.php:4
5444
  msgid "Business Directory Plugin"
templates/main-box.tpl.php CHANGED
@@ -25,8 +25,10 @@
25
  <div class="box-row separator"></div>
26
  <?php endif; ?>
27
 
 
28
  <div class="box-row">
29
- <?php wpbdp_the_main_links(); ?>
30
  </div>
 
31
 
32
  </div>
25
  <div class="box-row separator"></div>
26
  <?php endif; ?>
27
 
28
+ <?php if ( 'none' != $buttons && ! empty( $buttons ) ): ?>
29
  <div class="box-row">
30
+ <?php wpbdp_the_main_links( $buttons ); ?>
31
  </div>
32
+ <?php endif; ?>
33
 
34
  </div>
templates/page.tpl.php CHANGED
@@ -2,7 +2,10 @@
2
  $show_bar = ( isset( $_child->_bar ) ? $_child->_bar : ( isset( $_bar ) ? $_bar : true ) );
3
  ?>
4
  <div id="wpbdp-page-<?php echo $_child->_id; ?>" class="wpbdp-page wpbdp-page-<?php echo $_child->_id; ?> <?php echo $_class; ?>">
5
- <?php if ( $show_bar ): ?><?php echo wpbdp_main_box(); ?><?php endif; ?>
 
 
 
6
 
7
  <?php
8
  // TODO: Try to use blocks for this too, instead of actions.
2
  $show_bar = ( isset( $_child->_bar ) ? $_child->_bar : ( isset( $_bar ) ? $_bar : true ) );
3
  ?>
4
  <div id="wpbdp-page-<?php echo $_child->_id; ?>" class="wpbdp-page wpbdp-page-<?php echo $_child->_id; ?> <?php echo $_class; ?>">
5
+ <?php if ( $show_bar ): ?>
6
+ <?php $bar_args = isset( $_bar_args ) ? $_bar_args : ( isset( $_child->_bar_args ) ? $_child->_bar_args : array() ); ?>
7
+ <?php echo wpbdp_main_box( $bar_args ); ?>
8
+ <?php endif; ?>
9
 
10
  <?php
11
  // TODO: Try to use blocks for this too, instead of actions.