Advertisement
knowles2

404 error page code

Jun 14th, 2012
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2. /**
  3. * Invoked when no matches are found
  4. *
  5. * @package Suffusion
  6. * @subpackage Templates
  7. */
  8.  
  9. global $suffusion_404_title, $suffusion_404_content, $suf_404_title, $suf_404_content;
  10.  
  11. get_header();
  12. ?>
  13. <div id="main-col">
  14. <div id="content">
  15.  
  16. <article class="post">
  17. <header class="post-header">
  18. <h2 class="posttitle">
  19. <?php
  20. if (trim($suf_404_title) == '') {
  21. echo $suffusion_404_title;
  22. }
  23. else {
  24. $title = stripslashes($suf_404_title);
  25. $title = do_shortcode($title);
  26. echo $title;
  27. }
  28. ?>
  29. </h2>
  30. </header>
  31.  
  32. <div class="entry">
  33. <p>
  34. <?php
  35. if (trim($suf_404_content) == '') {
  36. echo $suffusion_404_content;
  37. }
  38. else {
  39. $content = stripslashes($suf_404_content);
  40. $content = wp_specialchars_decode($content, ENT_QUOTES);
  41. $content = do_shortcode($content);
  42. echo $content;
  43. }
  44. ?>
  45. </p>
  46. <?php get_search_form(); ?>
  47. </div><!--/entry -->
  48.  
  49. </article><!--/post -->
  50. </div><!-- /content -->
  51. </div><!-- main col -->
  52. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement