PluginProbe ʕ •ᴥ•ʔ
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder / 1.6.8
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder v1.6.8
2.6.22 trunk 1.3 1.5.3 1.6.10 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.8.0 1.8.1 1.8.10 1.8.11 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.2 2.2.2 2.2.3 2.2.4 2.3.0 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.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.18 2.6.19 2.6.2 2.6.20 2.6.21 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9
wp-maintenance-mode / site.php
wp-maintenance-mode Last commit date
css 15 years ago js 15 years ago languages 15 years ago styles 15 years ago WP Maintenance Mode-da_DK.txt 15 years ago index.php 15 years ago license.txt 15 years ago readme.txt 15 years ago screenshot-1.png 15 years ago screenshot-10.png 15 years ago screenshot-11.png 15 years ago screenshot-12.png 15 years ago screenshot-13.png 15 years ago screenshot-2.png 15 years ago screenshot-3.png 15 years ago screenshot-4.png 15 years ago screenshot-5.png 15 years ago screenshot-6.png 15 years ago screenshot-7.png 15 years ago screenshot-8.png 15 years ago screenshot-9.png 15 years ago site.php 15 years ago uninstall.php 15 years ago wp-maintenance-mode.php 15 years ago
site.php
92 lines
1 <?php
2 if ( !isset($value) ) {
3 $value = get_option( FB_WM_TEXTDOMAIN );
4 $unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
5 }
6 ?>
7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> id="wp_maintenance_mode" >
9
10 <head>
11
12 <title><?php if ( isset($value['title']) && ($value['title'] != '') ) echo stripslashes_deep( $value['title'] ); else { bloginfo('name'); echo ' - '; _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); } ?></title>
13
14 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
15 <meta name="author" content="WP Maintenance Mode: Frank Bueltge, http://bueltge.de" />
16 <meta name="description" content="<?php bloginfo('name'); echo ' - '; bloginfo('description'); ?>" />
17 <meta name="robots" content="noindex,nofollow" />
18 <link rel="Shortcut Icon" type="image/x-icon" href="<?php echo get_option('home'); ?>/favicon.ico" />
19 <link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
20
21 <?php
22 if ( !defined('WP_CONTENT_URL') )
23 define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
24 if ( !defined('WP_PLUGIN_URL') )
25 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
26
27 if ( !defined('FB_WM_BASENAME') )
28 define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
29 if ( !defined('FB_WM_BASEDIR') )
30 define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
31
32 global $user_ID;
33
34 get_currentuserinfo();
35 $locale = get_locale();
36
37 wm_head(); ?>
38
39 </head>
40
41 <body>
42
43 <div id="header">
44 <p><?php if ( isset($value['header']) && ($value['header'] != '') ) echo stripslashes_deep( $value['header'] ); else { bloginfo('name'); echo ' - '; bloginfo('description'); } ?></p>
45 </div>
46
47 <div id="content">
48 <h1><?php if ( isset($value['heading']) && ($value['heading'] != '') ) echo stripslashes_deep( $value['heading'] ); else _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); ?></h1>
49
50 <?php wm_content();
51
52 if (isset($user_ID) && $user_ID) {
53 $adminlogin = wp_logout_url();
54 if ( isset($rolestatus) && 'norights' == $rolestatus )
55 $adminloginmsg = '<h3>' . __( 'Access to the admin area blocked', FB_WM_TEXTDOMAIN ) . '</h3>';
56 else
57 $adminloginmsg = '';
58 $adminloginstr = __( 'Admin-Logout', FB_WM_TEXTDOMAIN );
59 } else {
60 $adminlogin = site_url('wp-login.php', 'login');
61 $adminloginmsg = '';
62 $adminloginstr = __( 'Admin-Login', FB_WM_TEXTDOMAIN );
63 } ?>
64 <?php echo $adminloginmsg; ?>
65 <div class="admin" onclick="location.href='<?php echo $adminlogin; ?>';" onkeypress="location.href='<?php echo $adminlogin; ?>';"><a href="<?php echo $adminlogin; ?>"><?php echo $adminloginstr; ?></a></div>
66 </div>
67
68 <?php wm_footer(); ?>
69
70 <?php
71 $td = WPMaintenanceMode::check_datetime();
72 if ( isset($td[2]) && 0 !== $td[2] ) {
73
74 $locale = substr($locale, 0, 2);
75 ?>
76 <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
77 <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', __FILE__ ); ?>"></script>
78 <?php if ( file_exists(FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
79 <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', __FILE__ ); ?>"></script>
80 <?php } ?>
81 <script type="text/javascript">
82 jQuery(document).ready( function($){
83 var austDay = new Date();
84 // 'Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'
85 austDay = new Date(<?php echo $td[2]; ?>);
86 $('#countdown').countdown({until: austDay});
87 });
88 </script>
89 <?php } ?>
90 </body>
91 </html>
92