if (get_post_meta($post->ID, '_builder_in_use', true) !== 'true') { ?> <div class="entry-thumbnail"> <?php quasar_get_featured_image(); ?> </div> <?php } else { ?> <?php if (rockthemes_pb_featured_in_builder() !== "true") { ?> <div class="entry-thumbnail"> <?php quasar_get_featured_image(); ?> </div> <?php } ?> <?php } ?> <?php } ?> <?php global $quasar_disable_regular_title;
function quasar_get_entry_header() { global $post; if (!$post) { return; } $image_at_top = true; $return = ''; if ($image_at_top) { if (has_post_thumbnail() && !post_password_required()) { $return .= ' <div class="entry-thumbnail"> ' . quasar_get_featured_image(false) . ' </div> '; } if (is_single()) { $return .= quasar_get_title_with_date(); } else { $return .= quasar_get_title_with_date(); } // is_single() } else { if (is_single()) { $return .= quasar_get_title_with_date(); } else { $return .= quasar_get_title_with_date(); } // is_single() if (has_post_thumbnail() && !post_password_required()) { $return .= ' <div class="entry-thumbnail"> ' . quasar_get_featured_image(false) . ' </div> '; } } return $return; }
function rockthemes_display_posts_basic($atts, $echo = false) { global $post; if (!isset($post) || !$post) { return; } //Return if no $post defined extract($atts); $image_col = (int) $image_col; $excerpt_length = (int) $excerpt_length; $return = ''; $image = quasar_get_featured_image(false, $image_size, $hover_active === 'true' ? true : false); $content_col = 12 - $image_col; if ($content_col === 0) { $content_col = 12; } $title = '<strong>' . get_the_title() . '</strong>'; if ($header_link === 'true') { $title = '<a href="' . get_permalink() . '" >' . $title . '</a>'; } $sticky_html = ''; if (is_sticky() && !is_paged()) { //$sticky_html .= '<span class="featured-post">' . __( 'Sticky', 'quasar' ) . '</span>'; //Temporarily disabled for design } $category_html = ''; if ($show_categories === 'true') { $categories_list = get_the_category_list(__(', ', 'quasar')); if ($categories_list) { $category_html .= '<span class="categories-links">' . $categories_list . '</span>'; } } $tags_html = ''; if ($show_tags === 'true') { // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list('', __(', ', 'quasar')); if ($tag_list) { $tags_html .= '<span class="tags-links">' . $tag_list . '</span>'; } } $date_html = ''; if ($show_date === 'true') { $format_prefix = has_post_format('chat') || has_post_format('status') ? _x('%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen') : '%2$s'; $date_html = sprintf('<small class="date"><time class="entry-date" datetime="%1$s">%2$s</time></small>', esc_attr(get_the_date('c')), esc_html(sprintf($format_prefix, get_post_format_string(get_post_format()), get_the_date()))); $date_html .= '<br/><br/>'; } if ($category_html !== '' || $tags_html !== '' || $sticky_html !== '') { $tags_html .= '<br/><br/>'; } $return .= ' <div class="rockthemes-blog-basic"> <div class="row"> '; if ($image) { $return .= ' <div class="large-' . $image_col . ' columns"> ' . $image . ' </div> <div class="large-' . $content_col . ' columns"> '; } else { $return .= ' <div class="large-' . $content_col . ' columns"> '; } $return .= ' <h4>' . $title . '</h4> ' . $date_html . ' ' . $sticky_html . ' ' . $category_html . ' ' . $tags_html . ' <div> ' . rock_check_p(rockthemes_excerpt(get_the_excerpt(), $excerpt_length)) . ' </div> </div> </div> <div style="position:relative; display:block; width:100%; height:' . $space_height . '"></div> </div> '; if (!$echo) { return $return; } echo $return; }