-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·62 lines (55 loc) · 1.94 KB
/
index.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
<?php
/**
* @Author: Abigeater
* @Email: [email protected]
* @Link: abigeater.com
*/
get_header();
?>
<main id="site-content">
<?php
$front_main_page_cover_image = get_theme_mod( 'front_main_page_cover_image', '' );
if($front_main_page_cover_image) {
$front_main_page_cover_title = get_theme_mod( 'front_main_page_cover_title', '' );
$front_main_page_cover_subtitle = get_theme_mod( 'front_main_page_cover_subtitle', '' );
get_template_part( 'parts/part', 'cover', [
'id' => 'main-cover',
'covers' => [
[
'img' => $front_main_page_cover_image,
'img_alt' => get_bloginfo( 'name' ),
'show_text' => !empty($front_main_page_cover_title) || !empty($front_main_page_cover_subtitle),
'title' => $front_main_page_cover_title,
'desc' => $front_main_page_cover_subtitle
],
],
'title_color' => get_theme_mod( 'front_main_page_cover_title_color', '' ),
'subtitle_color' => get_theme_mod( 'front_main_page_cover_subtitle_color', '' ),
]);
}
$options = JOJO_Taxonomy_Option::get_all();
$filter_options = [];
foreach($options as $option) {
if(!$option['support_user_filter']){
continue;
}
$term_options = array_map(function($term){
return [
'key' => $term->term_id,
'label' => $term->name,
];
}, get_terms(['taxonomy'=>$option['name'], 'hide_empty' => false]));
$term_options && $filter_options[] = array_merge($option, [
'options' => $term_options,
]);
}
get_template_part( 'parts/part', 'job-list', [
'options' => [
'support_search' => true,
'filter_options' => $filter_options,
]
]);
?>
</main>
<?php
get_footer();