comment_form($comment_form_args); } if (have_comments()) { ?> <div id="comments" class="comments-main"> <div class="comments-holder main-box"> <h3 class="comment-title main-box-title"><?php comments_number(__vce('no_comments'), __vce('one_comment'), __vce('comments_number')); ?> </h3> <div class="main-box-inside content-inside"> <ul class="comment-list"> <?php $args = array('avatar_size' => 75, 'reply_text' => __vce('reply_comment'), 'format' => 'html5'); ?> <?php wp_list_comments($args); ?> </ul><!--END comment-list--> </div> <?php if ($vce_paginate_comments = paginate_comments_links(array('echo' => false))) { ?> <div class="navigation"> <?php echo $vce_paginate_comments; ?> </div> <?php
<?php } ?> </div> <?php if (vce_get_post_display('show_author_img')) { ?> <div class="meta-author"> <div class="meta-author-img"> <?php echo get_avatar(get_the_author_meta('ID'), 100); ?> </div> <div class="meta-author-wrapped"><?php echo __vce('written_by'); ?> <span class="vcard author"><span class="fn"><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?> "><?php echo get_the_author_meta('display_name'); ?> </a></span></span></div> </div> <?php } ?> <?php }
<form class="vce-search-form" action="<?php echo esc_url(home_url('/')); ?> " method="get"> <input name="s" class="vce-search-input" size="20" type="text" value="<?php echo __vce('search_form'); ?> " onfocus="(this.value == '<?php echo __vce('search_form'); ?> ') && (this.value = '')" onblur="(this.value == '') && (this.value = '<?php echo __vce('search_form'); ?> ')" placeholder="<?php echo __vce('search_form'); ?> " /> <button type="submit" class="vce-search-submit"><i class="fa fa-search"></i></button> </form>
<?php if (get_next_posts_link() || get_previous_posts_link()) { ?> <nav id="vce-pagination"> <div class="vce-next"> <?php previous_posts_link(__vce('newer_entries')); ?> </div> <div class="vce-prev"> <?php next_posts_link(__vce('older_entries')); ?> </div> </nav> <?php }
?> </h4> <div class="data-entry-content"> <?php echo wpautop(get_the_author_meta('description', $author->ID)); ?> </div> </div> <div class="vce-content-outside"> <div class="data-links"> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID', $author->ID)); ?> " class="vce-author-link vce-button"><?php echo __vce('view_all_posts'); ?> </a> </div> <div class="vce-author-links"> <?php if (get_the_author_meta('url', $author->ID)) { ?> <a href="<?php the_author_meta('url', $author->ID); ?> " target="_blank" class="fa fa-link vce-author-website"></a><?php } ?> <?php $user_social = vce_get_social();
<?php if ($pagination = vce_pagination(__vce('previous_posts'), __vce('next_posts'))) { ?> <nav id="vce-pagination"> <?php echo $pagination; ?> </nav> <?php }
<?php } ?> <div class="entry-content page-content"> <h4><?php echo __vce('404_title'); ?> </h4> <h1 class="entry-title"><?php echo __vce('404_subtitle'); ?> </h1> <p><?php echo __vce('404_text'); ?> </p> <?php if (has_nav_menu('vce_404_menu')) { wp_nav_menu(array('theme_location' => 'vce_404_menu', 'menu' => 'vce_404_menu', 'menu_class' => 'vce-404-menu', 'menu_id' => 'vce_404_menu', 'container' => false)); } ?> </div> </main> </div>
</p> <?php } elseif (is_search()) { ?> <p class="no-modules-msg"><?php echo __vce('nothing_found_search'); ?> </p> <?php get_search_form(); ?> <?php } else { ?> <p class="no-modules-msg"><?php echo __vce('nothing_found_text'); ?> </p> <?php get_search_form(); ?> <?php } ?> </article>
<?php $more_link = get_next_posts_link(__vce('load_more')); if (!empty($more_link)) { ?> <nav id="vce-pagination" class="vce-load-more"> <?php echo $more_link; ?> </nav> <?php }
function vce_extend_navigation($items, $args) { if ($args->theme_location == 'vce_main_navigation_menu' && vce_get_option('header_search')) { $items .= '<li class="search-header-wrap"><a class="search_header" href="javascript:void(0)"><i class="fa fa-search"></i></a><ul class="search-header-form-ul"><li>'; $items .= '<form class="search-header-form" action="' . esc_url(home_url('/')) . '" method="get"> <input name="s" class="search-input" size="20" type="text" value="' . __vce('search_form') . '" onfocus="(this.value == \'' . __vce('search_form') . '\') && (this.value = \'\')" onblur="(this.value == \'\') && (this.value = \'' . __vce('search_form') . '\')" placeholder="' . __vce('search_form') . '" /> </form>'; $items .= '</li></ul></li>'; } return $items; }
<div class="vce-link-pages"> <?php global $page, $numpages; ?> <span class="vce-paginated-num"><?php printf(__vce('page_of'), $page, $numpages); ?> </span> <?php if ($page == 1) { ?> <?php echo _wp_link_page($numpages) . __vce('prev_page') . '</a>'; ?> <?php } ?> <?php wp_link_pages(array('before' => '', 'after' => '', 'next_or_number' => 'next', 'nextpagelink' => __vce('next_page'), 'previouspagelink' => __vce('prev_page'))); ?> <?php if ($page == $numpages) { ?> <?php echo _wp_link_page(1) . __vce('next_page') . '</a>'; ?> <?php } ?> </div>
<?php $related_posts = vce_get_related_posts(); ?> <?php if ($related_posts->have_posts()) { ?> <div class="main-box vce-related-box"> <h3 class="main-box-title"><?php echo __vce('related_title'); ?> </h3> <div class="main-box-inside"> <?php while ($related_posts->have_posts()) { $related_posts->the_post(); ?> <?php get_template_part('sections/loops/layout', vce_get_option('related_layout')); ?> <?php } ?> </div>
} ?> </header> <?php if (vce_get_option('lay_c_excerpt')) { ?> <div class="entry-content"> <p><?php echo vce_get_excerpt('lay-c'); ?> </p> </div> <?php } ?> <?php if (vce_get_option('lay_c_readmore')) { ?> <a href="<?php echo esc_attr(get_permalink()); ?> " class="vce-read-more"><?php echo __vce('read_more'); ?> </a> <?php } ?> </article>
<?php wp_list_comments($args); ?> </ul><!--END comment-list--> </div> <div class="navigation"> <?php paginate_comments_links(); ?> </div> </div><!--END comments holder --> </div> <?php } ?> <?php if (comments_open()) { ?> <?php $commenter = wp_get_current_commenter(); $req = get_option('require_name_email'); $aria_req = $req ? " aria-required='true'" : ''; $comment_form_args = array('comment_notes_after' => '', 'cancel_reply_link' => __vce('cancel_reply_link'), 'label_submit' => __vce('comment_submit'), 'title_reply' => __vce('leave_a_reply'), 'must_log_in' => '<p class="must-log-in">' . sprintf(__vce('must_log_in'), wp_login_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf(__vce('logged_in_as'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __vce('comment_field') . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' . '</textarea></p>', 'fields' => apply_filters('comment_form_default_fields', array('author' => '<p class="comment-form-author">' . '<label for="author">' . __vce('comment_name') . ($req ? '<span class="required"> *</span>' : '') . '</label> ' . '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __vce('comment_email') . ($req ? '<span class="required"> *</span>' : '') . '</label> ' . '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __vce('comment_website') . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>'))); ?> <?php comment_form($comment_form_args); }
} else { if (is_tag()) { $archive_title = __vce('tag') . single_tag_title('', false); $description = tag_description(); if (!empty($description)) { $archive_desc = $description; } } else { if (is_day()) { $archive_title = __vce('archive') . get_the_date(); } else { if (is_month()) { $archive_title = __vce('archive') . get_the_date('F Y'); } else { if (is_year()) { $archive_title = __vce('archive') . get_the_date('Y'); } else { $archive_title = false; $archive_desc = false; } } } } } } } } } } ?>
function vce_get_date() { if (vce_get_option('time_ago')) { $limits = array('hour' => 3600, 'day' => 86400, 'week' => 604800, 'month' => 2592000, 'vceee_months' => 7776000, 'six_months' => 15552000, 'year' => 31104000, '0' => 0); $ago_limit = vce_get_option('time_ago_limit'); if (array_key_exists($ago_limit, $limits)) { if (current_time('timestamp') - get_the_time('U') <= $limits[$ago_limit] || empty($ago_limit)) { if (vce_get_option('ago_before')) { return __vce('ago') . ' ' . human_time_diff(get_the_time('U'), current_time('timestamp')); } else { return human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ' . __vce('ago'); } } else { return get_the_date(); } } else { return get_the_date(); } } else { return get_the_date(); } }