Version Description
- Fixed: Updated library to prevent conflict with PHP version 7
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.25 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.24 to 1.0.25
- admin/controllers/FFWDControllerUninstall_ffwd.php +69 -63
- facebook-feed-wd.php +2 -2
- readme.txt +4 -1
- wd/README.md +2 -1
- wd/assets/css/deactivate_popup.css +1 -1
- wd/assets/css/overview.css +8 -1
- wd/assets/img/fm_main_plugin.png +0 -0
- wd/assets/js/deactivate_popup.js +1 -0
- wd/includes/api.php +1 -1
- wd/includes/deactivate.php +15 -4
- wd/includes/overview.php +10 -8
- wd/includes/subscribe.php +1 -1
- wd/templates/display_deactivation_popup.php +27 -27
- wd/templates/display_overview.php +39 -29
- wd/templates/display_overview_deals.php +0 -7
- wd/templates/display_overview_support.php +1 -1
- wd/templates/display_subscribe.php +1 -1
- wd/wd.php +12 -2
admin/controllers/FFWDControllerUninstall_ffwd.php
CHANGED
|
@@ -1,74 +1,80 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
class FFWDControllerUninstall_ffwd
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
global $ffwd_options;
|
| 19 |
-
if(!class_exists("DoradoWebConfig")){
|
| 20 |
-
include_once (WD_FFWD_DIR . "/wd/config.php");
|
| 21 |
-
}
|
| 22 |
-
$config = new DoradoWebConfig();
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
if(!WDW_FFWD_Library::verify_nonce('uninstall_ffwd')){
|
| 37 |
-
die('Sorry, your nonce did not verify.');
|
| 38 |
-
}
|
| 39 |
-
}
|
| 40 |
-
if (method_exists($this, $task)) {
|
| 41 |
-
$this->$task();
|
| 42 |
}
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
-
}
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
}
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
class FFWDControllerUninstall_ffwd
|
| 4 |
+
{
|
| 5 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 6 |
+
// Events //
|
| 7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 8 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 9 |
+
// Constants //
|
| 10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 11 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 12 |
+
// Variables //
|
| 13 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 14 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
// Constructor & Destructor //
|
| 16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 17 |
+
public function __construct()
|
| 18 |
+
{
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
global $ffwd_options;
|
| 22 |
+
if (!class_exists("DoradoWebConfig")) {
|
| 23 |
+
include_once(WD_FFWD_DIR . "/wd/config.php");
|
| 24 |
+
}
|
| 25 |
+
if (!class_exists("DoradoWebDeactivate")) {
|
| 26 |
+
include_once(WD_FFWD_DIR . "/wd/includes/deactivate.php");
|
| 27 |
+
}
|
| 28 |
+
$config = new DoradoWebConfig();
|
| 29 |
+
$config->set_options($ffwd_options);
|
| 30 |
+
$deactivate_reasons = new DoradoWebDeactivate($config);
|
| 31 |
+
//$deactivate_reasons->add_deactivation_feedback_dialog_box();
|
| 32 |
+
$deactivate_reasons->submit_and_deactivate();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 35 |
+
// Public Methods //
|
| 36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 37 |
+
public function execute()
|
| 38 |
+
{
|
| 39 |
+
$task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
|
| 40 |
+
if ($task != '') {
|
| 41 |
+
if (!WDW_FFWD_Library::verify_nonce('uninstall_ffwd')) {
|
| 42 |
+
die('Sorry, your nonce did not verify.');
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
if (method_exists($this, $task)) {
|
| 46 |
+
$this->$task();
|
| 47 |
+
} else {
|
| 48 |
+
$this->display();
|
| 49 |
+
}
|
| 50 |
}
|
|
|
|
| 51 |
|
| 52 |
+
public function display()
|
| 53 |
+
{
|
| 54 |
+
require_once WD_FFWD_DIR . "/admin/models/FFWDModelUninstall_ffwd.php";
|
| 55 |
+
$model = new FFWDModelUninstall_ffwd();
|
| 56 |
|
| 57 |
+
require_once WD_FFWD_DIR . "/admin/views/FFWDViewUninstall_ffwd.php";
|
| 58 |
+
$view = new FFWDViewUninstall_ffwd($model);
|
| 59 |
+
$view->display();
|
| 60 |
+
}
|
| 61 |
|
| 62 |
+
public function uninstall()
|
| 63 |
+
{
|
| 64 |
+
require_once WD_FFWD_DIR . "/admin/models/FFWDModelUninstall_ffwd.php";
|
| 65 |
+
$model = new FFWDModelUninstall_ffwd();
|
| 66 |
|
| 67 |
+
require_once WD_FFWD_DIR . "/admin/views/FFWDViewUninstall_ffwd.php";
|
| 68 |
+
$view = new FFWDViewUninstall_ffwd($model);
|
| 69 |
+
$view->uninstall();
|
| 70 |
+
}
|
| 71 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 72 |
+
// Getters & Setters //
|
| 73 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 74 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 75 |
+
// Private Methods //
|
| 76 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 77 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 78 |
+
// Listeners //
|
| 79 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 80 |
}
|
facebook-feed-wd.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin Name: Facebook Feed WD
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
| 6 |
* Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
-
* Version: 1.0.
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -914,7 +914,7 @@ add_action( 'init', 'ffwd_language_load' );
|
|
| 914 |
|
| 915 |
function ffwd_version() {
|
| 916 |
|
| 917 |
-
$version = '1.0.
|
| 918 |
|
| 919 |
if ( get_option( 'ffwd_version' ) === false ) {
|
| 920 |
add_option( 'ffwd_version', $version );
|
| 4 |
* Plugin Name: Facebook Feed WD
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
| 6 |
* Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
+
* Version: 1.0.25
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 914 |
|
| 915 |
function ffwd_version() {
|
| 916 |
|
| 917 |
+
$version = '1.0.25';
|
| 918 |
|
| 919 |
if ( get_option( 'ffwd_version' ) === false ) {
|
| 920 |
add_option( 'ffwd_version', $version );
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
|
| 4 |
Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.8
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -59,6 +59,9 @@ Upgrade to [Facebook Feed Pro](https://web-dorado.com/products/wordpress-faceboo
|
|
| 59 |
|
| 60 |
== Changelog ==
|
| 61 |
|
|
|
|
|
|
|
|
|
|
| 62 |
= 1.0.24 =
|
| 63 |
* Changed: Default tokens
|
| 64 |
|
| 4 |
Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.8
|
| 7 |
+
Stable tag: 1.0.25
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 59 |
|
| 60 |
== Changelog ==
|
| 61 |
|
| 62 |
+
= 1.0.25 =
|
| 63 |
+
* Fixed: Updated library to prevent conflict with PHP version 7
|
| 64 |
+
|
| 65 |
= 1.0.24 =
|
| 66 |
* Changed: Default tokens
|
| 67 |
|
wd/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
Version: 1.0.
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
Usage:
|
| 1 |
+
Version: 1.0.11
|
| 2 |
+
|
| 3 |
|
| 4 |
|
| 5 |
Usage:
|
wd/assets/css/deactivate_popup.css
CHANGED
|
@@ -83,4 +83,4 @@
|
|
| 83 |
bottom: 0;
|
| 84 |
margin: auto;
|
| 85 |
z-index: 63;
|
| 86 |
-
}
|
| 83 |
bottom: 0;
|
| 84 |
margin: auto;
|
| 85 |
z-index: 63;
|
| 86 |
+
}
|
wd/assets/css/overview.css
CHANGED
|
@@ -451,5 +451,12 @@ a:focus{
|
|
| 451 |
font-size: 16px;
|
| 452 |
}
|
| 453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
|
| 455 |
-
|
|
|
|
|
|
|
|
|
| 451 |
font-size: 16px;
|
| 452 |
}
|
| 453 |
|
| 454 |
+
.wd-start-using-button .button{
|
| 455 |
+
margin-left: 7px;
|
| 456 |
+
margin-top: 7px;
|
| 457 |
+
}
|
| 458 |
|
| 459 |
+
.wd-start-using-button{
|
| 460 |
+
margin-right:10px;
|
| 461 |
+
float: right;
|
| 462 |
+
}
|
wd/assets/img/fm_main_plugin.png
ADDED
|
Binary file
|
wd/assets/js/deactivate_popup.js
CHANGED
|
@@ -95,6 +95,7 @@ function wdReady(prefix){
|
|
| 95 |
});
|
| 96 |
|
| 97 |
}
|
|
|
|
| 98 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 99 |
// Getters & Setters //
|
| 100 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 95 |
});
|
| 96 |
|
| 97 |
}
|
| 98 |
+
|
| 99 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 100 |
// Getters & Setters //
|
| 101 |
////////////////////////////////////////////////////////////////////////////////////////
|
wd/includes/api.php
CHANGED
|
@@ -55,7 +55,7 @@
|
|
| 55 |
public function get_hash(){
|
| 56 |
$response = wp_remote_get("https://api.web-dorado.com/hash/" . $_SERVER['REMOTE_ADDR'] . "/" . $_SERVER['HTTP_HOST']);
|
| 57 |
|
| 58 |
-
$response_body = isset($response["body"]) ? json_decode($response["body"], true) : null;
|
| 59 |
|
| 60 |
if(is_array($response_body)){
|
| 61 |
$hash = $response_body["body"]["hash"];
|
| 55 |
public function get_hash(){
|
| 56 |
$response = wp_remote_get("https://api.web-dorado.com/hash/" . $_SERVER['REMOTE_ADDR'] . "/" . $_SERVER['HTTP_HOST']);
|
| 57 |
|
| 58 |
+
$response_body = ( !is_wp_error($response) && isset($response["body"])) ? json_decode($response["body"], true) : null;
|
| 59 |
|
| 60 |
if(is_array($response_body)){
|
| 61 |
$hash = $response_body["body"]["hash"];
|
wd/includes/deactivate.php
CHANGED
|
@@ -76,7 +76,18 @@
|
|
| 76 |
});
|
| 77 |
</script>
|
| 78 |
<?php
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
}
|
| 81 |
|
| 82 |
|
|
@@ -108,7 +119,7 @@
|
|
| 108 |
|
| 109 |
$data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
|
| 110 |
$data["site_url"] = site_url();
|
| 111 |
-
$data["
|
| 112 |
|
| 113 |
$data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
|
| 114 |
$admin_data = wp_get_current_user();
|
|
@@ -129,8 +140,8 @@
|
|
| 129 |
'cookies' => array()
|
| 130 |
)
|
| 131 |
);
|
| 132 |
-
|
| 133 |
-
$response_body = isset( $response["body"] ) ? json_decode( $response["body"], true ) : null;
|
| 134 |
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
| 135 |
|
| 136 |
}
|
| 76 |
});
|
| 77 |
</script>
|
| 78 |
<?php
|
| 79 |
+
|
| 80 |
+
$deactivate_url =
|
| 81 |
+
add_query_arg(
|
| 82 |
+
array(
|
| 83 |
+
'action' => 'deactivate',
|
| 84 |
+
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
| 85 |
+
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
| 86 |
+
),
|
| 87 |
+
admin_url( 'plugins.php' )
|
| 88 |
+
);
|
| 89 |
+
|
| 90 |
+
require ( $wd_options->wd_dir_templates . '/display_deactivation_popup.php' );
|
| 91 |
}
|
| 92 |
|
| 93 |
|
| 119 |
|
| 120 |
$data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
|
| 121 |
$data["site_url"] = site_url();
|
| 122 |
+
$data["plugin_id"] = $wd_options->wd_plugin_id;
|
| 123 |
|
| 124 |
$data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
|
| 125 |
$admin_data = wp_get_current_user();
|
| 140 |
'cookies' => array()
|
| 141 |
)
|
| 142 |
);
|
| 143 |
+
|
| 144 |
+
$response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
|
| 145 |
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
| 146 |
|
| 147 |
}
|
wd/includes/overview.php
CHANGED
|
@@ -58,6 +58,14 @@
|
|
| 58 |
public function display_overview_page(){
|
| 59 |
$wd_options = $this->config;
|
| 60 |
$tabs = $this->tabs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
require_once( $wd_options->wd_dir_templates . "/display_overview.php" );
|
| 62 |
}
|
| 63 |
public function wd_overview_welcome(){
|
|
@@ -120,7 +128,8 @@
|
|
| 120 |
unset($plugins[$wd_options->plugin_wordpress_slug]) ;
|
| 121 |
|
| 122 |
// foreach ( $plugins as $wp_slug => &$plugin ){
|
| 123 |
-
// $wp_data = $this->
|
|
|
|
| 124 |
// $plugin["downloaded"] = $wp_data["downloaded"];
|
| 125 |
// $plugin["rating"] = $wp_data["rating"];
|
| 126 |
// }
|
|
@@ -167,13 +176,6 @@
|
|
| 167 |
if ( empty( $sql_mode ) )
|
| 168 |
$sql_mode = __( 'Not set', $wd_options->prefix );
|
| 169 |
$server_info["SQL Mode"] = $sql_mode;
|
| 170 |
-
|
| 171 |
-
// Get PHP Safe Mode
|
| 172 |
-
if( ini_get( 'safe_mode' ) )
|
| 173 |
-
$safe_mode = __( 'On', $wd_options->prefix );
|
| 174 |
-
else
|
| 175 |
-
$safe_mode = __( 'Off', $wd_options->prefix );
|
| 176 |
-
$server_info["PHP Safe Mode"] = $safe_mode;
|
| 177 |
|
| 178 |
// Get PHP allow_url_fopen
|
| 179 |
if( ini_get( 'allow_url_fopen' ) )
|
| 58 |
public function display_overview_page(){
|
| 59 |
$wd_options = $this->config;
|
| 60 |
$tabs = $this->tabs;
|
| 61 |
+
$start_using_url = "";
|
| 62 |
+
if(!empty($this->config->custom_post)) {
|
| 63 |
+
if (strpos($this->config->custom_post, 'post_type', 0) !== false) {
|
| 64 |
+
$start_using_url = admin_url($this->config->custom_post);
|
| 65 |
+
} else {
|
| 66 |
+
$start_using_url = menu_page_url($this->config->custom_post, false);
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
require_once( $wd_options->wd_dir_templates . "/display_overview.php" );
|
| 70 |
}
|
| 71 |
public function wd_overview_welcome(){
|
| 128 |
unset($plugins[$wd_options->plugin_wordpress_slug]) ;
|
| 129 |
|
| 130 |
// foreach ( $plugins as $wp_slug => &$plugin ){
|
| 131 |
+
// $wp_data = $this->
|
| 132 |
+
//remote_get($wp_slug);
|
| 133 |
// $plugin["downloaded"] = $wp_data["downloaded"];
|
| 134 |
// $plugin["rating"] = $wp_data["rating"];
|
| 135 |
// }
|
| 176 |
if ( empty( $sql_mode ) )
|
| 177 |
$sql_mode = __( 'Not set', $wd_options->prefix );
|
| 178 |
$server_info["SQL Mode"] = $sql_mode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
// Get PHP allow_url_fopen
|
| 181 |
if( ini_get( 'allow_url_fopen' ) )
|
wd/includes/subscribe.php
CHANGED
|
@@ -108,7 +108,7 @@
|
|
| 108 |
)
|
| 109 |
);
|
| 110 |
|
| 111 |
-
$response_body = isset( $response["body"] ) ? json_decode( $response["body"], true ) : null;
|
| 112 |
|
| 113 |
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
| 114 |
|
| 108 |
)
|
| 109 |
);
|
| 110 |
|
| 111 |
+
$response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
|
| 112 |
|
| 113 |
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
| 114 |
|
wd/templates/display_deactivation_popup.php
CHANGED
|
@@ -1,28 +1,28 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
</div>
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
| 26 |
-
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
| 27 |
-
</form>
|
| 28 |
-
</div>
|
| 1 |
+
<div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
| 2 |
+
<div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
| 3 |
+
<div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
|
| 4 |
+
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
|
| 5 |
+
</div>
|
| 6 |
+
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
| 7 |
+
<div class="wd-deactivate-popup-header">
|
| 8 |
+
<?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
|
| 9 |
</div>
|
| 10 |
+
|
| 11 |
+
<div class="wd-deactivate-popup-body">
|
| 12 |
+
<?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
|
| 13 |
+
<div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
|
| 14 |
+
<input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
|
| 15 |
+
<label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
|
| 16 |
+
</div>
|
| 17 |
+
<?php } ?>
|
| 18 |
+
<div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
|
| 19 |
+
</div>
|
| 20 |
+
<div class="wd-btns">
|
| 21 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Deactivate" , $wd_options->prefix ); ?></a>
|
| 22 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and deactivate" , $wd_options->prefix ); ?></a>
|
| 23 |
+
<a href="<?php echo admin_url( 'plugins.php' ); ?>" class="button button-primary wd-<?php echo $wd_options->prefix; ?>-cancel"><?php _e( "Cancel" , $wd_options->prefix ); ?></a>
|
| 24 |
+
</div>
|
| 25 |
+
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
| 26 |
+
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
| 27 |
+
</form>
|
| 28 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
wd/templates/display_overview.php
CHANGED
|
@@ -1,33 +1,43 @@
|
|
| 1 |
<div class="overview_welcome">
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
</div>
|
| 13 |
<div class="overview_wrap">
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
</div>
|
| 1 |
<div class="overview_welcome">
|
| 2 |
+
<div class="wd-cell wd-valign-middle">
|
| 3 |
+
<a href="<?php echo $wd_options->plugin_wd_url; ?>" target="_blank"><img
|
| 4 |
+
src="<?php echo $wd_options->wd_url_img . '/' . $wd_options->prefix . '_main_plugin.png'; ?>"></a>
|
| 5 |
+
</div>
|
| 6 |
+
<div class="wd-cell wd-valign-middle">
|
| 7 |
+
|
| 8 |
+
<h2><?php echo sprintf(__("Welcome to %s", $wd_options->prefix), $wd_options->plugin_title); ?> <?php if (!empty($start_using_url)) { ?>
|
| 9 |
+
<div class="wd-start-using-button">
|
| 10 |
+
<a href="<?php echo $start_using_url; ?>" class="button button-primary button-large">Start using</a>
|
| 11 |
+
</div>
|
| 12 |
+
<?php } ?></h2>
|
| 13 |
+
|
| 14 |
+
<div class="overview_welcome_text">
|
| 15 |
+
|
| 16 |
+
<div><?php echo sprintf(__("CONGRATS! You've successfully installed %s WordPress plugin.", $wd_options->prefix), $wd_options->plugin_title); ?></div>
|
| 17 |
+
<div><?php echo $wd_options->description; ?></div>
|
| 18 |
+
</div>
|
| 19 |
+
</div>
|
| 20 |
</div>
|
| 21 |
<div class="overview_wrap">
|
| 22 |
+
<ul class="overview_tabs">
|
| 23 |
+
<?php
|
| 24 |
+
foreach ($tabs as $tab_key => $tab) {
|
| 25 |
+
$href = $tab['view'] !== false ? "#" . $tab_key : $tab_key;
|
| 26 |
+
$target = $tab['view'] == false ? 'target="_blank" class="not_tab"' : '';
|
| 27 |
+
$overview_tab_active_class = $tab_key == 'welcome' ? 'class="overview_tab_active"' : ''
|
| 28 |
+
?>
|
| 29 |
+
<li class=""><a
|
| 30 |
+
href="<?php echo $href; ?>" <?php echo $overview_tab_active_class; ?> <?php echo $target; ?>><?php echo esc_html($tab['name']); ?></a>
|
| 31 |
+
</li>
|
| 32 |
+
<?php } ?>
|
| 33 |
+
</ul>
|
| 34 |
+
<div class="overview_content">
|
| 35 |
+
<?php
|
| 36 |
+
foreach ($tabs as $tab_key => $tab) {
|
| 37 |
+
if ($tab['view'] !== false) {
|
| 38 |
+
echo call_user_func($tab['view']);
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
?>
|
| 42 |
+
</div>
|
| 43 |
</div>
|
wd/templates/display_overview_deals.php
CHANGED
|
@@ -31,13 +31,6 @@
|
|
| 31 |
<div class="deal_desc">
|
| 32 |
<p><?php echo $plugin["content"]; ?></p>
|
| 33 |
<div class="deal_desc_footer">
|
| 34 |
-
<!--<div class="downloads">
|
| 35 |
-
<div class="rating" data-rating="<?php echo $plugin["rating"]; ?>"></div>
|
| 36 |
-
<div class="spans">
|
| 37 |
-
<span><?php _e( "Downloads", $wd_options->prefix ); ?></span>
|
| 38 |
-
<span><?php echo number_format($plugin["downloaded"], 0); ?></span>
|
| 39 |
-
</div>
|
| 40 |
-
</div>-->
|
| 41 |
<div class="download_btn">
|
| 42 |
<a href="<?php echo $plugin["href"]; ?>" target="_blank" ><?php _e( "Download", $wd_options->prefix ); ?></a>
|
| 43 |
</div>
|
| 31 |
<div class="deal_desc">
|
| 32 |
<p><?php echo $plugin["content"]; ?></p>
|
| 33 |
<div class="deal_desc_footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
<div class="download_btn">
|
| 35 |
<a href="<?php echo $plugin["href"]; ?>" target="_blank" ><?php _e( "Download", $wd_options->prefix ); ?></a>
|
| 36 |
</div>
|
wd/templates/display_overview_support.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<?php echo sprintf( __("You may contact us by filling in this form or by email %s any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.", $wd_options->prefix), "<span class='support_email'>(support@web-dorado.com)</span>") ;?>
|
| 4 |
</p>
|
| 5 |
<div class="wd-overview-site-deatils">
|
| 6 |
-
<h2><?php _e( "Site
|
| 7 |
<p>
|
| 8 |
<?php _e( "When contacting support, consider copying and pasting this information in your support request.", $wd_options->prefix ); ?>
|
| 9 |
<br>
|
| 3 |
<?php echo sprintf( __("You may contact us by filling in this form or by email %s any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.", $wd_options->prefix), "<span class='support_email'>(support@web-dorado.com)</span>") ;?>
|
| 4 |
</p>
|
| 5 |
<div class="wd-overview-site-deatils">
|
| 6 |
+
<h2><?php _e( "Site Details", $wd_options->prefix ); ?></h2>
|
| 7 |
<p>
|
| 8 |
<?php _e( "When contacting support, consider copying and pasting this information in your support request.", $wd_options->prefix ); ?>
|
| 9 |
<br>
|
wd/templates/display_subscribe.php
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
<div class="texts">
|
| 9 |
<p><?php _e( "Hi there", $wd_options->prefix ); ?>,</p>
|
| 10 |
<p>
|
| 11 |
-
<?php echo sprintf( __( "Allow %s to collect some usage data. This will allow you to get more out of your plugin experience
|
| 12 |
</p>
|
| 13 |
</div>
|
| 14 |
<div class="btns">
|
| 8 |
<div class="texts">
|
| 9 |
<p><?php _e( "Hi there", $wd_options->prefix ); ?>,</p>
|
| 10 |
<p>
|
| 11 |
+
<?php echo sprintf( __( "Allow %s to collect some usage data. This will allow you to get more out of your plugin experience - get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix ), '<strong>Web-Dorado</strong>', $wd_options->plugin_title ); ?>
|
| 12 |
</p>
|
| 13 |
</div>
|
| 14 |
<div class="btns">
|
wd/wd.php
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
public $overview_instance;
|
| 18 |
public $subscribe_instance;
|
| 19 |
public $config;
|
| 20 |
-
private $version = "1.0.
|
| 21 |
|
| 22 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 23 |
// Constructor & Destructor //
|
|
@@ -125,7 +125,17 @@
|
|
| 125 |
|
| 126 |
public function change_deactivation_link ( $links ) {
|
| 127 |
$wd_options = $this->config;
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
return $links;
|
| 130 |
}
|
| 131 |
|
| 17 |
public $overview_instance;
|
| 18 |
public $subscribe_instance;
|
| 19 |
public $config;
|
| 20 |
+
private $version = "1.0.11";
|
| 21 |
|
| 22 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 23 |
// Constructor & Destructor //
|
| 125 |
|
| 126 |
public function change_deactivation_link ( $links ) {
|
| 127 |
$wd_options = $this->config;
|
| 128 |
+
$deactivate_url =
|
| 129 |
+
add_query_arg(
|
| 130 |
+
array(
|
| 131 |
+
'action' => 'deactivate',
|
| 132 |
+
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
| 133 |
+
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
| 134 |
+
),
|
| 135 |
+
admin_url( 'plugins.php' )
|
| 136 |
+
);
|
| 137 |
+
|
| 138 |
+
$links["deactivate"] = '<a href="'.$deactivate_url.'" class="' . $wd_options->prefix . '_deactivate_link">Deactivate</a>';
|
| 139 |
return $links;
|
| 140 |
}
|
| 141 |
|
