/**
 *
 * @TODO document
 *
 */
function pagelines_non_meta_data_page()
{
    if (pagelines_is_posts_page() || is_404()) {
        return true;
    } else {
        return false;
    }
}
Ejemplo n.º 2
0
function get_pagelines_meta($option, $post)
{
    $meta = get_post_meta($post, $option, true);
    if (isset($meta) && !pagelines_is_posts_page()) {
        return $meta;
    } else {
        return false;
    }
}
Ejemplo n.º 3
0
 /**
  * Get post excerpt and markup
  *
  * @since 2.0.0
  *
  * @return string the excerpt markup
  */
 function post_excerpt_markup($mode = '', $thumbnail = '')
 {
     ob_start();
     pagelines_register_hook('pagelines_loop_before_excerpt', 'theloop');
     // Hook
     if ($mode == 'left-excerpt' || $mode == 'right-excerpt') {
         printf('<aside class="post-excerpt">%s %s</aside>', $thumbnail, get_the_excerpt());
     } else {
         printf('<aside class="post-excerpt">%s</aside>', get_the_excerpt());
     }
     if (pagelines_is_posts_page() && !$this->pagelines_show_content(get_the_ID())) {
         // 'Continue Reading' link
         echo $this->get_continue_reading_link(get_the_ID());
     }
     pagelines_register_hook('pagelines_loop_after_excerpt', 'theloop');
     // Hook
     $pagelines_excerpt = ob_get_clean();
     return apply_filters('pagelines_excerpt', $pagelines_excerpt);
 }
/**
 * 
 *  Returns Current Layout Mode
 *
 *  @package PageLines
 *  @subpackage Functions Library
 *  @since 1.0.0
 *
 */
function pagelines_layout_mode()
{
    global $pagelines_layout;
    global $post;
    if (!pagelines_is_posts_page() && isset($post) && get_post_meta($post->ID, '_pagelines_layout_mode', true)) {
        $pagelines_layout->build_layout(get_post_meta($post->ID, '_pagelines_layout_mode', true));
        return get_post_meta($post->ID, '_pagelines_layout_mode', true);
    } elseif (pagelines_is_posts_page() && pagelines_option('posts_page_layout')) {
        $pagelines_layout->build_layout(pagelines_option('posts_page_layout'));
        return pagelines_option('posts_page_layout');
    } else {
        return $pagelines_layout->layout_mode;
    }
}
Ejemplo n.º 5
0
								<?php 
                if (pagelines_show_excerpt(get_the_ID())) {
                    // Post Excerpt
                    ?>
										<div class="post-excerpt">
											<?php 
                    pagelines_register_hook('pagelines_loop_before_post_excerpt', 'theloop');
                    //hook
                    the_excerpt();
                    pagelines_register_hook('pagelines_loop_after_post_excerpt', 'theloop');
                    //hook
                    ?>
										</div>

										<?php 
                    if (pagelines_is_posts_page() && !pagelines_show_content(get_the_ID())) {
                        // 'Continue Reading' link
                        ?>
											<a class="continue_reading_link" href="<?php 
                        the_permalink();
                        ?>
" title="<?php 
                        _e("View", 'pagelines');
                        ?>
 <?php 
                        the_title_attribute();
                        ?>
">
												<?php 
                        e_pagelines('continue_reading_text', __('Continue Reading', 'pagelines'));
                        ?>
										
										<?php 
											pagelines_get_post_title();
											pagelines_get_post_metabar();
										?>
										
									</div>


								</div>
								<?php if(pagelines_show_excerpt( $post->ID )): // Post Excerpt ?>
									
										<div class="post-excerpt"><?php the_excerpt(); ?></div>

										<?php 
										if(pagelines_is_posts_page() && !pagelines_show_content( $post->ID )): // 'Continue Reading' link
										
											pagelines_register_hook( 'pagelines_before_excerpt', 'theloop' ); // Hook
											echo get_continue_reading_link($post->ID);
									
										endif; 
										
										pagelines_register_hook( 'pagelines_after_excerpt', 'theloop' ); // Hook ?>
								<?php endif; ?>
							</div>				
						</div>
					<?php endif;?>

					<?php  if(pagelines_show_content( get_the_ID() )): // Post and Page Content ?>  	
						<div class="entry_wrap fix">
						<?php pagelines_register_hook( 'pagelines_loop_before_post_content', 'theloop' ); // Hook ?>