Skip to content

Commit

Permalink
Added a shortcode to display 'Support us' message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Darrigade committed Feb 21, 2018
1 parent 845dd24 commit 42d2f8c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 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.7' ) . ' */ var mltpss = new Multipass.default(' . $settings . ');</script>';
$output .= '<script>/* SQweb v' . ( defined( 'SQW_VERSION' ) ? SQW_VERSION : '2.8.8' ) . ' */ 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.7' );
define( 'SQW_VERSION', '2.8.8' );
5 changes: 4 additions & 1 deletion 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.7
Stable tag: 2.8.8
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html

Expand Down Expand Up @@ -154,6 +154,9 @@ You can keep your current adverting setup. We're compatible with AdSense, Double

== Changelog ==

= v2.8.8 =
* Implemented a shortcode to display the "Support us" message

= v2.8.7 =
* Fixed iframe sometimes not appearing

Expand Down
6 changes: 6 additions & 0 deletions src/shortcode-function.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ function sqweb_add_filter_short_code( $atts = array(), $content = null, $tag = '
}
}

function sqweb_support_button_short_code( $atts = array(), $content = null, $tag = '' ) {
echo sqw_support_button_html();
}

add_shortcode( 'sqweb_support_us', 'sqweb_support_button_short_code' );

add_shortcode( 'sqweb_button', 'sqweb_button_short_code' );

add_shortcode( 'sqweb_add_filter', 'sqweb_add_filter_short_code' );
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.7
Version: 2.8.8
Author: Multipass
Author URI: https://www.multipass.net
Text Domain: sqweb
Expand Down

0 comments on commit 42d2f8c

Please sign in to comment.