This commit is contained in:
2018-02-09 15:55:19 +00:00
commit fb5d64742c
30 changed files with 9921 additions and 0 deletions

22
theme/functions.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
function windycoys_the_tags() {
$tags = get_the_tags();
if ($tags) {
foreach($tags as $key=>$tag) {
echo '<a class="Metadata-categoriesLink" href="' .
home_url() . '/tags/' . $tag->name . '" rel="tag">' .
$tag->name . '</a>';
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');
}