PluginProbe ʕ •ᴥ•ʔ
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder / 1.8.2
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder v1.8.2
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 13 years ago inc 13 years ago js 13 years ago languages 13 years ago styles 13 years ago WP Maintenance Mode-da_DK.txt 13 years ago index.php 13 years ago license.txt 13 years ago readme.md 13 years ago readme.txt 13 years ago site.php 13 years ago uninstall.php 13 years ago wp-maintenance-mode.php 13 years ago
site.php
103 lines
1 <?php
2 if ( !isset($value) ) {
3 if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
4 $value = get_site_option( FB_WM_TEXTDOMAIN );
5 else
6 $value = get_option( FB_WM_TEXTDOMAIN );
7 $unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
8 }
9 ?>
10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
11 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> id="wp_maintenance_mode" >
12
13 <head>
14
15 <title><?php if ( isset($value['title']) && ($value['title'] != '') ) echo stripslashes_deep( $value['title'] ); else { bloginfo('name'); echo ' - '; _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); } ?></title>
16
17 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
18 <meta name="author" content="WP Maintenance Mode: Frank Bueltge, http://bueltge.de" />
19 <meta name="description" content="<?php bloginfo('name'); echo ' - '; bloginfo('description'); ?>" />
20 <?php
21 if ( isset( $value['index'] ) && 1 === $value['index'] )
22 $content = 'noindex, nofollow';
23 else {
24 $content = 'index, follow';
25 } ?>
26 <meta name="robots" content="<?php echo $content; ?>" />
27 <link rel="Shortcut Icon" type="image/x-icon" href="<?php echo get_option('home'); ?>/favicon.ico" />
28 <link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
29
30 <?php
31 if ( ! defined('WP_CONTENT_URL') )
32 define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
33 if ( ! defined('WP_PLUGIN_URL') )
34 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
35
36 if ( ! defined('FB_WM_BASENAME') )
37 define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
38 if ( ! defined('FB_WM_BASEDIR') )
39 define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
40
41 global $user_ID;
42
43 get_currentuserinfo();
44 $locale = get_locale();
45
46 wm_head(); ?>
47
48 </head>
49
50 <body>
51
52 <div id="header">
53 <p><?php if ( isset($value['header']) && ($value['header'] != '') ) echo stripslashes_deep( $value['header'] ); else { bloginfo('name'); echo ' - '; bloginfo('description'); } ?></p>
54 </div>
55
56 <div id="content">
57 <h1><?php if ( isset($value['heading']) && ($value['heading'] != '') ) echo stripslashes_deep( $value['heading'] ); else _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); ?></h1>
58
59 <?php wm_content();
60 if ( isset( $value['admin_link'] ) && 1 === $value['admin_link'] ) {
61 if ( isset($user_ID) && $user_ID ) {
62 $adminlogin = wp_logout_url();
63 if ( isset($rolestatus) && 'norights' == $rolestatus )
64 $adminloginmsg = '<h3>' . __( 'Access to the admin area blocked', FB_WM_TEXTDOMAIN ) . '</h3>';
65 else
66 $adminloginmsg = '';
67 $adminloginstr = __( 'Admin-Logout', FB_WM_TEXTDOMAIN );
68 } else {
69 $adminlogin = site_url('wp-login.php', 'login');
70 $adminloginmsg = '';
71 $adminloginstr = __( 'Admin-Login', FB_WM_TEXTDOMAIN );
72 }
73 echo $adminloginmsg;
74 ?>
75 <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>
76 <?php } ?>
77 </div>
78
79 <?php wm_footer(); ?>
80
81 <?php
82 $td = WPMaintenanceMode::check_datetime();
83 if ( isset($td[2]) && 0 !== $td[2] ) {
84
85 $locale = substr($locale, 0, 2);
86 ?>
87 <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
88 <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', basename(dirname(__FILE__ ))); ?>"></script>
89 <?php if ( @file_exists( FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
90 <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', basename(dirname(__FILE__ )) ); ?>"></script>
91 <?php } ?>
92 <script type="text/javascript">
93 jQuery(document).ready( function($){
94 var austDay = new Date();
95 // 'Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'
96 austDay = new Date(<?php echo $td[2]; ?>);
97 $('#countdown').countdown({ until: austDay });
98 });
99 </script>
100 <?php } ?>
101 </body>
102 </html>
103