This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page-fc.php
126 lines (119 loc) · 4.45 KB
/
front-page-fc.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
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
<?php get_header(); ?>
<?php if(get_field('big_header', 'option') == 'enabled') { ?>
<?php get_template_part('php/front-page/big-header'); ?>
<?php } ?>
<?php
/**
* SLIDER ---------------
* category - category slug
* offset - number
* background-color - HEX color value
* text-color - HEX color value
* pattern - CSS class from styles.css, background pattern section
* posts-position - bottom/top
* full-width - true/false
* image-size - preset size, optional
*
* TOP STORY ------------
* front-feature - true/false, overrides category
* category - category slug
* offset - number
* background-color - HEX color value
* text-color - HEX color value
* pattern - CSS class from styles.css, background pattern section
* image-position - right/left
* align - top/bottom
*
* FIVE POST GRID -------
* category - category slug
* offset - number
* posts - number, multiple of 5 recommended
*
* TITLE ----------------
* title - string
* url - URL
* icon - fontawesome icon class
* icon-color: HEX color value
* text-color: HEX color value
*
* SHATTERED ------------
* category - category slug
* offset - number
* background-color - HEX color value
* text-color - HEX color value
* pattern - CSS class from styles.css, background pattern section
*/
?>
<main id="front-page">
<?php
set_query_var('display-info', array(
'category' => 'opinion', // category slug (required)
'offset' => 0, // number (optional)
'background-color' => '#000000', // HEX color value (required)
'text-color' => '#FFFFFF', // HEX color value (required)
'pattern' => 'rain', // plus, plus-dark, squiggle, squiggle-dark, tic-tac-toe, tic-tac-toe-dark, rain, rain-dark, shapes, shapes-dark, texture, texture-dark, food, food-dark, magnet, magnet-dark, squares, squares-dark (optional)
));
get_template_part('php/front-page/shattered');
?>
<?php
set_query_var('display-info', array(
'front-feature' => true,
'category' => 'city', // category slug (required)
'offset' => 0, // number (optional)
'background-color' => '#800000', // HEX color value (required)
'text-color' => '#FFFFFF', // HEX color value (required)
'pattern' => 'sports-dark animated_xy', // plus, plus-dark, squiggle, squiggle-dark, tic-tac-toe, tic-tac-toe-dark, rain, rain-dark, shapes, shapes-dark, texture, texture-dark, food, food-dark, magnet, magnet-dark, squares, squares-dark (optional)
'image-position' => 'right', // left, right (required)
'align' => 'bottom' // top, bottom (required)
));
get_template_part('php/front-page/top-story');
?>
<?php
get_template_part('php/front-page/columnists');
?>
<?php
set_query_var('display-info', array(
'category' => 'news', // category slug (required)
'offset' => 0, // number (optional)
'background-color' => '#800000', // HEX color value (required)
'text-color' => '#FFFFFF', // HEX color value (required)
'pattern' => 'plus', // plus, plus-dark, squiggle, squiggle-dark, tic-tac-toe, tic-tac-toe-dark, rain, rain-dark, shapes, shapes-dark, texture, texture-dark, food, food-dark, magnet, magnet-dark, squares, squares-dark (optional)
'posts-position' => 'bottom', // top, bottom (required)
'full-width' => false,
'image-size' => 'six-three',
));
get_template_part('php/front-page/slider');
?>
<?php
set_query_var('display-info', array(
'category' => 'opinion', // category slug
'offset' => 1, // number
'posts' => 5 // number, multiple of 5
));
get_template_part('php/front-page/five');
?>
<?php
set_query_var('display-info', array(
'title' => 'Opinion', // category slug
'url' => '/category/opinion', // number
'icon' => 'far fa-comments', // number, multiple of 5
'icon-color' => '#800000',
'text-color' => '#000000'
));
get_template_part('php/front-page/title');
?>
<?php
set_query_var('display-info', array(
'front-feature' => false,
'category' => 'opinion', // category slug (required)
'offset' => 0, // number (optional)
'background-color' => '#000000', // HEX color value (required)
'text-color' => '#FFFFFF', // HEX color value (required)
'pattern' => 'comment-bubble animated_xy', // plus, plus-dark, squiggle, squiggle-dark, tic-tac-toe, tic-tac-toe-dark, rain, rain-dark, shapes, shapes-dark, texture, texture-dark, food, food-dark, magnet, magnet-dark, squares, squares-dark (optional)
'image-position' => 'left', // left, right (required)
'align' => 'top' // top, bottom (required)
));
get_template_part('php/front-page/top-story');
?>
</main>
<?php get_footer(); ?>