Skip to content

Commit

Permalink
Tag 2.7.0 (#1323)
Browse files Browse the repository at this point in the history
Tag 2.7.0
  • Loading branch information
thrijith authored Oct 24, 2019
2 parents 659f6de + 18011fe commit 9206385
Show file tree
Hide file tree
Showing 34 changed files with 3,143 additions and 216 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug---feature-.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 'Bug / Feature '
about: Create a report to help us improve
title: ''
labels: ''
assignees: thrijith

---

**User Story**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behaviour:
1. Go to '...'
2. Click on '....'
3. See error

**Acceptance Criteria**
A clear and concise description of what you expected to happen.

**Mockup**
If applicable, add mockup.

**Technical Documentation**
If applicable, add any technical documentation.

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "laterpay/laterpay-wordpress-plugin",
"description": "This is the official LaterPay plugin for selling digital content with WordPress",
"license": "MIT",
"version": "2.6.5",
"version": "2.7.0",
"config": {
"vendor-dir": "laterpay/vendor",
"secure-http": true
Expand Down
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var gulp = require('gulp'),
// OPTIONS -------------------------------------------------------------------------------------------------------------
var gulpKnownOptions = {
string: 'version',
default: { version: '2.6.5' }
default: { version: '2.7.0' }
};
var gulpOptions = minimist(process.argv.slice(2), gulpKnownOptions);
gulpOptions.svn = {};
Expand Down
14 changes: 10 additions & 4 deletions laterpay/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Contributors: laterpay, dominik-rodler, mihail-turalenka, avahura, ahryb
Donate link: https://laterpay.net
Tags: laterpay, accept micropayments, accept payments, access control, billing, buy now pay later, content monetization, creditcard, debitcard, free to read, laterpay for wordpress, laterpay payment, laterpay plugin, micropayments, monetize, paid content, pay button, pay per use, payments, paywall, PPU, sell digital content, sell digital goods, single sale, wordpress laterpay, Payments, Content Monetization, Paywall, Paid Content, Publisher, Blogger, conversion, paygate, monetization
Requires at least: 4.6
Tested up to: 5.2.3
Stable tag: 2.6.5
Tested up to: 5.3
Requires PHP: 5.6
Stable tag: 2.7.0
Author URI: https://laterpay.net
Plugin URI: https://github.com/laterpay/laterpay-wordpress-plugin
License: MIT
Expand Down Expand Up @@ -88,6 +89,11 @@ Yes!
6. The plugin provides a variety of advanced settings to customize the LaterPay plugin and adjust it to your needs.

== Changelog ==
= 2.7.0 ( October 24, 2019 ) =
* Add `[laterpay_contribution]` shortcode for publishers to accept Contributions.
* Add Contributions tab, to allow publishers to generate Contribution shortcode dynamically.
* Remove Free Items from Purchase Overlay.

= 2.6.5 ( September 30, 2019 ) Hotfix Release =
* Fix issue with Global Pricing behaviour override.

Expand Down Expand Up @@ -672,8 +678,8 @@ KNOWN BUGS:

== Upgrade notice ==

= 2.6.5 ( September 30, 2019 ) =
Fix issue with Global Pricing behaviour override.
= 2.7.0 ( October 24, 2019 ) =
New shortocde that allows publishers to accept Contributions, brand new Contributions tab to generate Contributions shortcode and minor bug fix in Purchase Overlay.

== Arbitrary section ==

Expand Down
27 changes: 20 additions & 7 deletions laterpay/application/Controller/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ public function run( $tab = '' ) {
$pricing_controller->render_page();
break;

// render contributions tab
case 'contributions':
$contributions_controller = new LaterPay_Controller_Admin_Contributions( $this->config );
$contributions_controller->render_page();
break;

// render appearance tab
case 'appearance':
$appearance_controller = new LaterPay_Controller_Admin_Appearance( $this->config );
Expand Down Expand Up @@ -814,7 +820,13 @@ public function get_admin_menu( LaterPay_Core_Event $event ) {

$menu['pricing'] = array(
'url' => 'laterpay-pricing-tab',
'title' => __( 'Pricing', 'laterpay' ),
'title' => __( 'Paywall', 'laterpay' ),
'cap' => 'activate_plugins',
);

$menu['contributions'] = array(
'url' => 'laterpay-contributions-tab',
'title' => esc_html__( 'Contributions', 'laterpay' ),
'cap' => 'activate_plugins',
);

Expand Down Expand Up @@ -881,7 +893,7 @@ public static function register_common_scripts( $page, $data_for_localize = [] )
}

// Allowed pages for notice and instruction.
$lp_update_notice_allowed_page = [ 'pricing', 'appearance', 'advanced', 'account' ];
$lp_update_notice_allowed_page = [ 'pricing', 'appearance', 'advanced', 'account', 'contributions' ];

// Check if current page is in allowed page.
if ( in_array( $page, $lp_update_notice_allowed_page, true ) ) {
Expand All @@ -891,7 +903,7 @@ public static function register_common_scripts( $page, $data_for_localize = [] )
if ( ! empty( $ga_data['update_highlights']['version'] ) ) {
$version_update_number = $ga_data['update_highlights']['version'];
$ga_data['update_highlights']['version'] = sprintf( esc_html__( 'Version %s Highlights:', 'laterpay' ), $version_update_number );
$ga_data['update_highlights']['notice'] = sprintf( esc_html__( 'Have you seen our Contextual Help? Click the Help box in the upper right corner of any page to get relevant information.', 'laterpay' ) );
$ga_data['update_highlights']['notice'] = sprintf( esc_html__( 'At long last, one of our most highly requested features is here! Check out the new Contributions tab to explore our newest feature.', 'laterpay' ) );
$ga_data['update_highlights_nonce'] = wp_create_nonce( 'update_highlights_nonce' );
}

Expand All @@ -900,15 +912,16 @@ public static function register_common_scripts( $page, $data_for_localize = [] )
$data_for_localize['learn_more'] = __( 'Learn More', 'laterpay' );

$tab_information = [
'appearance' => sprintf( __( '%sOptional%s Use the appearance tab to configure your payment button colors and how your pricing options are displayed.', 'laterpay' ), '<b>', '</b>' ),
'pricing' => sprintf( __( '%sREQUIRED%s Use this tab to configure your default prices. Prices can also be set for an individual post on the edit post page.', 'laterpay' ), '<b>', '</b>' ),
'advanced' => sprintf( __( '%sOptional%s Here we highlight advanced features & settings like selling downloadable content and promoting your subscriptions. Scroll through to learn more!', 'laterpay' ), '<b>', '</b>' ),
'appearance' => sprintf( __( '%sOptional%s Use the appearance tab to configure your payment button colors and how your pricing options are displayed.', 'laterpay' ), '<b>', '</b>' ),
'pricing' => sprintf( __( '%sREQUIRED%s Use this tab to configure your default prices. Prices can also be set for an individual post on the edit post page.', 'laterpay' ), '<b>', '</b>' ),
'advanced' => sprintf( __( '%sOptional%s Here we highlight advanced features & settings like selling downloadable content and promoting your subscriptions. Scroll through to learn more!', 'laterpay' ), '<b>', '</b>' ),
'contributions' => sprintf( __( '%sOptional%s To request contributions, use the editor below to configure your contributions request then copy the shortcode anywhere on your site.', 'laterpay' ), '<b>', '</b>' ),
];

$tab_information_status = get_option( 'lp_tabular_info' );

foreach ( $tab_information as $key => $value ) {
if ( 1 === absint( $tab_information_status[ $key ] ) ) {
if ( isset( $tab_information_status[ $key ] ) && 1 === absint( $tab_information_status[ $key ] ) ) {
$data_for_localize['lp_instructional_info'][ $key ] = $value;
}
}
Expand Down
Loading

0 comments on commit 9206385

Please sign in to comment.