diff options
| author | Max | 2019-03-07 16:30:30 +0100 |
|---|---|---|
| committer | Max | 2019-03-07 16:30:30 +0100 |
| commit | 9c285d2be4ecc6ec20d0b61cfd76388a40e5a582 (patch) | |
| tree | 96c1b962b2a59faf0090c72cce4bd7687bad131b | |
| parent | af937d3250f423005eace057e3125f177a511fc1 (diff) | |
| download | fuselkoenig_de-9c285d2be4ecc6ec20d0b61cfd76388a40e5a582.tar.gz | |
Adds button for more details on special offer listing page.
| -rw-r--r-- | angebote/inc/template.php | 7 | ||||
| -rw-r--r-- | loop-templates/content-angebote.php | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/angebote/inc/template.php b/angebote/inc/template.php index 5c518c0..fd92906 100644 --- a/angebote/inc/template.php +++ b/angebote/inc/template.php @@ -95,6 +95,13 @@ launch </div> <div class="card-footer"> <a href="<?php echo $offer['url']; ?>" class="btn btn-primary">Zum Shop</a> +<?php + if ( $offer['include_post_link'] ) { +?> + <a href="<?php echo get_post_permalink( $post ); ?>#title" class="btn btn-light">Detailansicht</a> +<?php + } +?> <!--p class="float-right">Preis vom <?php echo $offer['created_at']; ?></p--> </div> </div> diff --git a/loop-templates/content-angebote.php b/loop-templates/content-angebote.php index 76c6bbd..f6c5d18 100644 --- a/loop-templates/content-angebote.php +++ b/loop-templates/content-angebote.php @@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) { <header class="entry-header"> - <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> + <?php the_title( '<h1 id="title" class="entry-title">', '</h1>' ); ?> <?php echo get_the_post_thumbnail( $post->ID, 'large', array( 'class' => 'mx-auto d-block border rounded' ) ); ?> |
