summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/pages/premium.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/admin/pages/premium.php153
1 files changed, 0 insertions, 153 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/pages/premium.php b/plugins/wordpress-mobile-pack/admin/pages/premium.php
deleted file mode 100755
index 90159af2..00000000
--- a/plugins/wordpress-mobile-pack/admin/pages/premium.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-
-// attempt to load the settings json
-if (!class_exists('WMobilePack_Premium')) {
- require_once(WMP_PLUGIN_PATH . 'inc/class-wmp-premium.php');
-}
-
-$premium_manager = new WMobilePack_Premium();
-$arr_wmp_config = $premium_manager->get_premium_config(false);
-
-?>
-<script type="text/javascript">
- if (window.WMPJSInterface && window.WMPJSInterface != null){
- jQuery(document).ready(function(){
-
- WMPJSInterface.localpath = "<?php echo plugins_url()."/".WMP_DOMAIN."/"; ?>";
- WMPJSInterface.init();
- });
- }
-</script>
-<div id="wmpack-admin">
- <div class="spacer-60"></div>
- <!-- set title -->
- <h1><?php echo WMP_PLUGIN_NAME.' '.WMP_VERSION;?> - Premium</h1>
- <div class="spacer-20"></div>
-
- <?php $upgrade_content = WMobilePack_Admin::more_updates();?>
- <div class="whats-new">
- <div class="left-side">
-
- <!-- add nav menu -->
- <?php
- if ($arr_wmp_config != null && isset($arr_wmp_config->kit_type) && $arr_wmp_config->kit_type == 'wpmp')
- include_once(WMP_PLUGIN_PATH.'admin/sections/admin-menu-premium.php');
- ?>
- <div class="spacer-0"></div>
-
- <div class="details go-premium-white">
- <div class="spacer-10"></div>
-
- <?php if (is_array($upgrade_content) && !empty($upgrade_content)): ?>
- <?php if (array_key_exists('upgraded', $upgrade_content)): ?>
-
- <?php if (array_key_exists('showcase_image', $upgrade_content['upgraded']) && array_key_exists('dashboard_url', $upgrade_content['upgraded'])):?>
- <div class="showcase">
- <a href="<?php echo esc_attr($upgrade_content['upgraded']['dashboard_url']);?>" target="_blank">
- <img src="<?php echo esc_attr($upgrade_content['upgraded']['showcase_image']);?>" />
- </a>
- <div class="spacer-10"></div>
- </div>
- <?php endif;?>
-
- <?php if (array_key_exists('text', $upgrade_content['upgraded'])):?>
- <p><?php echo $upgrade_content['upgraded']['text'];?></p>
- <?php endif;?>
-
- <div class="spacer-10"></div>
- <?php if (array_key_exists('sync_text', $upgrade_content['upgraded'])):?>
- <p><?php echo $upgrade_content['upgraded']['sync_text'];?></p>
- <?php endif;?>
-
- <?php endif;?>
- <?php endif;?>
-
- <?php
- if ($arr_wmp_config != null):
-
- if ((isset($arr_wmp_config->status) && $arr_wmp_config->status == 'hidden') ||
- (isset($arr_wmp_config->deactivated) && $arr_wmp_config->deactivated == 1)):
- ?>
- <div class="spacer-20"></div>
-
- <div class="message-container warning">
- <div class="wrapper">
- <div class="title">
- <h2 class="underlined">Your mobile web app is not visible to your readers!</h2>
- </div>
- <span>
- <?php if (isset($arr_wmp_config->deactivated) && $arr_wmp_config->deactivated == 1):?>
- Your mobile web application has been deactivated because it wasn't accessed by readers for 30 consecutive days. Please contact support if you want to resume using this application immediately.
- <?php else: ?>
- Your mobile web application's status is set to 'hidden'. You can edit the application's settings from the Appticles <a href="https://publish.appticles.com" target="_blank">dashboard</a>.
- <?php endif;?>
- </span>
- </div>
- </div>
- <?php
- endif;
- endif;
- ?>
- <div class="spacer-20"></div>
- <form name="wmp_disconnect_form" id="wmp_disconnect_form" class="left" action="<?php echo admin_url('admin-ajax.php'); ?>?action=wmp_premium_disconnect" method="post">
- <input type="hidden" name="wmp_disconnect_apikey" id="wmp_disconnect_apikey" placeholder="api key*" class="small indent" value="<?php echo WMobilePack_Options::get_setting('premium_api_key');?>" />
- <p><strong>API Key</strong>: <?php echo WMobilePack_Options::get_setting('premium_api_key');?></p>
- <div class="spacer-10"></div>
- <a class="btn blue smaller" href="javascript:void(0)" id="wmp_disconnect_send_btn">Disconnect</a>
- </form>
- <div class="spacer-10"></div>
-
- </div>
- <div class="spacer-10"></div>
-
- <div class="details">
- <div class="display-mode">
- <h2 class="title">Tracking</h2>
- <div class="spacer-20"></div>
-
- <form name="wmp_allowtracking_form" id="wmp_allowtracking_form" class="left" action="<?php echo admin_url('admin-ajax.php'); ?>?action=wmp_settings_save" method="post">
- <?php $selected_value = WMobilePack_Options::get_setting('allow_tracking'); ?>
-
- <input type="hidden" name="wmp_option_allow_tracking" id="wmp_option_allow_tracking" value="<?php echo $selected_value;?>" />
- <input type="checkbox" name="wmp_allowtracking_check" id="wmp_allowtracking_check" value="1" <?php if ($selected_value == 1) echo "checked" ;?> /><label for="wmp_allowtracking_check"><strong>Allow tracking of this WordPress install's anonymous data.</strong></label>
- <div class="spacer-10"></div>
-
- <p style="padding-left: 25px;">To maintain this plugin as best as possible, we need to know what we're dealing with: what kinds of other plugins our users are using, what themes, etc. Please allow us to track that data from your install. It will not track any user details, so your security and privacy are safe with us.</p>
- <div class="spacer-10"></div>
- <a href="javascript:void(0)" id="wmp_allowtracking_send_btn" class="btn green smaller">Save</a>
- </form>
- </div>
- <div class="spacer-0"></div>
- </div>
-
- </div>
- <div class="right-side">
- <!-- add feedback form -->
- <?php include_once(WMP_PLUGIN_PATH.'admin/sections/feedback.php'); ?>
- </div>
- </div>
-</div>
-
-<?php
-// check if we have a https connection
-$is_secure = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
-?>
-
-<script type="text/javascript">
- if (window.WMPJSInterface && window.WMPJSInterface != null){
- jQuery(document).ready(function(){
-
- window.WMPJSInterface.add("UI_disconnect",
- "WMP_DISCONNECT",
- {
- 'DOMDoc': window.document,
- 'submitURL' : '<?php echo $is_secure ? WMP_APPTICLES_DISCONNECT_SSL : WMP_APPTICLES_DISCONNECT;?>',
- 'redirectTo' : '<?php echo admin_url('admin.php?page=wmp-options');?>'
- },
- window
- );
-
- window.WMPJSInterface.add("UI_allowtracking","WMP_ALLOW_TRACKING",{'DOMDoc':window.document}, window);
- });
- }
-</script>