Business Directory Plugin - Version 4.1.11.1

Version Description

Download this release

Release Info

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

Code changes from version 4.1.10 to 4.1.11.1

Files changed (132) hide show
  1. README.TXT +14 -3
  2. admin/resources/check.png +0 -0
  3. admin/css/csv-import.css → assets/css/admin-csv-import.css +0 -0
  4. admin/css/csv-import.min.css → assets/css/admin-csv-import.min.css +0 -0
  5. admin/resources/export.css → assets/css/admin-export.css +0 -0
  6. admin/resources/export.min.css → assets/css/admin-export.min.css +0 -0
  7. admin/css/listing-metabox.css → assets/css/admin-listing-metabox.css +0 -0
  8. admin/css/listing-metabox.min.css → assets/css/admin-listing-metabox.min.css +0 -0
  9. admin/css/themes.css → assets/css/admin-themes.css +0 -0
  10. admin/css/themes.min.css → assets/css/admin-themes.min.css +0 -0
  11. {admin/resources → assets/css}/admin.css +1 -1
  12. {admin/resources → assets/css}/admin.min.css +1 -1
  13. {core → assets}/css/debug.css +0 -0
  14. {core → assets}/css/debug.min.css +0 -0
  15. {core → assets}/css/dnd-upload.css +0 -0
  16. {core → assets}/css/dnd-upload.min.css +0 -0
  17. {core → assets}/css/widgets.css +0 -0
  18. {core → assets}/css/widgets.min.css +0 -0
  19. {core → assets}/css/wpbdp-legacy.css +0 -0
  20. {core → assets}/css/wpbdp-legacy.min.css +0 -0
  21. {core → assets}/css/wpbdp.css +140 -34
  22. assets/css/wpbdp.min.css +1 -0
  23. {admin/resources → assets/images}/2checkout-gateway-module.png +0 -0
  24. {core → assets}/images/default-image-big.gif +0 -0
  25. {core → assets}/images/default.png +0 -0
  26. {admin/resources → assets/images}/drag-handle.png +0 -0
  27. {core → assets}/images/featuredlisting.png +0 -0
  28. {core → assets}/images/linkedin.png +0 -0
  29. {admin/resources → assets/images}/menuico.png +0 -0
  30. {admin/resources → assets/images}/payfast-payment-module.png +0 -0
  31. {admin/resources → assets/images}/paypal-gateway-module.png +0 -0
  32. {admin/resources → assets/images}/stripe-payment-module.png +0 -0
  33. admin/js/csv-import.js → assets/js/admin-csv-import.js +0 -0
  34. admin/js/csv-import.min.js → assets/js/admin-csv-import.min.js +0 -0
  35. admin/resources/export.js → assets/js/admin-export.js +0 -0
  36. admin/resources/export.min.js → assets/js/admin-export.min.js +0 -0
  37. admin/js/listing.js → assets/js/admin-listing.js +0 -0
  38. admin/js/listing.min.js → assets/js/admin-listing.min.js +0 -0
  39. admin/resources/manual-upgrade.js → assets/js/admin-manual-upgrade.js +0 -0
  40. admin/resources/manual-upgrade.min.js → assets/js/admin-manual-upgrade.min.js +0 -0
  41. admin/js/themes.js → assets/js/admin-themes.js +0 -0
  42. admin/js/themes.min.js → assets/js/admin-themes.min.js +0 -0
  43. {admin/resources → assets/js}/admin.js +0 -0
  44. {admin/resources → assets/js}/admin.min.js +0 -0
  45. {core → assets}/js/debug.js +0 -0
  46. {core → assets}/js/debug.min.js +0 -0
  47. {core → assets}/js/dnd-upload.js +0 -0
  48. {core → assets}/js/dnd-upload.min.js +0 -0
  49. {core → assets}/js/recaptcha.js +0 -0
  50. {core → assets}/js/recaptcha.min.js +0 -0
  51. {core → assets}/js/submit-listing.js +0 -0
  52. {core → assets}/js/submit-listing.min.js +0 -0
  53. {core → assets}/js/wpbdp.js +0 -0
  54. {core → assets}/js/wpbdp.min.js +0 -0
  55. business-directory-plugin.php +14 -15
  56. core/class-listings-api.php +5 -2
  57. core/class-recaptcha.php +1 -1
  58. core/class-settings.php +1 -0
  59. core/class-wpbdp.php +1 -1
  60. core/css/wpbdp.min.css +0 -1
  61. core/debugging.php +2 -2
  62. core/fieldtypes/class-fieldtypes-linkedin.php +1 -1
  63. core/helpers/class-themes-updater.php +1 -1
  64. core/images/googlewallet.gif +0 -0
  65. core/installer.php +1 -1
  66. core/licensing.php +51 -3
  67. core/templates-listings.php +1 -1
  68. core/templates-ui.php +2 -2
  69. core/templates/listing-sticky-tag.tpl.php +1 -1
  70. core/themes.php +12 -3
  71. core/utils.php +11 -0
  72. core/views/submit_listing.php +1 -1
  73. {admin → includes/admin}/admin-pages.php +2 -2
  74. {admin → includes/admin}/class-admin-listings.php +0 -0
  75. {admin → includes/admin}/class-admin.php +23 -23
  76. {admin → includes/admin}/class-listing-fields-metabox.php +0 -0
  77. {admin → includes/admin}/class-themes-admin.php +6 -6
  78. {admin → includes/admin}/csv-export.php +3 -3
  79. {admin → includes/admin}/csv-import.php +4 -4
  80. {admin → includes/admin}/fees.php +3 -3
  81. {admin → includes/admin}/form-fields.php +4 -4
  82. {admin → includes/admin/helpers}/listing-metabox.php +3 -3
  83. {admin → includes/admin}/index.php +0 -0
  84. {admin → includes/admin}/page-debug.php +1 -1
  85. {admin → includes/admin}/payments.php +1 -1
  86. {admin → includes/admin}/tracking.php +0 -0
  87. {admin/templates → templates/admin}/csv-export.tpl.php +0 -0
  88. {admin/templates → templates/admin}/csv-import-progress.tpl.php +0 -0
  89. {admin/templates → templates/admin}/csv-import.tpl.php +0 -0
  90. {admin/templates → templates/admin}/debug-info.tpl.php +0 -0
  91. {admin/templates → templates/admin}/fees-addoredit.tpl.php +0 -0
  92. {admin/templates → templates/admin}/fees-confirm-delete.tpl.php +0 -0
  93. {admin/templates → templates/admin}/fees.tpl.php +1 -1
  94. {admin/templates → templates/admin}/form-fields-addoredit.tpl.php +0 -0
  95. {admin/templates → templates/admin}/form-fields-confirm-delete.tpl.php +0 -0
  96. {admin/templates → templates/admin}/form-fields-tags.tpl.php +0 -0
  97. {admin/templates → templates/admin}/form-fields.tpl.php +0 -0
  98. {admin/templates → templates/admin}/header.tpl.php +0 -0
  99. {admin/templates → templates/admin}/home.tpl.php +0 -0
  100. {admin/templates → templates/admin}/listing-change-fee.tpl.php +0 -0
  101. {admin/templates → templates/admin}/listing-metabox-categories.tpl.php +0 -0
  102. {admin/templates → templates/admin}/listing-metabox-fees.tpl.php +1 -1
  103. {admin/templates → templates/admin}/listing-metabox-feesummary.tpl.php +1 -1
  104. {admin/templates → templates/admin}/listing-metabox-transactions.tpl.php +0 -0
  105. {admin/templates → templates/admin}/payment-details.tpl.php +0 -0
  106. {admin/templates → templates/admin}/settings-reset.tpl.php +0 -0
  107. {admin/templates → templates/admin}/settings.tpl.php +0 -0
  108. {admin/templates → templates/admin}/sidebar.tpl.php +0 -0
  109. {admin/templates → templates/admin}/themes-delete-confirm.tpl.php +0 -0
  110. {admin/templates → templates/admin}/themes-install.tpl.php +0 -0
  111. {admin/templates → templates/admin}/themes-item.tpl.php +0 -0
  112. {admin/templates → templates/admin}/themes-licenses.tpl.php +1 -1
  113. {admin/templates → templates/admin}/themes-tabs.tpl.php +0 -0
  114. {admin/templates → templates/admin}/themes.tpl.php +2 -2
  115. {admin/templates → templates/admin}/transactions.tpl.php +0 -0
  116. {admin/templates → templates/admin}/uninstall-capture-form.tpl.php +0 -0
  117. {admin/templates → templates/admin}/uninstall-complete.tpl.php +0 -0
  118. {admin/templates → templates/admin}/uninstall-confirm.tpl.php +1 -1
  119. templates/billing-information-form.tpl.php +2 -2
  120. templates/parts/category-fee-selection.tpl.php +55 -63
  121. vendors/edd/EDD_SL_Plugin_Updater.php +0 -338
  122. vendors/jquery-breakpoints.js +3 -1
  123. vendors/jquery-breakpoints.min.js +1 -1
  124. vendors/recaptcha/ReCaptcha/ReCaptcha.php +0 -97
  125. vendors/recaptcha/ReCaptcha/RequestMethod.php +0 -42
  126. vendors/recaptcha/ReCaptcha/RequestMethod/Curl.php +0 -47
  127. vendors/recaptcha/ReCaptcha/RequestMethod/Post.php +0 -70
  128. vendors/recaptcha/ReCaptcha/RequestMethod/Socket.php +0 -104
  129. vendors/recaptcha/ReCaptcha/RequestMethod/SocketPost.php +0 -120
  130. vendors/recaptcha/ReCaptcha/RequestParameters.php +0 -103
  131. vendors/recaptcha/ReCaptcha/Response.php +0 -102
  132. vendors/recaptcha/autoload.php +0 -38
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.3
7
- Last Updated: 2017-Apr-5
8
- Stable tag: tags/4.1.10
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,17 @@ If you are having problems please visit [support forum](http://www.businessdirec
143
 
144
  == Changelog ==
145
 
 
 
 
 
 
 
 
 
 
 
 
146
  = Version 4.1.10 =
147
  * Improve responsive behaviour of categories list.
148
  * Update PayPal module to comply with PayPal's security upgrade.
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.4
7
+ Last Updated: 2017-May-3
8
+ Stable tag: tags/4.1.11.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
 
144
  == Changelog ==
145
 
146
+ = Version 4.1.11.1 =
147
+ * Repaired badly botched release in SVN due to file sync issues
148
+
149
+ = Version 4.1.11 =
150
+ * Show server's IP address in Licenses settings tab.
151
+ * Show two columns of categories by default.
152
+ * Replace fees table with responsive list of fees.
153
+ * Add Moroccan Dirham (MAD) currency to Payment settings.
154
+ * Fix translation support in Billing Form.
155
+ * Fix preview links when the no-id-in-link setting is disabled.
156
+
157
  = Version 4.1.10 =
158
  * Improve responsive behaviour of categories list.
159
  * Update PayPal module to comply with PayPal's security upgrade.
admin/resources/check.png DELETED
Binary file
admin/css/csv-import.css → assets/css/admin-csv-import.css RENAMED
File without changes
admin/css/csv-import.min.css → assets/css/admin-csv-import.min.css RENAMED
File without changes
admin/resources/export.css → assets/css/admin-export.css RENAMED
File without changes
admin/resources/export.min.css → assets/css/admin-export.min.css RENAMED
File without changes
admin/css/listing-metabox.css → assets/css/admin-listing-metabox.css RENAMED
File without changes
admin/css/listing-metabox.min.css → assets/css/admin-listing-metabox.min.css RENAMED
File without changes
admin/css/themes.css → assets/css/admin-themes.css RENAMED
File without changes
admin/css/themes.min.css → assets/css/admin-themes.min.css RENAMED
File without changes
{admin/resources → assets/css}/admin.css RENAMED
@@ -731,7 +731,7 @@ body.taxonomy-wpbdp_category .column-id {
731
  width: 6px;
732
  height: 10px;
733
  display: inline-block;
734
- background: url('drag-handle.png') 0 0;
735
  cursor: move;
736
  float: left;
737
  margin: 5px 5px 0 0;
731
  width: 6px;
732
  height: 10px;
733
  display: inline-block;
734
+ background: url('../images/drag-handle.png') 0 0;
735
  cursor: move;
736
  float: left;
737
  margin: 5px 5px 0 0;
{admin/resources → assets/css}/admin.min.css RENAMED
@@ -1 +1 @@
1
- .cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}.cf{*zoom:1}span.tag{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:9px !important;margin-right:2px;text-transform:uppercase;text-decoration:none !important;line-height:1.5 !important}.button-primary.next-to-secondary{margin-left:30px}.wpbdp-admin-content.with-sidebar{margin-top:20px;clear:left;float:left;width:78%}.wpbdp-admin .sidebar{margin-top:20px;float:right;clear:right;width:20%}.wpbdp-admin .sidebar .postbox{min-width:0 !important}.wpbdp-admin .sidebar .premium-modules h3 span{color:#145200;font-weight:bold}.wpbdp-admin .sidebar .premium-modules{border-color:#0ead00;border-width:3px;background:#ffffcf}.wpbdp-admin .premium-modules .tag{font-size:8px !important}.wpbdp-admin .premium-modules .tag.new{background:#00a000;color:#fff}.wp-list-table tr.wpbdp-item-message-tr td{padding-top:0}.wp-list-table tr.wpbdp-item-message-tr td div{margin:0 15px;padding:6px 12px 8px 12px;background-color:#fef7f1;font-size:12px}.wpbdp-page-admin-fees .tablenav{display:none}.wpbdp-page-admin-fees .wp-list-table .wpbdp-drag-handle{margin-right:15px;display:none}.wpbdp-page-admin-fees .purchase-gateways{margin-left:20px}.wpbdp-page-admin-fees .purchase-gateways .gateway{float:left;width:35%;margin:30px 20px 0 0}.wpbdp-page-admin-fees .purchase-gateways .gateway.installed{opacity:.5}.wpbdp-page-admin-fees .purchase-gateways .gateway a img.gateway-logo{height:40px;margin:0;padding:0;border:0}.wpbdp-page-admin-fees .purchase-gateways .gateway a.price{margin-top:10px;display:block;color:green;font-size:22px;font-weight:bold}.wpbdp-page-admin-fees .purchase-gateways .gateway .check-mark{font-size:150%;font-weight:bold;color:green}td.column-payment_status .status,td.column-sticky_status .status{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:90%}td.column-payment_status .status.ok{background:green}td.column-payment_status .paymentdata{font-size:85%}td.column-payment_status .paymentdata b{font-weight:normal}td.column-payment_status .paymentdata span{font-style:italic}td.column-sticky_status .status.notpaid{background:orange}td.column-sticky_status .status.pending{background:red;font-weight:bold}td.column-sticky_status .status.sticky{background:green}table.wp-list-table td .tag{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:90%;margin-right:2px}table.wp-list-table.formfields th.column-label{width:40%}table.wp-list-table.formfields th.column-tags,table.wp-list-table.formfields td.column-tags{width:200px}table.wp-list-table.formfields th.column-order,table.wp-list-table.formfields td.column-order{width:55px}table.wp-list-table.formfields td.column-order .wpbdp-drag-handle{visibility:hidden}table.wp-list-table.formfields tr:hover .wpbdp-drag-handle{visibility:visible}table.wp-list-table.formfields .tag.required{background:orange}table.wp-list-table.formfields .tag.in-excerpt{background:green}table.wp-list-table.formfields .tag.in-listing{background:green}table.wp-list-table.formfields tr.wpbdp-draggable-highlight{height:54px}table.wp-list-table.formfields tr.ui-sortable-helper{background:#fff;border:1px dashed #c1c1c1}#wpbdp-admin-page-field-form .iframe-confirm{display:none}#wpbdp-admin-page-field-form .iframe-confirm p{font-size:90%}#wpbdp-listing-fields input[type="text"]{width:70%}#wpbdp-listing-fields .wpbdp-form-field.url .wpbdp-form-field-html{padding-left:10px}#wpbdp-listing-fields .wpbdp-form-field.url input[type="text"]{display:block}#wpbdp-listing-fields #wpbdp-uploaded-images .wpbdp-image{padding:5px;width:150px;vertical-align:top;display:inline-block;zoom:1;*display:inline;min-height:210px;_height:210px}#wpbdp-listing-fields div.listing-images .image img{max-width:150px}ul#wpbusdirmanerrors{margin-left:20px}.wpbdp-csv-import-example{width:100%;padding:10px;display:block;background:#fff;border:solid 1px #ddd;font-size:90%;font-family:monospace;height:100%;white-space:pre}#wpbdp-csv-import-form input[type="file"]{border:0}table.wpbdp-csv-import-results,table.wpbdp-csv-import-warnings{width:100%}table.wpbdp-csv-import-results .line-no,table.wpbdp-csv-import-warnings .line-no{width:50px}table.wpbdp-csv-import-results td.line,table.wpbdp-csv-import-warnings td.line{font-family:monospace;font-size:90%}table.wpbdp-csv-import-results .error,table.wpbdp-csv-import-warnings .error{width:200px}table.wpbdp-csv-import-headers{width:100%}table.wpbdp-csv-import-headers td.field-is-required,table.wpbdp-csv-import-headers td.field-is-multivalued{text-align:center}table.wpbdp-csv-import-headers tbody tr{background:#f9f9f9}table.wpbdp-csv-import-headers tbody tr.alt{background:inherit}.wpbdp-form-field.image .preview{float:none}table.wpbdp-debug-section{width:90%}table.wpbdp-debug-section tbody tr{background:#efefef}table.wpbdp-debug-section tbody tr td{padding:3px 8px}table.wpbdp-debug-section tbody tr:nth-child(2n){background:#f5f5f5}#wpbdp-admin-debug-info-page textarea.test-ssl-results{display:block;width:90%;font-family:monospace;font-size:11px;height:100px}.wpbdp-page-admin-transactions .tag{font-size:95%}.wpbdp-page-admin-transactions .tag.approved{background:green}.wpbdp-page-admin-transactions .tag.pending{background:red}.wpbdp-page-admin-transactions .column-actions a.delete{color:#bc0b0b}.wpbdp-page-admin-transactions tr.more-details-row{background:#fff}.wpbdp-page-admin-transactions tr.more-details-row td{padding-left:40px;font-size:95%}.wpbdp-page-admin-transactions tr.more-details-row td dl dt{font-weight:bold}body.taxonomy-wpbdp_category .column-id{width:35px}.transaction-status-container{text-align:right;padding:5px}.wpbdp-progress-bar .progress-bar{margin-left:10px;display:inline-block;vertical-align:middle}.wpbdp-progress-bar .progress-bar-outer{min-width:200px;height:12px;border:solid 1px #36c;padding:0}.wpbdp-progress-bar .progress-bar-inner{height:100%;background:#9cf}.wpbdp-note{padding:5px 10px;background:#d7f5ff;margin:5px 0 20px 0;border:solid 1px #bad5df;border-radius:4px}.wpbdp-note p{margin:0}.wpbdp-note h1,.wpbdp-note h2,.wpbdp-note h3,.wpbdp-note h4{margin:0 0 8px 0}.wpbdp-note.error,.wpbdp-note.warning{background-color:#ffebe8;border-color:#C00}.directory-admin_page_wpbdp_admin_settings table.form-table th,.directory-admin_page_wpbdp_admin_settings table.form-table td{font-size:13px;line-height:1;padding:8px 20px}.directory-admin_page_wpbdp_admin_settings table.form-table th{min-width:150px}.directory-admin_page_wpbdp_admin_settings input,.directory-admin_page_wpbdp_admin_settings select{font-size:13px;line-height:1.0}.directory-admin_page_wpbdp_admin_settings textarea{font-size:13px;width:95%}.directory-admin_page_wpbdp_admin_settings select{display:block}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message{font-size:85%;color:#595959;font-style:italic}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message.ok{color:green}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message.error{color:red}.directory-admin_page_wpbdp_admin_settings .group-error{border-top:solid 1px red}.directory-admin_page_wpbdp_admin_settings .group-warning{border-top:solid 1px yellow}.wpbdp-notice.dismissible{position:relative}.tag.paymentstatus.ok{background:green}.tag.paymentstatus.completed{background:green}.tag.paymentstatus.pending,.tag.paymentstatus.pending-abandonment{background:red}#wpbdp-admin-settings tr.disabled{opacity:.7}#wpbdp-admin-settings .text-fields-warning{font-size:90%;display:block;margin-bottom:2px}#wpbdp-admin-settings .wpbdp-settings-email{margin:5px 0 0 0;border:solid 1px #ccc;padding:5px;background:#fff}#wpbdp-admin-settings .wpbdp-settings-email .short-preview{color:#999;font-size:90%;height:45px;cursor:pointer;overflow:hidden}#wpbdp-admin-settings .wpbdp-settings-email .short-preview h4{margin:0 0 10px 0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview .edit-toggle{float:right}#wpbdp-admin-settings .wpbdp-settings-email .short-preview:hover .edit-toggle{visibility:visible}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dl{margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dt{font-weight:bold;margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dd{margin:0;padding:0 0 0 10px}#wpbdp-admin-settings .wpbdp-settings-email .editor{margin-left:10px;font-size:90%}#wpbdp-admin-settings .wpbdp-settings-email .editor table.form-table{margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email table.form-table th{padding-left:4px;padding-right:0;min-width:0;width:20%}#wpbdp-admin-settings .wpbdp-settings-email .editor input[type="text"]{width:70%}#wpbdp-admin-settings .wpbdp-settings-email .editor textarea{width:100%;min-height:150px}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholders{margin:10px 0 0 0}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder{font-size:90%}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder-separator{margin-top:10px}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder .placeholder-code{font-family:monospace;font-weight:bold}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder .placeholder-description{font-style:italic}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons{margin:30px 0 0 0;text-align:right}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons .preview-email{float:left}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons .cancel{margin-right:10px}#wpbdp-admin-settings select#quick-search-fields{min-height:150px}#listing-metabox-transactions table.payments-list{width:100%;border-spacing:0}#listing-metabox-transactions table.payments-list tr.payment td{border-bottom:solid 1px #efefef;padding:2px 0}#listing-metabox-transactions table.payments-list tr.payment td.status{text-align:right}#listing-metabox-transactions table.payments-list tr.payment.completed td{color:green}#listing-metabox-transactions table.payments-list tr.payment.pending td{color:red}#listing-metabox-transactions table.payments-list tr.payment.rejected td{color:#bbb}#listing-metabox-transactions table.payments-list tr.payment.canceled td{text-decoration:line-through}#listing-metabox-transactions table.payments-list tr.payment a{text-decoration:none;color:inherit}#listing-metabox-transactions table.payments-list tr.payment a:hover{text-decoration:underline}.wpbdp-payment-details .tag{float:right}.wpbdp-payment-details .details,.wpbdp-payment-details .invoice,.wpbdp-payment-details .actions{clear:both;margin:20px 0}.wpbdp-payment-details .details dl dt{font-weight:bold}.wpbdp-payment-details table.wpbdp-payment-items-table{width:100%}.wpbdp-payment-details table.wpbdp-payment-items-table th{text-transform:uppercase}.wpbdp-payment-details table.wpbdp-payment-items-table td{border-top:1px solid #bbb;padding:6px 10px 6px 0}.wpbdp-payment-details .actions a.button-primary{color:#fff !important}.listing-fee-change .fee-selection .fee{padding-bottom:5px;margin-bottom:10px;border-bottom:dotted 1px #ccc;opacity:.85}.listing-fee-change .fee-selection .fee:hover{opacity:1.0}.listing-fee-change .fee-selection .fee .details{margin-left:10px}.listing-fee-change .fee-selection .fee .tag{float:right}.listing-fee-change .fee-selection .fee .choose-this{float:right}.wpbdp-drag-handle{background:red;width:6px;height:10px;display:inline-block;background:url('drag-handle.png') 0 0;cursor:move;float:left;margin:5px 5px 0 0;vertical-align:middle}.wpbdp-draggable-highlight{background:#bbb}.wpbdp-module-compat-check .module-info{margin-bottom:3px}.wpbdp-module-compat-check .module-info .module-version,.wpbdp-module-compat-check .module-info .module-required{color:#666}.wpbdp-module-compat-check .module-info .module-version{margin-left:15px}.wpbdp-module-compat-check .module-info .module-version b{color:#333}.wpbdp-module-compat-check .module-info .module-required b{color:#900000}.toplevel_page_wpbdp_admin .welcome-message{padding:10px;font-size:105%}.toplevel_page_wpbdp_admin .welcome-message p{font-size:inherit}.toplevel_page_wpbdp_admin .welcome-message h4{font-size:120%}.toplevel_page_wpbdp_admin .welcome-message ul{list-style-position:inside;list-style-type:disc}.toplevel_page_wpbdp_admin ul.shortcuts{margin:auto}.toplevel_page_wpbdp_admin ul.shortcuts li{float:left;margin-right:10px}.toplevel_page_wpbdp_admin ul.shortcuts li.clear{margin:0}#wpbdp-uninstall-capture-form .reasons{margin-left:15px}#wpbdp-uninstall-capture-form .reasons .reason{margin-bottom:5px}#wpbdp-uninstall-capture-form textarea{margin:10px 0 0 0;width:50%;min-height:100px;display:none}.wpbdp-license-expired-warning .module-name{background:#fff9aa;padding:0 5px;color:#000}.wpbdp-license-expired-warning .dismiss{margin-right:10px}.wp-admin.widgets-php .widget-content span.help{color:#666}
1
+ .cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}.cf{*zoom:1}span.tag{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:9px !important;margin-right:2px;text-transform:uppercase;text-decoration:none !important;line-height:1.5 !important}.button-primary.next-to-secondary{margin-left:30px}.wpbdp-admin-content.with-sidebar{margin-top:20px;clear:left;float:left;width:78%}.wpbdp-admin .sidebar{margin-top:20px;float:right;clear:right;width:20%}.wpbdp-admin .sidebar .postbox{min-width:0 !important}.wpbdp-admin .sidebar .premium-modules h3 span{color:#145200;font-weight:bold}.wpbdp-admin .sidebar .premium-modules{border-color:#0ead00;border-width:3px;background:#ffffcf}.wpbdp-admin .premium-modules .tag{font-size:8px !important}.wpbdp-admin .premium-modules .tag.new{background:#00a000;color:#fff}.wp-list-table tr.wpbdp-item-message-tr td{padding-top:0}.wp-list-table tr.wpbdp-item-message-tr td div{margin:0 15px;padding:6px 12px 8px 12px;background-color:#fef7f1;font-size:12px}.wpbdp-page-admin-fees .tablenav{display:none}.wpbdp-page-admin-fees .wp-list-table .wpbdp-drag-handle{margin-right:15px;display:none}.wpbdp-page-admin-fees .purchase-gateways{margin-left:20px}.wpbdp-page-admin-fees .purchase-gateways .gateway{float:left;width:35%;margin:30px 20px 0 0}.wpbdp-page-admin-fees .purchase-gateways .gateway.installed{opacity:.5}.wpbdp-page-admin-fees .purchase-gateways .gateway a img.gateway-logo{height:40px;margin:0;padding:0;border:0}.wpbdp-page-admin-fees .purchase-gateways .gateway a.price{margin-top:10px;display:block;color:green;font-size:22px;font-weight:bold}.wpbdp-page-admin-fees .purchase-gateways .gateway .check-mark{font-size:150%;font-weight:bold;color:green}td.column-payment_status .status,td.column-sticky_status .status{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:90%}td.column-payment_status .status.ok{background:green}td.column-payment_status .paymentdata{font-size:85%}td.column-payment_status .paymentdata b{font-weight:normal}td.column-payment_status .paymentdata span{font-style:italic}td.column-sticky_status .status.notpaid{background:orange}td.column-sticky_status .status.pending{background:red;font-weight:bold}td.column-sticky_status .status.sticky{background:green}table.wp-list-table td .tag{background:#444;border-radius:2px;padding:2px 5px;color:#fff;font-size:90%;margin-right:2px}table.wp-list-table.formfields th.column-label{width:40%}table.wp-list-table.formfields th.column-tags,table.wp-list-table.formfields td.column-tags{width:200px}table.wp-list-table.formfields th.column-order,table.wp-list-table.formfields td.column-order{width:55px}table.wp-list-table.formfields td.column-order .wpbdp-drag-handle{visibility:hidden}table.wp-list-table.formfields tr:hover .wpbdp-drag-handle{visibility:visible}table.wp-list-table.formfields .tag.required{background:orange}table.wp-list-table.formfields .tag.in-excerpt{background:green}table.wp-list-table.formfields .tag.in-listing{background:green}table.wp-list-table.formfields tr.wpbdp-draggable-highlight{height:54px}table.wp-list-table.formfields tr.ui-sortable-helper{background:#fff;border:1px dashed #c1c1c1}#wpbdp-admin-page-field-form .iframe-confirm{display:none}#wpbdp-admin-page-field-form .iframe-confirm p{font-size:90%}#wpbdp-listing-fields input[type="text"]{width:70%}#wpbdp-listing-fields .wpbdp-form-field.url .wpbdp-form-field-html{padding-left:10px}#wpbdp-listing-fields .wpbdp-form-field.url input[type="text"]{display:block}#wpbdp-listing-fields #wpbdp-uploaded-images .wpbdp-image{padding:5px;width:150px;vertical-align:top;display:inline-block;zoom:1;*display:inline;min-height:210px;_height:210px}#wpbdp-listing-fields div.listing-images .image img{max-width:150px}ul#wpbusdirmanerrors{margin-left:20px}.wpbdp-csv-import-example{width:100%;padding:10px;display:block;background:#fff;border:solid 1px #ddd;font-size:90%;font-family:monospace;height:100%;white-space:pre}#wpbdp-csv-import-form input[type="file"]{border:0}table.wpbdp-csv-import-results,table.wpbdp-csv-import-warnings{width:100%}table.wpbdp-csv-import-results .line-no,table.wpbdp-csv-import-warnings .line-no{width:50px}table.wpbdp-csv-import-results td.line,table.wpbdp-csv-import-warnings td.line{font-family:monospace;font-size:90%}table.wpbdp-csv-import-results .error,table.wpbdp-csv-import-warnings .error{width:200px}table.wpbdp-csv-import-headers{width:100%}table.wpbdp-csv-import-headers td.field-is-required,table.wpbdp-csv-import-headers td.field-is-multivalued{text-align:center}table.wpbdp-csv-import-headers tbody tr{background:#f9f9f9}table.wpbdp-csv-import-headers tbody tr.alt{background:inherit}.wpbdp-form-field.image .preview{float:none}table.wpbdp-debug-section{width:90%}table.wpbdp-debug-section tbody tr{background:#efefef}table.wpbdp-debug-section tbody tr td{padding:3px 8px}table.wpbdp-debug-section tbody tr:nth-child(2n){background:#f5f5f5}#wpbdp-admin-debug-info-page textarea.test-ssl-results{display:block;width:90%;font-family:monospace;font-size:11px;height:100px}.wpbdp-page-admin-transactions .tag{font-size:95%}.wpbdp-page-admin-transactions .tag.approved{background:green}.wpbdp-page-admin-transactions .tag.pending{background:red}.wpbdp-page-admin-transactions .column-actions a.delete{color:#bc0b0b}.wpbdp-page-admin-transactions tr.more-details-row{background:#fff}.wpbdp-page-admin-transactions tr.more-details-row td{padding-left:40px;font-size:95%}.wpbdp-page-admin-transactions tr.more-details-row td dl dt{font-weight:bold}body.taxonomy-wpbdp_category .column-id{width:35px}.transaction-status-container{text-align:right;padding:5px}.wpbdp-progress-bar .progress-bar{margin-left:10px;display:inline-block;vertical-align:middle}.wpbdp-progress-bar .progress-bar-outer{min-width:200px;height:12px;border:solid 1px #36c;padding:0}.wpbdp-progress-bar .progress-bar-inner{height:100%;background:#9cf}.wpbdp-note{padding:5px 10px;background:#d7f5ff;margin:5px 0 20px 0;border:solid 1px #bad5df;border-radius:4px}.wpbdp-note p{margin:0}.wpbdp-note h1,.wpbdp-note h2,.wpbdp-note h3,.wpbdp-note h4{margin:0 0 8px 0}.wpbdp-note.error,.wpbdp-note.warning{background-color:#ffebe8;border-color:#C00}.directory-admin_page_wpbdp_admin_settings table.form-table th,.directory-admin_page_wpbdp_admin_settings table.form-table td{font-size:13px;line-height:1;padding:8px 20px}.directory-admin_page_wpbdp_admin_settings table.form-table th{min-width:150px}.directory-admin_page_wpbdp_admin_settings input,.directory-admin_page_wpbdp_admin_settings select{font-size:13px;line-height:1.0}.directory-admin_page_wpbdp_admin_settings textarea{font-size:13px;width:95%}.directory-admin_page_wpbdp_admin_settings select{display:block}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message{font-size:85%;color:#595959;font-style:italic}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message.ok{color:green}.directory-admin_page_wpbdp_admin_settings .license-activation .status-message.error{color:red}.directory-admin_page_wpbdp_admin_settings .group-error{border-top:solid 1px red}.directory-admin_page_wpbdp_admin_settings .group-warning{border-top:solid 1px yellow}.wpbdp-notice.dismissible{position:relative}.tag.paymentstatus.ok{background:green}.tag.paymentstatus.completed{background:green}.tag.paymentstatus.pending,.tag.paymentstatus.pending-abandonment{background:red}#wpbdp-admin-settings tr.disabled{opacity:.7}#wpbdp-admin-settings .text-fields-warning{font-size:90%;display:block;margin-bottom:2px}#wpbdp-admin-settings .wpbdp-settings-email{margin:5px 0 0 0;border:solid 1px #ccc;padding:5px;background:#fff}#wpbdp-admin-settings .wpbdp-settings-email .short-preview{color:#999;font-size:90%;height:45px;cursor:pointer;overflow:hidden}#wpbdp-admin-settings .wpbdp-settings-email .short-preview h4{margin:0 0 10px 0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview .edit-toggle{float:right}#wpbdp-admin-settings .wpbdp-settings-email .short-preview:hover .edit-toggle{visibility:visible}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dl{margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dt{font-weight:bold;margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email .short-preview dd{margin:0;padding:0 0 0 10px}#wpbdp-admin-settings .wpbdp-settings-email .editor{margin-left:10px;font-size:90%}#wpbdp-admin-settings .wpbdp-settings-email .editor table.form-table{margin:0;padding:0}#wpbdp-admin-settings .wpbdp-settings-email table.form-table th{padding-left:4px;padding-right:0;min-width:0;width:20%}#wpbdp-admin-settings .wpbdp-settings-email .editor input[type="text"]{width:70%}#wpbdp-admin-settings .wpbdp-settings-email .editor textarea{width:100%;min-height:150px}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholders{margin:10px 0 0 0}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder{font-size:90%}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder-separator{margin-top:10px}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder .placeholder-code{font-family:monospace;font-weight:bold}#wpbdp-admin-settings .wpbdp-settings-email .editor .placeholder .placeholder-description{font-style:italic}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons{margin:30px 0 0 0;text-align:right}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons .preview-email{float:left}#wpbdp-admin-settings .wpbdp-settings-email .editor .buttons .cancel{margin-right:10px}#wpbdp-admin-settings select#quick-search-fields{min-height:150px}#listing-metabox-transactions table.payments-list{width:100%;border-spacing:0}#listing-metabox-transactions table.payments-list tr.payment td{border-bottom:solid 1px #efefef;padding:2px 0}#listing-metabox-transactions table.payments-list tr.payment td.status{text-align:right}#listing-metabox-transactions table.payments-list tr.payment.completed td{color:green}#listing-metabox-transactions table.payments-list tr.payment.pending td{color:red}#listing-metabox-transactions table.payments-list tr.payment.rejected td{color:#bbb}#listing-metabox-transactions table.payments-list tr.payment.canceled td{text-decoration:line-through}#listing-metabox-transactions table.payments-list tr.payment a{text-decoration:none;color:inherit}#listing-metabox-transactions table.payments-list tr.payment a:hover{text-decoration:underline}.wpbdp-payment-details .tag{float:right}.wpbdp-payment-details .details,.wpbdp-payment-details .invoice,.wpbdp-payment-details .actions{clear:both;margin:20px 0}.wpbdp-payment-details .details dl dt{font-weight:bold}.wpbdp-payment-details table.wpbdp-payment-items-table{width:100%}.wpbdp-payment-details table.wpbdp-payment-items-table th{text-transform:uppercase}.wpbdp-payment-details table.wpbdp-payment-items-table td{border-top:1px solid #bbb;padding:6px 10px 6px 0}.wpbdp-payment-details .actions a.button-primary{color:#fff !important}.listing-fee-change .fee-selection .fee{padding-bottom:5px;margin-bottom:10px;border-bottom:dotted 1px #ccc;opacity:.85}.listing-fee-change .fee-selection .fee:hover{opacity:1.0}.listing-fee-change .fee-selection .fee .details{margin-left:10px}.listing-fee-change .fee-selection .fee .tag{float:right}.listing-fee-change .fee-selection .fee .choose-this{float:right}.wpbdp-drag-handle{background:red;width:6px;height:10px;display:inline-block;background:url('../images/drag-handle.png') 0 0;cursor:move;float:left;margin:5px 5px 0 0;vertical-align:middle}.wpbdp-draggable-highlight{background:#bbb}.wpbdp-module-compat-check .module-info{margin-bottom:3px}.wpbdp-module-compat-check .module-info .module-version,.wpbdp-module-compat-check .module-info .module-required{color:#666}.wpbdp-module-compat-check .module-info .module-version{margin-left:15px}.wpbdp-module-compat-check .module-info .module-version b{color:#333}.wpbdp-module-compat-check .module-info .module-required b{color:#900000}.toplevel_page_wpbdp_admin .welcome-message{padding:10px;font-size:105%}.toplevel_page_wpbdp_admin .welcome-message p{font-size:inherit}.toplevel_page_wpbdp_admin .welcome-message h4{font-size:120%}.toplevel_page_wpbdp_admin .welcome-message ul{list-style-position:inside;list-style-type:disc}.toplevel_page_wpbdp_admin ul.shortcuts{margin:auto}.toplevel_page_wpbdp_admin ul.shortcuts li{float:left;margin-right:10px}.toplevel_page_wpbdp_admin ul.shortcuts li.clear{margin:0}#wpbdp-uninstall-capture-form .reasons{margin-left:15px}#wpbdp-uninstall-capture-form .reasons .reason{margin-bottom:5px}#wpbdp-uninstall-capture-form textarea{margin:10px 0 0 0;width:50%;min-height:100px;display:none}.wpbdp-license-expired-warning .module-name{background:#fff9aa;padding:0 5px;color:#000}.wpbdp-license-expired-warning .dismiss{margin-right:10px}.wp-admin.widgets-php .widget-content span.help{color:#666}
{core → assets}/css/debug.css RENAMED
File without changes
{core → assets}/css/debug.min.css RENAMED
File without changes
{core → assets}/css/dnd-upload.css RENAMED
File without changes
{core → assets}/css/dnd-upload.min.css RENAMED
File without changes
{core → assets}/css/widgets.css RENAMED
File without changes
{core → assets}/css/widgets.min.css RENAMED
File without changes
{core → assets}/css/wpbdp-legacy.css RENAMED
File without changes
{core → assets}/css/wpbdp-legacy.min.css RENAMED
File without changes
{core → assets}/css/wpbdp.css RENAMED
@@ -339,32 +339,25 @@ form#wpbdmsearchform a.advanced-search-link {
339
  }
340
  .wpbdp-categories .cat-item {
341
  box-sizing: border-box;
342
- margin: 0 0 20px;
343
- }
344
- .wpbdp-categories .cat-item .cat-item {
345
- margin: 0;
346
- }
347
-
348
- .wpbdp-categories-small .cat-item,
349
- .wpbdp-categories-medium .cat-item,
350
- .wpbdp-categories-large .cat-item {
351
  float: left;
 
352
  width: 50%;
353
  }
354
- .wpbdp-categories-small .cat-item:nth-child(2n+1),
355
- .wpbdp-categories-medium .cat-item:nth-child(2n+1),
356
- .wpbdp-categories-large .cat-item:nth-child(2n+1) {
357
  clear: left;
358
  }
359
- .wpbdp-categories-small .cat-item:nth-child(2n),
360
- .wpbdp-categories-medium .cat-item:nth-child(2n),
361
- .wpbdp-categories-large .cat-item:nth-child(2n) {
362
  }
363
- .wpbdp-categories-small .cat-item .cat-item,
364
- .wpbdp-categories-medium .cat-item .cat-item,
365
- .wpbdp-categories-large .cat-item .cat-item {
366
  width: 100%;
367
  }
 
 
 
368
 
369
  /* submit listing page */
370
  .wpbdp-submit-page h3 {
@@ -572,22 +565,6 @@ ul.validation-errors li {
572
  color: #c00;
573
  }
574
 
575
- /*
576
- * Google Wallet gateway.
577
- */
578
-
579
- #googlewallet-buy img {
580
- border: none;
581
- box-shadow: none
582
- }
583
-
584
- .wpbdp-checkout input[type="image"] {
585
- padding: 0;
586
- border: none;
587
- box-shadow: none;
588
- width: auto;
589
- }
590
-
591
  /*
592
  * Manage Recurring Payments.
593
  */
@@ -1053,3 +1030,132 @@ body.business-directory #TB_secondLine {
1053
  /*
1054
  * }}
1055
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  }
340
  .wpbdp-categories .cat-item {
341
  box-sizing: border-box;
 
 
 
 
 
 
 
 
 
342
  float: left;
343
+ margin: 0 0 20px;
344
  width: 50%;
345
  }
346
+ .wpbdp-categories .cat-item:nth-child(2n+1) {
 
 
347
  clear: left;
348
  }
349
+ .wpbdp-categories .cat-item .cat-item {
350
+ margin: 0;
351
+ width: 100%;
352
  }
353
+
354
+ .wpbdp-categories-tiny .cat-item {
355
+ float: none;
356
  width: 100%;
357
  }
358
+ .wpbdp-categories-tiny .cat-item:nth-child(2n+1) {
359
+ clear: none;
360
+ }
361
 
362
  /* submit listing page */
363
  .wpbdp-submit-page h3 {
565
  color: #c00;
566
  }
567
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
568
  /*
569
  * Manage Recurring Payments.
570
  */
1030
  /*
1031
  * }}
1032
  */
1033
+
1034
+
1035
+ /*
1036
+ * Plan Selection styles from fees-revamp {{
1037
+ */
1038
+ .wpbdp-plan-info-box {
1039
+ padding: 10px;
1040
+ margin: 0 0 6px 0;
1041
+ border: 1px solid #d2d2d2;
1042
+ border-radius: 2px;
1043
+ background: #fafafa;
1044
+ }
1045
+
1046
+ .wpbdp-plan-selection-list .wpbdp-plan-info-box:last-child {
1047
+ margin-bottom: 0;
1048
+ }
1049
+
1050
+ .wpbdp-plan-info-box .wpbdp-plan-duration,
1051
+ .wpbdp-plan-info-box .wpbdp-plan-details,
1052
+ .wpbdp-plan-info-box .wpbdp-plan-price {
1053
+ float: left;
1054
+ box-sizing: border-box;
1055
+ }
1056
+
1057
+ .wpbdp-plan-info-box .wpbdp-plan-duration {
1058
+ width: 15%;
1059
+ text-align: center;
1060
+ }
1061
+
1062
+ .wpbdp-plan-info-box .wpbdp-plan-duration-amount {
1063
+ font-size: 34px;
1064
+ font-weight: bold;
1065
+ display: block;
1066
+ line-height: 1.0em;
1067
+ }
1068
+
1069
+ .wpbdp-plan-info-box .wpbdp-plan-duration-period {
1070
+ font-size: 24px;
1071
+ display: block;
1072
+ line-height: 1.0em;
1073
+ }
1074
+
1075
+ .wpbdp-plan-info-box .wpbdp-plan-details {
1076
+ width: 60%;
1077
+ padding: 0 10px;
1078
+ }
1079
+
1080
+ .wpbdp-plan-info-box .wpbdp-plan-description {
1081
+ margin: 0 0 10px 0;
1082
+ }
1083
+
1084
+ .wpbdp-plan-info-box .wpbdp-plan-label {
1085
+ font-size: 1.1em;
1086
+ font-weight: bold;
1087
+ margin-bottom: 10px;
1088
+ }
1089
+
1090
+ .wpbdp-plan-info-box .wpbdp-plan-feature-list {
1091
+ margin: 0 0 0 10px;
1092
+ padding: 0 0 0 10px;
1093
+ }
1094
+
1095
+ .wpbdp-plan-info-box .wpbdp-plan-details p {
1096
+ margin: 0;
1097
+ }
1098
+
1099
+ .wpbdp-plan-info-box .wpbdp-plan-feature-list li {
1100
+ margin: 0;
1101
+ }
1102
+
1103
+ .wpbdp-plan-info-box .wpbdp-plan-price {
1104
+ width: 25%;
1105
+ }
1106
+
1107
+ .wpbdp-plan-info-box .wpbdp-plan-price label {
1108
+ font-size: 20px;
1109
+ border: 1px solid #f3f3f3;
1110
+ background: #fdfdfd;
1111
+ border-radius: 2px;
1112
+ display: block;
1113
+ padding: 4px 8px;
1114
+ }
1115
+
1116
+ .wpbdp-plan-info-box:not(.display-only) .wpbdp-plan-price label {
1117
+ cursor: pointer;
1118
+
1119
+ &:hover {
1120
+ border-color: #d0d0d0;
1121
+ background: #fff;
1122
+ }
1123
+ }
1124
+
1125
+ .wpbdp-plan-info-box .wpbdp-plan-price label:hover {
1126
+ }
1127
+
1128
+ .wpbdp-plan-info-box .wpbdp-plan-price label input {
1129
+ margin: 0 4px 0 0;
1130
+ vertical-align: 2px;
1131
+ }
1132
+
1133
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration,
1134
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-details,
1135
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-price {
1136
+ width: 100%;
1137
+ }
1138
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration-amount,
1139
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration-period {
1140
+ display: inline;
1141
+ }
1142
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-details {
1143
+ padding: 0 0 4pt;
1144
+ }
1145
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-label {
1146
+ font-size: 1.5em;
1147
+ margin-bottom: 5px;
1148
+ }
1149
+ .wpbdp-fee-options-for-category-tiny .wpbdp-plan-description {
1150
+ margin-bottom: 5px;
1151
+ }
1152
+
1153
+ .wpbdp-fee-options-for-category-small .wpbdp-plan-details {
1154
+ width: 50%;
1155
+ }
1156
+ .wpbdp-fee-options-for-category-small .wpbdp-plan-price {
1157
+ width: 35%;
1158
+ }
1159
+ /*
1160
+ * }}
1161
+ */
assets/css/wpbdp.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .wpbdp-cf:before,.wpbdp-cf:after,.cf:before,.cf:after{content:" ";display:table}.wpbdp-cf:after,.cf:after{clear:both}.wpbdp-cf,.cf{*zoom:1}form#wpbdmsearchform{padding:12px 0;text-align:center}form#wpbdmsearchform input{display:inline}form#wpbdmsearchform .wpbdmsearchbutton{margin-top:5px}form#wpbdmsearchform a.advanced-search-link{font-size:70%;display:block}#wpbdp-search-form{padding-left:10px}#wpbdp-search-form .wpbdp-search-filter{margin-bottom:10px;clear:both}#wpbdp-search-form .wpbdp-search-filter>.wpbdp-search-field-label{display:block;width:40%;float:left}#wpbdp-search-form .wpbdp-search-filter>div.field{display:block;width:60%;margin-left:40%;padding-left:5px}#wpbdp-search-form .wpbdp-search-filter>div.field>input[type="text"]{width:90%}#wpbdp-search-form .wpbdp-search-filter>div.field>select{width:90%}#wpbdp-search-form input[type="submit"]{float:none;margin:auto}.wpbdp-pagination{margin:25px 0 0 0}.wpbdp-pagination .next{float:right}.listing-actions form{margin:0;padding:0;display:inline}.listing-actions input{margin:0}.listing-actions input.delete-listing{margin-left:5px;margin-right:30px;color:#f00 !important}.wpbdp-with-button-styles .listing-actions .wpbdp-button{padding:5px 10px;font-size:11px;text-decoration:none;background-color:#e6e6e6;color:#7c7c7c;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-ms-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-webkit-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-o-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:linear-gradient(top,#f4f4f4,#e6e6e6);border:1px solid #d2d2d2;border-radius:3px;box-shadow:0 1px 2px rgba(64,64,64,0.1);margin-right:3px}.wpbdp-with-button-styles .listing-actions .wpbdp-button:hover{color:#5e5e5e;background-color:#ebebeb;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-ms-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-webkit-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-o-linear-gradient(top,#f9f9f9,#ebebeb);background-image:linear-gradient(top,#f9f9f9,#ebebeb)}.wpbdp-with-button-styles .listing-actions .wpbdp-button.delete-listing{margin-left:20px;color:red}.wpbdp-listing .listing-details .field-value{margin-bottom:10px;width:100%;float:none}.wpbdmsingledetails .singledetailsview .field-value{margin-bottom:10px}.field-value label{color:#444;font-weight:bold}.wpbdp-listing-excerpt{padding:10px;border-bottom:dotted 1px #ddd}.wpbdp-listing-excerpt.odd{background:#eee}.wpbdp-listing-excerpt.sticky{background:#fff0cf;border-bottom:solid 1px #b37800}.wpbdp-listing-excerpt .listing-thumbnail{float:right;margin:0 10px 0 0}.wpbdp-listing-excerpt .listing-actions{margin-top:15px}.wpbdp-listing-single .listing-actions{margin-bottom:25px}.wpbdp-listing-single.sticky{margin-top:30px}.wpbdp-listing-single .stickytag{float:right;margin-top:-68px}.wpbdp-listing-single .stickytag img{border:0;box-shadow:none;background:transparent}.wpbdp-listing-single .listing-title{padding:2px 8px;background:#efefef;border:dotted 1px #ddd;margin-bottom:7px}.wpbdp-listing-single .listing-title h2{clear:none;margin:0}.wpbdp-listing-single .main-image{float:right;margin-left:10px;padding:5px}.wpbdp-listing-single .main-image a{position:relative !important}.wpbdp-listing-single .main-image img{border:solid 1px #333}.wpbdp-listing-single .extra-images{margin-top:10px;clear:both}.wpbdp-listing-single .extra-images ul{margin:0 auto;width:100%}.wpbdp-listing-single .extra-images ul li{list-style-type:none;display:inline;margin-left:5px}.wpbdp-listing-single .extra-images ul li img{display:inline;vertical-align:top;margin:0 auto;max-width:150px;border:solid 1px #333}.wpbdp-listing .social-fields{margin:20px 0}.wpbdp-listing .social-field{margin:5px 0;height:20px;vertical-align:middle}.social-field.facebook .fb-like>span{overflow:visible !important;width:450px !important;vertical-align:top !important}@media screen and (max-width:500px){.social-field.facebook .fb-like>span{width:100% !important}}.wpbdp-listing-contact-form{margin-top:20px;border-top:dotted 1px #ddd;padding-top:20px;padding-left:10px}.wpbdp-listing-contact-form .send-message-button{margin-left:-10px}.wpbdp-listing-contact-form h3{margin-left:-10px}.wpbdp-listing-contact-form textarea{width:98% !important}.wpbdp-listing .comments{margin-top:20px}.wpbdp-bar{background:#f7f7f7;margin:10px 0 20px 0;padding:5px 10px}.wpbdp-bar:before,.wpbdp-bar:after{content:" ";display:table;clear:both}.wpbdp-bar .wpbdp-search-form{margin:0;padding:0 !important;margin-left:50%}.wpbdp-main-links a{margin-right:15px}.wpbdp-bar .left{float:left;text-align:center}.wpbdp-bar .right{width:300px;float:right}.wpbdp-listings-sort-options{font-size:90%;margin:5px 0;text-align:right}.wpbdp-listings-sort-options .current{font-weight:bold}#wpbdp-categories{clear:both}.wpbdp-categories{margin:0;padding-left:20px}.wpbdp-categories .cat-item{box-sizing:border-box;float:left;margin:0 0 20px;width:50%}.wpbdp-categories .cat-item:nth-child(2n+1){clear:left}.wpbdp-categories .cat-item .cat-item{margin:0;width:100%}.wpbdp-categories-tiny .cat-item{float:none;width:100%}.wpbdp-categories-tiny .cat-item:nth-child(2n+1){clear:none}.wpbdp-submit-page h3{margin-bottom:10px}.wpbdp-submit-page .wpbdmp{margin:0}.wpbdp-submit-page legend{font-size:85%;margin-bottom:20px}.wpbdp-submit-page .wpbdp-form-field{margin-bottom:8px}.wpbdp-submit-page .wpbdp-form-field .wpbdmcheckboxclass checkbox{margin-left:0}.wpbdp-submit-page .wpbdp-form-field.required .wpbdp-form-field-label:after{content:' *';font-size:80%}.wpbdp-submit-page .wpbdp-form-field-type-textarea textarea{min-width:90%;min-height:50px}.wpbdp-submit-page .wpbdp-form-field-association-content textarea{min-height:80px}.wpbdp-form-field .field-description{font-size:90%;color:#696969;float:right}.wpbdp-form-field span.sublabel{font-size:90%;margin-left:10px;margin-right:10px}.wpbdp-form-field.image a.delete{margin-left:10px}ul.validation-errors{margin:15px 0 15px 0}ul.validation-errors li{color:red;margin:3px 0;list-style-position:inside}.wpbdp-submit-page.step-fees h4{background:#ddd;color:#333;padding:10px;margin-bottom:5px}.wpbdp-submit-page.step-images #image-upload-form{margin:15px 10px}.wpbdp-submit-page.step-images .wpbdp-image{float:left;border-bottom:dotted 1px #efefef;margin-right:10px;margin-bottom:10px;vertical-align:top}.wpbdp-submit-page.step-images .wpbdp-image img{vertical-align:top;text-align:center;max-width:150px;height:auto}.wpbdp-submit-page.step-images .wpbdp-image-draggable-highlight{width:160px;height:160px;margin:0 10px;background:red;float:left}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-dnd-area{float:left;width:72%}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions{float:right;width:25%;color:#666}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions dl{margin:0}.wpbdp-submit-page.step-images #image-upload-form-no-js{width:0;height:0;overflow:hidden;visibility:hidden}.wpbdp-submit-page.step-images .wpbdp-image .delete-image{color:red}.wpbdp-submit-page .upgrade-to-featured-option{border:solid 1px #666;padding:5px 10px;margin:25px 0 25px 0;font-size:90%}.wpbdp-msg{font-size:85%;padding:.6em;border:solid 1px #e6db55;color:#555;margin:5px 0;background:#fffbcc;border-radius:3px}.wpbdp-msg.error{background-color:#ffebe8;border-color:#C00}.wpbdp-submit-page table.fee-options{width:100%}.wpbdp-submit-page table.fee-options th,.wpbdp-submit-page table.fee-options td{text-align:center}.wpbdp-submit-page table.fee-options td.fee-label,.wpbdp-submit-page table.fee-options tr.fee-description td{text-align:left}.wpbdp-submit-page table.fee-options .fee-selection{width:5%}.wpbdp-submit-page table.fee-options tr.fee-option td.fee-label{font-weight:bold}.wpbdp-submit-page table.fee-options td.fee-description{font-size:90%;color:#666}#wpbdp-renewal-page .do-not-renew-listing{margin:40px 0;border:solid 1px #eee;font-size:95%}#wpbdp-renewal-page .do-not-renew-listing .header{background:#bc0b0b;color:#fff;text-align:center;font-weight:bold;padding:2px 0}#wpbdp-renewal-page .do-not-renew-listing input[type="submit"]{color:#900000}.wpbdp-recaptcha-error{color:red}#wpbdp-delete-listing-page form.confirm-form{margin-top:30px}#wpbdp-delete-listing-page input.delete-listing-confirm{margin-left:20px;color:#c00}table#wpbdp-manage-recurring th.listing-title,table#wpbdp-manage-recurring td.listing-title{min-width:200px}table#wpbdp-manage-recurring a.cancel-subscription{color:red}#wpbdp-manage-recurring-cancel dl dd{margin-left:10px}.wpbdp-cc-form{padding:0;width:90%}.wpbdp-cc-form h4{margin:0}.wpbdp-cc-field input{width:auto}.wpbdp-cc-field label{display:block;font-weight:bold;text-align:right;padding-right:10px}#wpbdp-billing-information .billing-info-section h4{margin:10px 0 5px 0}#wpbdp-billing-information .billing-info-section table{margin:1.75em 0}#wpbdp-billing-information #wpbdp-billing-field-exp,#wpbdp-billing-information #wpbdp-billing-field-exp-year{width:40%;display:inline}#wpbdp-billing-information .form-buttons{margin:15px 0}.wpbdp-show-on-mobile{display:none !important}@media screen and (max-width:500px){.wpbdp-show-on-mobile{display:inline !important}.wpbdp-hide-on-mobile{display:none !important}.wpbdp-bar form.wpbdp-search-form{display:block;margin-left:0;margin-top:10px}.wpbdp-bar form.wpbdp-search-form #intextbox{margin-bottom:5px;padding:4px}.wpbdp-bar form.wpbdp-search-form input[type="text"]{padding:4px 0;margin:0 0 2px 0}.wpbdp-listings-sort-options{font-size:90%}.wpbdp-listing.wpbdp-listing{font-size:90%}.wpbdp-listing.wpbdp-listing-excerpt .field-value>label{display:block}.wpbdp-listing.wpbdp-listing-excerpt .listing-thumbnail,.wpbdp-listing.wpbdp-listing-single .listing-thumbnail{float:none;padding:5px}.wpbdp-listing.wpbdp-listing-excerpt .listing-details,.wpbdp-listing.wpbdp-listing-single .listing-details{margin:0 5px;float:none;display:block}.wpbdp-listing .listing-actions input{font-size:85%}.wpbdp-listing .listing-actions input.back-to-dir{float:right}.wpbdp-listing.wpbdp-listing-single .main-image{display:block;float:none;padding:0;margin:0 0 10px 0;text-align:center;max-width:90%}.wpbdp-listing.wpbdp-listing-single .field-value>label{display:block}.wpbdp-submit-page.step-images #image-upload-dnd-area{font-size:90%;float:none !important;width:100% !important}.wpbdp-submit-page.step-images .dnd-area-inside-error{margin-top:30px}.wpbdp-submit-page.step-images #image-upload-conditions{width:100% !important;float:none !important;font-size:90%}.wpbdp-submit-page.step-images #image-upload-conditions dl{margin:0;padding:0}.wpbdp-submit-page.step-images #image-upload-conditions dl dt{margin:0;margin-right:5px;padding:0;float:left}.wpbdp-submit-page.step-images #image-upload-conditions dl dd{margin:0;padding:0;display:block}.wpbdp-submit-page.step-images .wpbdp-image img{max-width:50%}.wpbdp-listings-sort-options.wpbdp-show-on-mobile{margin-bottom:10px}}body.business-directory #TB_ImageOff .screen-reader-text,body.business-directory #TB_closeWindowButton .screen-reader-text{visibility:hidden}body.business-directory #TB_next{float:right}body.business-directory #TB_prev{float:left}body.business-directory #TB_caption{float:none !important}body.business-directory #TB_closeWindow{padding:0;height:0}body.business-directory #TB_closeWindow .screen-reader-text{display:none}body.business-directory #TB_secondLine{text-align:center}.wpbdp-form-row label{display:block}.wpbdp-form-row.wpbdp-form-textfield input[type="text"]{width:400px}.wpbdp-main-box,.wpbdp-main-box .box-row,.wpbdp-main-box .box-col{box-sizing:border-box}.wpbdp-main-box{background:#f7f7f7;margin:10px 0 20px 0;border-radius:4px;padding:10px;width:100%}.wpbdp-main-box .box-row{margin-bottom:4px}.wpbdp-main-box .box-col{margin-bottom:4px;width:100%}.wpbdp-main-box .box-col input{width:100%}.wpbdp-main-box .submit-btn input[type="submit"]{margin-top:0}.wpbdp-main-box .advanced-search-link{border:0;box-shadow:none;display:block;font-size:11px;text-align:right;text-decoration:none}.wpbdp-main-box-medium .box-col,.wpbdp-main-box-large .box-col{float:left}.wpbdp-main-box-medium .search-fields>.cols-1 .box-col,.wpbdp-main-box-large .search-fields>.cols-1 .box-col{width:100%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col,.wpbdp-main-box-large .search-fields>.cols-2 .box-col{width:50%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-2 .box-col:first-child{padding-right:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col:last-child,.wpbdp-main-box-large .search-fields>.cols-2 .box-col:last-child{padding-left:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col,.wpbdp-main-box-large .search-fields>.cols-3 .box-col{padding-left:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-3 .box-col:first-child{padding-right:5px}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-3 .box-col:first-child{padding:0;width:100%}.wpbdp-main-box-large .box-row{margin-bottom:0}.wpbdp-main-box-large .search-fields{padding-right:5px;width:78%}.wpbdp-main-box-large .submit-btn{padding-left:5px;width:22%}.wpbdp-main-links{text-align:right}.wpbdp-main-links .button{margin:0 5px}.wpbdp-main-links .button:first-child{margin-left:0}.wpbdp-main-links .button:last-child{margin-right:0}.wpbdp-main-links-tiny .wpbdp-main-links .button{padding-top:10px;padding-bottom:10px;width:100%;margin:0 0 4px}.wpbdp-main-links-small .button{padding-top:10px;padding-bottom:10px;width:100%;margin:0 0 4px}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button{width:49%}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button:first-child{margin-right:1%}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button:last-child{margin-left:1%}.wpbdp-main-links-small .wpbdp-main-links-3-buttons .button:nth-child(2n){width:49%;margin-top:1%;margin-right:1%}.wpbdp-main-links-small .wpbdp-main-links-3-buttons .button:nth-child(2n+3){width:49%;margin-top:1%;margin-left:1%}.wpbdp-main-links-medium .wpbdp-main-links .button{padding-top:8px;padding-bottom:8px}.wpbdp-main-links-large .button{margin:0 3px}.single-wpbdp_listing .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-show_category .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-show_tag .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-search .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-submit_listing .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-taxonomy .wpbdp-view-content-wrapper header.entry-header{display:none}.wpbdp-wp-theme-graphene.single-wpbdp_listing h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-show_category h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-show_tag h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-search h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-submit_listing h1.post-title{display:none}.wpbdp-wp-theme-genesis.wpbdp-view-show_category .archive-description,.wpbdp-wp-theme-genesis.wpbdp-view-show_tag .archive-description{display:none}.wpbdp-wp-theme-hmtpro5.wpbdp-view-show_category .post-details,.wpbdp-wp-theme-hmtpro5.wpbdp-view-show_tag .post-details{display:none}.wpbdp-wp-theme-atahualpa.wpbdp-view-show_category .post-footer,.wpbdp-wp-theme-atahualpa.wpbdp-view-show_tag .post-footer,.wpbdp-wp-theme-atahualpa.wpbdp-view-show_listing .post-footer{display:none}.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_category .entry-content .featured-image,.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_tag .entry-content .featured-image,.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_listing .entry-content .featured-image{display:none}.wpbdp-login-form h2,.wpbdp-login-form .wpbdp-login-form-extra-links{text-align:center}.wpbdp-login-form form{margin:0 auto;width:320px}.wpbdp-login-form p{margin-bottom:0}.wpbdp-login-form .login-username input,.wpbdp-login-form .login-password input{display:block;width:100%}.wpbdp-plan-info-box{padding:10px;margin:0 0 6px 0;border:1px solid #d2d2d2;border-radius:2px;background:#fafafa}.wpbdp-plan-selection-list .wpbdp-plan-info-box:last-child{margin-bottom:0}.wpbdp-plan-info-box .wpbdp-plan-duration,.wpbdp-plan-info-box .wpbdp-plan-details,.wpbdp-plan-info-box .wpbdp-plan-price{float:left;box-sizing:border-box}.wpbdp-plan-info-box .wpbdp-plan-duration{width:15%;text-align:center}.wpbdp-plan-info-box .wpbdp-plan-duration-amount{font-size:34px;font-weight:bold;display:block;line-height:1em}.wpbdp-plan-info-box .wpbdp-plan-duration-period{font-size:24px;display:block;line-height:1em}.wpbdp-plan-info-box .wpbdp-plan-details{width:60%;padding:0 10px}.wpbdp-plan-info-box .wpbdp-plan-description{margin:0 0 10px 0}.wpbdp-plan-info-box .wpbdp-plan-label{font-size:1.1em;font-weight:bold;margin-bottom:10px}.wpbdp-plan-info-box .wpbdp-plan-feature-list{margin:0 0 0 10px;padding:0 0 0 10px}.wpbdp-plan-info-box .wpbdp-plan-details p{margin:0}.wpbdp-plan-info-box .wpbdp-plan-feature-list li{margin:0}.wpbdp-plan-info-box .wpbdp-plan-price{width:25%}.wpbdp-plan-info-box .wpbdp-plan-price label{font-size:20px;border:1px solid #f3f3f3;background:#fdfdfd;border-radius:2px;display:block;padding:4px 8px}.wpbdp-plan-info-box:not(.display-only) .wpbdp-plan-price label{cursor:pointer;&:hover{border-color:#d0d0d0;background:#fff}}.wpbdp-plan-info-box .wpbdp-plan-price label input{margin:0 4px 0 0;vertical-align:2px}.wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration,.wpbdp-fee-options-for-category-tiny .wpbdp-plan-details,.wpbdp-fee-options-for-category-tiny .wpbdp-plan-price{width:100%}.wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration-amount,.wpbdp-fee-options-for-category-tiny .wpbdp-plan-duration-period{display:inline}.wpbdp-fee-options-for-category-tiny .wpbdp-plan-details{padding:0 0 4pt}.wpbdp-fee-options-for-category-tiny .wpbdp-plan-label{font-size:1.5em;margin-bottom:5px}.wpbdp-fee-options-for-category-tiny .wpbdp-plan-description{margin-bottom:5px}.wpbdp-fee-options-for-category-small .wpbdp-plan-details{width:50%}.wpbdp-fee-options-for-category-small .wpbdp-plan-price{width:35%}
{admin/resources → assets/images}/2checkout-gateway-module.png RENAMED
File without changes
{core → assets}/images/default-image-big.gif RENAMED
File without changes
{core → assets}/images/default.png RENAMED
File without changes
{admin/resources → assets/images}/drag-handle.png RENAMED
File without changes
{core → assets}/images/featuredlisting.png RENAMED
File without changes
{core → assets}/images/linkedin.png RENAMED
File without changes
{admin/resources → assets/images}/menuico.png RENAMED
File without changes
{admin/resources → assets/images}/payfast-payment-module.png RENAMED
File without changes
{admin/resources → assets/images}/paypal-gateway-module.png RENAMED
File without changes
{admin/resources → assets/images}/stripe-payment-module.png RENAMED
File without changes
admin/js/csv-import.js → assets/js/admin-csv-import.js RENAMED
File without changes
admin/js/csv-import.min.js → assets/js/admin-csv-import.min.js RENAMED
File without changes
admin/resources/export.js → assets/js/admin-export.js RENAMED
File without changes
admin/resources/export.min.js → assets/js/admin-export.min.js RENAMED
File without changes
admin/js/listing.js → assets/js/admin-listing.js RENAMED
File without changes
admin/js/listing.min.js → assets/js/admin-listing.min.js RENAMED
File without changes
admin/resources/manual-upgrade.js → assets/js/admin-manual-upgrade.js RENAMED
File without changes
admin/resources/manual-upgrade.min.js → assets/js/admin-manual-upgrade.min.js RENAMED
File without changes
admin/js/themes.js → assets/js/admin-themes.js RENAMED
File without changes
admin/js/themes.min.js → assets/js/admin-themes.min.js RENAMED
File without changes
{admin/resources → assets/js}/admin.js RENAMED
File without changes
{admin/resources → assets/js}/admin.min.js RENAMED
File without changes
{core → assets}/js/debug.js RENAMED
File without changes
{core → assets}/js/debug.min.js RENAMED
File without changes
{core → assets}/js/dnd-upload.js RENAMED
File without changes
{core → assets}/js/dnd-upload.min.js RENAMED
File without changes
{core → assets}/js/recaptcha.js RENAMED
File without changes
{core → assets}/js/recaptcha.min.js RENAMED
File without changes
{core → assets}/js/submit-listing.js RENAMED
File without changes
{core → assets}/js/submit-listing.min.js RENAMED
File without changes
{core → assets}/js/wpbdp.js RENAMED
File without changes
{core → assets}/js/wpbdp.min.js RENAMED
File without changes
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.10
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.10' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
@@ -45,8 +45,8 @@ require_once( WPBDP_PATH . 'core/class-wpbdp.php' );
45
  require_once( WPBDP_PATH . 'core/api.php' );
46
  require_once( WPBDP_PATH . 'core/compatibility/class-compat.php' );
47
  require_once( WPBDP_PATH . 'core/utils.php' );
48
- require_once( WPBDP_PATH . 'admin/tracking.php' );
49
- require_once( WPBDP_PATH . 'admin/class-admin.php' );
50
  require_once( WPBDP_PATH . 'core/class-settings.php' );
51
  require_once( WPBDP_PATH . 'core/form-fields.php' );
52
  require_once( WPBDP_PATH . 'core/payment.php' );
@@ -370,6 +370,9 @@ class WPBDP_Plugin {
370
  return $newrules + $rules;
371
  }
372
 
 
 
 
373
  public function _wp_loaded() {
374
  if ($rules = get_option( 'rewrite_rules' )) {
375
  foreach ($this->get_rewrite_rules() as $k => $v) {
@@ -895,8 +898,8 @@ class WPBDP_Plugin {
895
  );
896
 
897
  // Drag & Drop.
898
- wp_register_style( 'wpbdp-dnd-upload', WPBDP_URL . 'core/css/dnd-upload' . ( ! $this->is_debug_on() ? '.min' : '' ) . '.css' );
899
- wp_register_script( 'wpbdp-dnd-upload', WPBDP_URL . 'core/js/dnd-upload' . ( ! $this->is_debug_on() ? '.min' : '' ) . '.js',
900
  array( 'jquery-file-upload' ) );
901
  }
902
 
@@ -931,20 +934,16 @@ class WPBDP_Plugin {
931
  $only_in_plugin_pages = true;
932
  $enqueue_scripts_and_styles = apply_filters( 'wpbdp_should_enqueue_scripts_and_styles', $this->is_plugin_page() );
933
 
934
- wp_enqueue_style( 'wpbdp-widgets', WPBDP_URL . 'core/css/widgets.min.css' );
935
 
936
  if ( $only_in_plugin_pages && ! $enqueue_scripts_and_styles )
937
  return;
938
 
939
- if ( $this->is_debug_on() ) {
940
- wp_register_style( 'wpbdp-base-css', WPBDP_URL . 'core/css/wpbdp.css' );
941
- } else {
942
- wp_register_style( 'wpbdp-base-css', WPBDP_URL . 'core/css/wpbdp.min.css' );
943
- }
944
 
945
  wp_register_script(
946
  'wpbdp-js',
947
- WPBDP_URL . 'core/js/wpbdp' . ( ! $this->is_debug_on() ? '.min' : '' ) . '.js',
948
  array( 'jquery', 'jquery-breakpoints' )
949
  );
950
 
@@ -962,7 +961,7 @@ class WPBDP_Plugin {
962
 
963
  // enable legacy css (should be removed in a future release) XXX
964
  if (_wpbdp_template_mode('single') == 'template' || _wpbdp_template_mode('category') == 'template' )
965
- wp_enqueue_style('wpbdp-legacy-css', WPBDP_URL . 'core/css/wpbdp-legacy.min.css');
966
  }
967
 
968
  /**
@@ -1412,7 +1411,7 @@ class WPBDP_Plugin {
1412
  if ( $img = wp_get_attachment_image_src( $thumbnail_id, 'wpbdp-large' ) )
1413
  echo '<meta property="og:image" content="' . $img[0] . '" />';
1414
  } else {
1415
- $image_url = WPBDP_URL . 'core/images/default-image-big.gif';
1416
  echo '<meta property="og:image" content="' . $image_url . '" />';
1417
  }
1418
  }
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.11.1
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.11' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
45
  require_once( WPBDP_PATH . 'core/api.php' );
46
  require_once( WPBDP_PATH . 'core/compatibility/class-compat.php' );
47
  require_once( WPBDP_PATH . 'core/utils.php' );
48
+ require_once( WPBDP_PATH . 'includes/admin/tracking.php' );
49
+ require_once( WPBDP_PATH . 'includes/admin/class-admin.php' );
50
  require_once( WPBDP_PATH . 'core/class-settings.php' );
51
  require_once( WPBDP_PATH . 'core/form-fields.php' );
52
  require_once( WPBDP_PATH . 'core/payment.php' );
370
  return $newrules + $rules;
371
  }
372
 
373
+ /**
374
+ * TODO: Why do we generate rewrite rules on every request?
375
+ */
376
  public function _wp_loaded() {
377
  if ($rules = get_option( 'rewrite_rules' )) {
378
  foreach ($this->get_rewrite_rules() as $k => $v) {
898
  );
899
 
900
  // Drag & Drop.
901
+ wp_register_style( 'wpbdp-dnd-upload', WPBDP_URL . 'assets/css/dnd-upload.min.css' );
902
+ wp_register_script( 'wpbdp-dnd-upload', WPBDP_URL . 'assets/js/dnd-upload.min.js',
903
  array( 'jquery-file-upload' ) );
904
  }
905
 
934
  $only_in_plugin_pages = true;
935
  $enqueue_scripts_and_styles = apply_filters( 'wpbdp_should_enqueue_scripts_and_styles', $this->is_plugin_page() );
936
 
937
+ wp_enqueue_style( 'wpbdp-widgets', WPBDP_URL . 'assets/css/widgets.min.css' );
938
 
939
  if ( $only_in_plugin_pages && ! $enqueue_scripts_and_styles )
940
  return;
941
 
942
+ wp_register_style( 'wpbdp-base-css', WPBDP_URL . 'assets/css/wpbdp.min.css' );
 
 
 
 
943
 
944
  wp_register_script(
945
  'wpbdp-js',
946
+ WPBDP_URL . 'assets/js/wpbdp.min.js',
947
  array( 'jquery', 'jquery-breakpoints' )
948
  );
949
 
961
 
962
  // enable legacy css (should be removed in a future release) XXX
963
  if (_wpbdp_template_mode('single') == 'template' || _wpbdp_template_mode('category') == 'template' )
964
+ wp_enqueue_style('wpbdp-legacy-css', WPBDP_URL . 'assets/css/wpbdp-legacy.min.css');
965
  }
966
 
967
  /**
1411
  if ( $img = wp_get_attachment_image_src( $thumbnail_id, 'wpbdp-large' ) )
1412
  echo '<meta property="og:image" content="' . $img[0] . '" />';
1413
  } else {
1414
+ $image_url = WPBDP_URL . 'assets/images/default-image-big.gif';
1415
  echo '<meta property="og:image" content="' . $image_url . '" />';
1416
  }
1417
  }
core/class-listings-api.php CHANGED
@@ -129,8 +129,11 @@ class WPBDP_Listings_API {
129
  if ( WPBDP_POST_TYPE != get_post_type( $post ) )
130
  return $url ;
131
 
132
- if ( wpbdp_rewrite_on() && ! empty( $post->post_name ) )
133
- $url = remove_query_arg( array( 'post_type', 'p' ), $url );
 
 
 
134
 
135
  return $url;
136
  }
129
  if ( WPBDP_POST_TYPE != get_post_type( $post ) )
130
  return $url ;
131
 
132
+ if ( wpbdp_rewrite_on() ) {
133
+ if ( ! wpbdp_get_option( 'permalinks-no-id' ) || ! empty( $post->post_name ) ) {
134
+ $url = remove_query_arg( array( 'post_type', 'p' ), $url );
135
+ }
136
+ }
137
 
138
  return $url;
139
  }
core/class-recaptcha.php CHANGED
@@ -36,7 +36,7 @@ class WPBDP_reCAPTCHA {
36
  return '';
37
 
38
  wp_enqueue_script( 'wpbdp-recaptcha',
39
- WPBDP_URL . 'core/js/recaptcha' . ( ! $wpbdp->is_debug_on() ? '.min' : '' ) . '.js',
40
  false,
41
  true );
42
  wp_enqueue_script( 'google-recaptcha',
36
  return '';
37
 
38
  wp_enqueue_script( 'wpbdp-recaptcha',
39
+ WPBDP_URL . 'assets/js/recaptcha.min.js',
40
  false,
41
  true );
42
  wp_enqueue_script( 'google-recaptcha',
core/class-settings.php CHANGED
@@ -583,6 +583,7 @@ EOF;
583
  array('HUF', _x('Hungarian Forint (HUF)', 'admin settings', 'WPBDM')),
584
  array('ILS', _x('Israeli New Shequel (ILS)', 'admin settings', 'WPBDM')),
585
  array('JPY', _x('Japanese Yen (JPY)', 'admin settings', 'WPBDM')),
 
586
  array('MYR', _x('Malasian Ringgit (MYR)', 'admin settings', 'WPBDM')),
587
  array('MXN', _x('Mexican Peso (MXN)', 'admin settings', 'WPBDM')),
588
  array('NOK', _x('Norwegian Krone (NOK)', 'admin settings', 'WPBDM')),
583
  array('HUF', _x('Hungarian Forint (HUF)', 'admin settings', 'WPBDM')),
584
  array('ILS', _x('Israeli New Shequel (ILS)', 'admin settings', 'WPBDM')),
585
  array('JPY', _x('Japanese Yen (JPY)', 'admin settings', 'WPBDM')),
586
+ array( 'MAD', _x( 'Moroccan Dirham (MAD)', 'admin settings', 'WPBDM' ) ),
587
  array('MYR', _x('Malasian Ringgit (MYR)', 'admin settings', 'WPBDM')),
588
  array('MXN', _x('Mexican Peso (MXN)', 'admin settings', 'WPBDM')),
589
  array('NOK', _x('Norwegian Krone (NOK)', 'admin settings', 'WPBDM')),
core/class-wpbdp.php CHANGED
@@ -39,7 +39,7 @@ final class WPBDP {
39
  'not_found_in_trash' => __( 'No listings found in trash', 'WPBDM' )
40
  ),
41
  'public' => true,
42
- 'menu_icon' => WPBDP_URL . 'admin/resources/menuico.png',
43
  'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments', 'custom-fields' ),
44
  'rewrite' => array(
45
  'slug' => wpbdp_get_option( 'permalinks-directory-slug', WPBDP_POST_TYPE ),
39
  'not_found_in_trash' => __( 'No listings found in trash', 'WPBDM' )
40
  ),
41
  'public' => true,
42
+ 'menu_icon' => WPBDP_URL . 'assets/images/menuico.png',
43
  'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments', 'custom-fields' ),
44
  'rewrite' => array(
45
  'slug' => wpbdp_get_option( 'permalinks-directory-slug', WPBDP_POST_TYPE ),
core/css/wpbdp.min.css DELETED
@@ -1 +0,0 @@
1
- .wpbdp-cf:before,.wpbdp-cf:after,.cf:before,.cf:after{content:" ";display:table}.wpbdp-cf:after,.cf:after{clear:both}.wpbdp-cf,.cf{*zoom:1}form#wpbdmsearchform{padding:12px 0;text-align:center}form#wpbdmsearchform input{display:inline}form#wpbdmsearchform .wpbdmsearchbutton{margin-top:5px}form#wpbdmsearchform a.advanced-search-link{font-size:70%;display:block}#wpbdp-search-form{padding-left:10px}#wpbdp-search-form .wpbdp-search-filter{margin-bottom:10px;clear:both}#wpbdp-search-form .wpbdp-search-filter>.wpbdp-search-field-label{display:block;width:40%;float:left}#wpbdp-search-form .wpbdp-search-filter>div.field{display:block;width:60%;margin-left:40%;padding-left:5px}#wpbdp-search-form .wpbdp-search-filter>div.field>input[type="text"]{width:90%}#wpbdp-search-form .wpbdp-search-filter>div.field>select{width:90%}#wpbdp-search-form input[type="submit"]{float:none;margin:auto}.wpbdp-pagination{margin:25px 0 0 0}.wpbdp-pagination .next{float:right}.listing-actions form{margin:0;padding:0;display:inline}.listing-actions input{margin:0}.listing-actions input.delete-listing{margin-left:5px;margin-right:30px;color:#f00 !important}.wpbdp-with-button-styles .listing-actions .wpbdp-button{padding:5px 10px;font-size:11px;text-decoration:none;background-color:#e6e6e6;color:#7c7c7c;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-ms-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-webkit-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-o-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:linear-gradient(top,#f4f4f4,#e6e6e6);border:1px solid #d2d2d2;border-radius:3px;box-shadow:0 1px 2px rgba(64,64,64,0.1);margin-right:3px}.wpbdp-with-button-styles .listing-actions .wpbdp-button:hover{color:#5e5e5e;background-color:#ebebeb;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-ms-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-webkit-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-o-linear-gradient(top,#f9f9f9,#ebebeb);background-image:linear-gradient(top,#f9f9f9,#ebebeb)}.wpbdp-with-button-styles .listing-actions .wpbdp-button.delete-listing{margin-left:20px;color:red}.wpbdp-listing .listing-details .field-value{margin-bottom:10px;width:100%;float:none}.wpbdmsingledetails .singledetailsview .field-value{margin-bottom:10px}.field-value label{color:#444;font-weight:bold}.wpbdp-listing-excerpt{padding:10px;border-bottom:dotted 1px #ddd}.wpbdp-listing-excerpt.odd{background:#eee}.wpbdp-listing-excerpt.sticky{background:#fff0cf;border-bottom:solid 1px #b37800}.wpbdp-listing-excerpt .listing-thumbnail{float:right;margin:0 10px 0 0}.wpbdp-listing-excerpt .listing-actions{margin-top:15px}.wpbdp-listing-single .listing-actions{margin-bottom:25px}.wpbdp-listing-single.sticky{margin-top:30px}.wpbdp-listing-single .stickytag{float:right;margin-top:-68px}.wpbdp-listing-single .stickytag img{border:0;box-shadow:none;background:transparent}.wpbdp-listing-single .listing-title{padding:2px 8px;background:#efefef;border:dotted 1px #ddd;margin-bottom:7px}.wpbdp-listing-single .listing-title h2{clear:none;margin:0}.wpbdp-listing-single .main-image{float:right;margin-left:10px;padding:5px}.wpbdp-listing-single .main-image a{position:relative !important}.wpbdp-listing-single .main-image img{border:solid 1px #333}.wpbdp-listing-single .extra-images{margin-top:10px;clear:both}.wpbdp-listing-single .extra-images ul{margin:0 auto;width:100%}.wpbdp-listing-single .extra-images ul li{list-style-type:none;display:inline;margin-left:5px}.wpbdp-listing-single .extra-images ul li img{display:inline;vertical-align:top;margin:0 auto;max-width:150px;border:solid 1px #333}.wpbdp-listing .social-fields{margin:20px 0}.wpbdp-listing .social-field{margin:5px 0;height:20px;vertical-align:middle}.social-field.facebook .fb-like>span{overflow:visible !important;width:450px !important;vertical-align:top !important}@media screen and (max-width:500px){.social-field.facebook .fb-like>span{width:100% !important}}.wpbdp-listing-contact-form{margin-top:20px;border-top:dotted 1px #ddd;padding-top:20px;padding-left:10px}.wpbdp-listing-contact-form .send-message-button{margin-left:-10px}.wpbdp-listing-contact-form h3{margin-left:-10px}.wpbdp-listing-contact-form textarea{width:98% !important}.wpbdp-listing .comments{margin-top:20px}.wpbdp-bar{background:#f7f7f7;margin:10px 0 20px 0;padding:5px 10px}.wpbdp-bar:before,.wpbdp-bar:after{content:" ";display:table;clear:both}.wpbdp-bar .wpbdp-search-form{margin:0;padding:0 !important;margin-left:50%}.wpbdp-main-links a{margin-right:15px}.wpbdp-bar .left{float:left;text-align:center}.wpbdp-bar .right{width:300px;float:right}.wpbdp-listings-sort-options{font-size:90%;margin:5px 0;text-align:right}.wpbdp-listings-sort-options .current{font-weight:bold}#wpbdp-categories{clear:both}.wpbdp-categories{margin:0;padding-left:20px}.wpbdp-categories .cat-item{box-sizing:border-box;margin:0 0 20px}.wpbdp-categories .cat-item .cat-item{margin:0}.wpbdp-categories-small .cat-item,.wpbdp-categories-medium .cat-item,.wpbdp-categories-large .cat-item{float:left;width:50%}.wpbdp-categories-small .cat-item:nth-child(2n+1),.wpbdp-categories-medium .cat-item:nth-child(2n+1),.wpbdp-categories-large .cat-item:nth-child(2n+1){clear:left}.wpbdp-categories-small .cat-item .cat-item,.wpbdp-categories-medium .cat-item .cat-item,.wpbdp-categories-large .cat-item .cat-item{width:100%}.wpbdp-submit-page h3{margin-bottom:10px}.wpbdp-submit-page .wpbdmp{margin:0}.wpbdp-submit-page legend{font-size:85%;margin-bottom:20px}.wpbdp-submit-page .wpbdp-form-field{margin-bottom:8px}.wpbdp-submit-page .wpbdp-form-field .wpbdmcheckboxclass checkbox{margin-left:0}.wpbdp-submit-page .wpbdp-form-field.required .wpbdp-form-field-label:after{content:' *';font-size:80%}.wpbdp-submit-page .wpbdp-form-field-type-textarea textarea{min-width:90%;min-height:50px}.wpbdp-submit-page .wpbdp-form-field-association-content textarea{min-height:80px}.wpbdp-form-field .field-description{font-size:90%;color:#696969;float:right}.wpbdp-form-field span.sublabel{font-size:90%;margin-left:10px;margin-right:10px}.wpbdp-form-field.image a.delete{margin-left:10px}ul.validation-errors{margin:15px 0 15px 0}ul.validation-errors li{color:red;margin:3px 0;list-style-position:inside}.wpbdp-submit-page.step-fees h4{background:#ddd;color:#333;padding:10px;margin-bottom:5px}.wpbdp-submit-page.step-images #image-upload-form{margin:15px 10px}.wpbdp-submit-page.step-images .wpbdp-image{float:left;border-bottom:dotted 1px #efefef;margin-right:10px;margin-bottom:10px;vertical-align:top}.wpbdp-submit-page.step-images .wpbdp-image img{vertical-align:top;text-align:center;max-width:150px;height:auto}.wpbdp-submit-page.step-images .wpbdp-image-draggable-highlight{width:160px;height:160px;margin:0 10px;background:red;float:left}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-dnd-area{float:left;width:72%}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions{float:right;width:25%;color:#666}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions dl{margin:0}.wpbdp-submit-page.step-images #image-upload-form-no-js{width:0;height:0;overflow:hidden;visibility:hidden}.wpbdp-submit-page.step-images .wpbdp-image .delete-image{color:red}.wpbdp-submit-page .upgrade-to-featured-option{border:solid 1px #666;padding:5px 10px;margin:25px 0 25px 0;font-size:90%}.wpbdp-msg{font-size:85%;padding:.6em;border:solid 1px #e6db55;color:#555;margin:5px 0;background:#fffbcc;border-radius:3px}.wpbdp-msg.error{background-color:#ffebe8;border-color:#C00}.wpbdp-submit-page table.fee-options{width:100%}.wpbdp-submit-page table.fee-options th,.wpbdp-submit-page table.fee-options td{text-align:center}.wpbdp-submit-page table.fee-options td.fee-label,.wpbdp-submit-page table.fee-options tr.fee-description td{text-align:left}.wpbdp-submit-page table.fee-options .fee-selection{width:5%}.wpbdp-submit-page table.fee-options tr.fee-option td.fee-label{font-weight:bold}.wpbdp-submit-page table.fee-options td.fee-description{font-size:90%;color:#666}#wpbdp-renewal-page .do-not-renew-listing{margin:40px 0;border:solid 1px #eee;font-size:95%}#wpbdp-renewal-page .do-not-renew-listing .header{background:#bc0b0b;color:#fff;text-align:center;font-weight:bold;padding:2px 0}#wpbdp-renewal-page .do-not-renew-listing input[type="submit"]{color:#900000}.wpbdp-recaptcha-error{color:red}#wpbdp-delete-listing-page form.confirm-form{margin-top:30px}#wpbdp-delete-listing-page input.delete-listing-confirm{margin-left:20px;color:#c00}#googlewallet-buy img{border:0;box-shadow:none}.wpbdp-checkout input[type="image"]{padding:0;border:0;box-shadow:none;width:auto}table#wpbdp-manage-recurring th.listing-title,table#wpbdp-manage-recurring td.listing-title{min-width:200px}table#wpbdp-manage-recurring a.cancel-subscription{color:red}#wpbdp-manage-recurring-cancel dl dd{margin-left:10px}.wpbdp-cc-form{padding:0;width:90%}.wpbdp-cc-form h4{margin:0}.wpbdp-cc-field input{width:auto}.wpbdp-cc-field label{display:block;font-weight:bold;text-align:right;padding-right:10px}#wpbdp-billing-information .billing-info-section h4{margin:10px 0 5px 0}#wpbdp-billing-information .billing-info-section table{margin:1.75em 0}#wpbdp-billing-information #wpbdp-billing-field-exp,#wpbdp-billing-information #wpbdp-billing-field-exp-year{width:40%;display:inline}#wpbdp-billing-information .form-buttons{margin:15px 0}.wpbdp-show-on-mobile{display:none !important}@media screen and (max-width:500px){.wpbdp-show-on-mobile{display:inline !important}.wpbdp-hide-on-mobile{display:none !important}.wpbdp-bar form.wpbdp-search-form{display:block;margin-left:0;margin-top:10px}.wpbdp-bar form.wpbdp-search-form #intextbox{margin-bottom:5px;padding:4px}.wpbdp-bar form.wpbdp-search-form input[type="text"]{padding:4px 0;margin:0 0 2px 0}.wpbdp-listings-sort-options{font-size:90%}.wpbdp-listing.wpbdp-listing{font-size:90%}.wpbdp-listing.wpbdp-listing-excerpt .field-value>label{display:block}.wpbdp-listing.wpbdp-listing-excerpt .listing-thumbnail,.wpbdp-listing.wpbdp-listing-single .listing-thumbnail{float:none;padding:5px}.wpbdp-listing.wpbdp-listing-excerpt .listing-details,.wpbdp-listing.wpbdp-listing-single .listing-details{margin:0 5px;float:none;display:block}.wpbdp-listing .listing-actions input{font-size:85%}.wpbdp-listing .listing-actions input.back-to-dir{float:right}.wpbdp-listing.wpbdp-listing-single .main-image{display:block;float:none;padding:0;margin:0 0 10px 0;text-align:center;max-width:90%}.wpbdp-listing.wpbdp-listing-single .field-value>label{display:block}.wpbdp-submit-page.step-images #image-upload-dnd-area{font-size:90%;float:none !important;width:100% !important}.wpbdp-submit-page.step-images .dnd-area-inside-error{margin-top:30px}.wpbdp-submit-page.step-images #image-upload-conditions{width:100% !important;float:none !important;font-size:90%}.wpbdp-submit-page.step-images #image-upload-conditions dl{margin:0;padding:0}.wpbdp-submit-page.step-images #image-upload-conditions dl dt{margin:0;margin-right:5px;padding:0;float:left}.wpbdp-submit-page.step-images #image-upload-conditions dl dd{margin:0;padding:0;display:block}.wpbdp-submit-page.step-images .wpbdp-image img{max-width:50%}.wpbdp-listings-sort-options.wpbdp-show-on-mobile{margin-bottom:10px}}body.business-directory #TB_ImageOff .screen-reader-text,body.business-directory #TB_closeWindowButton .screen-reader-text{visibility:hidden}body.business-directory #TB_next{float:right}body.business-directory #TB_prev{float:left}body.business-directory #TB_caption{float:none !important}body.business-directory #TB_closeWindow{padding:0;height:0}body.business-directory #TB_closeWindow .screen-reader-text{display:none}body.business-directory #TB_secondLine{text-align:center}.wpbdp-form-row label{display:block}.wpbdp-form-row.wpbdp-form-textfield input[type="text"]{width:400px}.wpbdp-main-box,.wpbdp-main-box .box-row,.wpbdp-main-box .box-col{box-sizing:border-box}.wpbdp-main-box{background:#f7f7f7;margin:10px 0 20px 0;border-radius:4px;padding:10px;width:100%}.wpbdp-main-box .box-row{margin-bottom:4px}.wpbdp-main-box .box-col{margin-bottom:4px;width:100%}.wpbdp-main-box .box-col input{width:100%}.wpbdp-main-box .submit-btn input[type="submit"]{margin-top:0}.wpbdp-main-box .advanced-search-link{border:0;box-shadow:none;display:block;font-size:11px;text-align:right;text-decoration:none}.wpbdp-main-box-medium .box-col,.wpbdp-main-box-large .box-col{float:left}.wpbdp-main-box-medium .search-fields>.cols-1 .box-col,.wpbdp-main-box-large .search-fields>.cols-1 .box-col{width:100%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col,.wpbdp-main-box-large .search-fields>.cols-2 .box-col{width:50%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-2 .box-col:first-child{padding-right:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-2 .box-col:last-child,.wpbdp-main-box-large .search-fields>.cols-2 .box-col:last-child{padding-left:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col,.wpbdp-main-box-large .search-fields>.cols-3 .box-col{padding-left:5px;width:50%}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-3 .box-col:first-child{padding-right:5px}.wpbdp-main-box-medium .search-fields>.cols-3 .box-col:first-child,.wpbdp-main-box-large .search-fields>.cols-3 .box-col:first-child{padding:0;width:100%}.wpbdp-main-box-large .box-row{margin-bottom:0}.wpbdp-main-box-large .search-fields{padding-right:5px;width:78%}.wpbdp-main-box-large .submit-btn{padding-left:5px;width:22%}.wpbdp-main-links{text-align:right}.wpbdp-main-links .button{margin:0 5px}.wpbdp-main-links .button:first-child{margin-left:0}.wpbdp-main-links .button:last-child{margin-right:0}.wpbdp-main-links-tiny .wpbdp-main-links .button{padding-top:10px;padding-bottom:10px;width:100%;margin:0 0 4px}.wpbdp-main-links-small .button{padding-top:10px;padding-bottom:10px;width:100%;margin:0 0 4px}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button{width:49%}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button:first-child{margin-right:1%}.wpbdp-main-links-small .wpbdp-main-links-2-buttons .button:last-child{margin-left:1%}.wpbdp-main-links-small .wpbdp-main-links-3-buttons .button:nth-child(2n){width:49%;margin-top:1%;margin-right:1%}.wpbdp-main-links-small .wpbdp-main-links-3-buttons .button:nth-child(2n+3){width:49%;margin-top:1%;margin-left:1%}.wpbdp-main-links-medium .wpbdp-main-links .button{padding-top:8px;padding-bottom:8px}.wpbdp-main-links-large .button{margin:0 3px}.single-wpbdp_listing .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-show_category .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-show_tag .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-search .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-submit_listing .wpbdp-view-content-wrapper header.entry-header,.wpbdp-view-taxonomy .wpbdp-view-content-wrapper header.entry-header{display:none}.wpbdp-wp-theme-graphene.single-wpbdp_listing h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-show_category h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-show_tag h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-search h1.post-title,.wpbdp-wp-theme-graphene.wpbdp-view-submit_listing h1.post-title{display:none}.wpbdp-wp-theme-genesis.wpbdp-view-show_category .archive-description,.wpbdp-wp-theme-genesis.wpbdp-view-show_tag .archive-description{display:none}.wpbdp-wp-theme-hmtpro5.wpbdp-view-show_category .post-details,.wpbdp-wp-theme-hmtpro5.wpbdp-view-show_tag .post-details{display:none}.wpbdp-wp-theme-atahualpa.wpbdp-view-show_category .post-footer,.wpbdp-wp-theme-atahualpa.wpbdp-view-show_tag .post-footer,.wpbdp-wp-theme-atahualpa.wpbdp-view-show_listing .post-footer{display:none}.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_category .entry-content .featured-image,.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_tag .entry-content .featured-image,.wpbdp-wp-theme-ultimate-silostorm-pro.wpbdp-view-show_listing .entry-content .featured-image{display:none}.wpbdp-login-form h2,.wpbdp-login-form .wpbdp-login-form-extra-links{text-align:center}.wpbdp-login-form form{margin:0 auto;width:320px}.wpbdp-login-form p{margin-bottom:0}.wpbdp-login-form .login-username input,.wpbdp-login-form .login-password input{display:block;width:100%}
 
core/debugging.php CHANGED
@@ -29,11 +29,11 @@ class WPBDP_Debugging {
29
 
30
  public static function _enqueue_scripts() {
31
  wp_enqueue_script( 'wpbdp-debugging-js',
32
- WPBDP_URL . 'core/js/debug.min.js',
33
  array( 'jquery' ),
34
  null,
35
  true );
36
- wp_enqueue_style( 'wpbdp-debugging-styles', WPBDP_URL . 'core/css/debug.min.css' );
37
  }
38
 
39
  public static function _php_error_handler($errno, $errstr, $file, $line, $context) {
29
 
30
  public static function _enqueue_scripts() {
31
  wp_enqueue_script( 'wpbdp-debugging-js',
32
+ WPBDP_URL . 'assets/js/debug.min.js',
33
  array( 'jquery' ),
34
  null,
35
  true );
36
+ wp_enqueue_style( 'wpbdp-debugging-styles', WPBDP_URL . 'assets/css/debug.min.css' );
37
  }
38
 
39
  public static function _php_error_handler($errno, $errstr, $file, $line, $context) {
core/fieldtypes/class-fieldtypes-linkedin.php CHANGED
@@ -46,7 +46,7 @@ class WPBDP_FieldTypes_LinkedIn extends WPBDP_Form_Field_Type {
46
  if ( function_exists( 'filter_var' ) ) {
47
  if ( filter_var( $value, FILTER_VALIDATE_URL ) ) {
48
  if ( strstr( parse_url( $value, PHP_URL_HOST ), 'linkedin.com' ) ) {
49
- $html .= sprintf( '<a target="_blank" href="%s" > <img src="%s" ></a>', esc_url( $value ), WPBDP_URL . 'core/images/linkedin.png' );
50
  }
51
  }
52
  }
46
  if ( function_exists( 'filter_var' ) ) {
47
  if ( filter_var( $value, FILTER_VALIDATE_URL ) ) {
48
  if ( strstr( parse_url( $value, PHP_URL_HOST ), 'linkedin.com' ) ) {
49
+ $html .= sprintf( '<a target="_blank" href="%s" > <img src="%s" ></a>', esc_url( $value ), WPBDP_URL . 'assets/images/linkedin.png' );
50
  }
51
  }
52
  }
core/helpers/class-themes-updater.php CHANGED
@@ -160,7 +160,7 @@ class WPBDP_Themes_Updater {
160
 
161
  $this->themes_api->find_themes( true );
162
 
163
- $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-item.tpl.php',
164
  array( 'theme' => $this->themes_api->get_theme( $theme_id ) ) ) );
165
  $response->set_message( _x( 'Theme was updated successfully.', 'themes', 'WPBDM' ) );
166
  $response->send();
160
 
161
  $this->themes_api->find_themes( true );
162
 
163
+ $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-item.tpl.php',
164
  array( 'theme' => $this->themes_api->get_theme( $theme_id ) ) ) );
165
  $response->set_message( _x( 'Theme was updated successfully.', 'themes', 'WPBDM' ) );
166
  $response->send();
core/images/googlewallet.gif DELETED
Binary file
core/installer.php CHANGED
@@ -1086,7 +1086,7 @@ class WPBDP_Installer_Manual_Upgrade {
1086
  }
1087
 
1088
  public function enqueue_scripts() {
1089
- wp_enqueue_script( 'wpbdp-manual-upgrade' , WPBDP_URL . 'admin/resources/manual-upgrade.js' );
1090
  }
1091
 
1092
  public function upgrade_page() {
1086
  }
1087
 
1088
  public function enqueue_scripts() {
1089
+ wp_enqueue_script( 'wpbdp-manual-upgrade' , WPBDP_URL . 'assets/js/admin-manual-upgrade.min.js' );
1090
  }
1091
 
1092
  public function upgrade_page() {
core/licensing.php CHANGED
@@ -40,9 +40,12 @@ class WPBDP_Licensing {
40
 
41
  $g = $settings->add_group( 'licenses',
42
  _x( 'Licenses', 'settings', 'WPBDM' ) );
43
- $s = $settings->add_section( $g,
44
- 'licenses/keys',
45
- _x( 'Premium Modules', 'settings', 'WPBDM' ) );
 
 
 
46
 
47
  foreach ( $this->modules as $id => $data ) {
48
  $settings->add_setting( $s,
@@ -56,6 +59,51 @@ class WPBDP_Licensing {
56
  }
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  function admin_menu( $menu ) {
60
  if ( ! current_user_can( 'administrator' ) || ! $this->modules )
61
  return;
40
 
41
  $g = $settings->add_group( 'licenses',
42
  _x( 'Licenses', 'settings', 'WPBDM' ) );
43
+ $s = $settings->add_section(
44
+ $g,
45
+ 'licenses/keys',
46
+ _x( 'Premium Modules', 'settings', 'WPBDM' ),
47
+ $this->get_settings_section_description()
48
+ );
49
 
50
  foreach ( $this->modules as $id => $data ) {
51
  $settings->add_setting( $s,
59
  }
60
  }
61
 
62
+ private function get_settings_section_description() {
63
+ $ip_address = $this->get_server_ip_address();
64
+
65
+ if ( ! $ip_address ) {
66
+ return '';
67
+ }
68
+
69
+ $description = _x( 'The IP address of your server is <ip-address>. Please make sure to include that information if you need to contact support about problems trying to activate your licenses.', 'settings', 'WPBDM' );
70
+ $description = str_replace( '<ip-address>', '<strong>' . $ip_address . '</strong>', $description );
71
+
72
+ return $description;
73
+ }
74
+
75
+ private function get_server_ip_address() {
76
+ $ip_address = get_transient( 'wpbdp-server-ip-address' );
77
+
78
+ if ( $ip_address ) {
79
+ return $ip_address;
80
+ }
81
+
82
+ $ip_address = $this->figure_out_server_ip_address();
83
+
84
+ if ( $ip_address ) {
85
+ set_transient( 'wpbdp-server-ip-address', $ip_address, HOUR_IN_SECONDS );
86
+ }
87
+
88
+ return $ip_address;
89
+ }
90
+
91
+ private function figure_out_server_ip_address() {
92
+ $response = wp_remote_get( 'https://httpbin.org/ip' );
93
+
94
+ if ( is_wp_error( $response ) ) {
95
+ return null;
96
+ }
97
+
98
+ $body = json_decode( wp_remote_retrieve_body( $response ) );
99
+
100
+ if ( ! isset( $body->origin ) ) {
101
+ return null;
102
+ }
103
+
104
+ return $body->origin;
105
+ }
106
+
107
  function admin_menu( $menu ) {
108
  if ( ! current_user_can( 'administrator' ) || ! $this->modules )
109
  return;
core/templates-listings.php CHANGED
@@ -51,7 +51,7 @@ function _wpbdp_render_single() {
51
  $sticky_tag = '';
52
  if ($sticky_status == 'sticky')
53
  $sticky_tag = sprintf('<div class="stickytag"><img src="%s" alt="%s" border="0" title="%s"></div>',
54
- WPBDP_URL . 'core/images/featuredlisting.png',
55
  _x('Featured Listing', 'templates', 'WPBDM'),
56
  the_title(null, null, false));
57
 
51
  $sticky_tag = '';
52
  if ($sticky_status == 'sticky')
53
  $sticky_tag = sprintf('<div class="stickytag"><img src="%s" alt="%s" border="0" title="%s"></div>',
54
+ WPBDP_URL . 'assets/images/featuredlisting.png',
55
  _x('Featured Listing', 'templates', 'WPBDM'),
56
  the_title(null, null, false));
57
 
core/templates-ui.php CHANGED
@@ -391,13 +391,13 @@ function wpbdp_listing_thumbnail( $listing_id=null, $args=array() ) {
391
  $image_img = get_the_post_thumbnail( $listing_id, 'wpbdp-thumb' );
392
  } elseif( !$main_image && wpbdp_get_option( 'use-default-picture' ) ) {
393
  $image_img = sprintf( '<img src="%s" alt="%s" title="%s" border="0" width="%d" class="%s" />',
394
- WPBDP_URL . 'core/images/default-image-big.gif',
395
  get_the_title( $listing_id ),
396
  get_the_title( $listing_id ),
397
  wpbdp_get_option( 'thumbnail-width' ),
398
  $image_classes
399
  );
400
- $image_link = $args['link'] == 'picture' ? WPBDP_URL . 'core/images/default-image-big.gif' : '';
401
  } elseif ( $main_image ) {
402
  _wpbdp_resize_image_if_needed( $main_image->ID );
403
  $image_img = wp_get_attachment_image( $main_image->ID,
391
  $image_img = get_the_post_thumbnail( $listing_id, 'wpbdp-thumb' );
392
  } elseif( !$main_image && wpbdp_get_option( 'use-default-picture' ) ) {
393
  $image_img = sprintf( '<img src="%s" alt="%s" title="%s" border="0" width="%d" class="%s" />',
394
+ WPBDP_URL . 'assets/images/default-image-big.gif',
395
  get_the_title( $listing_id ),
396
  get_the_title( $listing_id ),
397
  wpbdp_get_option( 'thumbnail-width' ),
398
  $image_classes
399
  );
400
+ $image_link = $args['link'] == 'picture' ? WPBDP_URL . 'assets/images/default-image-big.gif' : '';
401
  } elseif ( $main_image ) {
402
  _wpbdp_resize_image_if_needed( $main_image->ID );
403
  $image_img = wp_get_attachment_image( $main_image->ID,
core/templates/listing-sticky-tag.tpl.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="stickytag">
2
- <img src="<?php echo WPBDP_URL . 'core/images/featuredlisting.png'; ?>"
3
  alt="<?php echo _ex( 'Featured Listing', 'templates', 'WPBDM' ); ?>" border="0"
4
  title="<?php echo _ex( 'Featured Listing', 'templates', 'WPBDM' ); ?>">
5
  </div>
1
  <div class="stickytag">
2
+ <img src="<?php echo WPBDP_URL . 'assets/images/featuredlisting.png'; ?>"
3
  alt="<?php echo _ex( 'Featured Listing', 'templates', 'WPBDM' ); ?>" border="0"
4
  title="<?php echo _ex( 'Featured Listing', 'templates', 'WPBDM' ); ?>">
5
  </div>
core/themes.php CHANGED
@@ -40,7 +40,7 @@ class WPBDP_Themes {
40
  add_filter( 'wpbdp_form_field_display', array( &$this, 'field_theme_override' ), 999, 4 );
41
 
42
  if ( is_admin() ) {
43
- require_once( WPBDP_PATH . 'admin/class-themes-admin.php' );
44
  $this->admin = new WPBDP_Themes_Admin( $this );
45
  }
46
  }
@@ -97,8 +97,17 @@ class WPBDP_Themes {
97
  }
98
 
99
  foreach ( $js as $j ) {
100
- wp_enqueue_script( $theme->id . '-' . $this->_normalize_asset_name( $j ),
101
- $theme->url . 'assets/' . $j );
 
 
 
 
 
 
 
 
 
102
  }
103
 
104
  $this->call_theme_function( 'enqueue_scripts' );
40
  add_filter( 'wpbdp_form_field_display', array( &$this, 'field_theme_override' ), 999, 4 );
41
 
42
  if ( is_admin() ) {
43
+ require_once( WPBDP_PATH . 'includes/admin/class-themes-admin.php' );
44
  $this->admin = new WPBDP_Themes_Admin( $this );
45
  }
46
  }
97
  }
98
 
99
  foreach ( $js as $j ) {
100
+ if ( is_object( $j ) ) {
101
+ $handle = $theme->id . '-' . $this->_normalize_asset_name( $j->handle );
102
+ $source = $theme->url . 'assets/' . $j->handle;
103
+ $deps = $j->deps;
104
+ } else {
105
+ $handle = $theme->id . '-' . $this->_normalize_asset_name( $j );
106
+ $source = $theme->url . 'assets/' . $j;
107
+ $deps = array();
108
+ }
109
+
110
+ wp_enqueue_script( $handle, $source, $deps );
111
  }
112
 
113
  $this->call_theme_function( 'enqueue_scripts' );
core/utils.php CHANGED
@@ -839,3 +839,14 @@ function wpbdp_html_attributes( $attrs, $exceptions = array() ) {
839
 
840
  return $html;
841
  }
 
 
 
 
 
 
 
 
 
 
 
839
 
840
  return $html;
841
  }
842
+
843
+ /**
844
+ * @since 4.1.11
845
+ */
846
+ function wpbdp_table_exists( $table_name ) {
847
+ global $wpdb;
848
+
849
+ $result = $wpdb->get_var( "SHOW TABLES LIKE '" . $table_name . "'" );
850
+
851
+ return strcasecmp( $result, $table_name ) === 0;
852
+ }
core/views/submit_listing.php CHANGED
@@ -3,7 +3,7 @@
3
  class WPBDP__Views__Submit_Listing extends WPBDP_NView {
4
 
5
  public function enqueue_resources() {
6
- wp_enqueue_script( 'wpbdp-submit-listing', WPBDP_URL . 'core/js/submit-listing.js', array( 'jquery-ui-sortable' ) );
7
  }
8
 
9
  public function get_title() {
3
  class WPBDP__Views__Submit_Listing extends WPBDP_NView {
4
 
5
  public function enqueue_resources() {
6
+ wp_enqueue_script( 'wpbdp-submit-listing', WPBDP_URL . 'assets/js/submit-listing.min.js', array( 'jquery-ui-sortable' ) );
7
  }
8
 
9
  public function get_title() {
{admin → includes/admin}/admin-pages.php RENAMED
@@ -1,13 +1,13 @@
1
  <?php
2
  function wpbdp_admin_sidebar() {
3
- return wpbdp_render_page(WPBDP_PATH . 'admin/templates/sidebar.tpl.php');
4
  }
5
 
6
  function wpbdp_admin_header($title_ = null, $id = null, $h2items =array(), $sidebar = true) {
7
  global $title;
8
 
9
  if (!$title_) $title_ = $title;
10
- return wpbdp_render_page( WPBDP_PATH . 'admin/templates/header.tpl.php', array( 'page_title' => $title_, 'page_id' => $id, 'h2items' => $h2items, 'sidebar' => $sidebar ) );
11
  }
12
 
13
 
1
  <?php
2
  function wpbdp_admin_sidebar() {
3
+ return wpbdp_render_page(WPBDP_PATH . 'templates/admin/sidebar.tpl.php');
4
  }
5
 
6
  function wpbdp_admin_header($title_ = null, $id = null, $h2items =array(), $sidebar = true) {
7
  global $title;
8
 
9
  if (!$title_) $title_ = $title;
10
+ return wpbdp_render_page( WPBDP_PATH . 'templates/admin/header.tpl.php', array( 'page_title' => $title_, 'page_id' => $id, 'h2items' => $h2items, 'sidebar' => $sidebar ) );
11
  }
12
 
13
 
{admin → includes/admin}/class-admin-listings.php RENAMED
File without changes
{admin → includes/admin}/class-admin.php RENAMED
@@ -1,14 +1,14 @@
1
  <?php
2
- require_once( WPBDP_PATH . 'admin/admin-pages.php' );
3
- require_once( WPBDP_PATH . 'admin/class-admin-listings.php' );
4
- require_once( WPBDP_PATH . 'admin/fees.php' );
5
- require_once( WPBDP_PATH . 'admin/form-fields.php' );
6
- require_once( WPBDP_PATH . 'admin/payments.php' );
7
- require_once( WPBDP_PATH . 'admin/csv-import.php' );
8
- require_once( WPBDP_PATH . 'admin/csv-export.php' );
9
- require_once( WPBDP_PATH . 'admin/listing-metabox.php' );
10
- require_once( WPBDP_PATH . 'admin/class-listing-fields-metabox.php' );
11
- require_once( WPBDP_PATH . 'admin/page-debug.php' );
12
 
13
  if ( ! class_exists( 'WPBDP_Admin' ) ) {
14
 
@@ -76,27 +76,27 @@ class WPBDP_Admin {
76
  $debug_on = $wpbdp->is_debug_on();
77
 
78
  wp_enqueue_style( 'wpbdp-admin',
79
- WPBDP_URL . 'admin/resources/admin' . ( ! $debug_on ? '.min' : '' ) . '.css');
80
  wp_enqueue_style( 'thickbox' );
81
 
82
- wp_enqueue_style( 'wpbdp-frontend-css', WPBDP_URL . 'core/css/wpbdp' . ( ! $debug_on ? '.min' : '' ) . '.css' );
83
  wp_enqueue_script( 'wpbdp-frontend-js',
84
- WPBDP_URL . 'core/js/wpbdp' . ( ! $debug_on ? '.min' : '' ) . '.js',
85
  array( 'jquery' ) );
86
  wp_enqueue_script( 'wpbdp-admin-js',
87
- WPBDP_URL . 'admin/resources/admin' . ( ! $debug_on ? '.min' : '' ) . '.js',
88
  array( 'jquery', 'thickbox', 'jquery-ui-sortable' ) );
89
 
90
  if ( 'post-new.php' == $pagenow || 'post.php' == $pagenow ) {
91
  wpbdp_enqueue_jquery_ui_style();
92
 
93
  wp_enqueue_script( 'jquery-ui-datepicker' );
94
- wp_enqueue_style( 'wpbdp-listing-admin-metabox', WPBDP_URL . 'admin/css/listing-metabox.min.css' );
95
 
96
  wp_enqueue_style( 'wpbdp-dnd-upload' );
97
  wp_enqueue_script(
98
  'wpbdp-admin-listing',
99
- WPBDP_URL . 'admin/js/listing.js',
100
  array( 'wpbdp-admin-js', 'wpbdp-dnd-upload', 'jquery-ui-tooltip' )
101
  );
102
 
@@ -235,7 +235,7 @@ to how WordPress stores the data.", 'WPBDM' )
235
  'administrator',
236
  'wpbdp_admin',
237
  array( &$this, 'main_menu' ),
238
- WPBDP_URL . 'admin/resources/menuico.png' );
239
  add_submenu_page('wpbdp_admin',
240
  _x('Add New Listing', 'admin menu', 'WPBDM'),
241
  _x('Add New Listing', 'admin menu', 'WPBDM'),
@@ -459,7 +459,7 @@ to how WordPress stores the data.", 'WPBDM' )
459
  if ( ! $listing || ! $category || 'pending' == $category->status )
460
  $response->send_error();
461
 
462
- $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-change-fee.tpl.php',
463
  array( 'category' => $category,
464
  'listing' => $listing,
465
  'fees' => wpbdp_get_fees_for_category( $fee_info->category_id ) ) ) );
@@ -752,13 +752,13 @@ to how WordPress stores the data.", 'WPBDM' )
752
 
753
  $reset_defaults = ( isset( $_GET['action'] ) && 'reset' == $_GET['action'] );
754
  if ( $reset_defaults ) {
755
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/settings-reset.tpl.php' );
756
  return;
757
  }
758
 
759
  $_SERVER['REQUEST_URI'] = remove_query_arg( 'deletedb', $_SERVER['REQUEST_URI'] );
760
 
761
- wpbdp_render_page(WPBDP_PATH . 'admin/templates/settings.tpl.php',
762
  array('wpbdp_settings' => $wpbdp->settings),
763
  true);
764
  }
@@ -816,9 +816,9 @@ to how WordPress stores the data.", 'WPBDM' )
816
  $fixed_path = WP_CONTENT_DIR . '/plugins/' . basename(dirname($real_path)) . '/' . basename($real_path);
817
  deactivate_plugins($fixed_path, true);
818
 
819
- echo wpbdp_render_page(WPBDP_PATH . 'admin/templates/uninstall-complete.tpl.php');
820
  } else {
821
- echo wpbdp_render_page(WPBDP_PATH . 'admin/templates/uninstall-confirm.tpl.php');
822
  }
823
  }
824
 
@@ -962,7 +962,7 @@ to how WordPress stores the data.", 'WPBDM' )
962
  }
963
 
964
  public function main_menu() {
965
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/home.tpl.php' );
966
  }
967
 
968
  }
1
  <?php
2
+ require_once( WPBDP_PATH . 'includes/admin/admin-pages.php' );
3
+ require_once( WPBDP_PATH . 'includes/admin/class-admin-listings.php' );
4
+ require_once( WPBDP_PATH . 'includes/admin/fees.php' );
5
+ require_once( WPBDP_PATH . 'includes/admin/form-fields.php' );
6
+ require_once( WPBDP_PATH . 'includes/admin/payments.php' );
7
+ require_once( WPBDP_PATH . 'includes/admin/csv-import.php' );
8
+ require_once( WPBDP_PATH . 'includes/admin/csv-export.php' );
9
+ require_once( WPBDP_PATH . 'includes/admin/helpers/listing-metabox.php' );
10
+ require_once( WPBDP_PATH . 'includes/admin/class-listing-fields-metabox.php' );
11
+ require_once( WPBDP_PATH . 'includes/admin/page-debug.php' );
12
 
13
  if ( ! class_exists( 'WPBDP_Admin' ) ) {
14
 
76
  $debug_on = $wpbdp->is_debug_on();
77
 
78
  wp_enqueue_style( 'wpbdp-admin',
79
+ WPBDP_URL . 'assets/css/admin.min.css');
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' ) );
89
 
90
  if ( 'post-new.php' == $pagenow || 'post.php' == $pagenow ) {
91
  wpbdp_enqueue_jquery_ui_style();
92
 
93
  wp_enqueue_script( 'jquery-ui-datepicker' );
94
+ wp_enqueue_style( 'wpbdp-listing-admin-metabox', WPBDP_URL . 'assets/css/admin-listing-metabox.min.css' );
95
 
96
  wp_enqueue_style( 'wpbdp-dnd-upload' );
97
  wp_enqueue_script(
98
  'wpbdp-admin-listing',
99
+ WPBDP_URL . 'assets/js/admin-listing.min.js',
100
  array( 'wpbdp-admin-js', 'wpbdp-dnd-upload', 'jquery-ui-tooltip' )
101
  );
102
 
235
  'administrator',
236
  'wpbdp_admin',
237
  array( &$this, 'main_menu' ),
238
+ WPBDP_URL . 'assets/images/menuico.png' );
239
  add_submenu_page('wpbdp_admin',
240
  _x('Add New Listing', 'admin menu', 'WPBDM'),
241
  _x('Add New Listing', 'admin menu', 'WPBDM'),
459
  if ( ! $listing || ! $category || 'pending' == $category->status )
460
  $response->send_error();
461
 
462
+ $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-change-fee.tpl.php',
463
  array( 'category' => $category,
464
  'listing' => $listing,
465
  'fees' => wpbdp_get_fees_for_category( $fee_info->category_id ) ) ) );
752
 
753
  $reset_defaults = ( isset( $_GET['action'] ) && 'reset' == $_GET['action'] );
754
  if ( $reset_defaults ) {
755
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/settings-reset.tpl.php' );
756
  return;
757
  }
758
 
759
  $_SERVER['REQUEST_URI'] = remove_query_arg( 'deletedb', $_SERVER['REQUEST_URI'] );
760
 
761
+ wpbdp_render_page(WPBDP_PATH . 'templates/admin/settings.tpl.php',
762
  array('wpbdp_settings' => $wpbdp->settings),
763
  true);
764
  }
816
  $fixed_path = WP_CONTENT_DIR . '/plugins/' . basename(dirname($real_path)) . '/' . basename($real_path);
817
  deactivate_plugins($fixed_path, true);
818
 
819
+ echo wpbdp_render_page(WPBDP_PATH . 'templates/admin/uninstall-complete.tpl.php');
820
  } else {
821
+ echo wpbdp_render_page(WPBDP_PATH . 'templates/admin/uninstall-confirm.tpl.php');
822
  }
823
  }
824
 
962
  }
963
 
964
  public function main_menu() {
965
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/home.tpl.php' );
966
  }
967
 
968
  }
{admin → includes/admin}/class-listing-fields-metabox.php RENAMED
File without changes
{admin → includes/admin}/class-themes-admin.php RENAMED
@@ -142,9 +142,9 @@ class WPBDP_Themes_Admin {
142
  $debug_on = $wpbdp->is_debug_on();
143
 
144
  wp_enqueue_style( 'wpbdp-admin-themes',
145
- WPBDP_URL . 'admin/css/themes' . ( ! $debug_on ? '.min' : '' ) . '.css' );
146
  wp_enqueue_script( 'wpbdp-admin-themes',
147
- WPBDP_URL . 'admin/js/themes' . ( ! $debug_on ? '.min' : '' ) . '.js' );
148
  }
149
 
150
  function set_active_theme() {
@@ -243,7 +243,7 @@ class WPBDP_Themes_Admin {
243
  unset( $themes[ $active_theme ] );
244
  array_unshift( $themes, $current );
245
 
246
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes.tpl.php',
247
  array( 'themes' => $themes,
248
  'active_theme' => $active_theme ) );
249
  }
@@ -280,7 +280,7 @@ class WPBDP_Themes_Admin {
280
  }
281
 
282
  function theme_install() {
283
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-install.tpl.php',
284
  array() );
285
  }
286
 
@@ -288,7 +288,7 @@ class WPBDP_Themes_Admin {
288
  $theme_id = $_REQUEST['theme_id'];
289
  $theme = $this->api->get_theme( $theme_id );
290
 
291
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-delete-confirm.tpl.php',
292
  array( 'theme' => $theme ) );
293
  }
294
 
@@ -454,7 +454,7 @@ class WPBDP_Themes_Admin {
454
  function theme_licenses() {
455
  $themes = $this->api->get_installed_themes();
456
 
457
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-licenses.tpl.php',
458
  array( 'themes' => $themes ) );
459
  }
460
 
142
  $debug_on = $wpbdp->is_debug_on();
143
 
144
  wp_enqueue_style( 'wpbdp-admin-themes',
145
+ WPBDP_URL . 'assets/css/admin-themes.min.css' );
146
  wp_enqueue_script( 'wpbdp-admin-themes',
147
+ WPBDP_URL . 'assets/js/admin-themes.min.js' );
148
  }
149
 
150
  function set_active_theme() {
243
  unset( $themes[ $active_theme ] );
244
  array_unshift( $themes, $current );
245
 
246
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes.tpl.php',
247
  array( 'themes' => $themes,
248
  'active_theme' => $active_theme ) );
249
  }
280
  }
281
 
282
  function theme_install() {
283
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-install.tpl.php',
284
  array() );
285
  }
286
 
288
  $theme_id = $_REQUEST['theme_id'];
289
  $theme = $this->api->get_theme( $theme_id );
290
 
291
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-delete-confirm.tpl.php',
292
  array( 'theme' => $theme ) );
293
  }
294
 
454
  function theme_licenses() {
455
  $themes = $this->api->get_installed_themes();
456
 
457
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-licenses.tpl.php',
458
  array( 'themes' => $themes ) );
459
  }
460
 
{admin → includes/admin}/csv-export.php RENAMED
@@ -16,12 +16,12 @@ class WPBDP_Admin_CSVExport {
16
  if ( 'wpbdp-csv-export' != $plugin_page )
17
  return;
18
 
19
- wp_enqueue_script( 'wpbdp-admin-export-js', WPBDP_URL . 'admin/resources/export.js', array( 'wpbdp-admin-js', 'jquery-ui-dialog' ) );
20
- wp_enqueue_style( 'wpbdp-admin-export-css', WPBDP_URL . 'admin/resources/export.css', array( 'wp-jquery-ui-dialog' ) );
21
  }
22
 
23
  public function dispatch() {
24
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/csv-export.tpl.php' );
25
  }
26
 
27
  public function ajax_csv_export() {
16
  if ( 'wpbdp-csv-export' != $plugin_page )
17
  return;
18
 
19
+ wp_enqueue_script( 'wpbdp-admin-export-js', WPBDP_URL . 'assets/js/admin-export.js', array( 'wpbdp-admin-js', 'jquery-ui-dialog' ) );
20
+ wp_enqueue_style( 'wpbdp-admin-export-css', WPBDP_URL . 'assets/css/admin-export.min.css', array( 'wp-jquery-ui-dialog' ) );
21
  }
22
 
23
  public function dispatch() {
24
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/csv-export.tpl.php' );
25
  }
26
 
27
  public function ajax_csv_export() {
{admin → includes/admin}/csv-import.php RENAMED
@@ -21,8 +21,8 @@ class WPBDP_CSVImportAdmin {
21
  if ( 'wpbdp-csv-import' != $plugin_page )
22
  return;
23
 
24
- wp_enqueue_script( 'wpbdp-admin-import-js', WPBDP_URL . 'admin/js/csv-import.js', array( 'wpbdp-admin-js', 'jquery-ui-autocomplete' ) );
25
- wp_enqueue_style( 'wpbdp-admin-import-css', WPBDP_URL . 'admin/css/csv-import.css' );
26
  }
27
 
28
  function ajax_csv_import() {
@@ -266,7 +266,7 @@ class WPBDP_CSVImportAdmin {
266
  if ( ! $defaults || ! is_array( $defaults ) )
267
  $defaults = array();
268
 
269
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/csv-import.tpl.php',
270
  array( 'files' => $files,
271
  'defaults' => $defaults ) );
272
  }
@@ -338,7 +338,7 @@ class WPBDP_CSVImportAdmin {
338
  if ( $import->in_test_mode() )
339
  wpbdp_admin_message( _x( 'Import is in "test mode". Nothing will be inserted into the database.', 'admin csv-import', 'WPBDM' ) );
340
 
341
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/csv-import-progress.tpl.php',
342
  array( 'import' => $import,
343
  'sources' => $sources ) );
344
  }
21
  if ( 'wpbdp-csv-import' != $plugin_page )
22
  return;
23
 
24
+ wp_enqueue_script( 'wpbdp-admin-import-js', WPBDP_URL . 'assets/js/admin-csv-import.min.js', array( 'wpbdp-admin-js', 'jquery-ui-autocomplete' ) );
25
+ wp_enqueue_style( 'wpbdp-admin-import-css', WPBDP_URL . 'assets/css/admin-csv-import.min.css' );
26
  }
27
 
28
  function ajax_csv_import() {
266
  if ( ! $defaults || ! is_array( $defaults ) )
267
  $defaults = array();
268
 
269
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/csv-import.tpl.php',
270
  array( 'files' => $files,
271
  'defaults' => $defaults ) );
272
  }
338
  if ( $import->in_test_mode() )
339
  wpbdp_admin_message( _x( 'Import is in "test mode". Nothing will be inserted into the database.', 'admin csv-import', 'WPBDM' ) );
340
 
341
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/csv-import-progress.tpl.php',
342
  array( 'import' => $import,
343
  'sources' => $sources ) );
344
  }
{admin → includes/admin}/fees.php RENAMED
@@ -323,7 +323,7 @@ class WPBDP_FeesAdmin {
323
  $order_options[ $k ] = $l;
324
  }
325
 
326
- wpbdp_render_page(WPBDP_PATH . 'admin/templates/fees.tpl.php',
327
  array( 'table' => $table,
328
  'order_options' => $order_options,
329
  'current_order' => wpbdp_get_option( 'fee-order' ) ),
@@ -346,7 +346,7 @@ class WPBDP_FeesAdmin {
346
  $this->admin->messages[] = array( $fee->errors->html() , 'error' );
347
  }
348
 
349
- wpbdp_render_page( WPBDP_PATH . 'admin/templates/fees-addoredit.tpl.php',
350
  array(
351
  'fee' => $fee,
352
  'fee_extra_settings' => wpbdp_capture_action_array( 'wpbdp_admin_fee_form_extra_settings', array( &$fee ) )
@@ -368,7 +368,7 @@ class WPBDP_FeesAdmin {
368
 
369
  return $this->feesTable();
370
  } else {
371
- wpbdp_render_page(WPBDP_PATH . 'admin/templates/fees-confirm-delete.tpl.php',
372
  array('fee' => $fee),
373
  true);
374
  }
323
  $order_options[ $k ] = $l;
324
  }
325
 
326
+ wpbdp_render_page(WPBDP_PATH . 'templates/admin/fees.tpl.php',
327
  array( 'table' => $table,
328
  'order_options' => $order_options,
329
  'current_order' => wpbdp_get_option( 'fee-order' ) ),
346
  $this->admin->messages[] = array( $fee->errors->html() , 'error' );
347
  }
348
 
349
+ wpbdp_render_page( WPBDP_PATH . 'templates/admin/fees-addoredit.tpl.php',
350
  array(
351
  'fee' => $fee,
352
  'fee_extra_settings' => wpbdp_capture_action_array( 'wpbdp_admin_fee_form_extra_settings', array( &$fee ) )
368
 
369
  return $this->feesTable();
370
  } else {
371
+ wpbdp_render_page(WPBDP_PATH . 'templates/admin/fees-confirm-delete.tpl.php',
372
  array('fee' => $fee),
373
  true);
374
  }
{admin → includes/admin}/form-fields.php RENAMED
@@ -189,7 +189,7 @@ class WPBDP_FormFieldsAdmin {
189
  $table = new WPBDP_FormFieldsTable();
190
  $table->prepare_items();
191
 
192
- wpbdp_render_page(WPBDP_PATH . 'admin/templates/form-fields.tpl.php',
193
  array('table' => $table),
194
  true);
195
  }
@@ -228,7 +228,7 @@ class WPBDP_FormFieldsAdmin {
228
  wpbdp_admin_message( $msg, 'error' );
229
  }
230
 
231
- wpbdp_render_page( WPBDP_PATH . 'admin/templates/form-fields-addoredit.tpl.php',
232
  array(
233
  'field' => $field,
234
  'field_associations' => $api->get_associations_with_flags(),
@@ -264,7 +264,7 @@ class WPBDP_FormFieldsAdmin {
264
  return $this->fieldsTable();
265
  }
266
 
267
- wpbdp_render_page( WPBDP_PATH . 'admin/templates/form-fields-confirm-delete.tpl.php',
268
  array( 'field' => $field ),
269
  true );
270
  }
@@ -336,7 +336,7 @@ class WPBDP_FormFieldsAdmin {
336
  'fixed' => ( in_array( $t, $fixed_tags, true ) ? true : false ) );
337
  }
338
 
339
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/form-fields-tags.tpl.php',
340
  array( 'field_tags' => $field_tags, 'missing_fields' => $missing_fields ) );
341
  }
342
 
189
  $table = new WPBDP_FormFieldsTable();
190
  $table->prepare_items();
191
 
192
+ wpbdp_render_page(WPBDP_PATH . 'templates/admin/form-fields.tpl.php',
193
  array('table' => $table),
194
  true);
195
  }
228
  wpbdp_admin_message( $msg, 'error' );
229
  }
230
 
231
+ wpbdp_render_page( WPBDP_PATH . 'templates/admin/form-fields-addoredit.tpl.php',
232
  array(
233
  'field' => $field,
234
  'field_associations' => $api->get_associations_with_flags(),
264
  return $this->fieldsTable();
265
  }
266
 
267
+ wpbdp_render_page( WPBDP_PATH . 'templates/admin/form-fields-confirm-delete.tpl.php',
268
  array( 'field' => $field ),
269
  true );
270
  }
336
  'fixed' => ( in_array( $t, $fixed_tags, true ) ? true : false ) );
337
  }
338
 
339
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/form-fields-tags.tpl.php',
340
  array( 'field_tags' => $field_tags, 'missing_fields' => $missing_fields ) );
341
  }
342
 
{admin → includes/admin/helpers}/listing-metabox.php RENAMED
@@ -94,21 +94,21 @@ class WPBDP_Admin_Listing_Metabox {
94
  _x( 'Mark listing as Paid', 'admin infometabox', 'WPBDM' ) );
95
  }
96
 
97
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-metabox-feesummary.tpl.php', array(
98
  'categories' => $this->listing->get_categories( 'all' ),
99
  'listing' => $this->listing
100
  ) );
101
  }
102
 
103
  private function tab_fees() {
104
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-metabox-fees.tpl.php', array(
105
  'categories' => $this->listing->get_categories( 'all' ),
106
  'listing' => $this->listing
107
  ) );
108
  }
109
 
110
  private function tab_transactions() {
111
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-metabox-transactions.tpl.php',
112
  array( 'payments' => $this->listing->get_latest_payments() ) );
113
  }
114
 
94
  _x( 'Mark listing as Paid', 'admin infometabox', 'WPBDM' ) );
95
  }
96
 
97
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-metabox-feesummary.tpl.php', array(
98
  'categories' => $this->listing->get_categories( 'all' ),
99
  'listing' => $this->listing
100
  ) );
101
  }
102
 
103
  private function tab_fees() {
104
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-metabox-fees.tpl.php', array(
105
  'categories' => $this->listing->get_categories( 'all' ),
106
  'listing' => $this->listing
107
  ) );
108
  }
109
 
110
  private function tab_transactions() {
111
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-metabox-transactions.tpl.php',
112
  array( 'payments' => $this->listing->get_latest_payments() ) );
113
  }
114
 
{admin → includes/admin}/index.php RENAMED
File without changes
{admin → includes/admin}/page-debug.php RENAMED
@@ -105,7 +105,7 @@ class WPBDP_Admin_Debug_Page {
105
  return;
106
  }
107
 
108
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/debug-info.tpl.php', array( 'debug_info' => $debug_info ) );
109
  }
110
 
111
  function handle_download() {
105
  return;
106
  }
107
 
108
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/debug-info.tpl.php', array( 'debug_info' => $debug_info ) );
109
  }
110
 
111
  function handle_download() {
{admin → includes/admin}/payments.php RENAMED
@@ -23,7 +23,7 @@ class WPBDP_Admin_Payments {
23
  if ( ! $payment )
24
  $response->send_error();
25
 
26
- $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'admin/templates/payment-details.tpl.php',
27
  array( 'payment' => $payment,
28
  'invoice' => $wpbdp->payments->render_invoice( $payment ) ) ) );
29
  $response->send();
23
  if ( ! $payment )
24
  $response->send_error();
25
 
26
+ $response->add( 'html', wpbdp_render_page( WPBDP_PATH . 'templates/admin/payment-details.tpl.php',
27
  array( 'payment' => $payment,
28
  'invoice' => $wpbdp->payments->render_invoice( $payment ) ) ) );
29
  $response->send();
{admin → includes/admin}/tracking.php RENAMED
File without changes
{admin/templates → templates/admin}/csv-export.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/csv-import-progress.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/csv-import.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/debug-info.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/fees-addoredit.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/fees-confirm-delete.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/fees.tpl.php RENAMED
@@ -110,7 +110,7 @@
110
  ?>
111
  <div class="gateway <?php echo $mod_info[0]; ?> <?php echo $wpbdp->has_module( $mod_info[0] ) ? 'installed' : ''; ?>">
112
  <a href="http://businessdirectoryplugin.com/downloads/<?php echo $mod_info[0]; ?>/?ref=wp" target="_blank">
113
- <img src="<?php echo WPBDP_URL; ?>admin/resources/<?php echo $mod_info[0]; ?>.png" class="gateway-logo"><br />
114
  <a href="http://">
115
  </a>
116
  <?php if ( $wpbdp->has_module( $mod_info[0] ) ): ?>
110
  ?>
111
  <div class="gateway <?php echo $mod_info[0]; ?> <?php echo $wpbdp->has_module( $mod_info[0] ) ? 'installed' : ''; ?>">
112
  <a href="http://businessdirectoryplugin.com/downloads/<?php echo $mod_info[0]; ?>/?ref=wp" target="_blank">
113
+ <img src="<?php echo WPBDP_URL; ?>assets/images/<?php echo $mod_info[0]; ?>.png" class="gateway-logo"><br />
114
  <a href="http://">
115
  </a>
116
  <?php if ( $wpbdp->has_module( $mod_info[0] ) ): ?>
{admin/templates → templates/admin}/form-fields-addoredit.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/form-fields-confirm-delete.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/form-fields-tags.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/form-fields.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/header.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/home.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/listing-change-fee.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/listing-metabox-categories.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/listing-metabox-fees.tpl.php RENAMED
@@ -13,7 +13,7 @@
13
  <?php endif; ?>
14
 
15
  <?php
16
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-metabox-categories.tpl.php', array(
17
  'categories' => $categories,
18
  'listing' => $listing ) );
19
  ?>
13
  <?php endif; ?>
14
 
15
  <?php
16
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-metabox-categories.tpl.php', array(
17
  'categories' => $categories,
18
  'listing' => $listing ) );
19
  ?>
{admin/templates → templates/admin}/listing-metabox-feesummary.tpl.php RENAMED
@@ -1,7 +1,7 @@
1
  <p><strong><?php _ex('Categories for this listing', 'admin infometabox', 'WPBDM'); ?></strong></p>
2
 
3
  <?php
4
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/listing-metabox-categories.tpl.php', array(
5
  'categories' => $categories,
6
  'listing' => $listing,
7
  'display' => array( 'expiration' ),
1
  <p><strong><?php _ex('Categories for this listing', 'admin infometabox', 'WPBDM'); ?></strong></p>
2
 
3
  <?php
4
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/listing-metabox-categories.tpl.php', array(
5
  'categories' => $categories,
6
  'listing' => $listing,
7
  'display' => array( 'expiration' ),
{admin/templates → templates/admin}/listing-metabox-transactions.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/payment-details.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/settings-reset.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/settings.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/sidebar.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/themes-delete-confirm.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/themes-install.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/themes-item.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/themes-licenses.tpl.php RENAMED
@@ -6,7 +6,7 @@ echo wpbdp_admin_header( null, 'themes', array(
6
  echo wpbdp_admin_notices();
7
  ?>
8
 
9
- <?php echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-tabs.tpl.php', array( 'active' => 'licenses' ) ); ?>
10
 
11
  <div id="wpbdp-theme-licenses">
12
  <table class="form-table">
6
  echo wpbdp_admin_notices();
7
  ?>
8
 
9
+ <?php echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-tabs.tpl.php', array( 'active' => 'licenses' ) ); ?>
10
 
11
  <div id="wpbdp-theme-licenses">
12
  <table class="form-table">
{admin/templates → templates/admin}/themes-tabs.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/themes.tpl.php RENAMED
@@ -20,11 +20,11 @@ echo str_replace( '<a>',
20
 
21
  <div id="wpbdp-admin-page-themes-tabs">
22
 
23
- <?php echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-tabs.tpl.php' ); ?>
24
 
25
  <div id="wpbdp-theme-selection" class="wpbdp-theme-selection cf">
26
  <?php foreach ( $themes as &$t ): ?>
27
- <?php echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/themes-item.tpl.php', array( 'theme' => $t ) ); ?>
28
  <?php endforeach; ?>
29
  </div>
30
 
20
 
21
  <div id="wpbdp-admin-page-themes-tabs">
22
 
23
+ <?php echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-tabs.tpl.php' ); ?>
24
 
25
  <div id="wpbdp-theme-selection" class="wpbdp-theme-selection cf">
26
  <?php foreach ( $themes as &$t ): ?>
27
+ <?php echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/themes-item.tpl.php', array( 'theme' => $t ) ); ?>
28
  <?php endforeach; ?>
29
  </div>
30
 
{admin/templates → templates/admin}/transactions.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/uninstall-capture-form.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/uninstall-complete.tpl.php RENAMED
File without changes
{admin/templates → templates/admin}/uninstall-confirm.tpl.php RENAMED
@@ -3,7 +3,7 @@
3
  <?php wpbdp_admin_notices(); ?>
4
 
5
  <?php
6
- echo wpbdp_render_page( WPBDP_PATH . 'admin/templates/uninstall-capture-form.tpl.php' );
7
  ?>
8
 
9
  <?php echo wpbdp_admin_footer(); ?>
3
  <?php wpbdp_admin_notices(); ?>
4
 
5
  <?php
6
+ echo wpbdp_render_page( WPBDP_PATH . 'templates/admin/uninstall-capture-form.tpl.php' );
7
  ?>
8
 
9
  <?php echo wpbdp_admin_footer(); ?>
templates/billing-information-form.tpl.php CHANGED
@@ -158,8 +158,8 @@ $months = array(
158
  </div>
159
 
160
  <div class="form-buttons">
161
- <!-- <input type="submit" name="cancel" value="<?php _ex( 'Cancel', 'WPBDM' ); ?>" /> -->
162
- <input type="submit" name="pay" value="<?php _ex( 'Submit Payment', 'WPBDM' ); ?>" class="button submit" />
163
  </div>
164
 
165
  </form>
158
  </div>
159
 
160
  <div class="form-buttons">
161
+ <!-- <input type="submit" name="cancel" value="<?php _ex( 'Cancel', 'checkout form', 'WPBDM' ); ?>" /> -->
162
+ <input type="submit" name="pay" value="<?php _ex( 'Submit Payment', 'checkout form', 'WPBDM' ); ?>" class="button submit" />
163
  </div>
164
 
165
  </form>
templates/parts/category-fee-selection.tpl.php CHANGED
@@ -8,75 +8,67 @@
8
  * $fee_rows_filter callback Allows to modify the HTML for the fee rows before display.
9
  */
10
  ?>
11
- <div class="fee-options-for-category">
12
  <?php if ( $multiple_categories ): ?>
13
  <h4><?php echo sprintf( _x( '"%s" fee options', 'templates', 'WPBDM' ), $category->name ); ?></h4>
14
  <?php endif; ?>
15
- <table class="fee-options">
16
- <thead>
17
- <th class="fee-selection"></th>
18
- <th class="fee-label"><?php echo _x( 'Fee', 'templates', 'WPBDM' ); ?></th>
19
- <th class="fee-amount"><?php echo _x( 'Price', 'templates', 'WPBDM' ); ?></th>
20
- <th class="fee-duration"><?php echo _x( 'Duration', 'templates', 'WPBDM' ); ?></th>
21
- <th class="fee-images"><?php echo _x( 'Images Allowed', 'templates', 'WPBDM' ); ?></th>
22
- <?php // do_action( 'wpbdp_fee_selection_extra_headers' ); ?>
23
- </thead>
24
- <tbody>
25
- <?php if ( ! $category_fees ): ?>
26
- <tr class="fee-option fee-id-none">
27
- <td colspan="5">
28
- <?php _ex( 'There are no fees available for this category.', 'templates', 'WPBDM'); ?>
29
- </td>
30
- </tr>
31
- <?php else: ?>
32
- <?php
33
- $rows_html = '';
34
- ob_start();
35
- ?>
36
- <?php $i = 0; foreach ( $category_fees as &$fee ): ?>
37
- <tr class="fee-option fee-id-<?php echo $fee->id; ?>">
38
- <td class="fee-selection">
39
- <?php $fee_selected = ( ( $current_fee === null && $i == 0 ) || ( $current_fee == $fee->id ) ); ?>
40
- <input type="radio" id="wpbdp-fees-radio-<?php echo $fee->id; ?>" name="fees[<?php echo $category->term_id; ?>]" value="<?php echo $fee->id; ?>" <?php echo $fee_selected ? 'checked="checked"' : ''; ?> data-canrecur="<?php echo ( $fee->days > 0 && $fee->amount > 0.0 ) ? 1 : 0 ?>" />
41
- </td>
42
- <td class="fee-label">
43
- <label for="wpbdp-fees-radio-<?php echo $fee->id; ?>"><?php echo esc_html( apply_filters( 'wpbdp_category_fee_selection_label', $fee->label, $fee ) ); ?></label>
44
- </td>
45
- <td class="fee-amount">
46
- <?php echo wpbdp_currency_format( $fee->amount ); ?>
47
- </td>
48
- <td class="fee-duration">
49
- <?php if ( $fee->days == 0 ): ?>
50
- <?php echo _x( 'Unlimited', 'templates', 'WPBDM' ); ?>
51
- <?php else : ?>
52
- <?php echo sprintf( _nx( '%d day', '%d days', $fee->days, 'templates', 'WPBDM' ), $fee->days ); ?>
53
- <?php endif; ?>
54
- </td>
55
- <td class="fee-images">
56
- <?php echo wpbdp_get_option('allow-images') ? $fee->images : '—'; ?>
57
- </td>
58
- <?php // do_action( 'wpbdp_fee_selection_extra_columns', $fee ); ?>
59
- </tr>
60
- <?php $fee_description = $fee->description ? wpautop( wp_kses_post( $fee->description ) ) : ''; ?>
61
- <?php $fee_description = apply_filters( 'wpbdp_fee_selection_fee_description', $fee_description, $fee ); ?>
62
- <?php if ( $fee_description ) : ?>
63
- <tr class="fee-description fee-id-<?php echo $fee->id; ?>">
64
- <td></td>
65
- <td colspan="4"><?php echo $fee_description; ?></td>
66
- </tr>
67
- <?php endif; ?>
68
- <?php $i++; endforeach; ?>
69
- <?php
70
- $rows_html = ob_get_clean();
71
 
72
- if ( isset( $fee_rows_filter ) && is_callable( $fee_rows_filter ) ) {
73
- $rows_html = call_user_func( $fee_rows_filter, $rows_html, $category );
74
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- echo $rows_html;
 
 
77
  ?>
 
 
 
 
 
 
 
 
 
78
  <?php endif; ?>
79
- </tbody>
80
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
 
 
 
 
 
 
 
82
  </div>
8
  * $fee_rows_filter callback Allows to modify the HTML for the fee rows before display.
9
  */
10
  ?>
11
+ <div class="fee-options-for-category" data-breakpoints='{"tiny": [0,410], "small": [410,560], "medium": [560,710], "large": [710,999999]}' data-breakpoints-class-prefix="wpbdp-fee-options-for-category">
12
  <?php if ( $multiple_categories ): ?>
13
  <h4><?php echo sprintf( _x( '"%s" fee options', 'templates', 'WPBDM' ), $category->name ); ?></h4>
14
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
+ <?php if ( ! $category_fees ): ?>
17
+ <div><?php _ex( 'There are no fees available for this category.', 'templates', 'WPBDM'); ?></div>
18
+ <?php else: ?>
19
+ <?php
20
+ $rows_html = '';
21
+ ob_start();
22
+ ?>
23
+ <?php $i = 0; foreach ( $category_fees as &$fee ): ?>
24
+ <div class="wpbdp-plan wpbdp-plan-info-box wpbdp-cf">
25
+ <div class="wpbdp-plan-duration">
26
+ <span class="wpbdp-plan-duration-amount">
27
+ <?php echo $fee->days ? $fee->days : '∞'; ?>
28
+ </span>
29
+ <span class="wpbdp-plan-duration-period"><?php echo _nx( 'day', 'days', $fee->days, 'templates', 'WPBDM' ); ?></span>
30
+ </div>
31
+ <div class="wpbdp-plan-details">
32
+ <div class="wpbdp-plan-label">
33
+ <?php echo esc_html( apply_filters( 'wpbdp_category_fee_selection_label', $fee->label, $fee ) ); ?>
34
+ </div>
35
 
36
+ <?php
37
+ $description = $fee->description ? wpautop( wp_kses_post( $fee->description ) ) : '';
38
+ $description = apply_filters( 'wpbdp_fee_selection_fee_description', $description, $fee );
39
  ?>
40
+
41
+ <?php if ( $description ): ?>
42
+ <div class="wpbdp-plan-description"><?php echo $description; ?></div>
43
+ <?php endif; ?>
44
+
45
+ <?php if ( wpbdp_get_option( 'allow-images' ) ): ?>
46
+ <ul class="wpbdp-plan-feature-list">
47
+ <li><?php echo sprintf( _nx( '%d image', '%d images', $fee->images, 'templates', 'WPBDM' ), $fee->images ); ?></li>
48
+ </ul>
49
  <?php endif; ?>
50
+ </div>
51
+ <div class="wpbdp-plan-price">
52
+ <?php $selected = ( ( $current_fee === null && $i == 0 ) || ( $current_fee == $fee->id ) ); ?>
53
+ <label>
54
+ <input type="radio"
55
+ id="wpbdp-plan-select-radio-<?php echo $fee->id; ?>"
56
+ name="fees[<?php echo $category->term_id; ?>]"
57
+ value="<?php echo $fee->id; ?>"
58
+ <?php checked( absint( $fee->id ), absint( $selected ) ); ?> />
59
+ <span class="wpbdp-plan-price-amount"><?php echo wpbdp_currency_format( $fee->amount ); ?></span>
60
+ </label>
61
+ </div>
62
+ </div>
63
+ <?php $i++; endforeach; ?>
64
+ <?php
65
+ $rows_html = ob_get_clean();
66
 
67
+ if ( isset( $fee_rows_filter ) && is_callable( $fee_rows_filter ) ) {
68
+ $rows_html = call_user_func( $fee_rows_filter, $rows_html, $category );
69
+ }
70
+
71
+ echo $rows_html;
72
+ ?>
73
+ <?php endif; ?>
74
  </div>
vendors/edd/EDD_SL_Plugin_Updater.php DELETED
@@ -1,338 +0,0 @@
1
- <?php
2
-
3
- // uncomment this line for testing
4
- //set_site_transient( 'update_plugins', null );
5
-
6
- // Exit if accessed directly
7
- if ( ! defined( 'ABSPATH' ) ) exit;
8
-
9
- /**
10
- * Allows plugins to use their own update API.
11
- *
12
- * @author Pippin Williamson
13
- * @version 1.6
14
- */
15
- class EDD_SL_Plugin_Updater {
16
- private $api_url = '';
17
- private $api_data = array();
18
- private $name = '';
19
- private $slug = '';
20
- private $version = '';
21
-
22
- /**
23
- * Class constructor.
24
- *
25
- * @uses plugin_basename()
26
- * @uses hook()
27
- *
28
- * @param string $_api_url The URL pointing to the custom API endpoint.
29
- * @param string $_plugin_file Path to the plugin file.
30
- * @param array $_api_data Optional data to send with API calls.
31
- */
32
- function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
33
- $this->api_url = trailingslashit( $_api_url );
34
- $this->api_data = $_api_data;
35
- $this->name = plugin_basename( $_plugin_file );
36
- $this->slug = basename( $_plugin_file, '.php' );
37
- $this->version = $_api_data['version'];
38
-
39
- // Set up hooks.
40
- $this->init();
41
- add_action( 'admin_init', array( $this, 'show_changelog' ) );
42
- }
43
-
44
- /**
45
- * Set up WordPress filters to hook into WP's update process.
46
- *
47
- * @uses add_filter()
48
- *
49
- * @return void
50
- */
51
- public function init() {
52
-
53
- add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
54
- add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
55
-
56
- add_action( 'after_plugin_row_' . $this->name, array( $this, 'show_update_notification' ), 10, 2 );
57
- }
58
-
59
- /**
60
- * Check for Updates at the defined API endpoint and modify the update array.
61
- *
62
- * This function dives into the update API just when WordPress creates its update array,
63
- * then adds a custom API call and injects the custom plugin data retrieved from the API.
64
- * It is reassembled from parts of the native WordPress plugin update code.
65
- * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
66
- *
67
- * @uses api_request()
68
- *
69
- * @param array $_transient_data Update array build by WordPress.
70
- * @return array Modified update array with custom plugin data.
71
- */
72
- function check_update( $_transient_data ) {
73
-
74
- global $pagenow;
75
-
76
- if( ! is_object( $_transient_data ) ) {
77
- $_transient_data = new stdClass;
78
- }
79
-
80
- if( 'plugins.php' == $pagenow && is_multisite() ) {
81
- return $_transient_data;
82
- }
83
-
84
- if ( empty( $_transient_data->response ) || empty( $_transient_data->response[ $this->name ] ) ) {
85
-
86
- $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug ) );
87
-
88
- if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
89
-
90
- if( version_compare( $this->version, $version_info->new_version, '<' ) ) {
91
-
92
- $_transient_data->response[ $this->name ] = $version_info;
93
-
94
- }
95
-
96
- $_transient_data->last_checked = time();
97
- $_transient_data->checked[ $this->name ] = $this->version;
98
-
99
- }
100
-
101
- }
102
-
103
- return $_transient_data;
104
- }
105
-
106
- /**
107
- * show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!
108
- *
109
- * @param string $file
110
- * @param array $plugin
111
- */
112
- public function show_update_notification( $file, $plugin ) {
113
-
114
- if( ! current_user_can( 'update_plugins' ) ) {
115
- return;
116
- }
117
-
118
- if( ! is_multisite() ) {
119
- return;
120
- }
121
-
122
- if ( $this->name != $file ) {
123
- return;
124
- }
125
-
126
- // Remove our filter on the site transient
127
- remove_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ), 10 );
128
-
129
- $update_cache = get_site_transient( 'update_plugins' );
130
-
131
- if ( ! is_object( $update_cache ) || empty( $update_cache->response ) || empty( $update_cache->response[ $this->name ] ) ) {
132
-
133
- $cache_key = md5( 'edd_plugin_' .sanitize_key( $this->name ) . '_version_info' );
134
- $version_info = get_transient( $cache_key );
135
-
136
- if( false === $version_info ) {
137
-
138
- $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug ) );
139
-
140
- set_transient( $cache_key, $version_info, 3600 );
141
- }
142
-
143
-
144
- if( ! is_object( $version_info ) ) {
145
- return;
146
- }
147
-
148
- if( version_compare( $this->version, $version_info->new_version, '<' ) ) {
149
-
150
- $update_cache->response[ $this->name ] = $version_info;
151
-
152
- }
153
-
154
- $update_cache->last_checked = time();
155
- $update_cache->checked[ $this->name ] = $this->version;
156
-
157
- set_site_transient( 'update_plugins', $update_cache );
158
-
159
- } else {
160
-
161
- $version_info = $update_cache->response[ $this->name ];
162
-
163
- }
164
-
165
- // Restore our filter
166
- add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
167
-
168
- if ( ! empty( $update_cache->response[ $this->name ] ) && version_compare( $this->version, $version_info->new_version, '<' ) ) {
169
-
170
- // build a plugin list row, with update notification
171
- $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
172
- echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
173
-
174
- $changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
175
-
176
- if ( empty( $version_info->download_link ) ) {
177
- printf(
178
- __( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.', 'edd' ),
179
- esc_html( $version_info->name ),
180
- esc_url( $changelog_link ),
181
- esc_html( $version_info->new_version )
182
- );
183
- } else {
184
- printf(
185
- __( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.', 'edd' ),
186
- esc_html( $version_info->name ),
187
- esc_url( $changelog_link ),
188
- esc_html( $version_info->new_version ),
189
- esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) )
190
- );
191
- }
192
-
193
- echo '</div></td></tr>';
194
- }
195
- }
196
-
197
-
198
- /**
199
- * Updates information on the "View version x.x details" page with custom data.
200
- *
201
- * @uses api_request()
202
- *
203
- * @param mixed $_data
204
- * @param string $_action
205
- * @param object $_args
206
- * @return object $_data
207
- */
208
- function plugins_api_filter( $_data, $_action = '', $_args = null ) {
209
-
210
-
211
- if ( $_action != 'plugin_information' ) {
212
-
213
- return $_data;
214
-
215
- }
216
-
217
- if ( ! isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) {
218
-
219
- return $_data;
220
-
221
- }
222
-
223
- $to_send = array(
224
- 'slug' => $this->slug,
225
- 'is_ssl' => is_ssl(),
226
- 'fields' => array(
227
- 'banners' => false, // These will be supported soon hopefully
228
- 'reviews' => false
229
- )
230
- );
231
-
232
- $api_response = $this->api_request( 'plugin_information', $to_send );
233
-
234
- if ( false !== $api_response ) {
235
- $_data = $api_response;
236
- }
237
-
238
- return $_data;
239
- }
240
-
241
-
242
- /**
243
- * Disable SSL verification in order to prevent download update failures
244
- *
245
- * @param array $args
246
- * @param string $url
247
- * @return object $array
248
- */
249
- function http_request_args( $args, $url ) {
250
- // If it is an https request and we are performing a package download, disable ssl verification
251
- if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
252
- $args['sslverify'] = false;
253
- }
254
- return $args;
255
- }
256
-
257
- /**
258
- * Calls the API and, if successfull, returns the object delivered by the API.
259
- *
260
- * @uses get_bloginfo()
261
- * @uses wp_remote_post()
262
- * @uses is_wp_error()
263
- *
264
- * @param string $_action The requested action.
265
- * @param array $_data Parameters for the API action.
266
- * @return false|object
267
- */
268
- private function api_request( $_action, $_data ) {
269
-
270
- global $wp_version;
271
-
272
- $data = array_merge( $this->api_data, $_data );
273
-
274
- if ( $data['slug'] != $this->slug )
275
- return;
276
-
277
- if ( empty( $data['license'] ) )
278
- return;
279
-
280
- if( $this->api_url == home_url() ) {
281
- return false; // Don't allow a plugin to ping itself
282
- }
283
-
284
- $api_params = array(
285
- 'edd_action' => 'get_version',
286
- 'license' => $data['license'],
287
- 'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
288
- 'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
289
- 'slug' => $data['slug'],
290
- 'author' => $data['author'],
291
- 'url' => home_url()
292
- );
293
-
294
- $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
295
-
296
- if ( ! is_wp_error( $request ) ) {
297
- $request = json_decode( wp_remote_retrieve_body( $request ) );
298
- }
299
-
300
- if ( $request && isset( $request->sections ) ) {
301
- $request->sections = maybe_unserialize( $request->sections );
302
- } else {
303
- $request = false;
304
- }
305
-
306
- return $request;
307
- }
308
-
309
- public function show_changelog() {
310
-
311
-
312
- if( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' != $_REQUEST['edd_sl_action'] ) {
313
- return;
314
- }
315
-
316
- if( empty( $_REQUEST['plugin'] ) ) {
317
- return;
318
- }
319
-
320
- if( empty( $_REQUEST['slug'] ) ) {
321
- return;
322
- }
323
-
324
- if( ! current_user_can( 'update_plugins' ) ) {
325
- wp_die( __( 'You do not have permission to install plugin updates', 'edd' ), __( 'Error', 'edd' ), array( 'response' => 403 ) );
326
- }
327
-
328
- $response = $this->api_request( 'plugin_latest_version', array( 'slug' => $_REQUEST['slug'] ) );
329
-
330
- if( $response && isset( $response->sections['changelog'] ) ) {
331
- echo '<div style="background:#fff;padding:10px;">' . $response->sections['changelog'] . '</div>';
332
- }
333
-
334
-
335
- exit;
336
- }
337
-
338
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/jquery-breakpoints.js CHANGED
@@ -174,8 +174,10 @@ if ( typeof jQuery !== 'undefined' ) {
174
  }
175
 
176
  $.each(breakpoints, function(name, range) {
177
- builder.define(range, { name: prefix + "-" + name });
178
  });
 
 
179
  });
180
  });
181
  }
174
  }
175
 
176
  $.each(breakpoints, function(name, range) {
177
+ builder.define(range, { name: prefix + '-' + name });
178
  });
179
+
180
+ $element.removeClass( prefix + '-no-bp' );
181
  });
182
  });
183
  }
vendors/jquery-breakpoints.min.js CHANGED
@@ -1 +1 @@
1
- var Reusables=Reusables||{};Reusables.Breakpoints=function($){var generateKey=function(){var nextKey=1;return function(){var key="breakpoint-"+nextKey;nextKey++;return key}}(),Queue=function(){var callbacks=[];this.push=function(callback){callbacks.push(callback)};this.process=function(){for(;0!==callbacks.length;)callbacks.pop()()}},enterQueue=new Queue,Breakpoint=function($elements,range,options){this.$elements=$elements;this.range=range;this.options=options;this.key=generateKey();this.elements=function(){var isFunction="function"==typeof $elements,isString="string"==typeof $elements,isJQuery=$elements instanceof jQuery,hasSelector=isJQuery&&!!$elements.selector,elements;isFunction?elements=$elements:isString?elements=function(){return $($elements)}:isJQuery&&hasSelector?elements=function(){return $($elements.selector)}:isJQuery&&(elements=function(){return $elements});return elements}();this.min=range[0]||0;this.max=range[1]||1/0;this.name=function(name,min,max){if(name)return name;max=max===1/0?"up":max;return["breakpoint",min,max].join("-")}(options.name,this.min,this.max);"function"==typeof options.enter?this.enter=options.enter:this.enter=function(){};"function"==typeof options.exit?this.exit=options.exit:this.exit=function(){};return this};Breakpoint.prototype.evaluate=function(){var breakpoint=this;breakpoint.elements().each(function(index,element){var $element=$(element),width=$element.outerWidth(),matchNow=breakpoint.min<=width&&width<breakpoint.max,matchBefore=$element.data(breakpoint.key)||!1,change=matchNow!==matchBefore;if(change){$element.data(breakpoint.key,matchNow);var entering=change&&matchNow,exiting=change&&!matchNow;if(entering)enterQueue.push(function(){$element.addClass(breakpoint.name);breakpoint.enter($element)});else if(exiting){$element.removeClass(breakpoint.name);breakpoint.exit($element)}}})};var Breakpoints={},Builder=function($elements){this.$elements=$elements};Breakpoints.on=function($elements){return new Builder($elements)};!function(){var breakpoints=[];Builder.prototype.define=function(range,options){breakpoints.push(new Breakpoint(this.$elements,range,options));return this};Breakpoints.evaluate=function(){for(var length=breakpoints.length,i=0;i<length;i++)breakpoints[i].evaluate();enterQueue.process()}}();$(document).on("ready.reusables.breakpoints",Breakpoints.evaluate);$(window).on("resize.reusables.breakpoints",Breakpoints.evaluate);return Breakpoints}(jQuery);"undefined"!=typeof jQuery&&jQuery(function($){$("[data-breakpoints]").each(function(){var $element=$(this),breakpoints,classPrefix,builder=Reusables.Breakpoints.on($element),prefix=$element.attr("data-breakpoints-class-prefix")||"breakpoint",breakpoints=$.parseJSON($element.attr("data-breakpoints"));$.isPlainObject(breakpoints)&&$.each(breakpoints,function(name,range){builder.define(range,{name:prefix+"-"+name})})})});
1
+ var Reusables=Reusables||{};Reusables.Breakpoints=function($){var generateKey=function(){var nextKey=1;return function(){var key="breakpoint-"+nextKey;nextKey++;return key}}(),Queue=function(){var callbacks=[];this.push=function(callback){callbacks.push(callback)};this.process=function(){for(;0!==callbacks.length;)callbacks.pop()()}},enterQueue=new Queue,Breakpoint=function($elements,range,options){this.$elements=$elements;this.range=range;this.options=options;this.key=generateKey();this.elements=function(){var isFunction="function"==typeof $elements,isString="string"==typeof $elements,isJQuery=$elements instanceof jQuery,hasSelector=isJQuery&&!!$elements.selector,elements;isFunction?elements=$elements:isString?elements=function(){return $($elements)}:isJQuery&&hasSelector?elements=function(){return $($elements.selector)}:isJQuery&&(elements=function(){return $elements});return elements}();this.min=range[0]||0;this.max=range[1]||1/0;this.name=function(name,min,max){if(name)return name;max=max===1/0?"up":max;return["breakpoint",min,max].join("-")}(options.name,this.min,this.max);"function"==typeof options.enter?this.enter=options.enter:this.enter=function(){};"function"==typeof options.exit?this.exit=options.exit:this.exit=function(){};return this};Breakpoint.prototype.evaluate=function(){var breakpoint=this;breakpoint.elements().each(function(index,element){var $element=$(element),width=$element.outerWidth(),matchNow=breakpoint.min<=width&&width<breakpoint.max,matchBefore=$element.data(breakpoint.key)||!1,change=matchNow!==matchBefore;if(change){$element.data(breakpoint.key,matchNow);var entering=change&&matchNow,exiting=change&&!matchNow;if(entering)enterQueue.push(function(){$element.addClass(breakpoint.name);breakpoint.enter($element)});else if(exiting){$element.removeClass(breakpoint.name);breakpoint.exit($element)}}})};var Breakpoints={},Builder=function($elements){this.$elements=$elements};Breakpoints.on=function($elements){return new Builder($elements)};!function(){var breakpoints=[];Builder.prototype.define=function(range,options){breakpoints.push(new Breakpoint(this.$elements,range,options));return this};Breakpoints.evaluate=function(){for(var length=breakpoints.length,i=0;i<length;i++)breakpoints[i].evaluate();enterQueue.process()}}();$(document).on("ready.reusables.breakpoints",Breakpoints.evaluate);$(window).on("resize.reusables.breakpoints",Breakpoints.evaluate);return Breakpoints}(jQuery);"undefined"!=typeof jQuery&&jQuery(function($){$("[data-breakpoints]").each(function(){var $element=$(this),breakpoints,classPrefix,builder=Reusables.Breakpoints.on($element),prefix=$element.attr("data-breakpoints-class-prefix")||"breakpoint",breakpoints=$.parseJSON($element.attr("data-breakpoints"));if($.isPlainObject(breakpoints)){$.each(breakpoints,function(name,range){builder.define(range,{name:prefix+"-"+name})});$element.removeClass(prefix+"-no-bp")}})});
vendors/recaptcha/ReCaptcha/ReCaptcha.php DELETED
@@ -1,97 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha;
28
-
29
- /**
30
- * reCAPTCHA client.
31
- */
32
- class ReCaptcha
33
- {
34
- /**
35
- * Version of this client library.
36
- * @const string
37
- */
38
- const VERSION = 'php_1.1.1';
39
-
40
- /**
41
- * Shared secret for the site.
42
- * @var type string
43
- */
44
- private $secret;
45
-
46
- /**
47
- * Method used to communicate with service. Defaults to POST request.
48
- * @var RequestMethod
49
- */
50
- private $requestMethod;
51
-
52
- /**
53
- * Create a configured instance to use the reCAPTCHA service.
54
- *
55
- * @param string $secret shared secret between site and reCAPTCHA server.
56
- * @param RequestMethod $requestMethod method used to send the request. Defaults to POST.
57
- */
58
- public function __construct($secret, RequestMethod $requestMethod = null)
59
- {
60
- if (empty($secret)) {
61
- throw new \RuntimeException('No secret provided');
62
- }
63
-
64
- if (!is_string($secret)) {
65
- throw new \RuntimeException('The provided secret must be a string');
66
- }
67
-
68
- $this->secret = $secret;
69
-
70
- if (!is_null($requestMethod)) {
71
- $this->requestMethod = $requestMethod;
72
- } else {
73
- $this->requestMethod = new RequestMethod\Post();
74
- }
75
- }
76
-
77
- /**
78
- * Calls the reCAPTCHA siteverify API to verify whether the user passes
79
- * CAPTCHA test.
80
- *
81
- * @param string $response The value of 'g-recaptcha-response' in the submitted form.
82
- * @param string $remoteIp The end user's IP address.
83
- * @return Response Response from the service.
84
- */
85
- public function verify($response, $remoteIp = null)
86
- {
87
- // Discard empty solution submissions
88
- if (empty($response)) {
89
- $recaptchaResponse = new Response(false, array('missing-input-response'));
90
- return $recaptchaResponse;
91
- }
92
-
93
- $params = new RequestParameters($this->secret, $response, $remoteIp, self::VERSION);
94
- $rawResponse = $this->requestMethod->submit($params);
95
- return Response::fromJson($rawResponse);
96
- }
97
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestMethod.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha;
28
-
29
- /**
30
- * Method used to send the request to the service.
31
- */
32
- interface RequestMethod
33
- {
34
-
35
- /**
36
- * Submit the request with the specified parameters.
37
- *
38
- * @param RequestParameters $params Request parameters
39
- * @return string Body of the reCAPTCHA response
40
- */
41
- public function submit(RequestParameters $params);
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestMethod/Curl.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
-
3
- namespace ReCaptcha\RequestMethod;
4
-
5
- use ReCaptcha\RequestMethod;
6
- use ReCaptcha\RequestParameters;
7
-
8
- /**
9
- * Sends cURL request to the reCAPTCHA service.
10
- */
11
- class Curl implements RequestMethod
12
- {
13
- /**
14
- * URL to which requests are sent via cURL.
15
- * @const string
16
- */
17
- const SITE_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
18
-
19
- /**
20
- * Submit the cURL request with the specified parameters.
21
- *
22
- * @param RequestParameters $params Request parameters
23
- * @return string Body of the reCAPTCHA response
24
- */
25
- public function submit(RequestParameters $params)
26
- {
27
- $handle = curl_init(self::SITE_VERIFY_URL);
28
-
29
- $options = array(
30
- CURLOPT_POST => true,
31
- CURLOPT_POSTFIELDS => $params->toQueryString(),
32
- CURLOPT_HTTPHEADER => array(
33
- 'Content-Type: application/x-www-form-urlencoded'
34
- ),
35
- CURLINFO_HEADER_OUT => false,
36
- CURLOPT_HEADER => false,
37
- CURLOPT_RETURNTRANSFER => true,
38
- CURLOPT_SSL_VERIFYPEER => true
39
- );
40
- curl_setopt_array($handle, $options);
41
-
42
- $response = curl_exec($handle);
43
- curl_close($handle);
44
-
45
- return $response;
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestMethod/Post.php DELETED
@@ -1,70 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha\RequestMethod;
28
-
29
- use ReCaptcha\RequestMethod;
30
- use ReCaptcha\RequestParameters;
31
-
32
- /**
33
- * Sends POST requests to the reCAPTCHA service.
34
- */
35
- class Post implements RequestMethod
36
- {
37
- /**
38
- * URL to which requests are POSTed.
39
- * @const string
40
- */
41
- const SITE_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
42
-
43
- /**
44
- * Submit the POST request with the specified parameters.
45
- *
46
- * @param RequestParameters $params Request parameters
47
- * @return string Body of the reCAPTCHA response
48
- */
49
- public function submit(RequestParameters $params)
50
- {
51
- /**
52
- * PHP 5.6.0 changed the way you specify the peer name for SSL context options.
53
- * Using "CN_name" will still work, but it will raise deprecated errors.
54
- */
55
- $peer_key = version_compare(PHP_VERSION, '5.6.0', '<') ? 'CN_name' : 'peer_name';
56
- $options = array(
57
- 'http' => array(
58
- 'header' => "Content-type: application/x-www-form-urlencoded\r\n",
59
- 'method' => 'POST',
60
- 'content' => $params->toQueryString(),
61
- // Force the peer to validate (not needed in 5.6.0+, but still works
62
- 'verify_peer' => true,
63
- // Force the peer validation to use www.google.com
64
- $peer_key => 'www.google.com',
65
- ),
66
- );
67
- $context = stream_context_create($options);
68
- return file_get_contents(self::SITE_VERIFY_URL, false, $context);
69
- }
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestMethod/Socket.php DELETED
@@ -1,104 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha\RequestMethod;
28
-
29
- /**
30
- * Convenience wrapper around native socket and file functions to allow for
31
- * mocking.
32
- */
33
- class Socket
34
- {
35
- private $handle = null;
36
-
37
- /**
38
- * fsockopen
39
- *
40
- * @see http://php.net/fsockopen
41
- * @param string $hostname
42
- * @param int $port
43
- * @param int $errno
44
- * @param string $errstr
45
- * @param float $timeout
46
- * @return resource
47
- */
48
- public function fsockopen($hostname, $port = -1, &$errno = 0, &$errstr = '', $timeout = null)
49
- {
50
- $this->handle = fsockopen($hostname, $port, $errno, $errstr, (is_null($timeout) ? ini_get("default_socket_timeout") : $timeout));
51
-
52
- if ($this->handle != false && $errno === 0 && $errstr === '') {
53
- return $this->handle;
54
- } else {
55
- return false;
56
- }
57
- }
58
-
59
- /**
60
- * fwrite
61
- *
62
- * @see http://php.net/fwrite
63
- * @param string $string
64
- * @param int $length
65
- * @return int | bool
66
- */
67
- public function fwrite($string, $length = null)
68
- {
69
- return fwrite($this->handle, $string, (is_null($length) ? strlen($string) : $length));
70
- }
71
-
72
- /**
73
- * fgets
74
- *
75
- * @see http://php.net/fgets
76
- * @param int $length
77
- */
78
- public function fgets($length = null)
79
- {
80
- return fgets($this->handle, $length);
81
- }
82
-
83
- /**
84
- * feof
85
- *
86
- * @see http://php.net/feof
87
- * @return bool
88
- */
89
- public function feof()
90
- {
91
- return feof($this->handle);
92
- }
93
-
94
- /**
95
- * fclose
96
- *
97
- * @see http://php.net/fclose
98
- * @return bool
99
- */
100
- public function fclose()
101
- {
102
- return fclose($this->handle);
103
- }
104
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestMethod/SocketPost.php DELETED
@@ -1,120 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha\RequestMethod;
28
-
29
- use ReCaptcha\RequestMethod;
30
- use ReCaptcha\RequestParameters;
31
-
32
- /**
33
- * Sends a POST request to the reCAPTCHA service, but makes use of fsockopen()
34
- * instead of get_file_contents(). This is to account for people who may be on
35
- * servers where allow_furl_open is disabled.
36
- */
37
- class SocketPost implements RequestMethod
38
- {
39
- /**
40
- * reCAPTCHA service host.
41
- * @const string
42
- */
43
- const RECAPTCHA_HOST = 'www.google.com';
44
-
45
- /**
46
- * @const string reCAPTCHA service path
47
- */
48
- const SITE_VERIFY_PATH = '/recaptcha/api/siteverify';
49
-
50
- /**
51
- * @const string Bad request error
52
- */
53
- const BAD_REQUEST = '{"success": false, "error-codes": ["invalid-request"]}';
54
-
55
- /**
56
- * @const string Bad response error
57
- */
58
- const BAD_RESPONSE = '{"success": false, "error-codes": ["invalid-response"]}';
59
-
60
- /**
61
- * Socket to the reCAPTCHA service
62
- * @var Socket
63
- */
64
- private $socket;
65
-
66
- /**
67
- * Constructor
68
- *
69
- * @param \ReCaptcha\RequestMethod\Socket $socket optional socket, injectable for testing
70
- */
71
- public function __construct(Socket $socket = null)
72
- {
73
- if (!is_null($socket)) {
74
- $this->socket = $socket;
75
- } else {
76
- $this->socket = new Socket();
77
- }
78
- }
79
-
80
- /**
81
- * Submit the POST request with the specified parameters.
82
- *
83
- * @param RequestParameters $params Request parameters
84
- * @return string Body of the reCAPTCHA response
85
- */
86
- public function submit(RequestParameters $params)
87
- {
88
- $errno = 0;
89
- $errstr = '';
90
-
91
- if ($this->socket->fsockopen('ssl://' . self::RECAPTCHA_HOST, 443, $errno, $errstr, 30) !== false) {
92
- $content = $params->toQueryString();
93
-
94
- $request = "POST " . self::SITE_VERIFY_PATH . " HTTP/1.1\r\n";
95
- $request .= "Host: " . self::RECAPTCHA_HOST . "\r\n";
96
- $request .= "Content-Type: application/x-www-form-urlencoded\r\n";
97
- $request .= "Content-length: " . strlen($content) . "\r\n";
98
- $request .= "Connection: close\r\n\r\n";
99
- $request .= $content . "\r\n\r\n";
100
-
101
- $this->socket->fwrite($request);
102
- $response = '';
103
-
104
- while (!$this->socket->feof()) {
105
- $response .= $this->socket->fgets(4096);
106
- }
107
-
108
- $this->socket->fclose();
109
-
110
- if (0 === strpos($response, 'HTTP/1.1 200 OK')) {
111
- $parts = preg_split("#\n\s*\n#Uis", $response);
112
- return $parts[1];
113
- }
114
-
115
- return self::BAD_RESPONSE;
116
- }
117
-
118
- return self::BAD_REQUEST;
119
- }
120
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/RequestParameters.php DELETED
@@ -1,103 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha;
28
-
29
- /**
30
- * Stores and formats the parameters for the request to the reCAPTCHA service.
31
- */
32
- class RequestParameters
33
- {
34
- /**
35
- * Site secret.
36
- * @var string
37
- */
38
- private $secret;
39
-
40
- /**
41
- * Form response.
42
- * @var string
43
- */
44
- private $response;
45
-
46
- /**
47
- * Remote user's IP address.
48
- * @var string
49
- */
50
- private $remoteIp;
51
-
52
- /**
53
- * Client version.
54
- * @var string
55
- */
56
- private $version;
57
-
58
- /**
59
- * Initialise parameters.
60
- *
61
- * @param string $secret Site secret.
62
- * @param string $response Value from g-captcha-response form field.
63
- * @param string $remoteIp User's IP address.
64
- * @param string $version Version of this client library.
65
- */
66
- public function __construct($secret, $response, $remoteIp = null, $version = null)
67
- {
68
- $this->secret = $secret;
69
- $this->response = $response;
70
- $this->remoteIp = $remoteIp;
71
- $this->version = $version;
72
- }
73
-
74
- /**
75
- * Array representation.
76
- *
77
- * @return array Array formatted parameters.
78
- */
79
- public function toArray()
80
- {
81
- $params = array('secret' => $this->secret, 'response' => $this->response);
82
-
83
- if (!is_null($this->remoteIp)) {
84
- $params['remoteip'] = $this->remoteIp;
85
- }
86
-
87
- if (!is_null($this->version)) {
88
- $params['version'] = $this->version;
89
- }
90
-
91
- return $params;
92
- }
93
-
94
- /**
95
- * Query string representation for HTTP request.
96
- *
97
- * @return string Query string formatted parameters.
98
- */
99
- public function toQueryString()
100
- {
101
- return http_build_query($this->toArray(), '', '&');
102
- }
103
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/ReCaptcha/Response.php DELETED
@@ -1,102 +0,0 @@
1
- <?php
2
- /**
3
- * This is a PHP library that handles calling reCAPTCHA.
4
- *
5
- * @copyright Copyright (c) 2015, Google Inc.
6
- * @link http://www.google.com/recaptcha
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
-
27
- namespace ReCaptcha;
28
-
29
- /**
30
- * The response returned from the service.
31
- */
32
- class Response
33
- {
34
- /**
35
- * Succes or failure.
36
- * @var boolean
37
- */
38
- private $success = false;
39
-
40
- /**
41
- * Error code strings.
42
- * @var array
43
- */
44
- private $errorCodes = array();
45
-
46
- /**
47
- * Build the response from the expected JSON returned by the service.
48
- *
49
- * @param string $json
50
- * @return \ReCaptcha\Response
51
- */
52
- public static function fromJson($json)
53
- {
54
- $responseData = json_decode($json, true);
55
-
56
- if (!$responseData) {
57
- return new Response(false, array('invalid-json'));
58
- }
59
-
60
- if (isset($responseData['success']) && $responseData['success'] == true) {
61
- return new Response(true);
62
- }
63
-
64
- if (isset($responseData['error-codes']) && is_array($responseData['error-codes'])) {
65
- return new Response(false, $responseData['error-codes']);
66
- }
67
-
68
- return new Response(false);
69
- }
70
-
71
- /**
72
- * Constructor.
73
- *
74
- * @param boolean $success
75
- * @param array $errorCodes
76
- */
77
- public function __construct($success, array $errorCodes = array())
78
- {
79
- $this->success = $success;
80
- $this->errorCodes = $errorCodes;
81
- }
82
-
83
- /**
84
- * Is success?
85
- *
86
- * @return boolean
87
- */
88
- public function isSuccess()
89
- {
90
- return $this->success;
91
- }
92
-
93
- /**
94
- * Get error codes.
95
- *
96
- * @return array
97
- */
98
- public function getErrorCodes()
99
- {
100
- return $this->errorCodes;
101
- }
102
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendors/recaptcha/autoload.php DELETED
@@ -1,38 +0,0 @@
1
- <?php
2
-
3
- /* An autoloader for ReCaptcha\Foo classes. This should be require()d
4
- * by the user before attempting to instantiate any of the ReCaptcha
5
- * classes.
6
- */
7
-
8
- spl_autoload_register(function ($class) {
9
- if (substr($class, 0, 10) !== 'ReCaptcha\\') {
10
- /* If the class does not lie under the "ReCaptcha" namespace,
11
- * then we can exit immediately.
12
- */
13
- return;
14
- }
15
-
16
- /* All of the classes have names like "ReCaptcha\Foo", so we need
17
- * to replace the backslashes with frontslashes if we want the
18
- * name to map directly to a location in the filesystem.
19
- */
20
- $class = str_replace('\\', '/', $class);
21
-
22
- /* First, check under the current directory. It is important that
23
- * we look here first, so that we don't waste time searching for
24
- * test classes in the common case.
25
- */
26
- $path = dirname(__FILE__).'/'.$class.'.php';
27
- if (is_readable($path)) {
28
- require_once $path;
29
- }
30
-
31
- /* If we didn't find what we're looking for already, maybe it's
32
- * a test class?
33
- */
34
- $path = dirname(__FILE__).'/../tests/'.$class.'.php';
35
- if (is_readable($path)) {
36
- require_once $path;
37
- }
38
- });