From c4b2eb526c5733cc32b0550eb76fd072531e223c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 17 Feb 2019 17:20:43 +0100 Subject: Creates custom post type and custom taxonomy and renders them correctly. --- angebote/inc/template.php | 107 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 angebote/inc/template.php (limited to 'angebote/inc/template.php') diff --git a/angebote/inc/template.php b/angebote/inc/template.php new file mode 100644 index 0000000..d0bbcc3 --- /dev/null +++ b/angebote/inc/template.php @@ -0,0 +1,107 @@ +name; + } + + $include_post_link = false; + if ( is_archive() || is_search() ) { + $include_post_link = true; + } + if ( is_search() ) { + $css_border_left = " card-border-left"; + } else { + $css_border_left = ""; + } + + $offer = shortcode_atts( array( + 'spirit_type' => $spirit_type, + 'shop' => '', + 'procent' => '', + 'img_url' => '', + 'name' => '', + 'discounted_price' => '', + 'original_price' => '', + 'shipping_costs' => 'Versand ist nie kostenlos', + 'abv' => '', + 'volume' => '', + 'base_price' => '', + 'url' => '', + 'created_at' => '', + 'include_post_link' => $include_post_link, + ), $atts + ); +?> +
+ +
++ +
+
+ Preis: €
+
+ Alter Preis: €
+
+ Versand: €
+
+ Alkohol: %
+
+ Volumen: Liter
+
+ € / Liter
+