Ejemplo n.º 1
0
<?php

include locate_template('templates/post/header.php');
$meta_author = wpv_get_optionb('show-post-author');
$meta_tax = wpv_get_optionb('meta_posted_in');
$meta_date = wpv_get_optionb('meta_posted_on');
$meta_comments = wpv_get_optionb('meta_comment_count');
?>
<div class="post-content-outer single-post">

	<?php 
if ($meta_author || $meta_date || $meta_comments && comments_open()) {
    ?>
		<div class="meta-top clearfix">
			<?php 
    if ($meta_author) {
        ?>
				<span class="author"><?php 
        the_author_posts_link();
        ?>
</span>
			<?php 
    }
    ?>
			<?php 
    if ($meta_date) {
        ?>
				<span class="post-date"><?php 
        the_time(get_option('date_format'));
        ?>
 </span>
Ejemplo n.º 2
0
function theme_body_classes($body_class)
{
    global $wpv_has_header_sidebars, $post, $wpv_is_shortcode_preview;
    $is_blank_page = is_page_template('page-blank.php');
    $has_header_slider = WpvTemplates::has_header_slider();
    $wpv_has_header_sidebars = wpv_post_meta_default('show_header_sidebars', 'has-header-sidebars');
    $has_page_header = (WpvTemplates::has_page_header() || WpvTemplates::has_post_siblings_buttons()) && !is_404();
    $body_class[] = $is_blank_page ? 'full' : wpv_get_option('site-layout-type');
    $body_class[] = 'pagination-' . wpv_get_option('pagination-type');
    $body_class[] = is_singular(WpvFramework::$complex_layout) ? 'sticky-header-type-' . wpv_post_meta(null, 'sticky-header-type', true) : '';
    $body_class[] = 'wpv-not-scrolled';
    $body_class_conditions = array('no-page-header' => !$has_page_header, 'has-page-header' => $has_page_header, 'cbox-share-twitter' => wpv_get_optionb('share-lightbox-twitter'), 'cbox-share-facebook' => wpv_get_optionb('share-lightbox-facebook'), 'cbox-share-googleplus' => wpv_get_optionb('share-lightbox-googleplus'), 'cbox-share-pinterest' => wpv_get_optionb('share-lightbox-pinterest'), 'fixed-header' => wpv_get_optionb('fixed-header'), 'has-header-slider' => $has_header_slider, 'has-header-sidebars' => $wpv_has_header_sidebars, 'no-header-slider' => !$has_header_slider, 'no-header-sidebars' => !$wpv_has_header_sidebars, 'no-footer-sidebars' => !wpv_get_optionb('has-footer-sidebars'), 'responsive-layout' => WPV_RESPONSIVE, 'fixed-layout' => !WPV_RESPONSIVE, 'has-breadcrumbs' => wpv_get_optionb('enable-breadcrumbs'), 'no-breadcrumbs' => !wpv_get_optionb('enable-breadcrumbs'), 'no-slider-button-thumbnails' => !wpv_get_optionb('header-slider-button-thumbnails'), 'sticky-header' => wpv_get_optionb('sticky-header'), 'no-page-bottom-padding' => wpv_post_meta(null, 'use-page-bottom-padding', true) == 'false', 'vamtam-shortcode-tooltip-preview' => $wpv_is_shortcode_preview && strpos($GLOBALS['wpv_current_shortcode'], '[tooltip') !== false);
    foreach ($body_class_conditions as $class => $cond) {
        if ($cond) {
            $body_class[] = $class;
        }
    }
    if (is_archive() || is_search() || get_query_var('format_filter')) {
        define('WPV_ARCHIVE_TEMPLATE', true);
    }
    return $body_class;
}
Ejemplo n.º 3
0
 public static function has_breadcrumbs()
 {
     return wpv_get_optionb('enable-breadcrumbs') && !is_front_page() && !is_page_template('page-blank.php');
 }
Ejemplo n.º 4
0
			<div class="author"><span class="icon theme"><?php 
    wpv_icon('ink-tool');
    ?>
</span><?php 
    the_author_posts_link();
    ?>
</div>
		<?php 
}
?>

		<?php 
if (!post_password_required()) {
    ?>
			<?php 
    if (wpv_get_optionb('meta_posted_in')) {
        ?>
				<div><span class="icon"><?php 
        wpv_icon('folder1');
        ?>
</span><span class="visuallyhidden"><?php 
        _e('Category', 'honeymoon');
        ?>
</span><?php 
        the_category(', ');
        ?>
</div>
				<?php 
        // Tags
        the_tags('<div class="the-tags"><span class="icon">' . wpv_get_icon('tag') . '</span><span class="visuallyhidden">' . __('Category', 'honeymoon') . '</span>', ', ', '</div>');
        ?>
Ejemplo n.º 5
0
        get_template_part('templates/post');
        ?>
				<div class="clearboth">
					<?php 
        comments_template();
        ?>
				</div>
			</div>
		</article>

		<?php 
        WpvTemplates::right_sidebar();
        ?>

		<?php 
        if (wpv_get_optionb('show-related-posts') && is_singular('post')) {
            ?>
			<?php 
            $terms = array();
            $cats = get_the_category();
            foreach ($cats as $cat) {
                $terms[] = $cat->term_id;
            }
            ?>
			<div class="related-posts">
				<div class="clearfix">
					<div class="grid-1-1">
						<?php 
            echo apply_filters('wpv_related_posts_title', '<h2 class="related-content-title">' . wpv_get_option('related-posts-title') . '</h3>');
            ?>
						<?php 
Ejemplo n.º 6
0
 /**
  * Register theme support for various features
  */
 public function theme_supports()
 {
     global $wpv_post_formats, $content_width;
     define('WPV_RESPONSIVE', wpv_get_optionb('is-responsive'));
     /**
      * the max content width the css is built for should equal the actual content width,
      * for example, the width of the text of a page without sidebars
      */
     if (!isset($content_width)) {
         $content_width = wpv_get_option('site-max-width');
     }
     $wpv_post_formats = apply_filters('wpv_post_formats', array('aside', 'link', 'image', 'video', 'audio', 'quote', 'gallery'));
     // ini_set('pcre.backtrack_limit','200000');
     add_theme_support('post-thumbnails');
     add_theme_support('automatic-feed-links');
     add_theme_support('post-formats', $wpv_post_formats);
     if (function_exists('register_nav_menus')) {
         register_nav_menus(array('menu-header' => __('Menu Header', 'church-event'), 'menu-top' => __('Menu Top', 'church-event')));
     }
     add_theme_support('wpv-reduced-ajax-single-response');
     add_theme_support('wpv-ajax-siblings');
     add_theme_support('wpv-page-title-style');
     add_theme_support('wpv-centered-text-divider');
     add_image_size('posts-widget-thumb', 60, 60, true);
     add_image_size('posts-widget-thumb-small', 43, 43, true);
     add_image_size('wpv-sermons-thumbnail', 106, 106, true);
     $size_names = array('single-portfolio', 'single-post', 'post-loop', 'portfolio-loop', 'post-small');
     $size_info = array();
     foreach ($size_names as $name) {
         $size_info[$name] = (object) array('wth' => abs(floatval(wpv_get_option("{$name}-images-wth"))), 'crop' => true);
     }
     $post_loop_width = 480;
     $height = $size_info['post-loop']->wth ? $post_loop_width / $size_info['post-loop']->wth : false;
     add_image_size('post-loop', $post_loop_width, $height, $size_info['post-loop']->crop);
     $width = $content_width - 2 * 60;
     $single_sizes = array('single-portfolio', 'single-post');
     $columnated_sizes = array('portfolio-loop', 'post-small');
     foreach ($single_sizes as $name) {
         $height = $size_info[$name]->wth ? $width / $size_info[$name]->wth : false;
         add_image_size($name, $width, $height, $size_info[$name]->crop);
     }
     for ($num_columns = 1; $num_columns <= 4; $num_columns++) {
         $small_width = ($width + 30) / $num_columns - 30;
         add_image_size('portfolio-masonry-' . $num_columns, $small_width, 0);
         foreach ($columnated_sizes as $name) {
             $col_width = ($width + 30) / $num_columns - 30;
             $height = $size_info[$name]->wth ? $col_width / $size_info[$name]->wth : false;
             add_image_size($name . '-' . $num_columns, $col_width, $height, $size_info[$name]->crop);
         }
     }
 }
Ejemplo n.º 7
0
<?php 
if (!defined('WPV_NO_PAGE_CONTENT')) {
    ?>
					</div> <!-- .limit-wrapper -->

				</div><!-- / #main (do not remove this comment) -->

			</div><!-- #main-content -->

			<?php 
    if (!is_page_template('page-blank.php')) {
        ?>
				<footer class="main-footer">
					<?php 
        if (wpv_get_optionb('has-footer-sidebars')) {
            ?>
						<div class="footer-sidebars-wrapper">
							<?php 
            WpvTemplates::footer_sidebars();
            ?>
						</div>
					<?php 
        }
        ?>
				</footer>

				<?php 
        do_action('wpv_before_sub_footer');
        ?>
Ejemplo n.º 8
0
<?php

/**
 * Post (in loop) date
 *
 * @package wpv
 */
if (!wpv_get_optionb('meta_posted_on')) {
    return;
}
?>
<div class="post-row-left">
	<?php 
include locate_template('templates/post/main/part-date.php');
?>
	<div class="post-left-actions">
		<?php 
include locate_template('templates/post/main/part-actions.php');
?>
	</div>
</div>
        ?>
					</div>
				</div>
			</article>

		<?php 
    }
}
?>

		<?php 
WpvTemplates::right_sidebar();
?>

		<?php 
if (wpv_get_optionb('show-related-portfolios') && WPV_Portfolio::in_category($terms_slug) > 1) {
    ?>
			<div class="clearfix related-portfolios">
				<div class="grid-1-1">
					<?php 
    echo apply_filters('wpv_related_portfolios_title', '<h2 class="related-content-title">' . wpv_get_option('related-portfolios-title') . '</h3>');
    ?>
					<?php 
    echo WPV_Portfolio::shortcode(array('column' => 4, 'cat' => $terms_slug, 'ids' => '', 'max' => 8, 'height' => 400, 'title' => 'below', 'desc' => true, 'more' => __('View', 'church-event'), 'nopaging' => 'true', 'group' => 'true', 'layout' => 'scrollable', 'post__not_in' => get_the_ID()));
    ?>
				</div>
			</div>
		<?php 
}
if (!wpv_is_reduced_response()) {
    ?>
Ejemplo n.º 10
0
/**
 * Post (in loop) actions - inner part
 *
 * @package wpv
 */
if (!(function_exists('wpv_li_love_link') || current_user_can('edit_post', get_the_ID()) || wpv_get_optionb('meta_comment_count') && comments_open())) {
    return;
}
?>

<div class="post-actions">
	<?php 
if (!post_password_required()) {
    ?>
		<?php 
    if (wpv_get_optionb('meta_comment_count') && comments_open()) {
        ?>
			<div class="comment-count">
				<?php 
        $comment_icon = '<span class="icon">' . wpv_get_icon('bubble5') . '</span>';
        comments_popup_link($comment_icon . __('0 <span class="comment-word visuallyhidden">Comments</span>', 'honeymoon'), $comment_icon . __('1 <span class="comment-word visuallyhidden">Comment</span>', 'honeymoon'), $comment_icon . __('% <span class="comment-word visuallyhidden">Comments</span>', 'honeymoon'));
        ?>
			</div>
		<?php 
    }
    ?>

		<?php 
    if (function_exists('wpv_li_love_link')) {
        ?>
			<div class="love-count-outer">
<?php

/**
 * Post (in loop) actions
 *
 * @package wpv
 */
if (!(function_exists('wpv_li_love_link') || current_user_can('edit_post', get_the_ID()) || wpv_get_optionb('meta_comment_count') && comments_open())) {
    return;
}
?>

<div class="post-row-right">
	<?php 
include locate_template('templates/post/main/part-actions.php');
?>
</div>