-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-authors.php
executable file
·103 lines (73 loc) · 2.21 KB
/
template-authors.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
<?php
/**
* Template Name: Authors
*
* @package coup
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main container container-medium" role="main">
<?php
while ( have_posts() ) : the_post();
echo '<header class="entry-header container container-side">';
the_title( '<h1 class="entry-title big-text">', '</h1>' );
echo '</header><!-- .entry-header -->';
// get_template_part( 'template-parts/content', 'single' );
endwhile; // End of the loop.
// Show list of "product_tag" terms
$terms= get_terms( array(
'taxonomy' => 'product_tag',
'hide_empty' => false,
) );
// echo '<pre>';
// var_dump($terms);
// echo '</pre>';
echo '<div id="post-load" class="row">';
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
$count = count( $terms );
$i = 0;
$term_list = '<p class="my_term-archive">';
foreach ( $terms as $term ) {
// we need:
// Title
// Hyperlink - get_term_link()
// Image
// Description
$term_output = gs_author_content( $term );
echo $term_output;
// $i++;
// $term_list .= '<a href="' . esc_url( get_term_link( $term ) ) . '" alt="' . esc_attr( sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) ) . '">' . $term->name . '</a>';
// if ( $count != $i ) {
// $term_list .= ' · ';
// }
// else {
// $term_list .= '</p>';
// }
}
echo $term_list;
}
echo '</div>';
?>
</main><!-- #main -->
</div><!-- #primary -->
<aside class="side-nav">
<!-- Search form -->
<div class="search-wrap">
<?php coup_custom_search_form(); ?>
</div>
<!-- woo filter sidebar -->
<?php if ( coup_is_woocommerce_activated() ) : ?>
<?php if ( !is_cart() && !is_checkout() ) { ?>
<!-- Cart icon -->
<div class="cart-touch">
<?php coup_cart_link(); ?>
</div>
<?php }
endif; ?>
<!-- insert sharedaddy if enabled here -->
<?php coup_insert_sharedaddy() ?>
<!-- Post navigation -->
<?php coup_post_navigation(); ?>
</aside>
<?php
get_footer();