'download', 'post_status' => 'publish', 'posts_per_page' => $postsToShow, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged, ); $wp_query = new WP_Query( $args ); // Set variabled to show the grid with the image size that fits best if ( $cols == 2 ) { $gridClass = 'col-md-6'; $divReset = '2'; $imgSize = 'themeora-thumbnail-span-4'; } else { $gridClass = 'col-sm-4'; $divReset = '3'; $imgSize = 'themeora-thumbnail-span-4'; } ?>
have_posts() ) : ?> have_posts() ) : $wp_query->the_post(); ?>
post->ID )) : ?> post->ID ), $imgSize ); $image_width = $image_data[1]; if ( !empty( $image_width ) ) { $widthCss = 'max-width:' . $image_width . 'px'; } ?>

sprintf(' %s', __('Previous page', 'ascent-free')), 'next_text' => sprintf(' %s ', __('Next page', 'ascent-free')), 'before_page_number' => '' . __( 'Page', 'ascent-free' ) . ' ', ) ); } endif; if ( ! function_exists( 'themeora_branding_area' ) ) : /** * Prints HTML width layout of the banding area * @since themeora 1.0 */ function themeora_branding_area() { ?>
' . __( 'Sticky', 'ascent-free' ) . ''; if ( 'post' == get_post_type() ) { echo '
'; //echo __('Posted on', 'ascent-free') . ' '; _e('By ', 'ascent-free') . ' ' ; $username = get_userdata( $post->post_author ); echo '' . ucfirst($username->user_nicename) . ''; echo ' on '; echo get_the_time('jS') . ' ' . get_the_time('F'); /* if ( ! $shorten ) { echo '. ' . __('Posted in', 'ascent-free') . ' '; the_category(', '); echo '.'; } */ ?> '; } } endif; if ( ! function_exists( 'themeora_entry_date' ) ) : /** * Prints HTML with date information for current post. * @since themeora 1.0 * @param boolean $echo Whether to echo the date. Default true. * @return string The HTML-formatted post date. */ function themeora_entry_date( $echo = true ) { if ( has_post_format( array( 'chat', 'status' ) ) ) $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'ascent-free' ); else $format_prefix = '%2$s'; $date = sprintf( '', esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to %s', 'ascent-free' ), the_title_attribute( 'echo=0' ) ) ), esc_attr( get_the_date( 'c' ) ), esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) ) ); if ( $echo ) echo $date; return $date; } endif; if ( ! function_exists( 'themeora_post_nav' ) ) : /** * Displays navigation to next/previous post when applicable. For single posts only. * @since themeora 1.0 */ function themeora_post_nav() { global $post; if( get_theme_mod( 'post_pagination' ) == true ) { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; ?> max_num_pages < 2 ) return; ?>
'; echo the_tags( '

' . __('Tagged As', 'ascent-free') . '

', '', '' ); echo '
'; } } endif; if ( ! function_exists( 'themeora_post_author_meta' ) ) : /** * Displays author information under posts * @since themeora 1.0 */ function themeora_post_author_meta() { if( get_theme_mod( 'show_author_bio' ) == true ) { if ( 'post' == get_post_type() && get_the_author_meta('first_name') != '' && get_the_author_meta('last_name') != '') { ?>

:

$thumb_ID, 'include' => $image_ids, 'numberposts' => -1, 'orderby' => $orderby, 'order' => 'ASC', 'post_type' => 'attachment', 'post_parent' => $post_parent, 'post_mime_type' => 'image', 'post_status' => null, ); $attachments = get_posts($args); //TRANSFER RANDO META FOR TRUE/FALSE SLIDE RANDOMIZE if ( $orderby == 'rand') { $orderby_slides = 'true'; } else { $orderby_slides = 'false'; } ?>