Changeset 1552228
- Timestamp:
- 12/12/2016 03:14:16 AM (9 years ago)
- Location:
- offline-box/trunk
- Files:
-
- 5 edited
-
includes/setting.php (modified) (1 diff)
-
includes/site.php (modified) (2 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
themes/default/setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
offline-box/trunk/includes/setting.php
r1431990 r1552228 53 53 <p> 54 54 <select name="offline_box_display[enable]" id="offline_box_display_enable"> 55 <option value="yes" <?php echo $enable=='yes'?'selected':'';?>>Yes</option> 55 <option value="yesbutnotadmin" <?php echo $enable=='no'?'selected':'';?>>Yes for all but exclude Admin</option> 56 <option value="yesforguest" <?php echo $enable=='no'?'selected':'';?>>Yes for Guest</option> 57 <option value="yes" <?php echo $enable=='yes'?'selected':'';?>>Yes for All</option> 56 58 <option value="no" <?php echo $enable=='no'?'selected':'';?>>No</option> 57 </select> 59 </select> 58 60 </p> 59 61 <?php -
offline-box/trunk/includes/site.php
r1431990 r1552228 17 17 18 18 $current_user = wp_get_current_user(); 19 if( $enable == 'yesforguest' ){ 20 // Yes for Guest 21 if( empty($current_user) || intval($current_user->ID) == 0 ){ 22 $enable = 'yes'; 23 } 24 } else if( $enable == 'yesbutnotadmin' ){ 25 // Yes for all but exclude Admin 26 if ( empty( $current_user->roles ) || !is_array( $current_user->roles ) || !in_array( 'administrator', $current_user->roles ) ) { 27 $enable = 'yes'; 28 } 29 } 19 30 20 31 21 //if( empty($current_user) || intval($current_user->ID) == 0 ){22 32 if( $enable == 'yes' ){ 23 33 … … 25 35 include $file; 26 36 } else { 27 echo 'Not Theme !!! Please choose a theme in The Offline Box Plugin now.';37 echo 'Not Theme !!! Please choose a theme in The Offline Box Plugin now.'; 28 38 } 29 39 -
offline-box/trunk/index.php
r1402696 r1552228 4 4 Plugin URI: http://wordpress.org/plugins/offline-box/ 5 5 Description: Site offline, coming soon, development site, security. Easily activate maintenance mode for your website. 6 Version: 1.0. 26 Version: 1.0.4 7 7 Author: PB One 8 8 Author URI: http://photoboxone.com/ -
offline-box/trunk/readme.txt
r1491811 r1552228 6 6 Tags: site offline, offline, offline box, coming soon, photos, photo, images, image, development, development site, security, plugin, plugins 7 7 Requires at least: 3.5 8 Tested up to: 4. 69 Stable tag: 1.0. 38 Tested up to: 4.7 9 Stable tag: 1.0.4 10 10 11 11 Site offline, coming soon, development site, security. Easily activate maintenance mode for your website. … … 53 53 == Changelog == 54 54 55 = 1.0.4 = 56 * Add more options: 57 - Yes for Guest. 58 - Yes for all but exclude Admin. 59 55 60 = 1.0.3 = 56 61 * Add more option. -
offline-box/trunk/themes/default/setting.php
r1431990 r1552228 16 16 </p> 17 17 <h4>Title</h4> 18 <p><input value="<?php echo $title;?>" name="offline_box_display[title]" /></p>18 <p><input value="<?php echo $title;?>" name="offline_box_display[title]" style="width: 80%; max-width: 90%; " /></p> 19 19 <h4>Description</h4> 20 20 <p><textarea name="offline_box_display[description]" style="width: 80%; max-width: 90%; height: 70px;"><?php echo $description;?></textarea></p>
Note: See TracChangeset
for help on using the changeset viewer.