PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.2
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.2
1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 All 172 releases
userswp / admin / views / html-admin-page-addons.php

html-admin-page-addons.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.2, at admin/views/html-admin-page-addons.php

128 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin View: Page - Addons
4 *
5 * @var string $view
6 * @var object $addons
7 */
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11 add_ThickBox();
12 ?>
13 <div class="wrap uwp_addons_wrap">
14 <h1><?php echo get_admin_page_title(); ?></h1>
15
16 <?php if ( $tabs ){ ?>
17 <nav class="nav-tab-wrapper uwp-nav-tab-wrapper">
18 <?php
19 foreach ( $tabs as $name => $label ) {
20 echo '<a href="' . admin_url( 'admin.php?page=uwp-addons&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>';
21 }
22 do_action( 'uwp_addons_tabs' );
23 ?>
24 </nav>
25
26 <?php
27
28 if($current_tab == 'membership'){
29
30 ?>
31
32 <div class="uwp-membership-tab-conatiner">
33 <h2>With our UsersWP Membership you get access to all our products!</h2>
34 <p><a class="button button-primary" href="https://userswp.io/downloads/membership/">View Memberships</a></p>
35 <?php if(defined('WP_EASY_UPDATES_ACTIVE')){?>
36
37 <h2>Have a membership key?</h2>
38
39 <p>
40 <?php
41 $wpeu_admin = new External_Updates_Admin('userswp.io','1');
42 echo $wpeu_admin->render_licence_actions('userswp.io', 'membership',array(238,239,240));
43 ?>
44 </p>
45 <?php }?>
46 </div>
47
48 <?php
49 }else{
50 $installed_plugins = get_plugins();
51 $addon_obj = new UsersWP_Admin_Addons();
52 if ($addons = $addon_obj->get_section_data( $current_tab ) ) :
53 ?>
54 <ul class="uwp-products"><?php foreach ( $addons as $addon ) :
55 ?><li class="uwp-product">
56 <div class="uwp-product-title">
57 <h3><?php
58 if ( ! empty( $addon->info->excerpt) ){
59 echo uwp_help_tip( $addon->info->excerpt );
60 }
61 echo esc_html( $addon->info->title ); ?></h3>
62 </div>
63
64 <span class="uwp-product-image">
65 <?php if ( ! empty( $addon->info->thumbnail) ) : ?>
66 <img src="<?php echo esc_attr( $addon->info->thumbnail ); ?>"/>
67 <?php endif;
68
69 if(isset($addon->info->link) && substr( $addon->info->link, 0, 21 ) === "https://wordpress.org"){
70 echo '<a href="'.admin_url('/plugin-install.php?tab=plugin-information&plugin='.$addon->info->slug).'&width=770&height=660&TB_iframe=true" class="thickbox" >';
71 echo '<span class="uwp-product-info">'.__('More info','userswp').'</span>';
72 echo '</a>';
73 }elseif(isset($addon->info->link) && substr( $addon->info->link, 0, 18 ) === "https://userswp.io"){
74 if(defined('WP_EASY_UPDATES_ACTIVE')){
75 $url = admin_url('/plugin-install.php?tab=plugin-information&plugin='.$addon->info->slug.'&width=770&height=660&item_id='.$addon->info->id.'&update_url=https://userswp.io&TB_iframe=true');
76 }else{
77 // if installed show activation link
78 if(isset($installed_plugins['wp-easy-updates/external-updates.php'])){
79 $url = '#TB_inline?width=600&height=50&inlineId=uwp-wpeu-required-activation';
80 }else{
81 $url = '#TB_inline?width=600&height=50&inlineId=uwp-wpeu-required-for-external';
82 }
83 }
84 echo '<a href="'.$url.'" class="thickbox">';
85 echo '<span class="uwp-product-info">'.__('More info','userswp').'</span>';
86 echo '</a>';
87 }
88
89 ?>
90
91 </span>
92
93
94 <span class="uwp-product-button">
95 <?php
96 $addon_obj->output_button( $addon );
97 ?>
98 </span>
99
100 <span class="uwp-price"><?php //print_r($addon); //echo wp_kses_post( $addon->price ); ?></span></li><?php endforeach; ?></ul>
101 <?php endif;
102 }
103
104 }
105 ?>
106
107
108 <div class="clearfix" ></div>
109
110 <?php if($current_tab =='addons'){?>
111 <p><?php printf( __( 'All of our UsersWP Addons can be found on UsersWP.io here: <a href="%s">UsersWP Addons</a>', 'userswp' ), 'https://userswp.io/downloads/category/addons/' ); ?></p>
112 <?php } ?>
113
114 <div id="uwp-wpeu-required-activation" style="display:none;"><span class="uwp-notification "><?php printf( __("The plugin <a href='https://wpeasyupdates.com/' target='_blank'>WP Easy Updates</a> is required to check for and update some installed plugins/themes, please <a href='%s'>activate</a> it now.",'userswp'),wp_nonce_url(admin_url('plugins.php?action=activate&plugin=wp-easy-updates/external-updates.php'), 'activate-plugin_wp-easy-updates/external-updates.php'));?></span></div>
115 <div id="uwp-wpeu-required-for-external" style="display:none;"><span class="uwp-notification "><?php printf( __("The plugin <a href='https://wpeasyupdates.com/' target='_blank'>WP Easy Updates</a> is required to check for and update some installed plugins/themes, please <a href='%s' onclick='window.open(\"https://wpeasyupdates.com/wp-easy-updates.zip\", \"_blank\");' >download</a> and install it now.",'userswp'),admin_url("plugin-install.php?tab=upload&wpeu-install=true"));?></span></div>
116 <div id="wpeu-licence-popup" style="display:none;">
117 <span class="uwp-notification noti-white">
118 <h3 class="wpeu-licence-title"><?php _e("Licence key",'userswp');?></h3>
119 <input class="wpeu-licence-key" type="text" placeholder="<?php _e("Enter your licence key",'userswp');?>"> <button class="button-primary wpeu-licence-popup-button" ><?php _e("Install",'userswp');?></button>
120 <br>
121 <?php
122 echo sprintf( __('%sFind your licence key here%s OR %sBuy one here%s', 'userswp'), '<a href="https://userswp.io/your-account/" target="_blank">','</a>','<a class="wpeu-licence-link" href="https://userswp.io/downloads/category/addons/" target="_blank">','</a>' );
123 ?>
124 </span>
125 </div>
126
127 </div>
128