str_replace($big, '%#%', get_pagenum_link($big)), 'format' => '/page/%#%', 'current' => max(1, get_query_var('paged')), 'total' => $wp_query->max_num_pages, 'prev_text' => '«', 'next_text' => '»', 'type' => 'array' )); unset($big); if (is_array($pagination_array) && !empty($pagination_array)) { echo ''; } unset($page, $pagination_array); }// blogistaPagination } if (!function_exists('blogistaComment')) { /** * Displaying a comment * * @param object $comment * @param array $args * @param integer $depth * @return string the content already echo. */ function blogistaComment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) { echo '
  • '; echo '
    '; echo '
    '; _e('Pingback:', 'blogista'); comment_author_link(); edit_comment_link(__('Edit', 'blogista'), '', ''); echo '
    '; echo '
    '; } else { echo '
  • '; echo '
    '; // div echo '
    '; if (0 != $args['avatar_size']) { echo get_avatar($comment, $args['avatar_size']); } echo '
    '; // end div // comment content echo '
    '; echo '
    '; echo ''; // if comment was not approved if ('0' == $comment->comment_approved) { echo '
    '; _e('Your comment is awaiting moderation.', 'blogista'); echo '
    '; } //endif; // comment author says printf(__('%s says:', 'blogista'), sprintf('%s', get_comment_author_link())); echo '
    '; // comment content body comment_text(); // end comment content body // reply link comment_reply_link(array_merge($args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => ' ' . __('Reply', 'blogista'), 'login_text' => ' ' . __('Log in to Reply', 'blogista') ))); // end reply link echo '
    '; // end comment content echo '
    '; } //endif; }// blogistaComment } if (!function_exists('blogistaPostOn')) { /** * display post date/time and author * * @return string */ function blogistaPostOn() { $time_string = ''; $time_string = sprintf($time_string, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_attr(get_the_modified_date('c')), esc_html(get_the_modified_date()) ); printf(__('Posted on %1$s at %2$s by %3$s', 'blogista'), sprintf(' %3$s', esc_url(get_permalink()), esc_attr(get_the_time()), $time_string ), sprintf(' %3$s', esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_time()) ), sprintf(' %3$s', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'blogista'), get_the_author())), esc_html(get_the_author()) ) ); }// blogistaPostOn } if (!function_exists('blogistaEditPostLink')) { /** * Display edit post link */ function blogistaEditPostLink() { $edit_post_link = get_edit_post_link(); if ($edit_post_link != null) { $edit_btn = ''; unset($edit_post_link); echo $edit_btn; } }// blogistaEditPostLink } if (!function_exists('blogistaCategoriesList')) { /** * Display category list with font Awesome icon * * @param string $category_list list of category. * @return string */ function blogistaCategoryList($category_list = '') { if($category_list) { printf('  %1$s', $category_list); }else{ return ''; } }// blogistaCategoriesList } if (!function_exists('blogistaTagsList')) { /** * display tags list * * @param string $tags_list * @return string */ function blogistaTagList($tag_list = '') { if($tag_list){ printf('  %1$s', $tag_list); }else{ return ''; } }// blogistaTagsList } if (!function_exists('blogistaTheAttachedImage')) { /** * Display attach image with link. * * @return string image element with link. */ function blogistaTheAttachedImage() { $post = get_post(); $attachment_size = apply_filters('blogista_attachment_size', array(1140, 1140)); printf('%3$s', esc_url(wp_get_attachment_url($post->ID)), the_title_attribute(array('echo' => false)), wp_get_attachment_image($post->ID, $attachment_size, false, array('class' => 'img-responsive aligncenter')) ); }// blogistaTheAttachedImage } ?>