PluginProbe ʕ •ᴥ•ʔ
Responsive Lightbox & Gallery / 2.2.3.1
Responsive Lightbox & Gallery v2.2.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 6 years ago class-fast-image.php 8 years ago class-folders-walker.php 7 years ago class-folders.php 6 years ago class-frontend.php 6 years ago class-galleries.php 6 years ago class-multilang.php 6 years ago class-remote-library-api.php 6 years ago class-remote-library.php 6 years ago class-settings.php 6 years ago class-tour.php 6 years ago class-welcome.php 6 years ago class-widgets.php 6 years ago functions.php 6 years ago
class-welcome.php
145 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-large"><?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-primary button-large"><?php _e( 'Settings', 'responsive-lightbox' ); ?></a>
70 <a href="https://dfactory.eu/docs/responsive-lightbox/?utm_source=responsive-lightbox-welcome&utm_medium=button&utm_campaign=documentation" class="button button-secondary button-large" target="_blank"><?php _e( 'Documentation', 'responsive-lightbox' ); ?></a>
71 <a href="https://dfactory.eu/support/?utm_source=responsive-lightbox-welcome&utm_medium=button&utm_campaign=support" class="button button-secondary button-large" target="_blank"><?php _e( 'Support', 'responsive-lightbox' ); ?></a>
72 <a href="https://dfactory.eu/?utm_source=responsive-lightbox-welcome&utm_medium=button&utm_campaign=dfactory-plugins" class="button button-secondary button-large" target="_blank"><?php _e( 'dFactory Plugins', 'responsive-lightbox' ); ?></a>
73 </div>
74
75 <hr />
76 <?php
77 }
78
79 /**
80 * Ootput the about screen.
81 *
82 * @return void
83 */
84 public function about_screen() {
85 ?>
86 <div class="wrap about-wrap full-width-layout">
87
88 <?php $this->intro(); ?>
89
90 <div class="feature-section">
91 <h2><?php _e( 'Advanced Gallery Builder', 'responsive-lightbox' ); ?></h2>
92 <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>
93 <img src="<?php echo RESPONSIVE_LIGHTBOX_URL . '/images/welcome.png'; ?>" />
94 </div>
95
96 <div class="feature-section">
97 <h2><?php _e( 'Multiple Lightbox Effects', 'responsive-lightbox' ); ?></h2>
98 <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>
99 </div>
100
101 <div class="feature-section">
102 <h2><?php _e( 'Easy Setup', 'responsive-lightbox' ); ?></h2>
103 <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>
104 </div>
105
106 <div class="feature-section">
107 <h2><?php _e( 'Powerful Addons', 'responsive-lightbox' ); ?></h2>
108 <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">premium extensions.</a>', 'responsive-lightbox' ), esc_url( admin_url( 'admin.php?page=responsive-lightbox-addons' ) ) ); ?></p>
109 </div>
110
111 <hr />
112
113 <div class="return-to-dashboard">
114 <a href="<?php echo esc_url( admin_url( 'admin.php?page=responsive-lightbox-settings' ) ); ?>"><?php _e( 'Go to Settings', 'responsive-lightbox' ); ?></a>
115 </div>
116
117 </div>
118 <?php
119 }
120
121 /**
122 * Send user to the welcome page on first activation.
123 *
124 * @return void
125 */
126 public function welcome() {
127
128 // bail if no activation redirect transient is set
129 if ( ! get_transient( 'rl_activation_redirect' ) )
130 return;
131
132 // delete the redirect transient
133 delete_transient( 'rl_activation_redirect' );
134
135 // bail if activating from network, or bulk, or within an iFrame
136 if ( is_network_admin() || isset( $_GET['activate-multi'] ) || defined( 'IFRAME_REQUEST' ) )
137 return;
138
139 if ( (isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action']) && (isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'responsive-lightbox.php' )) )
140 return;
141
142 wp_safe_redirect( admin_url( 'index.php?page=responsive-lightbox-about' ) );
143 exit;
144 }
145 }