PluginProbe ʕ •ᴥ•ʔ
Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel / trunk
Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel vtrunk
trunk 1.10.3 2.0.24 2.1.34 2.2.44 2.3.3 2.4.32 3.0.6 3.1.11 3.1.12 3.1.13 3.1.20 3.1.25 3.1.26 3.1.26.1 3.1.26.2
foogallery / freemius / templates / admin-notice.php
foogallery / freemius / templates Last commit date
account 7 months ago checkout 7 months ago connect 3 years ago debug 7 months ago forms 7 months ago js 7 months ago partials 2 years ago plugin-info 7 months ago .DS_Store 7 months ago account.php 7 months ago add-ons.php 7 months ago add-trial-to-pricing.php 3 years ago admin-notice.php 2 years ago ajax-loader.php 3 years ago api-connectivity-message-js.php 3 years ago auto-installation.php 3 years ago checkout.php 7 months ago clone-resolution-js.php 7 months ago connect.php 7 months ago contact.php 7 months ago debug.php 7 months ago email.php 3 years ago gdpr-optin-js.php 2 years ago index.php 3 years ago plugin-icon.php 3 years ago pricing.php 7 months ago secure-https-header.php 3 years ago sticky-admin-notice-js.php 3 years ago tabs-capture-js.php 2 years ago tabs.php 6 years ago
admin-notice.php
113 lines
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>
113