PluginProbe ʕ •ᴥ•ʔ
Responsive Lightbox & Gallery / 2.0
Responsive Lightbox & Gallery v2.0
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
class-frontend.php 8 years ago class-galleries.php 8 years ago class-settings.php 8 years ago class-tour.php 8 years ago class-welcome.php 8 years ago class-widgets.php 8 years ago functions.php 8 years ago
class-welcome.php
136 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 public function __construct() {
16 // actions
17 add_action( 'admin_menu', array( $this, 'admin_menus' ) );
18 add_action( 'admin_head', array( $this, 'admin_head' ) );
19 add_action( 'admin_init', array( $this, 'welcome' ) );
20 }
21
22 /**
23 * Add admin menus/screens.
24 */
25 public function admin_menus() {
26 $welcome_page_title = __( 'Welcome to Responsive Lightbox & Gallery', 'responsive-lightbox' );
27 // about
28 $about = add_dashboard_page( $welcome_page_title, $welcome_page_title, 'manage_options', 'responsive-lightbox-about', array( $this, 'about_screen' ) );
29 }
30
31 /**
32 * Add styles just for this page, and remove dashboard page links.
33 */
34 public function admin_head() {
35 remove_submenu_page( 'index.php', 'responsive-lightbox-about' );
36 }
37
38 /**
39 * Intro text/links shown on all about pages.
40 *
41 * @return mixed
42 */
43 private function intro() {
44
45 // get plugin version
46 $plugin_version = substr( get_option( 'responsive_lightbox_version' ), 0, 3 );
47 ?>
48 <h2 style="text-align: left; font-size: 29px; padding-bottom: 0;"><?php _e( 'Welcome to', 'responsive-lightbox' ); ?></h2>
49 <h1 style="margin-top: 0;"><?php printf( __( 'Responsive Lightbox & Gallery %s', 'responsive-lightbox' ), $plugin_version ); ?></h1>
50
51 <div class="about-text">
52 <?php
53 printf( __( 'Thank you for choosing Responsive Lightbox & Gallery - the most popular lightbox plugin and a powerful gallery builder for WordPress.', 'responsive-lightbox' ), $plugin_version );
54 ?>
55 </div>
56
57 <div class="rl-badge" style="position: absolute; top: 0; right: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1);"><img src="<?php echo RESPONSIVE_LIGHTBOX_URL . '/images/logo-rl.png'; ?>" width="180" height="180" /></div>
58
59 <div class="changelog">
60 <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>
61 <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>
62 <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>
63 <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>
64 <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>
65 </div>
66
67 <hr />
68 <?php
69 }
70
71 /**
72 * Ootput the about screen.
73 *
74 * @return mixed
75 */
76 public function about_screen() {
77 ?>
78 <div class="wrap about-wrap full-width-layout">
79
80 <?php $this->intro(); ?>
81
82 <div class="feature-section">
83 <h2><?php _e( 'Advanced Gallery Builder', 'responsive-lightbox' ); ?></h2>
84 <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>
85 <img src="<?php echo RESPONSIVE_LIGHTBOX_URL . '/images/welcome.png'; ?>" />
86 </div>
87
88 <div class="feature-section">
89 <h2><?php _e( 'Multiple Lightbox Effects', 'responsive-lightbox' ); ?></h2>
90 <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>
91 </div>
92
93 <div class="feature-section">
94 <h2><?php _e( 'Easy Setup', 'responsive-lightbox' ); ?></h2>
95 <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>
96 </div>
97
98 <div class="feature-section">
99 <h2><?php _e( 'Powerful Addons', 'responsive-lightbox' ); ?></h2>
100 <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>
101 </div>
102
103 <hr />
104
105 <div class="return-to-dashboard">
106 <a href="<?php echo esc_url( admin_url( 'admin.php?page=responsive-lightbox-settings' ) ); ?>"><?php _e( 'Go to Settings', 'responsive-lightbox' ); ?></a>
107 </div>
108
109 </div>
110 <?php
111 }
112
113 /**
114 * Send user to the welcome page on first activation.
115 */
116 public function welcome() {
117
118 // bail if no activation redirect transient is set
119 if ( ! get_transient( 'rl_activation_redirect' ) )
120 return;
121
122 // delete the redirect transient
123 delete_transient( 'rl_activation_redirect' );
124
125 // bail if activating from network, or bulk, or within an iFrame
126 if ( is_network_admin() || isset( $_GET['activate-multi'] ) || defined( 'IFRAME_REQUEST' ) )
127 return;
128
129 if ( (isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action']) && (isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'responsive-lightbox.php' )) )
130 return;
131
132 wp_safe_redirect( admin_url( 'index.php?page=responsive-lightbox-about' ) );
133 exit;
134 }
135
136 }