-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
70 lines (65 loc) · 1.92 KB
/
single.php
File metadata and controls
70 lines (65 loc) · 1.92 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays Wholesale page
*
* @package web2feel
*/
get_header(); ?>
<div class="container single">
<?php while ( have_posts() ) : the_post(); ?>
<?php
$image = get_the_post_thumbnail(get_the_ID(),'large');
if(!$image)
$image = ot_get_option( 'default_image_single');
$id = 1405;
$subtitle = get_field('the_story_sub_title',$id);
$signature = get_field('the_story_signature',$id);
$signature = $signature['url'];
$sidebox_title = get_field('the_story_sidebox_title',$id);
$sidebox_date = get_field('the_story_sidebox_date',$id);
$sidebox_text = get_field('the_story_sidebox_text',$id);
$bubble_text = get_field('the_story_sidebox_bubble_text',$id);
$sidebox_image = get_field('the_story_sidebox_image',$id);
$sidebox_image = $sidebox_image['url'];
?>
<article>
<div class="image-wrapper">
<img src="<?php echo $image ?>"/>
</div>
<div class="text">
<div class="left" style="display:none;">
<div>
<h4><?php echo $sidebox_title; ?></h4>
<div class="wrap">
<div class="date">
<?php echo $sidebox_date; ?>
</div>
<div class="text-wrap">
<?php echo $sidebox_text; ?>
<div class="story-bubble">
<div class="circle-icon">
<div class="circle-icon">
<div style="background-image:url('<?php echo $sidebox_image; ?>');">
<span>
<?php echo $bubble_text; ?>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="right">
<h1><?php the_title(); ?></h1>
<div><?php the_content(); ?></div>
<img src="<?php echo $signature; ?>" class="image">
</div>
</div>
</article>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>