-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate-example.php
78 lines (68 loc) · 1.32 KB
/
template-example.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
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Template Name: Example Page Template
* Description: A page template for showing off parts of Wonderpress.
*
* @package Wonderpress Theme
*/
use Wonderpress\Partials\Image as Image;
// Set the <body> id
wonder_body_id( 'example' );
get_header();
?>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<main role="main">
<section>
<div class="container">
<div class="row">
<div class="col-md-6">
<?php
wonder_image(
array(
'alt' => 'This is an example image',
'src' => 'https://via.placeholder.com/150',
),
true
);
?>
</div>
<div class="col-md-6">
<?php
Wonderpress\Partials\Image::example();
Wonderpress\Partials\Image::explain();
?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?php
wonder_link(
array(
'content' => 'This is the link content',
'open_in_new_tab' => false,
'title' => 'This is the title of the link',
'url' => 'https://wonderful.io/',
),
true
);
?>
</div>
<div class="col-md-6">
<?php
Wonderpress\Partials\Link::example();
Wonderpress\Partials\Link::explain();
?>
</div>
</div>
</div>
</section>
</main>
<?php
endwhile;
endif;
?>
<?php get_footer(); ?>