-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-about.php
57 lines (40 loc) · 1.22 KB
/
content-about.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
<?php
global $about;
$posts_per_page = get_option( 'posts_per_page' );
$arguments = array(
'post_type' => $about,
'post_status' => 'publish',
'posts_per_page' => 1
);
$query = new WP_Query( $arguments );
if ($query->have_posts()) {
while($query->have_posts()) {
$query->the_post();
$content = get_the_content();
$content = wpautop($content);
$title = get_the_title();
?>
<div class="container margin-v-separator">
<div class="row">
<?php
$content_ = t("antours", "Service Content", "Service Content");
if ($title && $content_) {
renderTitle($title, $content_, array("big-title", "openSans", "fontLight"));
}
?>
<div class="home-container text-justify">
<?php echo $content; ?>
</div>
<?php
$_title = t("antours", "Package Title", "Package Title");
$_content = t("antours", "Package Content", "Package Content");
if ($_title && $_content) {
renderTitle($_title, $_content, array("normal-title", "openSans", "fontLight"));
}
?>
</div>
</div>
<?php
}
}
?>