Skip to content

Commit

Permalink
Use stretched links inside cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Dec 8, 2021
1 parent 0e24caa commit 6baaab6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion author.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
' </a>' .
' <div class="card-body">' .
' <h5 class="card-title">' .
' <a href="' . $bot_url . '" class="mb-0">' . $bot_title . '</a>' .
' <a class="stretched-link" href="' . $bot_url . '" class="mb-0">' . $bot_title . '</a>' .
' </h5>' .
' <p class="card-text">' . $bot_description . '</p>' .
' </div>' .
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcodes/post-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function link_cards_shortcode( $atts ) {
' </a>' .
' <div class="card-body">' .
' <h5 class="card-title">' .
' <a data-resource-id="' . $post_id . '" href="' . $link_url . '">' .
' <a class="stretched-link" data-resource-id="' . $post_id . '" href="' . $link_url . '">' .
$link_title .
' </a>' .
' </h5>' .
Expand Down
2 changes: 1 addition & 1 deletion loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
<?php } ?>
<div class="card-body" id="post-<?php the_ID(); ?>">
<h5 class="card-title"><a href="<?php echo $link_url; ?>" title="<?php get_the_title(); ?>"><?php the_title(); ?></a></h5>
<h5 class="card-title"><a class="stretched-link" href="<?php echo $link_url; ?>" title="<?php get_the_title(); ?>"><?php the_title(); ?></a></h5>
<p class="card-text">
<?php
bw_excerpt( 'html5wp_index' );
Expand Down
4 changes: 2 additions & 2 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</div>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $project->ID ); ?>"><?php echo $project->post_title; ?></a>
<a class="stretched-link" href="<?php echo get_permalink( $project->ID ); ?>"><?php echo $project->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $project->post_excerpt; ?></p>
</div>
Expand Down Expand Up @@ -160,7 +160,7 @@
</div>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
<a class="stretched-link" href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $blog_post->post_excerpt; ?></p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
</a>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $bot->ID ); ?>"><?php echo $bot->post_title; ?></a>
<a class="stretched-link" href="<?php echo get_permalink( $bot->ID ); ?>"><?php echo $bot->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $bot->post_excerpt; ?></p>
</div>
Expand Down Expand Up @@ -158,7 +158,7 @@
</a>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
<a class="stretched-link" class="stretched-link" href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $blog_post->post_excerpt; ?></p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ function get_network_name( $network ){
</div>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $related_bot->ID ); ?>"><?php echo $related_bot->post_title; ?></a>
<a class="stretched-link" href="<?php echo get_permalink( $related_bot->ID ); ?>"><?php echo $related_bot->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $related_bot->post_excerpt; ?></p>
</div>
Expand Down Expand Up @@ -505,7 +505,7 @@ function get_network_name( $network ){
</a>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
<a class="stretched-link" href="<?php echo get_permalink( $blog_post->ID ); ?>"><?php echo $blog_post->post_title; ?></a>
</h5>
<p class="card-text"><?php echo $blog_post->post_excerpt; ?></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion template-team-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class="text-sm-left text-md-center"
</a>
<div class="card-body">
<h5 class="card-title">
<a href="<?php echo get_author_posts_url( $author_id, $username ); ?>"><?php echo $nickname; ?></a>
<a class="stretched-link" href="<?php echo get_author_posts_url( $author_id, $username ); ?>"><?php echo $nickname; ?></a>
</h5>
<p class="card-text"><?php echo $botwiki_team_role; ?></p>
</div>
Expand Down

0 comments on commit 6baaab6

Please sign in to comment.