-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-downloadables.php
More file actions
executable file
·161 lines (125 loc) · 5.34 KB
/
single-downloadables.php
File metadata and controls
executable file
·161 lines (125 loc) · 5.34 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php get_header(); ?>
<div class="inner">
<div id="content">
<div id="inner-content" class="wrap cf">
<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="article-header">
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
<?php if( function_exists( 'dimox_breadcrumbs' ) ) dimox_breadcrumbs(); ?>
<?php brafton_share( 'top' ); ?>
</header> <?php // end article header ?>
<section class="entry-content cf" itemprop="articleBody">
<?php
$before_text = html_entity_decode( get_post_meta( $post->ID, 'downloadables_top_text', true ) );
$product_id = get_post_meta( $post->ID, 'digioh_product_id', true );
$account_id = 1252;
?>
<p class="downloadable-before"><?php echo $before_text; ?></p>
<div class="alignright"><?php the_post_thumbnail('medium'); ?></div>
<?php the_content(); ?>
</section> <?php // end article section ?>
</article>
<?php endwhile; else : ?>
<article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
<section class="entry-content">
<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
</section>
<footer class="article-footer">
<p><?php _e( 'This is the error message in the page.php template.', 'bonestheme' ); ?></p>
</footer>
</article>
<?php endif; ?>
</div>
<div class="sidebar d-2of7 t-1of3 m-all">
<aside>
<?php
$theID = get_the_ID();
switch ($theID) {
case '73007':
get_template_part('marketoforms/speaking_googles_resource_marketo_form');
break;
case '54325':
get_template_part('marketoforms/fueling_fb_resource_marketo_form');
break;
case '54726':
get_template_part('marketoforms/driving_search_resource_marketo_form');
break;
case '54278':
get_template_part('marketoforms/six_tips_resource_marketo_form');
break;
case '55189':
get_template_part('marketoforms/how_to_use_resource_marketo_form');
break;
case '58255':
get_template_part('marketoforms/ultimate_infographic_resource_marketo_form');
break;
case '60727':
get_template_part('marketoforms/video_marketing_resource_marketo_form');
break;
case '63488':
get_template_part('marketoforms/youtube_marketing_resource_marketo_form');
break;
case '68438':
get_template_part('marketoforms/content_authorship_resource_marketo_form');
break;
case '69141':
get_template_part('marketoforms/penguin_proofing_resource_marketo_form');
break;
case '70371':
get_template_part('marketoforms/landing_page_triangle_resource_marketo_form');
break;
case '72230':
get_template_part('marketoforms/seven_common_resource_marketo_form');
break;
case '72465':
get_template_part('marketoforms/seventy_eight_resource_marketo_form');
break;
case '74086':
get_template_part('marketoforms/marketers_guide_resource_marketo_form');
break;
case '74650':
get_template_part('marketoforms/reduce_reuse_resource_marketo_form');
break; break;
case '77611':
get_template_part('marketoforms/content_seo_marketo_form');
break;
case '79046':
get_template_part('marketoforms/holiday_marketing_marketo_form');
break;
case '79983':
get_template_part('marketoforms/content_social_resource_marketo_form');
break;
case '82560':
get_template_part('marketoforms/brand_awareness_marketo_form');
break;
case '82754':
get_template_part('marketoforms/content_goals_seo_marketo_form');
break;
case '82835':
get_template_part('marketoforms/content_goals_engagement_marketo_form');
break;
case '82870':
get_template_part('marketoforms/content_goals_thought_leadership_marketo_form');
break;
case '82946':
get_template_part('marketoforms/content_goals_lead_generation');
break;
case '83000':
get_template_part('marketoforms/content_goals_conversions');
break;
default:
get_template_part('resource_marketo_form');
break;
}
?>
</aside>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>