[ Index ]

PHP Cross Reference of PageLines DMS

title

Body

[close]

/sections/noposts/ -> section.php (source)

   1  <?php
   2  /*
   3      Section: 404 Error
   4      Author: PageLines
   5      Author URI: http://www.pagelines.com
   6      Description: Shown when no posts or 404 is returned
   7      Class Name: PageLinesNoPosts
   8      Workswith: 404_page
   9      Isolate: 404_page
  10      Filter: misc
  11  */
  12  
  13  class PageLinesNoPosts extends PageLinesSection {
  14  
  15      /**
  16      * Section template.
  17      */
  18     function section_template() { ?>
  19      <div class="notfound boomboard">
  20      <?php if(current_user_can( 'edit_posts' ) && isset($_GET['boxes']) || isset($_GET['feature']) || isset($_GET['banners']) ):?>
  21  
  22              <h2 class="notavail center"><?php _e('Direct Previewing <em>of</em> &quot;Special Post Types&quot; Not Available... Yet','pagelines');?></h2>
  23              <p class="subhead center"><?php _e('Sorry, direct previewing of special post types such as <strong>features</strong> or <strong>boxes</strong> is unavailable. This WordPress functionality is new and rapidly developing, so it should be available soon.', 'pagelines');?></p>
  24              <p class="subhead center">
  25                  <?php _e('To preview a &quot;custom post type&quot; just view a page with that &quot;section&quot; on it.', 'pagelines');?>
  26              </p>
  27  
  28      <?php else: ?>
  29  
  30                  <h2 class="hugetext center"><?php _e('404!','pagelines');?></h2>
  31                  <p class="subhead center"><?php _e('Sorry, This Page Does not exist.', 'pagelines');?><br/><?php _e('Go','pagelines');?> <a href="<?php echo home_url(); ?>"><?php _e('home','pagelines');?></a> <?php _e('or try a search?', 'pagelines');?></p>
  32  
  33      <?php endif;?>
  34          <div class="center fix"><?php get_search_form(); ?> </div>
  35      </div>
  36      <?php
  37  
  38  
  39          pagelines_register_hook('pagelines_not_found_actions'); // Hook
  40  
  41      }
  42  
  43  }


Generated: Sun Dec 1 19:43:16 2013 Cross-referenced by PHPXref 0.7.1