Guest User

Untitled

a guest
Aug 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Cannot modify header information - headers already sent
  2. array(
  3. "name" => "Custom CSS",
  4. "desc" => "Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}",
  5. "id" => $shortname."_custom_css",
  6. "type" => "textarea",
  7. "std" => ""
  8. ),
  9.  
  10. array(
  11. "name" => "Link Color",
  12. "desc" => "Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}",
  13. "id" => $shortname."_link_color",
  14. "type" => "textarea",
  15. "std" => ""
  16. ),
  17.  
  18. // don't allow template files in subdirectories
  19. if (false !== strpos($basename, '/')) continue;
  20.  
  21. $template_data = implode('', file( $template ));
  22.  
  23. $name = '';
  24. if (preg_match( '|Single Post Template:(.*)$|mi', $template_data, $name))
  25. $name = _cleanup_header_comment($name[1]);
  26.  
  27. if (!empty($name)) {
  28. if(basename($template) != basename(__FILE__))
  29. $post_templates[trim($name)] = $basename;
  30. }
Add Comment
Please, Sign In to add comment