-
Notifications
You must be signed in to change notification settings - Fork 0
/
registreer-page.php
executable file
·66 lines (52 loc) · 2.02 KB
/
registreer-page.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
57
58
59
60
61
62
63
64
65
<?php
/**
* The main template file.
* Template Name: Registreer Page
* Description: Registreer Page
* @package Fresh Theme
*/
get_header(); ?>
<?php
$values = get_field( 'page_header' );
?>
<script type="text/javascript">
(function(d, s, id){
var js, cjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//webform-console.pernod-ricard.io/sdk/iframe.min.js";
cjs.parentNode.insertBefore(js, cjs);
}(document, 'script', 'pernodricard-pweb-sdk'));
// This function will be called once the SDK has been successfully loaded.
window.SDKpwebAsyncInit = function() {
// Initialize any webform in the page.
SDKpweb.init();
// You can also execute any other function here.
// console.log('foo');
};
</script>
<section class="single_page_header" style="background-image: url('<?php if ( $values ) { echo get_field("page_header"); } else { bloginfo( 'template_url' ); ?>/img/generic_header.jpg<?php } ?>');">
</section>
<div class="container">
<article id="post-<?php the_ID(); ?>" class="single_article_view <?php post_class(); ?>">
<h1 class="single_article_title" style="text-align: center;">
<?php the_title(); ?>
</h1>
<div class="the_content">
<?php
echo $post->post_content;
// the_content();
?>
<div class="loading" data-pr-webform-console-key="Netherlands-Corporate_newsletter-B2B webform" data-pr-webform-console-lang="nl"> </div>
</div>
<div class="single_article_toolbar">
<div class="single_article_toolbar_prev"></div>
<div class="single_article_toolbar_categories">
<a href="<?php bloginfo('url'); ?>" class="button button_custom">Terug naar de homepagina</a>
</div>
<div class="single_article_toolbar_next"></div>
</div>
</article>
</div>
<?php
get_footer();