summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--angebote/inc/template.php7
-rw-r--r--loop-templates/content-angebote.php2
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' ) ); ?>