--- a/wpdirectorykit/application/controllers/Wdk_frontendajax.php
+++ b/wpdirectorykit/application/controllers/Wdk_frontendajax.php
@@ -293,8 +293,8 @@
$results[$ind_order]['value'] = $level_gen
.'#'.wmvc_show_data($attr_id, $row).', '.wmvc_show_data('display_name', $row);
- if(current_user_can('wdk_listings_manage'))
- $results[$ind_order]['value'] .= ' ('.wmvc_show_data('user_email', $row).')';
+ //if(current_user_can('wdk_listings_manage'))
+ // $results[$ind_order]['value'] .= ' ('.wmvc_show_data('user_email', $row).')';
} elseif($table == 'icons_list') {
$results[$ind_order]['key'] = $row;
if(defined('ELEMENTOR_ASSETS_URL')){
@@ -333,8 +333,6 @@
$data['curr_val'] = $level_gen
.wmvc_show_data('display_name', $row);
- if(current_user_can('wdk_listings_manage'))
- $data['curr_val'] .= ' ('.wmvc_show_data('user_email', $row).')'.' #'.wmvc_show_data($attr_id, $row);
} else {
$data['curr_val'] = $level_gen
.esc_html__(wmvc_show_data(wmvc_show_data('attribute_value', $parameters), $row), 'wpdirectorykit');
--- a/wpdirectorykit/application/views/wdk_addons/index.php
+++ b/wpdirectorykit/application/views/wdk_addons/index.php
@@ -1,4 +1,5 @@
<?php
+
/**
* The template for Subscription / Addons.
*
@@ -6,8 +7,8 @@
*
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
+if (! defined('ABSPATH')) {
+ exit; // Exit if accessed directly.
}
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
@@ -17,7 +18,6 @@
<div class="wdk-pricing">
<div class="wdk-sec-header">
<h2 class="wdk-sec-title">
- <span class="mark up"><?php echo esc_html__('SAVE MONEY!', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('Get all', 'wpdirectorykit'); ?>
<span class="mark"><?php echo esc_html__('addons and premium', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('support from 8.25$/month in yearly subscription', 'wpdirectorykit'); ?>
@@ -28,7 +28,7 @@
<div class="wdk-pac">
<div class="header">
<h4><?php echo esc_html__('Starter', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>19<span class="after"></span></span></div>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>19.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -38,31 +38,31 @@
<li class="item"><?php echo esc_html__('1 month Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 month Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?monthly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=monthly" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac featured">
<div class="header">
- <h4><?php echo esc_html__('Serious', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>49<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>99.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
<li class="item"><?php echo esc_html__('All Our Themes', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?quarterly=true" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac">
<div class="header">
- <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>99<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Lifetime', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>199.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -70,83 +70,83 @@
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('Lifetime Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?yearly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=lifetime" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
</div>
</div>
<h1 class="wp-heading-inline"><?php echo __('Addons', 'wpdirectorykit'); ?></h1>
- <br style="clear:both"/>
- <br style="clear:both"/>
+ <br style="clear:both" />
+ <br style="clear:both" />
<div class="wp-list-table widefat plugin-install">
<div id="the-list">
- <?php foreach ($addons as $addon):?>
- <div class="plugin-card plugin-card-classic-editor">
- <div class="plugin-card-top">
- <div class="name column-name">
- <h3>
- <a target="_blank" href="<?php echo esc_url(wmvc_show_data('link', $addon));?>" class="open-plugin-details-modal">
- <?php echo esc_html(wmvc_show_data('title', $addon));?>
- <img style="object-fit: contain;object-position: top;" src="<?php echo esc_url(wmvc_show_data('thumbnail', $addon));?>" class="plugin-icon" alt="<?php echo esc_html(wmvc_show_data('title', $addon));?>">
- </a>
- </h3>
- </div>
- <div class="action-links">
- <ul class="plugin-action-buttons">
- <li>
- <?php if(wmvc_show_data('is_activated_slug', $addon, false) && function_exists(wmvc_show_data('is_activated_slug', $addon))):?>
- <button type="button" class="button button-disabled" disabled="disabled"><?php echo esc_html__('Active', 'wpdirectorykit'); ?></button>
- <?php elseif(wmvc_show_data('is_exists_slug', $addon, false) && file_exists(WP_PLUGIN_DIR.'/'.wmvc_show_data('is_exists_slug', $addon))):?>
- <?php
- $activate_url = add_query_arg(
- array(
- '_wpnonce' => wp_create_nonce( 'activate-plugin_' . wmvc_show_data('is_exists_slug', $addon, false) ),
- 'action' => 'activate',
- 'plugin' => wmvc_show_data('is_exists_slug', $addon, false),
- ),
- network_admin_url( 'plugins.php' )
- );
- ?>
- <a class="button activate-now" href="<?php echo esc_url($activate_url);?>"><?php echo esc_html__('Activate', 'wpdirectorykit'); ?></a>
- <?php else:?>
- <?php if(file_exists(get_stylesheet_directory() .'/addons/'.substr(basename(wmvc_show_data('is_exists_slug', $addon)), 0, -4).'.zip')):?>
- <a target="_blank" class="install-now button btn-danger" data-slug="classic-editor" href="<?php echo esc_url(wdk_get_tgmpa_link());?>" title="<?php echo esc_html(wmvc_show_data('title', $addon));?>"><?php echo esc_html__('Activate', 'wpdirectorykit'); ?></a>
- <?php elseif(stripos(wmvc_show_data('link_info', $addon), 'sweet-energy-efficiency') === FALSE):?>
- <a target="_blank" class="install-now button btn-danger" data-slug="classic-editor" href="<?php echo esc_url(wmvc_show_data('link', $addon));?>" title="<?php echo esc_html(wmvc_show_data('title', $addon));?>"><?php echo esc_html__('Buy Now', 'wpdirectorykit'); ?></a>
- <?php else:?>
- <a target="_blank" class="install-now button btn-info" data-slug="classic-editor" href="<?php echo esc_url(wmvc_show_data('link', $addon));?>" title="<?php echo esc_html(wmvc_show_data('title', $addon));?>"><?php echo esc_html__('Download Free', 'wpdirectorykit'); ?></a>
- <?php endif;?>
- <?php endif;?>
- </li>
- <li><a target="_blank" href="<?php echo esc_url(wmvc_show_data('link_info', $addon));?>" class="open-plugin-details-modal"><?php echo esc_html__('More Details', 'wpdirectorykit'); ?></a></li>
- </ul>
- </div>
- <div class="desc column-description">
- <p><?php echo esc_html(wmvc_show_data('description', $addon));?></p>
- <p class="authors"><cite><?php echo esc_html__('By', 'wpdirectorykit'); ?> <a target="_blank" href="https://wpdirectorykit.com/"><?php echo esc_html__('WP Directory Kit', 'wpdirectorykit'); ?></a></cite></p>
+ <?php foreach ($addons as $addon): ?>
+ <div class="plugin-card plugin-card-classic-editor">
+ <div class="plugin-card-top">
+ <div class="name column-name">
+ <h3>
+ <a target="_blank" href="<?php echo esc_url(wmvc_show_data('link', $addon)); ?>" class="open-plugin-details-modal">
+ <?php echo esc_html(wmvc_show_data('title', $addon)); ?>
+ <img style="object-fit: contain;object-position: top;" src="<?php echo esc_url(wmvc_show_data('thumbnail', $addon)); ?>" class="plugin-icon" alt="<?php echo esc_html(wmvc_show_data('title', $addon)); ?>">
+ </a>
+ </h3>
+ </div>
+ <div class="action-links">
+ <ul class="plugin-action-buttons">
+ <li>
+ <?php if (wmvc_show_data('is_activated_slug', $addon, false) && function_exists(wmvc_show_data('is_activated_slug', $addon))): ?>
+ <button type="button" class="button button-disabled" disabled="disabled"><?php echo esc_html__('Active', 'wpdirectorykit'); ?></button>
+ <?php elseif (wmvc_show_data('is_exists_slug', $addon, false) && file_exists(WP_PLUGIN_DIR . '/' . wmvc_show_data('is_exists_slug', $addon))): ?>
+ <?php
+ $activate_url = add_query_arg(
+ array(
+ '_wpnonce' => wp_create_nonce('activate-plugin_' . wmvc_show_data('is_exists_slug', $addon, false)),
+ 'action' => 'activate',
+ 'plugin' => wmvc_show_data('is_exists_slug', $addon, false),
+ ),
+ network_admin_url('plugins.php')
+ );
+ ?>
+ <a class="button activate-now" href="<?php echo esc_url($activate_url); ?>"><?php echo esc_html__('Activate', 'wpdirectorykit'); ?></a>
+ <?php else: ?>
+ <?php if (file_exists(get_stylesheet_directory() . '/addons/' . substr(basename(wmvc_show_data('is_exists_slug', $addon)), 0, -4) . '.zip')): ?>
+ <a target="_blank" class="install-now button btn-danger" data-slug="classic-editor" href="<?php echo esc_url(wdk_get_tgmpa_link()); ?>" title="<?php echo esc_html(wmvc_show_data('title', $addon)); ?>"><?php echo esc_html__('Activate', 'wpdirectorykit'); ?></a>
+ <?php elseif (stripos(wmvc_show_data('link_info', $addon), 'sweet-energy-efficiency') === FALSE): ?>
+ <a target="_blank" class="install-now button btn-danger" data-slug="classic-editor" href="<?php echo esc_url(wmvc_show_data('link', $addon)); ?>" title="<?php echo esc_html(wmvc_show_data('title', $addon)); ?>"><?php echo esc_html__('Buy Now', 'wpdirectorykit'); ?></a>
+ <?php else: ?>
+ <a target="_blank" class="install-now button btn-info" data-slug="classic-editor" href="<?php echo esc_url(wmvc_show_data('link', $addon)); ?>" title="<?php echo esc_html(wmvc_show_data('title', $addon)); ?>"><?php echo esc_html__('Download Free', 'wpdirectorykit'); ?></a>
+ <?php endif; ?>
+ <?php endif; ?>
+ </li>
+ <li><a target="_blank" href="<?php echo esc_url(wmvc_show_data('link_info', $addon)); ?>" class="open-plugin-details-modal"><?php echo esc_html__('More Details', 'wpdirectorykit'); ?></a></li>
+ </ul>
+ </div>
+ <div class="desc column-description">
+ <p><?php echo esc_html(wmvc_show_data('description', $addon)); ?></p>
+ <p class="authors"><cite><?php echo esc_html__('By', 'wpdirectorykit'); ?> <a target="_blank" href="https://wpdirectorykit.com/"><?php echo esc_html__('WP Directory Kit', 'wpdirectorykit'); ?></a></cite></p>
+ </div>
</div>
</div>
- </div>
- <?php endforeach;?>
- <br style="clear:both"/>
+ <?php endforeach; ?>
+ <br style="clear:both" />
</div>
- <br style="clear:both"/>
+ <br style="clear:both" />
<div class="text-center">
- <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit');?></a>
+ <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit'); ?></a>
</div>
-
+
</div>
</div>
<script>
-jQuery(document).ready(function($) {
+ jQuery(document).ready(function($) {
-})
+ })
</script>
<?php $this->view('general/footer', $data); ?>
No newline at end of file
--- a/wpdirectorykit/application/views/wdk_addons_bookings/index.php
+++ b/wpdirectorykit/application/views/wdk_addons_bookings/index.php
@@ -1,4 +1,5 @@
<?php
+
/**
* The template for Booking presentation.
*
@@ -6,8 +7,8 @@
*
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
+if (! defined('ABSPATH')) {
+ exit; // Exit if accessed directly.
}
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
@@ -39,7 +40,6 @@
<div class="wdk-pricing">
<div class="wdk-sec-header">
<h2 class="wdk-sec-title">
- <span class="mark up"><?php echo esc_html__('SAVE MONEY!', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('Get all', 'wpdirectorykit'); ?>
<span class="mark"><?php echo esc_html__('addons and premium', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('support from 8.25$/month in yearly subscription', 'wpdirectorykit'); ?>
@@ -50,7 +50,7 @@
<div class="wdk-pac">
<div class="header">
<h4><?php echo esc_html__('Starter', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>19<span class="after"></span></span></div>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>19.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -60,31 +60,31 @@
<li class="item"><?php echo esc_html__('1 month Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 month Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?monthly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=monthly" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac featured">
<div class="header">
- <h4><?php echo esc_html__('Serious', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>49<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>99.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
<li class="item"><?php echo esc_html__('All Our Themes', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?quarterly=true" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac">
<div class="header">
- <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>99<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Lifetime', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>199.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -92,58 +92,52 @@
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('Lifetime Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?yearly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=lifetime" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
</div>
</div>
-
+
+
<div class="text-center">
- <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit');?></a>
+ <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit'); ?></a>
</div>
</div>
<script>
-jQuery(document).ready(function($) {
+ jQuery(document).ready(function($) {
-})
+ })
</script>
<style>
-
-img.presentation-image
-{
- max-width:600px;
- max-height:600px;
-}
-
-h2
-{
- font-size: 25px;
- color: #010b44;
-}
-
-p.presentation-desc
-{
- padding:5px 0px;
- margin:0px;
- font-size: 18px;
-}
-
-a.image-link
-{
- display: inline-block;
- border: 3px solid white;
-}
-
-a.image-link:hover
-{
- border: 3px solid #506690;
-}
-
+ img.presentation-image {
+ max-width: 600px;
+ max-height: 600px;
+ }
+
+ h2 {
+ font-size: 25px;
+ color: #010b44;
+ }
+
+ p.presentation-desc {
+ padding: 5px 0px;
+ margin: 0px;
+ font-size: 18px;
+ }
+
+ a.image-link {
+ display: inline-block;
+ border: 3px solid white;
+ }
+
+ a.image-link:hover {
+ border: 3px solid #506690;
+ }
</style>
<?php $this->view('general/footer', $data); ?>
No newline at end of file
--- a/wpdirectorykit/application/views/wdk_addons_currencies/index.php
+++ b/wpdirectorykit/application/views/wdk_addons_currencies/index.php
@@ -1,4 +1,5 @@
<?php
+
/**
* The template for Currencies conversion presentation.
*
@@ -6,8 +7,8 @@
*
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
+if (! defined('ABSPATH')) {
+ exit; // Exit if accessed directly.
}
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
@@ -32,7 +33,6 @@
<div class="wdk-pricing">
<div class="wdk-sec-header">
<h2 class="wdk-sec-title">
- <span class="mark up"><?php echo esc_html__('SAVE MONEY!', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('Get all', 'wpdirectorykit'); ?>
<span class="mark"><?php echo esc_html__('addons and premium', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('support from 8.25$/month in yearly subscription', 'wpdirectorykit'); ?>
@@ -43,7 +43,7 @@
<div class="wdk-pac">
<div class="header">
<h4><?php echo esc_html__('Starter', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>19<span class="after"></span></span></div>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>19.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -53,31 +53,31 @@
<li class="item"><?php echo esc_html__('1 month Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 month Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?monthly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=monthly" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac featured">
<div class="header">
- <h4><?php echo esc_html__('Serious', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>49<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>99.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
<li class="item"><?php echo esc_html__('All Our Themes', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?quarterly=true" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac">
<div class="header">
- <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>99<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Lifetime', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>199.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -85,58 +85,52 @@
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('Lifetime Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?yearly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=lifetime" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
</div>
</div>
-
+
+
<div class="text-center">
- <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit');?></a>
+ <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit'); ?></a>
</div>
</div>
<script>
-jQuery(document).ready(function($) {
+ jQuery(document).ready(function($) {
-})
+ })
</script>
<style>
-
-img.presentation-image
-{
- max-width:600px;
- max-height:600px;
-}
-
-h2
-{
- font-size: 25px;
- color: #010b44;
-}
-
-p.presentation-desc
-{
- padding:5px 0px;
- margin:0px;
- font-size: 18px;
-}
-
-a.image-link
-{
- display: inline-block;
- border: 3px solid white;
-}
-
-a.image-link:hover
-{
- border: 3px solid #506690;
-}
-
+ img.presentation-image {
+ max-width: 600px;
+ max-height: 600px;
+ }
+
+ h2 {
+ font-size: 25px;
+ color: #010b44;
+ }
+
+ p.presentation-desc {
+ padding: 5px 0px;
+ margin: 0px;
+ font-size: 18px;
+ }
+
+ a.image-link {
+ display: inline-block;
+ border: 3px solid white;
+ }
+
+ a.image-link:hover {
+ border: 3px solid #506690;
+ }
</style>
<?php $this->view('general/footer', $data); ?>
No newline at end of file
--- a/wpdirectorykit/application/views/wdk_addons_membership/index.php
+++ b/wpdirectorykit/application/views/wdk_addons_membership/index.php
@@ -1,4 +1,5 @@
<?php
+
/**
* The template for Memberhsip presentation.
*
@@ -6,8 +7,8 @@
*
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
+if (! defined('ABSPATH')) {
+ exit; // Exit if accessed directly.
}
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
@@ -39,7 +40,6 @@
<div class="wdk-pricing">
<div class="wdk-sec-header">
<h2 class="wdk-sec-title">
- <span class="mark up"><?php echo esc_html__('SAVE MONEY!', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('Get all', 'wpdirectorykit'); ?>
<span class="mark"><?php echo esc_html__('addons and premium', 'wpdirectorykit'); ?></span>
<?php echo esc_html__('support from 8.25$/month in yearly subscription', 'wpdirectorykit'); ?>
@@ -50,7 +50,7 @@
<div class="wdk-pac">
<div class="header">
<h4><?php echo esc_html__('Starter', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>19<span class="after"></span></span></div>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>19.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -60,31 +60,31 @@
<li class="item"><?php echo esc_html__('1 month Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 month Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?monthly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=monthly" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac featured">
<div class="header">
- <h4><?php echo esc_html__('Serious', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>49<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>99.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
<li class="item"><?php echo esc_html__('All Our Themes', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('3 months Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?quarterly=true" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/" class="btn btn-primary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
<div class="wdk-col-md-4">
<div class="wdk-pac">
<div class="header">
- <h4><?php echo esc_html__('Pro', 'wpdirectorykit'); ?></h4>
- <div class="pricing-value"><span class="price"><span class="before">$</span>99<span class="after"></span></span></div>
+ <h4><?php echo esc_html__('Lifetime', 'wpdirectorykit'); ?></h4>
+ <div class="pricing-value"><span class="price"><span class="before">$</span>199.99<span class="after"></span></span></div>
<p><?php echo esc_html__('Include all functionalities for single website installation', 'wpdirectorykit'); ?></p>
</div>
<ul class="list-items">
@@ -92,58 +92,52 @@
<li class="item"><?php echo esc_html__('All Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('All Upcoming Addons', 'wpdirectorykit'); ?></li>
<li class="item"><?php echo esc_html__('1 year Chat Support (Telegram)', 'wpdirectorykit'); ?></li>
- <li class="item"><?php echo esc_html__('1 year Updates', 'wpdirectorykit'); ?></li>
+ <li class="item"><?php echo esc_html__('Lifetime Updates', 'wpdirectorykit'); ?></li>
</ul>
- <div class="wdk-pac-footer"><a target="_blank" href="https://swit.gumroad.com/l/wp-directory-kit-addons?yearly=true" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
+ <div class="wdk-pac-footer"><a target="_blank" href="https://checkout.freemius.com/plugin/22296/plan/37315/?billing_cycle=lifetime" class="btn btn-outline-secondary"><?php echo esc_html__('Buy now', 'wpdirectorykit'); ?></a></div>
</div>
</div>
</div>
</div>
-
+
+
<div class="text-center">
- <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit');?></a>
+ <a href="https://wpdirectorykit.com/plugins.html" class="button button-primary xl" target="_blank"><?php echo esc_html__('More Plugins', 'wpdirectorykit'); ?></a>
</div>
</div>
<script>
-jQuery(document).ready(function($) {
+ jQuery(document).ready(function($) {
-})
+ })
</script>
<style>
-
-img.presentation-image
-{
- max-width:600px;
- max-height:600px;
-}
-
-h2
-{
- font-size: 25px;
- color: #010b44;
-}
-
-p.presentation-desc
-{
- padding:5px 0px;
- margin:0px;
- font-size: 18px;
-}
-
-a.image-link
-{
- display: inline-block;
- border: 3px solid white;
-}
-
-a.image-link:hover
-{
- border: 3px solid #506690;
-}
-
+ img.presentation-image {
+ max-width: 600px;
+ max-height: 600px;
+ }
+
+ h2 {
+ font-size: 25px;
+ color: #010b44;
+ }
+
+ p.presentation-desc {
+ padding: 5px 0px;
+ margin: 0px;
+ font-size: 18px;
+ }
+
+ a.image-link {
+ display: inline-block;
+ border: 3px solid white;
+ }
+
+ a.image-link:hover {
+ border: 3px solid #506690;
+ }
</style>
<?php $this->view('general/footer', $data); ?>
No newline at end of file
--- a/wpdirectorykit/premium_functions.php
+++ b/wpdirectorykit/premium_functions.php
@@ -0,0 +1,46 @@
+<?php
+
+if (! defined('WPINC')) {
+ die;
+}
+
+//'anonymous_mode' => true,
+
+
+if (! function_exists('wdk_fs')) {
+ // Create a helper function for easy SDK access.
+ function wdk_fs()
+ {
+ global $wdk_fs;
+
+ if (! isset($wdk_fs)) {
+ // Include Freemius SDK.
+ require_once dirname(__FILE__) . '/vendor/freemius/start.php';
+
+ $wdk_fs = fs_dynamic_init(array(
+ 'id' => '10131',
+ 'slug' => 'wpdirectorykit',
+ 'premium_slug' => 'wdk-pro',
+ 'type' => 'plugin',
+ 'public_key' => 'pk_024925d617beb399759247d65ac26',
+ 'is_premium' => false,
+ 'has_addons' => true,
+ 'has_paid_plans' => false,
+ 'menu' => array(
+ 'slug' => 'wdk',
+ 'contact' => false,
+ 'support' => false,
+ 'addons' => false,
+ ),
+ 'anonymous_mode' => true,
+ ));
+ }
+
+ return $wdk_fs;
+ }
+
+ // Init Freemius.
+ wdk_fs();
+ // Signal that SDK was initiated.
+ do_action('wdk_fs_loaded');
+}
--- a/wpdirectorykit/tgm-pa/class-tgm-plugin-activation.php
+++ b/wpdirectorykit/tgm-pa/class-tgm-plugin-activation.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Plugin installation and activation for WordPress themes.
*
@@ -32,2127 +33,2189 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
+if (! class_exists('TGM_Plugin_Activation')) {
- /**
- * Automatic plugin installation and activation library.
- *
- * Creates a way to automatically install and activate plugins from within themes.
- * The plugins can be either bundled, downloaded from the WordPress
- * Plugin Repository or downloaded from another external source.
- *
- * @since 1.0.0
- *
- * @package TGM-Plugin-Activation
- * @author Thomas Griffin
- * @author Gary Jones
- */
- class TGM_Plugin_Activation {
- /**
- * TGMPA version number.
- *
- * @since 2.5.0
- *
- * @const string Version number.
- */
- const TGMPA_VERSION = '2.6.1';
-
- /**
- * Regular expression to test if a URL is a WP plugin repo URL.
- *
- * @const string Regex.
- *
- * @since 2.5.0
- */
- const WP_REPO_REGEX = '|^http[s]?://wordpress.org/(?:extend/)?plugins/|';
-
- /**
- * Arbitrary regular expression to test if a string starts with a URL.
- *
- * @const string Regex.
- *
- * @since 2.5.0
- */
- const IS_URL_REGEX = '|^http[s]?://|';
-
- /**
- * Holds a copy of itself, so it can be referenced by the class name.
- *
- * @since 1.0.0
- *
- * @var TGM_Plugin_Activation
- */
- public static $instance;
-
- /**
- * Holds arrays of plugin details.
- *
- * @since 1.0.0
- * @since 2.5.0 the array has the plugin slug as an associative key.
- *
- * @var array
- */
- public $plugins = array();
-
- /**
- * Holds arrays of plugin names to use to sort the plugins array.
- *
- * @since 2.5.0
- *
- * @var array
- */
- protected $sort_order = array();
-
- /**
- * Whether any plugins have the 'force_activation' setting set to true.
- *
- * @since 2.5.0
- *
- * @var bool
- */
- protected $has_forced_activation = false;
-
- /**
- * Whether any plugins have the 'force_deactivation' setting set to true.
- *
- * @since 2.5.0
- *
- * @var bool
- */
- protected $has_forced_deactivation = false;
-
- /**
- * Name of the unique ID to hash notices.
- *
- * @since 2.4.0
- *
- * @var string
- */
- public $id = 'wpdirectorykit';
-
- /**
- * Name of the query-string argument for the admin page.
- *
- * @since 1.0.0
- *
- * @var string
- */
- protected $menu = 'tgmpa-install-plugins';
-
- /**
- * Parent menu file slug.
- *
- * @since 2.5.0
- *
- * @var string
- */
- public $parent_slug = 'themes.php';
-
- /**
- * Capability needed to view the plugin installation menu item.
- *
- * @since 2.5.0
- *
- * @var string
- */
- public $capability = 'edit_theme_options';
-
- /**
- * Default absolute path to folder containing bundled plugin zip files.
- *
- * @since 2.0.0
- *
- * @var string Absolute path prefix to zip file location for bundled plugins. Default is empty string.
- */
- public $default_path = '';
-
- /**
- * Flag to show admin notices or not.
- *
- * @since 2.1.0
- *
- * @var boolean
- */
- public $has_notices = true;
-
- /**
- * Flag to determine if the user can dismiss the notice nag.
- *
- * @since 2.4.0
- *
- * @var boolean
- */
- public $dismissable = true;
-
- /**
- * Message to be output above nag notice if dismissable is false.
- *
- * @since 2.4.0
- *
- * @var string
- */
- public $dismiss_msg = '';
-
- /**
- * Flag to set automatic activation of plugins. Off by default.
- *
- * @since 2.2.0
- *
- * @var boolean
- */
- public $is_automatic = false;
-
- /**
- * Optional message to display before the plugins table.
- *
- * @since 2.2.0
- *
- * @var string Message filtered by wp_kses_post(). Default is empty string.
- */
- public $message = '';
-
- /**
- * Holds configurable array of strings.
- *
- * Default values are added in the constructor.
- *
- * @since 2.0.0
- *
- * @var array
- */
- public $strings = array();
-
- /**
- * Holds the version of WordPress.
- *
- * @since 2.4.0
- *
- * @var int
- */
- public $wp_version;
-
- /**
- * Holds the hook name for the admin page.
- *
- * @since 2.5.0
- *
- * @var string
- */
- public $page_hook;
-
- /**
- * Adds a reference of this object to $instance, populates default strings,
- * does the tgmpa_init action hook, and hooks in the interactions to init.
- *
- * {@internal This method should be `protected`, but as too many TGMPA implementations
- * haven't upgraded beyond v2.3.6 yet, this gives backward compatibility issues.
- * Reverted back to public for the time being.}}
- *
- * @since 1.0.0
- *
- * @see TGM_Plugin_Activation::init()
- */
- public function __construct() {
- // Set the current WordPress version.
- $this->wp_version = $GLOBALS['wp_version'];
+ /**
+ * Automatic plugin installation and activation library.
+ *
+ * Creates a way to automatically install and activate plugins from within themes.
+ * The plugins can be either bundled, downloaded from the WordPress
+ * Plugin Repository or downloaded from another external source.
+ *
+ * @since 1.0.0
+ *
+ * @package TGM-Plugin-Activation
+ * @author Thomas Griffin
+ * @author Gary Jones
+ */
+ class TGM_Plugin_Activation
+ {
+ /**
+ * TGMPA version number.
+ *
+ * @since 2.5.0
+ *
+ * @const string Version number.
+ */
+ const TGMPA_VERSION = '2.6.1';
+
+ /**
+ * Regular expression to test if a URL is a WP plugin repo URL.
+ *
+ * @const string Regex.
+ *
+ * @since 2.5.0
+ */
+ const WP_REPO_REGEX = '|^http[s]?://wordpress.org/(?:extend/)?plugins/|';
+
+ /**
+ * Arbitrary regular expression to test if a string starts with a URL.
+ *
+ * @const string Regex.
+ *
+ * @since 2.5.0
+ */
+ const IS_URL_REGEX = '|^http[s]?://|';
+
+ /**
+ * Holds a copy of itself, so it can be referenced by the class name.
+ *
+ * @since 1.0.0
+ *
+ * @var TGM_Plugin_Activation
+ */
+ public static $instance;
+
+ /**
+ * Holds arrays of plugin details.
+ *
+ * @since 1.0.0
+ * @since 2.5.0 the array has the plugin slug as an associative key.
+ *
+ * @var array
+ */
+ public $plugins = array();
+
+ /**
+ * Holds arrays of plugin names to use to sort the plugins array.
+ *
+ * @since 2.5.0
+ *
+ * @var array
+ */
+ protected $sort_order = array();
+
+ /**
+ * Whether any plugins have the 'force_activation' setting set to true.
+ *
+ * @since 2.5.0
+ *
+ * @var bool
+ */
+ protected $has_forced_activation = false;
+
+ /**
+ * Whether any plugins have the 'force_deactivation' setting set to true.
+ *
+ * @since 2.5.0
+ *
+ * @var bool
+ */
+ protected $has_forced_deactivation = false;
+
+ /**
+ * Name of the unique ID to hash notices.
+ *
+ * @since 2.4.0
+ *
+ * @var string
+ */
+ public $id = 'wpdirectorykit';
+
+ /**
+ * Name of the query-string argument for the admin page.
+ *
+ * @since 1.0.0
+ *
+ * @var string
+ */
+ protected $menu = 'tgmpa-install-plugins';
+
+ /**
+ * Parent menu file slug.
+ *
+ * @since 2.5.0
+ *
+ * @var string
+ */
+ public $parent_slug = 'themes.php';
+
+ /**
+ * Capability needed to view the plugin installation menu item.
+ *
+ * @since 2.5.0
+ *
+ * @var string
+ */
+ public $capability = 'edit_theme_options';
+
+ /**
+ * Default absolute path to folder containing bundled plugin zip files.
+ *
+ * @since 2.0.0
+ *
+ * @var string Absolute path prefix to zip file location for bundled plugins. Default is empty string.
+ */
+ public $default_path = '';
+
+ /**
+ * Flag to show admin notices or not.
+ *
+ * @since 2.1.0
+ *
+ * @var boolean
+ */
+ public $has_notices = true;
+
+ /**
+ * Flag to determine if the user can dismiss the notice nag.
+ *
+ * @since 2.4.0
+ *
+ * @var boolean
+ */
+ public $dismissable = true;
+
+ /**
+ * Message to be output above nag notice if dismissable is false.
+ *
+ * @since 2.4.0
+ *
+ * @var string
+ */
+ public $dismiss_msg = '';
+
+ /**
+ * Flag to set automatic activation of plugins. Off by default.
+ *
+ * @since 2.2.0
+ *
+ * @var boolean
+ */
+ public $is_automatic = false;
+
+ /**
+ * Optional message to display before the plugins table.
+ *
+ * @since 2.2.0
+ *
+ * @var string Message filtered by wp_kses_post(). Default is empty string.
+ */
+ public $message = '';
+
+ /**
+ * Holds configurable array of strings.
+ *
+ * Default values are added in the constructor.
+ *
+ * @since 2.0.0
+ *
+ * @var array
+ */
+ public $strings = array();
+
+ /**
+ * Holds the version of WordPress.
+ *
+ * @since 2.4.0
+ *
+ * @var int
+ */
+ public $wp_version;
+
+ /**
+ * Holds the hook name for the admin page.
+ *
+ * @since 2.5.0
+ *
+ * @var string
+ */
+ public $page_hook;
+
+ /**
+ * Adds a reference of this object to $instance, populates default strings,
+ * does the tgmpa_init action hook, and hooks in the interactions to init.
+ *
+ * {@internal This method should be `protected`, but as too many TGMPA implementations
+ * haven't upgraded beyond v2.3.6 yet, this gives backward compatibility issues.
+ * Reverted back to public for the time being.}}
+ *
+ * @since 1.0.0
+ *
+ * @see TGM_Plugin_Activation::init()
+ */
+ public function __construct()
+ {
+ // Set the current WordPress version.
+ $this->wp_version = $GLOBALS['wp_version'];
- // Announce that the class is ready, and pass the object (for advanced use).
- do_action_ref_array( 'tgmpa_init', array( $this ) );
+ // Announce that the class is ready, and pass the object (for advanced use).
+ do_action_ref_array('tgmpa_init', array($this));
- /*
+ /*
* Load our text domain and allow for overloading the fall-back file.
*
* {@internal IMPORTANT! If this code changes, review the regex in the custom TGMPA
* generator on the website.}}
*/
- add_action( 'init', array( $this, 'load_textdomain' ), 5 );
- add_filter( 'load_textdomain_mofile', array( $this, 'overload_textdomain_mofile' ), 10, 2 );
-
- // When the rest of WP has loaded, kick-start the rest of the class.
- add_action( 'init', array( $this, 'init' ) );
- }
-
- /**
- * Magic method to (not) set protected properties from outside of this class.
- *
- * {@internal hackedihack... There is a serious bug in v2.3.2 - 2.3.6 where the `menu` property
- * is being assigned rather than tested in a conditional, effectively rendering it useless.
- * This 'hack' prevents this from happening.}}
- *
- * @see https://github.com/TGMPA/TGM-Plugin-Activation/blob/2.3.6/tgm-plugin-activation/class-tgm-plugin-activation.php#L1593
- *
- * @since 2.5.2
- *
- * @param string $name Name of an inaccessible property.
- * @param mixed $value Value to assign to the property.
- * @return void Silently fail to set the property when this is tried from outside of this class context.
- * (Inside this class context, the __set() method if not used as there is direct access.)
- */
- public function __set( $name, $value ) {
- return;
- }
-
- /**
- * Magic method to get the value of a protected property outside of this class context.
- *
- * @since 2.5.2
- *
- * @param string $name Name of an inaccessible property.
- * @return mixed The property value.
- */
- public function __get( $name ) {
- return $this->{$name};
- }
-
- /**
- * Initialise the interactions between this class and WordPress.
- *
- * Hooks in three new methods for the class: admin_menu, notices and styles.
- *
- * @since 2.0.0
- *
- * @see TGM_Plugin_Activation::admin_menu()
- * @see TGM_Plugin_Activation::notices()
- * @see TGM_Plugin_Activation::styles()
- */
- public function init() {
- /**
- * By default TGMPA only loads on the WP back-end and not in an Ajax call. Using this filter
- * you can overrule that behaviour.
- *
- * @since 2.5.0
- *
- * @param bool $load Whether or not TGMPA should load.
- * Defaults to the return of `is_admin() && ! defined( 'DOING_AJAX' )`.
- */
- if ( true !== apply_filters( 'tgmpa_load', ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) ) {
- return;
- }
-
- // Load class strings.
- $this->strings = array(
- 'page_title' => __( 'Install Required Plugins', 'wpdirectorykit' ),
- 'menu_title' => __( 'Install Plugins', 'wpdirectorykit' ),
- /* translators: %s: plugin name. */
- 'installing' => __( 'Installing Plugin: %s', 'wpdirectorykit' ),
- /* translators: %s: plugin name. */
- 'updating' => __( 'Updating Plugin: %s', 'wpdirectorykit' ),
- 'oops' => __( 'Something went wrong with the plugin API.', 'wpdirectorykit' ),
- 'notice_can_install_required' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'This plugin requires the following plugin: %1$s.',
- 'This plugin requires the following plugins: %1$s.',
- 'wpdirectorykit'
- ),
- 'notice_can_install_recommended' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'This plugin recommends the following plugin: %1$s.',
- 'This plugin recommends the following plugins: %1$s.',
- 'wpdirectorykit'
- ),
- 'notice_ask_to_update' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.',
- 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.',
- 'wpdirectorykit'
- ),
- 'notice_ask_to_update_maybe' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'There is an update available for: %1$s.',
- 'There are updates available for the following plugins: %1$s.',
- 'wpdirectorykit'
- ),
- 'notice_can_activate_required' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'The following required plugin is currently inactive: %1$s.',
- 'The following required plugins are currently inactive: %1$s.',
- 'wpdirectorykit'
- ),
- 'notice_can_activate_recommended' => _n_noop(
- /* translators: 1: plugin name(s). */
- 'The following recommended plugin is currently inactive: %1$s.',
- 'The following recommended plugins are currently inactive: %1$s.',
- 'wpdirectorykit'
- ),
- 'install_link' => _n_noop(
- 'Begin installing plugin',
- 'Begin installing plugins',
- 'wpdirectorykit'
- ),
- 'update_link' => _n_noop(
- 'Begin updating plugin',
- 'Begin updating plugins',
- 'wpdirectorykit'
- ),
- 'activate_link'