PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | inc/freemius/templates/admin-notice.php +112 -112 4.2.10 → 4.3.17 View file →
@@ -1,112 +1,112 @@
1 -<?php
2 - /**
3 - * @package Freemius
4 - * @copyright Copyright (c) 2015, Freemius, Inc.
5 - * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 - * @since 1.0.3
7 - */
8 -
9 - if ( ! defined( 'ABSPATH' ) ) {
10 - exit;
11 - }
12 -
13 - /**
14 - * @var array $VARS
15 - */
16 -
17 - $dismiss_text = fs_text_x_inline( 'Dismiss', 'as close a window', 'dismiss' );
18 -
19 - $slug = '';
20 - $type = '';
21 -
22 - if ( ! empty( $VARS['manager_id'] ) ) {
23 - /**
24 - * @var array $VARS
25 - */
26 - $slug = $VARS['manager_id'];
27 -
28 - $type = WP_FS__MODULE_TYPE_PLUGIN;
29 -
30 - if ( false !== strpos( $slug, ':' ) ) {
31 - $parts = explode( ':', $slug );
32 -
33 - $slug = $parts[0];
34 -
35 - $parts_count = count( $parts );
36 -
37 - if ( 1 < $parts_count && WP_FS__MODULE_TYPE_THEME == $parts[1] ) {
38 - $type = $parts[1];
39 - }
40 - }
41 - }
42 -
43 - $attributes = array();
44 - if ( ! empty( $VARS['id'] ) ) {
45 - $attributes['data-id'] = $VARS['id'];
46 - }
47 - if ( ! empty( $VARS['manager_id'] ) ) {
48 - $attributes['data-manager-id'] = $VARS['manager_id'];
49 - }
50 - if ( ! empty( $slug ) ) {
51 - $attributes['data-slug'] = $slug;
52 - }
53 - if ( ! empty( $type ) ) {
54 - $attributes['data-type'] = $type;
55 - }
56 -
57 - $classes = array( 'fs-notice' );
58 - switch ( $VARS['type'] ) {
59 - case 'error':
60 - $classes[] = 'error';
61 - $classes[] = 'form-invalid';
62 - break;
63 - case 'promotion':
64 - $classes[] = 'updated';
65 - $classes[] = 'promotion';
66 - break;
67 - case 'warn':
68 - $classes[] = 'notice';
69 - $classes[] = 'notice-warning';
70 - break;
71 - case 'update':
72 - case 'success':
73 - default:
74 - $classes[] = 'updated';
75 - $classes[] = 'success';
76 - break;
77 - }
78 - if ( ! empty( $VARS['sticky'] ) ) {
79 - $classes[] = 'fs-sticky';
80 - }
81 - if ( ! empty( $VARS['plugin'] ) ) {
82 - $classes[] = 'fs-has-title';
83 - }
84 - if ( ! empty( $slug ) ) {
85 - $classes[] = "fs-slug-{$slug}";
86 - }
87 - if ( ! empty( $type ) ) {
88 - $classes[] = "fs-type-{$type}";
89 - }
90 -?>
91 -<div class="<?php echo fs_html_get_classname( $classes ); ?>" <?php echo fs_html_get_attributes( $attributes ); ?>>
92 - <?php if ( ! empty( $VARS['plugin'] ) ) : ?>
93 - <label class="fs-plugin-title">
94 - <?php echo esc_html( $VARS['plugin'] ); ?>
95 - </label>
96 - <?php endif ?>
97 -
98 - <?php if ( ! empty( $VARS['sticky'] ) && ( ! isset( $VARS['dismissible'] ) || false !== $VARS['dismissible'] ) ) : ?>
99 - <div class="fs-close">
100 - <i class="dashicons dashicons-no" title="<?php echo esc_attr( $dismiss_text ) ?>"></i>
101 - <span><?php echo esc_html( $dismiss_text ); ?></span>
102 - </div>
103 - <?php endif ?>
104 -
105 - <div class="fs-notice-body">
106 - <?php if ( ! empty( $VARS['title'] ) ) : ?>
107 - <strong><?php echo fs_html_get_sanitized_html( $VARS['title'] ); ?></strong>
108 - <?php endif ?>
109 -
110 - <?php echo fs_html_get_sanitized_html( $VARS['message'] ); ?>
111 - </div>
112 -</div>
1 +<?php
2 + /**
3 + * @package Freemius
4 + * @copyright Copyright (c) 2015, Freemius, Inc.
5 + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 + * @since 1.0.3
7 + */
8 +
9 + if ( ! defined( 'ABSPATH' ) ) {
10 + exit;
11 + }
12 +
13 + /**
14 + * @var array $VARS
15 + */
16 +
17 + $dismiss_text = fs_text_x_inline( 'Dismiss', 'as close a window', 'dismiss' );
18 +
19 + $slug = '';
20 + $type = '';
21 +
22 + if ( ! empty( $VARS['manager_id'] ) ) {
23 + /**
24 + * @var array $VARS
25 + */
26 + $slug = $VARS['manager_id'];
27 +
28 + $type = WP_FS__MODULE_TYPE_PLUGIN;
29 +
30 + if ( false !== strpos( $slug, ':' ) ) {
31 + $parts = explode( ':', $slug );
32 +
33 + $slug = $parts[0];
34 +
35 + $parts_count = count( $parts );
36 +
37 + if ( 1 < $parts_count && WP_FS__MODULE_TYPE_THEME == $parts[1] ) {
38 + $type = $parts[1];
39 + }
40 + }
41 + }
42 +
43 + $attributes = array();
44 + if ( ! empty( $VARS['id'] ) ) {
45 + $attributes['data-id'] = $VARS['id'];
46 + }
47 + if ( ! empty( $VARS['manager_id'] ) ) {
48 + $attributes['data-manager-id'] = $VARS['manager_id'];
49 + }
50 + if ( ! empty( $slug ) ) {
51 + $attributes['data-slug'] = $slug;
52 + }
53 + if ( ! empty( $type ) ) {
54 + $attributes['data-type'] = $type;
55 + }
56 +
57 + $classes = array( 'fs-notice' );
58 + switch ( $VARS['type'] ) {
59 + case 'error':
60 + $classes[] = 'error';
61 + $classes[] = 'form-invalid';
62 + break;
63 + case 'promotion':
64 + $classes[] = 'updated';
65 + $classes[] = 'promotion';
66 + break;
67 + case 'warn':
68 + $classes[] = 'notice';
69 + $classes[] = 'notice-warning';
70 + break;
71 + case 'update':
72 + case 'success':
73 + default:
74 + $classes[] = 'updated';
75 + $classes[] = 'success';
76 + break;
77 + }
78 + if ( ! empty( $VARS['sticky'] ) ) {
79 + $classes[] = 'fs-sticky';
80 + }
81 + if ( ! empty( $VARS['plugin'] ) ) {
82 + $classes[] = 'fs-has-title';
83 + }
84 + if ( ! empty( $slug ) ) {
85 + $classes[] = "fs-slug-{$slug}";
86 + }
87 + if ( ! empty( $type ) ) {
88 + $classes[] = "fs-type-{$type}";
89 + }
90 +?>
91 +<div class="<?php echo fs_html_get_classname( $classes ); ?>" <?php echo fs_html_get_attributes( $attributes ); ?>>
92 + <?php if ( ! empty( $VARS['plugin'] ) ) : ?>
93 + <label class="fs-plugin-title">
94 + <?php echo esc_html( $VARS['plugin'] ); ?>
95 + </label>
96 + <?php endif ?>
97 +
98 + <?php if ( ! empty( $VARS['sticky'] ) && ( ! isset( $VARS['dismissible'] ) || false !== $VARS['dismissible'] ) ) : ?>
99 + <div class="fs-close">
100 + <i class="dashicons dashicons-no" title="<?php echo esc_attr( $dismiss_text ) ?>"></i>
101 + <span><?php echo esc_html( $dismiss_text ); ?></span>
102 + </div>
103 + <?php endif ?>
104 +
105 + <div class="fs-notice-body">
106 + <?php if ( ! empty( $VARS['title'] ) ) : ?>
107 + <strong><?php echo fs_html_get_sanitized_html( $VARS['title'] ); ?></strong>
108 + <?php endif ?>
109 +
110 + <?php echo fs_html_get_sanitized_html( $VARS['message'] ); ?>
111 + </div>
112 +</div>