PluginProbe ʕ •ᴥ•ʔ
Responsive Lightbox & Gallery / 2.3.1
Responsive Lightbox & Gallery v2.3.1
2.7.8 trunk 1.0.0 1.0.1 1.0.1.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.0.1 1.4.1 1.4.11 1.4.12 1.4.13 1.4.14 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.3.1 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7
responsive-lightbox / includes / class-welcome.php
responsive-lightbox / includes Last commit date
providers 5 years ago class-fast-image.php 8 years ago class-folders-walker.php 7 years ago class-folders.php 5 years ago class-frontend.php 5 years ago class-galleries.php 5 years ago class-multilang.php 5 years ago class-remote-library-api.php 5 years ago class-remote-library.php 5 years ago class-settings.php 5 years ago class-tour.php 5 years ago class-welcome.php 5 years ago class-widgets.php 5 years ago functions.php 5 years ago
class-welcome.php
143 lines
1 <?php
2 // exit if accessed directly
3 if ( ! defined( 'ABSPATH' ) )
4 exit;
5
6 new Responsive_Lightbox_Welcome_Page();
7
8 /**
9 * Responsive_Lightbox_Welcome_Page class.
10 *
11 * @class Responsive_Lightbox_Welcome_Page
12 */
13 class Responsive_Lightbox_Welcome_Page {
14
15 /**
16 * Constructor.
17 *
18 * @return void
19 */
20 public function __construct() {
21 // actions
22 add_action( 'admin_menu', array( $this, 'admin_menus' ) );
23 add_action( 'admin_head', array( $this, 'admin_head' ) );
24 add_action( 'admin_init', array( $this, 'welcome' ) );
25 }
26
27 /**
28 * Add admin menus/screens.
29 *
30 * @return void
31 */
32 public function admin_menus() {
33 $welcome_page_title = __( 'Welcome to Responsive Lightbox & Gallery', 'responsive-lightbox' );
34 // about
35 $about = add_dashboard_page( $welcome_page_title, $welcome_page_title, 'manage_options', 'responsive-lightbox-about', array( $this, 'about_screen' ) );
36 }
37
38 /**
39 * Add styles just for this page, and remove dashboard page links.
40 *
41 * @return void
42 */
43 public function admin_head() {
44 remove_submenu_page( 'index.php', 'responsive-lightbox-about' );
45 }
46
47 /**
48 * Intro text/links shown on all about pages.
49 *
50 * @return void
51 */
52 private function intro() {
53 // get plugin version
54 $plugin_version = substr( get_option( 'responsive_lightbox_version' ), 0, 3 );
55 ?>
56 <h2 style="text-align: left; font-size: 29px; padding-bottom: 0;"><?php _e( 'Welcome to', 'responsive-lightbox' ); ?></h2>
57 <h1 style="margin-top: 0;"><?php printf( __( 'Responsive Lightbox & Gallery %s', 'responsive-lightbox' ), $plugin_version ); ?></h1>
58
59 <div class="about-text">
60 <?php
61 printf( __( 'Thank you for choosing Responsive Lightbox & Gallery - the most popular lightbox plugin and a powerful gallery builder for WordPress.', 'responsive-lightbox' ), $plugin_version );
62 ?>
63 </div>
64
65 <div class="rl-badge" style="position: absolute; top: 0; right: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1); max-width: 180px;"><img src="<?php echo RESPONSIVE_LIGHTBOX_URL . '/images/logo-rl.png'; ?>" width="180" height="180" /></div>
66
67 <div class="changelog">
68 <a href="<?php echo esc_url( admin_url( 'admin.php?page=responsive-lightbox-tour' ) ); ?>" class="button button-primary button-hero"><?php _e( 'Start Tour', 'responsive-lightbox' ); ?></a>
69 <a href="<?php echo esc_url( admin_url( 'admin.php?page=responsive-lightbox-settings' ) ); ?>" class="button button-hero"><?php _e( 'Settings', 'responsive-lightbox' ); ?></a>
70 <a href="https://dfactory.eu/products/responsive-lightbox-gallery-extensions/?utm_source=responsive-lightbox-welcome&utm_medium=button&utm_campaign=dfactory-plugins" class="button button-hero" target="_blank"><?php _e( 'Addons', 'responsive-lightbox' ); ?></a>
71 </div>
72
73 <hr />
74 <?php
75 }
76
77 /**
78 * Ootput the about screen.
79 *
80 * @return void
81 */
82 public function about_screen() {
83 ?>
84 <div class="wrap about-wrap full-width-layout">
85
86 <?php $this->intro(); ?>
87
88 <div class="feature-section">
89 <h2><?php _e( 'Advanced Gallery Builder', 'responsive-lightbox' ); ?></h2>
90 <p><?php _e( 'Responsive Lightbox & Gallery comes with a powerful gallery builder right out of the box that lets you manage galleries the same way you manage posts and pages on your WordPress website. You can add images to your gallery, adjust its settings and lightbox scripts, and configure its display options.', 'responsive-lightbox' ); ?></p>
91 <img src="<?php echo RESPONSIVE_LIGHTBOX_URL . '/images/welcome.png'; ?>" />
92 </div>
93
94 <div class="feature-section">
95 <h2><?php _e( 'Multiple Lightbox Effects', 'responsive-lightbox' ); ?></h2>
96 <p><?php _e( "Responsive Lightbox & Gallery gives you the control to beautify your images, videos, and galleries using lightbox scripts that look great on all devices. We've got everything from lightweight, functional lightboxes to heavy-customizable, fancy ones.", 'responsive-lightbox' ); ?></p>
97 </div>
98
99 <div class="feature-section">
100 <h2><?php _e( 'Easy Setup', 'responsive-lightbox' ); ?></h2>
101 <p><?php _e( 'A lot goes into making a good first impression - especially when your site is doing all the talking. Responsive Lightbox & Gallery automatically adds lightbox effects to all of your image galleries, image links, and video links so you can sit back and relax while we make sure your website looks its best.', 'responsive-lightbox' ); ?></p>
102 </div>
103
104 <div class="feature-section">
105 <h2><?php _e( 'Powerful Addons', 'responsive-lightbox' ); ?></h2>
106 <p><?php printf( __( 'Responsive Lightbox & Gallery enhances your site by making its images and galleries look visually appealing to your site users. And when you want to kick things up a notch you can pair the free, core plugin with <del>one of 10</del> one of 12 <a href="%s" target="_blank">premium extensions.</a>', 'responsive-lightbox' ), 'https://dfactory.eu/products/responsive-lightbox-gallery-extensions/' ); ?></p>
107 </div>
108
109 <hr />
110
111 <div class="return-to-dashboard">
112 <a href="<?php echo esc_url( admin_url( 'admin.php?page=responsive-lightbox-settings' ) ); ?>"><?php _e( 'Go to Settings', 'responsive-lightbox' ); ?></a>
113 </div>
114
115 </div>
116 <?php
117 }
118
119 /**
120 * Send user to the welcome page on first activation.
121 *
122 * @return void
123 */
124 public function welcome() {
125
126 // bail if no activation redirect transient is set
127 if ( ! get_transient( 'rl_activation_redirect' ) )
128 return;
129
130 // delete the redirect transient
131 delete_transient( 'rl_activation_redirect' );
132
133 // bail if activating from network, or bulk, or within an iFrame
134 if ( is_network_admin() || isset( $_GET['activate-multi'] ) || defined( 'IFRAME_REQUEST' ) )
135 return;
136
137 if ( (isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action']) && (isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'responsive-lightbox.php' )) )
138 return;
139
140 wp_safe_redirect( admin_url( 'index.php?page=responsive-lightbox-about' ) );
141 exit;
142 }
143 }