comment_ID;
$author_email = $comment->comment_author_email;
$author = $comment->comment_author;
$avatar = get_avatar($comment, 128);
$date = get_comment_date('jS F, Y', $id).' at '.get_comment_date('H:i', $id);
$content = $comment->comment_content;
$comment_depth = $depth > 0 ? ' comments__item--depth-'.$depth : '';
$output .= '
';
}
}
class Windycoys_Walker_Nav extends Walker_Nav_Menu {
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
$title = $item->post_title;
$uri = get_site_url() . '/' . $item->post_name;
$output .= '';
$output .= '';
$output .= $title . '';
}
}
function windycoys_nav() {
wp_nav_menu(array(
'container' => 'ul',
'menu_class' => 'nav__list nav__list--sub-list',
'walker' => new Windycoys_Walker_Nav()
));
}
function windycoys_the_tags() {
$tags = get_the_tags();
if (!$tags) return false;
// Suppress NewsNow tag
foreach($tags as $key=>$tag) {
if($tag->name === "newsnow") {
unset($tags[$key]);
}
}
if ($tags) {
foreach($tags as $key=>$tag) {
echo '' .
$tag->name . '';
if ($key < count($tags) - 1) {
echo ', ';
}
}
}
}
function windycoys_share_twitter_url() {
$url = 'https://twitter.com/intent/tweet?text=';
$title = get_the_title();
$link = get_the_permalink();
echo $url . urlencode($title . ': ' . $link . ' by @WindyCOYS');
}