SHARE
TWEET

Untitled

a guest Jun 3rd, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. header("Content-type: text/css; charset: UTF-8");
  3.  
  4. define('SHORTINIT', true);
  5.  
  6. function find_require($file,$folder=null) {
  7.     if ($folder === null) {$folder = dirname(__FILE__);}
  8.     $path = $folder.DIRECTORY_SEPARATOR.$file;
  9.     if (file_exists($path)) {require($path); return $folder;}
  10.     else {
  11.         $upfolder = find_require($file,dirname($folder));
  12.         if ($upfolder != '') {return $upfolder;}
  13.     }
  14. }
  15.  
  16. $wp_root_path = find_require('../../wp-load.php');
  17. define('ABSPATH', $wp_root_path);
  18. define('WPINC', 'wp-includes');
  19.  
  20. include(ABSPATH.WPINC.DIRECTORY_SEPARATOR.'version.php');
  21. include(ABSPATH.WPINC.DIRECTORY_SEPARATOR.'general-template.php');
  22. include(ABSPATH.WPINC.DIRECTORY_SEPARATOR.'link-template.php');
  23. ?>
  24. html,
  25. body {
  26.     height: 100%;
  27.     background-color: <?php echo get_background_color(); ?>
  28. }
  29. body.landing {
  30.     background-color: <?php echo get_background_color(); ?>;
  31.     color: #fff;
  32.     text-align: center
  33. }
  34. body.landing #bg.cbg {
  35.     background-image: url('<?php echo get_background_image(); ?>');
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top