Changeset 2237093
- Timestamp:
- 02/02/2020 02:39:21 AM (6 years ago)
- File:
-
- 1 edited
-
wp-splash-lite/trunk/wp-splash-lite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-splash-lite/trunk/wp-splash-lite.php
r1017033 r2237093 3 3 Plugin Name: WP Splash Lite 4 4 Description: Loads up a splash page, create your splash-page in the template folder named "splash-page.php", only admins can see the template. To unlock splash, visit: example.com/?splash=off 5 Version: 1.0. 46 Author: Jacob Slomp ( JS-Systems)7 Author URI: http ://www.JS-Systems.nl8 Plugin URI: http ://www.js-systems.nl/wp-plugins/wp-splash-lite/5 Version: 1.0.5 6 Author: Jacob Slomp (Slomp Technologies) 7 Author URI: https://www.slomp.ca/ 8 Plugin URI: https://www.slomp.ca/wp-plugins/wp-splash-lite/ 9 9 License: GPLv2 or later 10 10 … … 24 24 25 25 function SplashPage(){ 26 if ( ! is_super_admin() && strpos($_SERVER['REQUEST_URI'], '/wp-login.php') === false && strpos($_SERVER['REQUEST_URI'], '/wp-admin') === false && $_COOKIE['splash'] != 'off') { 27 $path = get_template_directory(); 28 if(file_exists($path.'/splash-page.template.php')){ 29 include($path.'/splash-page.template.php'); 30 exit(); 31 } else { 32 $dir = dirname(__FILE__); 33 include($dir."/splash-page.template.php"); 34 exit(); 26 if ( ! is_super_admin() && strpos($_SERVER['REQUEST_URI'], '/wp-login.php') === false && strpos($_SERVER['REQUEST_URI'], '/wp-admin') === false && $_COOKIE['splash'] != 'off') { 27 $path = get_template_directory(); 28 if(file_exists($path.'/splash-page.template.php')){ 29 include($path.'/splash-page.template.php'); 30 exit(); 31 } else { 32 $dir = dirname(__FILE__); 33 include($dir."/splash-page.template.php"); 34 exit(); 35 } 35 36 } 36 37 } 37 }38 38 add_action('init','SplashPage');
Note: See TracChangeset
for help on using the changeset viewer.