function rb_portfolio_loop_content() { if (have_posts()) { add_thickbox(); while (have_posts()) { the_post(); ?> <article <?php post_class(); ?> > <?php rb_portfolio_add_image(); //rb_portfolio_featured_post_image(); the_date('F Y', '<span class="portfolio-date">', '</span>'); genesis_do_post_title(); rb_portfolio_add_authors(); rb_portfolio_display_thickbox_content(); ?> </article> <?php } } }
/** @see WP_Widget::widget -- do not rename this */ function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $link = $instance['link']; $textarea = wpautop($instance['textarea']); $count = 0; echo $before_widget; if ($title) { echo '<header>'; echo '<h4 class="widget-title widgettitle portfolio-widget-title">'; echo $title; echo '</h4>'; echo '</header>'; } if ($textarea) { echo '<div class="entry-widget_content entry-content portfolio-widget-content">'; echo $textarea; echo '</div>'; } if (have_posts()) { echo '<div class="full-width-content post-type-archive-portfolio">'; add_thickbox(); $args = array('post_type' => 'portfolio', 'posts_per_page' => '4'); $portfolio_query = new WP_Query($args); while ($portfolio_query->have_posts()) { $portfolio_query->the_post(); $add_class = array('one-fourth'); if ($count == 0 || $count == 4) { $add_class[] = 'first'; echo '<div class="clear"></div>'; } ?> <article <?php post_class($add_class); ?> > <?php rb_portfolio_add_image(); // the_date( 'F Y', '<span class="portfolio-date">', '</span>' ); genesis_do_post_title(); // rb_portfolio_add_authors(); rb_portfolio_display_thickbox_content(); ?> </article> <?php $count++; } } wp_reset_query(); echo '<div class="clear"></div>'; echo '</div>'; // .full-width-content.post-type-archive-portfolio echo $after_widget; }
function genfound_text_over_featured_image() { $thumbnail_src = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); if (is_single() || is_home()) { echo '<div class="article-title-wrap wrap'; if (has_post_thumbnail()) { echo ' post-thumbnail" style="background-image: url(' . $thumbnail_src . ');"'; } else { echo ' image-placeholder"'; } echo '>'; echo '<div class="article-title row"><div class="small-12 columns">'; genesis_do_post_title(); echo '</div></div></div>'; } else { // This is to make sure the image background doesnt get applied to all pages echo '<div class="article-title-wrap wrap'; echo '<div class="article-title row"><div class="small-12 columns">'; genesis_do_post_title(); echo '</div></div></div>'; } }
/** * Wrapper for the Genesis post title function which has no method to return. * * @since 0.1.0 * @access public * @return string */ function genlib_get_post_title() { ob_start(); genesis_do_post_title(); return ob_get_clean(); }
function sbg_staff_grid() { if ($image = genesis_get_image('format=url&size=staff-member')) { printf('<div class="staff-featured-image"><a class="thickbox"' . 'title="' . get_the_title() . '"' . ' href="#TB_inline?height=300&width=600&inlineId=%s"><img src="%s" alt="%s" /></a></div>', sbg_thethickboxcontent(), $image, the_title_attribute('echo=0')); echo '<div class="title-meta">'; genesis_do_post_title(); genesis_post_meta(); echo '</div>'; } else { echo '<div class="staff-featured-image">'; echo '<img src="' . plugins_url('/img/sampleimg.jpg', dirname(dirname(__FILE__))) . '"/>'; echo '<div class="title-meta">'; genesis_do_post_title(); genesis_post_meta(); echo '</div>'; echo '</div>'; } }
function msdlab_do_section_title() { if (is_page()) { global $post; print '<div class="wrap">'; genesis_do_post_title(); print '</div>'; } elseif (is_single()) { genesis_do_post_title(); } else { genesis_do_post_title(); } }
/** * Add custom headline and description to blog template pages. * * If we're not on a blog template page, then nothing extra is displayed. * * @since 2.2.0 * * @uses genesis_a11y() Check if a post type should potentially support an archive setting page. * @uses genesis_do_post_title() Get list of custom post types which need an archive settings page. * * @return null Return early if not on relevant blog template archive. */ function genesis_do_blog_template_heading() { if (!is_page_template('page_blog.php') || !genesis_a11y('headings')) { return; } printf('<div %s>', genesis_attr('blog-template-description')); genesis_do_post_title(); echo '</div>'; }
function sk_masonry_title_content() { echo '<div class="title-content">'; genesis_do_post_title(); genesis_do_post_content(); echo '</div>'; }
/** * Add custom headline and description to blog template pages. * * If we're not on a blog template page, then nothing extra is displayed. * * @since 2.2.0 * * @uses genesis_a11y() Check if a post type should potentially support an archive setting page. * @uses genesis_do_post_title() Get list of custom post types which need an archive settings page. * * @return null Return early if not on relevant blog template archive. */ function genesis_do_blog_template_heading() { if (!is_page_template('page_blog.php') || !genesis_a11y('headings')) { return; } echo '<div class="archive-description page-blog">'; genesis_do_post_title(); echo '</div>'; }
function psu_single_add_entry_header() { genesis_entry_header_markup_open(); $thumb = psu_get_thumbnail_max_size(); if ($thumb['size'] == 'post-full') { psu_output_single_post_featured_image(); genesis_do_post_title(); if (!is_akademiliv_single_cat()) { psu_do_post_info(); } genesis_entry_header_markup_close(); } else { genesis_do_post_title(); if (!is_akademiliv_single_cat()) { psu_do_post_info(); } genesis_entry_header_markup_close(); add_action('genesis_entry_content', 'psu_output_single_post_featured_image', 3); } }
function hueman_page_title() { echo "<div class='page-title pad group'>"; if (is_front_page()) { echo "<h2>" . get_bloginfo('name') . "</h2>"; } if (is_single()) { ?> <ul class='meta-single'> <li class='category'><?php the_category(' <span>/</span> '); ?> </li> <?php if (comments_open()) { ?> <li class='comments'><a href='<?php comments_link(); ?> '><i class='fa fa-comments-o'></i><?php comments_number('0', '1', '%'); ?> </a></li> <?php } ?> </ul> <?php } if (is_page()) { echo "<h2>" . genesis_do_post_title() . "</h2>"; } if (is_search()) { echo "<span>"; if (have_posts()) { echo "<i class='fa fa-search'></i>"; } if (!have_posts()) { echo "<i class='fa fa-exclamation-circle'></i>"; } $search_results = $wp_query->found_posts; if ($search_results == 1) { echo $search_results . ' ' . __('Search result', 'treehouse-hueman-genesis'); } else { echo $search_results . ' ' . __('Search results', 'treehouse-hueman-genesis'); } echo "</span>"; } if (is_404()) { echo "<span class='page-title-name'><i class='fa fa-exclamation-circle'></i>" . __('Error 404. ', 'treehouse-hueman-genesis') . "<span>" . _e('Page not found!', 'treehouse-hueman-genesis') . "</span></span>"; } if (is_author()) { $author = get_userdata(get_query_var('author')); echo "<span class='page-title-name'>" . __('Author: ', 'treehouse-hueman-genesis') . "<i class='fa fa-user'></i><span>" . $author->display_name . "</span></span>"; } if (is_category()) { echo "<span class='page-title-name'>" . __('Category: ', 'treehouse-hueman-genesis') . "<i class='fa fa-folder-open'></i><span>" . single_cat_title('', false) . "</span></span>"; } if (is_tag()) { echo "<span class='page-title-name'>" . __('Tagged: ', 'treehouse-hueman-genesis') . "<i class='fa fa-tags'></i><span>" . single_tag_title('', false) . "</span></span>"; } if (is_day()) { echo "<span class='page-title-name'>" . __('Daily Archive: ', 'treehouse-hueman-genesis') . "<i class='fa fa-calendar'></i><span>" . get_the_time('F j, Y') . "</span></span>"; } if (is_month()) { echo "<span class='page-title-name'>" . __('Monthly Archive: ', 'treehouse-hueman-genesis') . "<i class='fa fa-calendar'></i><span>" . get_the_time('F Y') . "</span></span>"; } if (is_year()) { echo "<span class='page-title-name'>" . __('Yearly Archive: ', 'treehouse-hueman-genesis') . "<i class='fa fa-calendar'></i><span>" . get_the_time('Y') . "</span></span>"; } echo "</div><!--/.page-title-->"; }