Plugin Directory

Changeset 2237093


Ignore:
Timestamp:
02/02/2020 02:39:21 AM (6 years ago)
Author:
jacobslomp
Message:

updated names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-splash-lite/trunk/wp-splash-lite.php

    r1017033 r2237093  
    33Plugin Name: WP Splash Lite
    44Description: 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.4
    6 Author: Jacob Slomp (JS-Systems)
    7 Author URI: http://www.JS-Systems.nl
    8 Plugin URI: http://www.js-systems.nl/wp-plugins/wp-splash-lite/
     5Version: 1.0.5
     6Author: Jacob Slomp (Slomp Technologies)
     7Author URI: https://www.slomp.ca/
     8Plugin URI: https://www.slomp.ca/wp-plugins/wp-splash-lite/
    99License: GPLv2 or later
    1010
     
    2424
    2525function 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        }
    3536    }
    3637}
    37 }
    3838add_action('init','SplashPage');
Note: See TracChangeset for help on using the changeset viewer.