-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-muffia_products.php
56 lines (51 loc) · 1.16 KB
/
single-muffia_products.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
get_header();
?>
<style>
.ead-preview {
width: calc(50% - 60px);
padding: 30px 30px 0 30px;
display: inline-block;
}
.ead-document {
box-shadow: 0px 0px 20px #e61b33;
border-radius: 10px;
overflow: hidden;
}
@media (max-width: 575.98px) {
.ead-preview {
width: calc(100% - 60px);
}
}
#product-content {
width: calc(50% - 60px);
padding: 30px 30px 0 30px;
display: inline-block;
float: right;
}
#product-thumb img {
width: 50%;
height: auto;
margin: 0 auto;
display: block;
}
</style>
<?php
$pdf_url = get_post_meta(get_the_ID(), 'muffia_product_spec', true);
if ($pdf_url):
echo apply_filters('the_content', '[embeddoc url="' . $pdf_url . '" download="none"]');
endif;
?>
<div id="product-content">
<div id="product-thumb">
<?php the_post_thumbnail('medium'); ?>
</div>
<?php
$content_post = get_post(get_the_ID());
$content = $content_post->post_content;
echo apply_filters('the_content', $content_post->post_content);
?>
</div>
<?php
get_footer();
?>