Repository navigation
Expand file tree
/
Copy patharchive-comic.php
More file actions
72 lines (66 loc) · 2.37 KB
/
Copy patharchive-comic.php
File metadata and controls
72 lines (66 loc) · 2.37 KB
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
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Toocheke
*/
get_header();
$comics_paged = isset($_GET['comics_paged']) ? (int) $_GET['comics_paged'] : 1;
$archive_layout_options = get_option('toocheke-comics-archive');
$comic_archive_option = isset($archive_layout_options['layout_type']) ? $archive_layout_options['layout_type'] : 'thumbnail-list';
?>
<div class="row">
<!--START LEFT COL-->
<div class="col-lg-8">
<div id="left-col">
<div id="left-content">
<?php
switch ($comic_archive_option) {
case 'thumbnail-list':
get_template_part('template-parts/content', 'comicarchivethumbnail');
break;
case 'plain-text-list':
get_template_part('template-parts/content', 'comicarchivetext');
break;
case 'calendar':
get_template_part('template-parts/content', 'comicarchivecalendar');
break;
case 'gallery':
get_template_part('template-parts/content', 'comicarchivegallery');
break;
case 'chapters-plain-text-list':
get_template_part('template-parts/content', 'comicarchivechapterstext');
break;
case 'chapters-gallery':
get_template_part('template-parts/content', 'comicarchivechaptersgallery');
break;
case 'collections-plain-text-list':
get_template_part('template-parts/content', 'comicarchivecollectionstext');
break;
case 'collections-gallery':
get_template_part('template-parts/content', 'comicarchivecollectionsgallery');
break;
case 'series-plain-text-list':
get_template_part('template-parts/content', 'comicarchiveseriestext');
break;
case 'series-gallery':
get_template_part('template-parts/content', 'comicarchiveseriesgallery');
break;
case 'yearly-plain-text-list':
get_template_part('template-parts/content', 'comicarchiveyearlytext');
break;
case 'yearly-gallery':
get_template_part('template-parts/content', 'comicarchiveyearlygallery');
break;
}
?>
<!--END CONTENT-->
</div><!--./ left-content-->
</div><!--./ left-col-->
</div><!--./ col-lg-8-->
<!--END LEFT COL-->
<?php
get_sidebar();
get_footer();