Ejemplo n.º 1
0
/**
 * Prints Meta fields ( Post )
 */
function grve_print_post_meta($element_id = 'grve-meta-responsive', $element_class = 'grve-meta-style-default')
{
    ?>
	<div id="<?php 
    echo $element_id;
    ?>
" class="<?php 
    echo esc_attr($element_class);
    ?>
">
		<ul class="grve-meta-elements">
			<li class="grve-field-date"><span class="grve-icon-date"></span><time itemprop="datePublished" datetime="<?php 
    the_time('c');
    ?>
"><?php 
    echo get_the_date();
    ?>
</time></li>
			<?php 
    if (grve_visibility('post_author_visibility')) {
        ?>
			<li><a href="#grve-about-author" itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span class="grve-icon-user"></span><i itemprop="name"><?php 
        the_author();
        ?>
</i></a></li>
			<?php 
    }
    ?>
			<?php 
    if (grve_visibility('blog_comments_visibility')) {
        ?>
			<li><a href="#grve-comments"><span class="grve-icon-comment"></span><?php 
        comments_number(__('no comments', GRVE_THEME_TRANSLATE), __('1 comment', GRVE_THEME_TRANSLATE), '% ' . __('comments', GRVE_THEME_TRANSLATE));
        ?>
</a></li>
			<?php 
    }
    ?>
		</ul>
	</div>
<?php 
}
Ejemplo n.º 2
0
" <?php 
    post_class();
    ?>
>

						<?php 
    the_content();
    ?>
                        
                        

					</div>
					<!-- End Content -->

					<?php 
    if (grve_visibility('page_comments_visibility')) {
        ?>
						<?php 
        comments_template();
        ?>
					<?php 
    }
    ?>

				</div>

			</div>
            		<!-- Sidebar -->
		
		<!-- End Sidebar -->
Ejemplo n.º 3
0
/**
 * Prints Header navigation for articles ( Posts / Portfolio Items )
 */
function grve_print_header_item_navigation($element_class = "grve-nav-wrapper")
{
    global $post;
    if (is_singular()) {
        $post_id = $post->ID;
        $post_type = get_post_type($post_id);
        if ($post_type == 'post' && is_singular('post') && grve_visibility('post_nav_visibility', '1') || $post_type == 'portfolio' && is_singular('portfolio') || $post_type == 'testimonial' && is_singular('testimonial')) {
            $grve_in_same_term = false;
            $grve_backlink = '';
            if ($post_type == 'portfolio') {
                $grve_in_same_term = grve_visibility('portfolio_nav_same_term', '0');
                $prev_post = get_adjacent_post($grve_in_same_term, '', true, 'portfolio_category');
                $next_post = get_adjacent_post($grve_in_same_term, '', false, 'portfolio_category');
                $grve_backlink = grve_option('portfolio_backlink');
            } elseif ($post_type == 'post') {
                $grve_in_same_term = grve_visibility('post_nav_same_term', '0');
                $prev_post = get_adjacent_post($grve_in_same_term, '', true);
                $next_post = get_adjacent_post($grve_in_same_term, '', false);
            } else {
                $prev_post = get_adjacent_post($grve_in_same_term, '', true);
                $next_post = get_adjacent_post($grve_in_same_term, '', false);
            }
            echo '<div class="' . $element_class . '">';
            if ($prev_post || $next_post || !empty($grve_backlink)) {
                echo '<ul class="grve-post-nav">';
                if ($next_post) {
                    grve_print_item_nav_link($next_post->ID, 'next', 'hello');
                }
                if ($post_type == 'portfolio') {
                    if (!empty($grve_backlink)) {
                        $portfolio_backlink_url = get_permalink($grve_backlink);
                        ?>
						<li><a href="<?php 
                        echo $portfolio_backlink_url;
                        ?>
" class="grve-icon-th-large grve-backlink"></a></li>
					<?php 
                    }
                }
                if ($prev_post) {
                    grve_print_item_nav_link($prev_post->ID, 'prev');
                }
                echo '</ul>';
            }
            echo '</div>';
        }
    }
}
Ejemplo n.º 4
0
/**
 * Prints Footer Bar Area
 */
function grve_print_footer_bar()
{
    if (grve_visibility('footer_bar_visibility')) {
        if (grve_visibility('footer_copyright_visibility')) {
            if (is_singular() && 'yes' == grve_post_meta('grve_disable_copyright')) {
                return;
            }
            if (grve_woocommerce_enabled()) {
                // Disabled Footer Copyright in Shop
                if (is_shop() && !is_search() && 'yes' == grve_post_meta_shop('grve_disable_copyright')) {
                    return false;
                }
            }
            $section_type = grve_option('footer_bar_section_type', 'fullwidth-background');
            $align_center = grve_option('footer_bar_align_center', 'no');
            $second_area = grve_option('second_area_visibility', '1');
            ?>
			<div id="grve-footer-bar" class="grve-section" data-section-type="<?php 
            echo esc_attr($section_type);
            ?>
" data-align-center="<?php 
            echo esc_attr($align_center);
            ?>
">

				<div class="grve-row">
					<div class="grve-column-1-2">
						<div class="grve-copyright">
							<?php 
            echo do_shortcode(grve_option('footer_copyright_text'));
            ?>
						</div>
					</div>
					<?php 
            if ('2' == $second_area) {
                ?>
					<div class="grve-column-1-2">
						<nav id="grve-second-menu">
							<?php 
                grve_footer_nav();
                ?>
						</nav>
					</div>
					<?php 
            } else {
                if ('3' == $second_area) {
                    ?>
					<div class="grve-column-1-2">
						<?php 
                    global $grve_social_list;
                    $options = grve_option('footer_social_options');
                    $social_display = grve_option('footer_social_display', 'text');
                    $social_options = grve_option('social_options');
                    if (!empty($options) && !empty($social_options)) {
                        if ('text' == $social_display) {
                            echo '<ul class="grve-element grve-social">';
                            foreach ($social_options as $key => $value) {
                                if (isset($options[$key]) && 1 == $options[$key] && $value) {
                                    if ('skype' == $key) {
                                        echo '<li><a href="' . $value . '">' . $grve_social_list[$key] . '</a></li>';
                                    } else {
                                        echo '<li><a href="' . esc_url($value) . '" target="_blank">' . $grve_social_list[$key] . '</a></li>';
                                    }
                                }
                            }
                            echo '</ul>';
                        } else {
                            echo '<ul class="grve-element grve-social grve-social-icons">';
                            foreach ($social_options as $key => $value) {
                                if (isset($options[$key]) && 1 == $options[$key] && $value) {
                                    if ('skype' == $key) {
                                        echo '<li><a href="' . $value . '" class="grve-icon-' . $key . '"></a></li>';
                                    } else {
                                        echo '<li><a href="' . esc_url($value) . '" target="_blank" class="grve-icon-' . $key . '"></a></li>';
                                    }
                                }
                            }
                            echo '</ul>';
                        }
                    }
                    ?>
					</div>
					<?php 
                }
            }
            ?>

				</div>
			</div>

<?php 
        }
    }
}
Ejemplo n.º 5
0
<?php 
if (is_singular()) {
    $grve_disable_media = grve_post_meta('grve_disable_media');
    ?>

	<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('grve-single-post');
    ?>
 itemscope itemType="http://schema.org/BlogPosting">

		<?php 
    if (grve_visibility('post_feature_image_visibility', '1') && 'yes' != $grve_disable_media) {
        ?>
		<div id="grve-single-media">
			<?php 
        grve_print_post_feature_media();
        ?>
		</div>
		<?php 
    }
    ?>

		<div id="grve-post-content">
			<?php 
    grve_print_post_header_title('content');
    ?>
			<?php 
Ejemplo n.º 6
0
				<?php 
if (grve_visibility('post_related_visibility')) {
    ?>
					<!-- Related Posts -->
					<?php 
    grve_print_related_posts();
    ?>
					<!-- End Related Posts -->
				<?php 
}
?>


				<?php 
if (grve_visibility('blog_comments_visibility')) {
    ?>
					<?php 
    comments_template();
    ?>
				<?php 
}
?>

			</div>
			<?php 
grve_set_current_view('post');
?>
			<?php 
get_sidebar();
?>
Ejemplo n.º 7
0
			<?php 
grve_print_bottom_bar();
?>
			<?php 
$grve_sticky_footer = grve_visibility('sticky_footer') ? 'yes' : 'no';
?>

			<footer id="grve-footer" data-sticky-footer="<?php 
echo esc_attr($grve_sticky_footer);
?>
">
<!--
                <div class="audio3_html5_bottom_div">
                    <div class="audio3_html5">
                    <audio id="audio3_html5_white" preload="metadata">
                      <div class="xaudioplaylist">
                          
                          <ul>
                              <li class="xtitle">Aquatic Plaza</li>
                              <li class="xauthor">Convenient Integrative Mood</li>
                              <li class="xsources_mp3">../../../audio/cim-aquaticplaza.mp3</li>
                          </ul> 
                           <ul>
                              <li class="xtitle">The Lounge</li>
                              <li class="xauthor">Bensound</li>
                              <li class="xsources_mp3">../../../audio/bensound-thelounge.mp3</li>
                          </ul>                 
                      
                          <ul>
                              <li class="xtitle">India</li>
Ejemplo n.º 8
0
?>
				<!-- Logo, Main Navigation, Header Options -->
				<div id="grve-inner-header">

					<div class="grve-container">

				<?php 
$logo_text_tag_start = '<h1 class="grve-logo grve-logo-text">';
$logo_tag_start = '<h1 class="grve-logo">';
$logo_tag_end = '</h1>';
if (0 == grve_option('logo_header_tag', 1)) {
    $logo_text_tag_start = '<div class="grve-logo grve-logo-text">';
    $logo_tag_start = '<div class="grve-logo">';
    $logo_tag_end = '</div>';
}
if (grve_visibility('logo_as_text_enabled')) {
    ?>
						<?php 
    echo $logo_text_tag_start;
    ?>
							<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
"><?php 
    bloginfo('name');
    ?>
</a>
						<?php 
    echo $logo_tag_end;
    ?>
	
/**
 * Function to add before main woocommerce content
 */
function grve_woo_before_main_content()
{
    $grve_title_class = '';
    if (is_product() && grve_visibility('product_title_visibility')) {
        $grve_title_class = "grve-default-title";
    } elseif (is_product_category() || is_product_tag() && grve_visibility('product_tax_title_visibility')) {
        $grve_title_class = "grve-default-title";
    }
    ?>
	<div id="grve-main-content" class="<?php 
    echo $grve_title_class;
    ?>
">
		<?php 
    if (is_shop() && !is_search()) {
        grve_print_header_title();
        $page_nav_menu = grve_post_meta_shop('grve_page_navigation_menu');
        if (!empty($page_nav_menu)) {
            ?>

				<div id="grve-anchor-menu" class="grve-fields-bar">
						<div class="grve-icon-menu"></div>
						<?php 
            wp_nav_menu(array('menu' => $page_nav_menu, 'container' => false, 'depth' => '1'));
            ?>
				</div>

		<?php 
        }
    } elseif (is_product()) {
        grve_print_product_header_title();
    } elseif (is_product_category() || is_product_tag()) {
        grve_print_product_header_title('taxonomy');
    }
    ?>
		<div class="grve-container <?php 
    echo grve_sidebar_class('shop');
    ?>
">
			<div id="grve-content-area">
				<!-- Content -->
				<div id="grve-woocommerce-<?php 
    echo wc_get_page_id('shop');
    ?>
" <?php 
    post_class();
    ?>
>
	<?php 
}
Ejemplo n.º 10
0
/**
 * Prints post author by depending on the blog style
 */
function grve_osmosis_vce_print_post_author_by($grve_blog_style = 'large-media')
{
    switch ($grve_blog_style) {
        case 'small-media':
        case 'large-media':
        case 'masonry':
        case 'grid':
            $show_author_by = true;
            break;
        default:
            $show_author_by = false;
            break;
    }
    if (function_exists('grve_visibility') && !grve_visibility('blog_author_visibility', '1')) {
        $show_author_by = false;
    }
    if ($show_author_by) {
        $author_by_string = apply_filters('grve_vce_blog_string_by_author', __('By', 'grve-osmosis-vc-extension'));
        ?>
		<div class="grve-post-author" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
			<span><?php 
        echo $author_by_string . ' ';
        ?>
</span><span itemprop="name"><?php 
        the_author_posts_link();
        ?>
</span>
		</div>
<?php 
    }
}
Ejemplo n.º 11
0
				<?php 
}
?>

				<?php 
if (grve_visibility('portfolio_recents_visibility') && 'yes' != $grve_disable_portfolio_recent) {
    ?>
					<?php 
    grve_print_recent_portfolio_items();
    ?>
				<?php 
}
?>

				<?php 
if (grve_visibility('portfolio_comments_visibility') && 'yes' != $grve_disable_comments) {
    ?>
					<?php 
    comments_template();
    ?>
				<?php 
}
?>

			</div>
			<?php 
if ($grve_portfolio_details_sidebar) {
    ?>
				<aside id="grve-sidebar">
					<?php 
    grve_print_portfolio_details();