| [ Index ] |
PHP Cross Reference of PageLines Framework |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 Section: No Posts 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 */ 10 11 /** 12 * No Posts Section 13 * 14 * @package PageLines Framework 15 * @author PageLines 16 */ 17 class PageLinesNoPosts extends PageLinesSection { 18 19 /** 20 * Section template. 21 */ 22 function section_template() { ?> 23 <div class="notfound boomboard"> 24 <?php if(current_user_can( 'edit_posts' ) && isset($_GET['boxes']) || isset($_GET['feature']) || isset($_GET['banners']) ):?> 25 26 <h2 class="notavail center"><?php _e('Direct Previewing <em>of</em> "Special Post Types" Not Available... Yet','pagelines');?></h2> 27 <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> 28 <p class="subhead center"> 29 <?php _e('To preview a "custom post type" just view a page with that "section" on it.', 'pagelines');?> 30 </p> 31 32 <?php else: ?> 33 34 <h2 class="hugetext center"><?php _e('404!','pagelines');?></h2> 35 <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> 36 37 <?php endif;?> 38 <div class="center fix"><?php get_search_form(); ?> </div> 39 </div> 40 <?php 41 42 43 pagelines_register_hook('pagelines_not_found_actions'); // Hook 44 45 } 46 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Apr 6 23:00:27 2013 | Cross-referenced by PHPXref 0.7.1 |