forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1122 from INN/WE-90-better-link-roundups-support
Improve support for Link Roundups in archives
- Loading branch information
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* | ||
* The template for displaying posts from the Roundup post type from INN/link-roundups | ||
* | ||
* @package Largo | ||
* @since 0.5.4 | ||
* @link https://github.com/INN/link-roundups | ||
* @link https://wordpress.org/plugins/link-roundups/ | ||
*/ | ||
$tags = of_get_option( 'tag_display' ); | ||
$hero_class = largo_hero_class( $post->ID, FALSE ); | ||
$values = get_post_custom( $post->ID ); | ||
$featured = has_term( 'homepage-featured', 'prominence' ); | ||
?> | ||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
|
||
<?php | ||
// Special treatment for posts that are in the Homepage Featured prominence taxonomy term and have thumbnails or videos. | ||
$entry_classes = 'entry-content'; | ||
echo '<div class="' . $entry_classes . '">'; | ||
|
||
if ( largo_has_categories_or_tags() && $tags === 'top' ) { | ||
echo '<h5 class="top-tag">' . largo_top_term( $args = array( 'echo' => FALSE ) ) . '</h5>'; | ||
} | ||
?> | ||
|
||
<h2 class="entry-title"> | ||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute( array( 'before' => __( 'Permalink to', 'largo' ) . ' ' ) )?>" rel="bookmark"><?php the_title(); ?></a> | ||
</h2> | ||
|
||
<h5 class="byline visuallyhidden"><?php largo_byline(); ?></h5> | ||
|
||
<?php the_content(); ?> | ||
|
||
</div><!-- .entry-content --> | ||
|
||
</article><!-- #post-<?php the_ID(); ?> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/* | ||
* The template for displaying posts from the Roundup Link post type from INN/link-roundups | ||
* | ||
* @package Largo | ||
* @since 0.5.4 | ||
* @link https://github.com/INN/link-roundups | ||
* @link https://wordpress.org/plugins/link-roundups/ | ||
*/ | ||
|
||
$custom = get_post_custom($post->ID); | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | ||
<header> | ||
<h2 class="entry-title"><?php echo ( isset( $custom['lr_url'][0] ) ) ? '<a href="' . $custom['lr_url'][0] . '">' . get_the_title() . '</a>' : get_the_title(); ?></h2> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
<?php | ||
if ( isset( $custom['lr_desc'][0] ) ) { | ||
echo '<p class="description">'; | ||
echo $custom['lr_desc'][0]; | ||
echo '</p>'; | ||
} | ||
if ( isset($custom['lr_source'][0] ) ) { | ||
echo '<p class="source">' . __('Source: ', 'argo-links') . '<span>'; | ||
echo ( isset( $custom['lr_url'][0] ) ) ? '<a href="' . $custom['lr_url'][0] . '">' . $custom['lr_source'][0] . '</a>' : $custom['lr_source'][0]; | ||
echo '</span></p>'; | ||
} | ||
?> | ||
<p class="posted-on">Posted on: <?php the_time('F j, Y') ?></p> | ||
</div> | ||
</article> <!-- /.post-lead --> | ||
|
||
|