Skip to content

Commit

Permalink
Forgot to add an onclick on the new table
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Darrigade committed Feb 9, 2018
1 parent 2eb91e5 commit 845dd24
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/class/class-sqweb-build-script.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function generate() {
));

$output = '<script src="https://cdn.multipass.net/mltpss.min.js" type="text/javascript"></script>' . PHP_EOL;
$output .= '<script>/* SQweb v' . ( defined( 'SQW_VERSION' ) ? SQW_VERSION : '2.8.6' ) . ' */ var mltpss = new Multipass.default(' . $settings . ');</script>';
$output .= '<script>/* SQweb v' . ( defined( 'SQW_VERSION' ) ? SQW_VERSION : '2.8.7' ) . ' */ var mltpss = new Multipass.default(' . $settings . ');</script>';

echo $output;
}
Expand Down
2 changes: 1 addition & 1 deletion src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ function sqw_site_url() {
// Self-Explanatory
define( 'SQW_ENDPOINT', 'https://api.multipass.net/' );
define( 'DEBUG_MODE', 0 );
define( 'SQW_VERSION', '2.8.6' );
define( 'SQW_VERSION', '2.8.7' );
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function sqw_support_button_html() {
</td>
</tr>
<tr>
<td class="sqw-table-footer-footer">
<td onclick="mltpss.modal_first(event)" class="sqw-table-footer-footer">
<span class="sqw-table-footer-footer-text">'
. __( 'Support us with', 'sqweb' )
. '</span>
Expand Down
17 changes: 10 additions & 7 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: plavaux, nverdonc, bastienbotella, matdarr
Tags: paywall, subscription, adblock, analytics, support
Requires at least: 3.6
Tested up to: 4.9.4
Stable tag: 2.8.6
Stable tag: 2.8.7
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html

Expand Down Expand Up @@ -59,7 +59,7 @@ To manage your advertisement blocks, use the following function :

`
<?php
SQweb_filter::get_instance()->add_ads('YOUR ADVERTISEMENT CODE HERE');
SQweb_filter::get_instance()->add_ads('YOUR ADVERTISEMENT CODE HERE');
?>
`

Expand All @@ -69,7 +69,7 @@ If you wish to show extra content to your subscribers, you can add a second para

`
<?php
SQweb_filter::get_instance()->add_ads('YOUR ADVERTISEMENT CODE HERE', 'YOUR SUBSCRIBER CONTENT HERE');
SQweb_filter::get_instance()->add_ads('YOUR ADVERTISEMENT CODE HERE', 'YOUR SUBSCRIBER CONTENT HERE');
?>
`

Expand Down Expand Up @@ -105,23 +105,23 @@ You can add in your theme on function.php a filter to edit the box displayed by
Example to add content after box:
`
function box_sqweb( $content ) {
return $content . 'I add my content';
return $content . 'I add my content';
}

add_filter( 'sqw_msg_restrict_cut_art_perc', 'box_sqweb' );
`

`
function box_sqweb( $content ) {
return $content . 'I add my content';
return $content . 'I add my content';
}

add_filter( 'sqw_msg_restrict_art_by_day', 'box_sqweb' );
`

`
function box_sqweb( $content ) {
return $content . 'I add my content';
return $content . 'I add my content';
}

add_filter( 'sqw_msg_restrict_date_art', 'box_sqweb' );
Expand All @@ -132,7 +132,7 @@ You can also delete the box to create your customized box for your website.
Example to create your own box :
`
function box_sqweb( $content ) {
return 'I don\'t need the box so I create a customized box';
return 'I don\'t need the box so I create a customized box';
}

add_filter( 'sqw_msg_restrict_cut_art_perc', 'box_sqweb' );
Expand All @@ -154,6 +154,9 @@ You can keep your current adverting setup. We're compatible with AdSense, Double

== Changelog ==

= v2.8.7 =
* Fixed iframe sometimes not appearing

= v2.8.6 =
* Improved the compatibility of the "Support us" display

Expand Down
2 changes: 1 addition & 1 deletion src/sqweb.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Multipass
Plugin URI: https://www.multipass.net/
Description: Earn money with user subscriptions instead of advertising. Set up a simple universal subscription on your site with just a few clicks. Includes adblock detection and targeting.
Version: 2.8.6
Version: 2.8.7
Author: Multipass
Author URI: https://www.multipass.net
Text Domain: sqweb
Expand Down

0 comments on commit 845dd24

Please sign in to comment.