| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Generate HTML extended tag cloud |
| 5 |
* |
| 6 |
* @param string $args |
| 7 |
* |
| 8 |
* @return string |
| 9 |
* @author WebFactory Ltd |
| 10 |
*/ |
| 11 |
function st_get_tag_cloud($args = '') |
| 12 |
{ |
| 13 |
return SimpleTags_Client_TagCloud::extendedTagCloud($args); |
| 14 |
} |
| 15 |
|
| 16 |
/** |
| 17 |
* Display extended tag cloud |
| 18 |
* |
| 19 |
* @param string $args |
| 20 |
* |
| 21 |
* @return void |
| 22 |
* @author WebFactory Ltd |
| 23 |
*/ |
| 24 |
function st_tag_cloud($args = '') |
| 25 |
{ |
| 26 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 27 |
echo st_get_tag_cloud($args); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* Generate extended current tags post |
| 32 |
* |
| 33 |
* @param string $args |
| 34 |
* |
| 35 |
* @return string |
| 36 |
* @author WebFactory Ltd |
| 37 |
*/ |
| 38 |
function st_get_the_tags($args = '') |
| 39 |
{ |
| 40 |
if (class_exists('SimpleTags_Client_PostTags')) { |
| 41 |
return SimpleTags_Client_PostTags::extendedPostTags($args); |
| 42 |
} |
| 43 |
|
| 44 |
return ''; |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Display extended current tags post |
| 49 |
* |
| 50 |
* @param string $args |
| 51 |
* |
| 52 |
* @return void |
| 53 |
* @author WebFactory Ltd |
| 54 |
*/ |
| 55 |
function st_the_tags($args = '') |
| 56 |
{ |
| 57 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 58 |
echo st_get_the_tags($args); |
| 59 |
} |
| 60 |
|
| 61 |
/** |
| 62 |
* Generate related posts for a post in WP loop |
| 63 |
* |
| 64 |
* @param string $args |
| 65 |
* |
| 66 |
* @return string|array |
| 67 |
* @author WebFactory Ltd |
| 68 |
*/ |
| 69 |
function st_get_related_posts($args = '') |
| 70 |
{ |
| 71 |
if (class_exists('SimpleTags_Client_RelatedPosts')) { |
| 72 |
return SimpleTags_Client_RelatedPosts::get_related_posts($args); |
| 73 |
} |
| 74 |
|
| 75 |
return ''; |
| 76 |
} |
| 77 |
|
| 78 |
/** |
| 79 |
* Display related posts for a post in WP loop |
| 80 |
* |
| 81 |
* @param string $args |
| 82 |
* |
| 83 |
* @return void |
| 84 |
* @author WebFactory Ltd |
| 85 |
*/ |
| 86 |
function st_related_posts($args = '') |
| 87 |
{ |
| 88 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 89 |
echo st_get_related_posts($args); |
| 90 |
} |
| 91 |
|