ClarusDignus

style-colors.php

Feb 3rd, 2015
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package xxxxx
  4.  * @author xxxxx
  5.  * @link xxxxx
  6.  */
  7.  
  8. header( 'Content-type: text/css;' );
  9.    
  10. $url    = dirname( __FILE__ );
  11. $strpos = strpos( $url, 'wp-content' );
  12. $base   = substr( $url, 0, $strpos );
  13.  
  14. require_once( $base .'wp-load.php' );
  15. ?>
  16.  
  17. /*Example of the CSS/PHP that follows:*/
  18.  
  19. #some_element {
  20.     background-color: <?php some_function( 'some_element', '#000119' ) ?>;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment