コード例 #1
0
/**
 * Generate extended current tags post
 *
 * @param string $args
 *
 * @return string
 * @author Amaury Balmer
 */
function st_get_the_tags($args = '')
{
    if (class_exists('SimpleTags_Client_PostTags')) {
        return SimpleTags_Client_PostTags::extendedPostTags($args);
    }
    return '';
}
コード例 #2
0
 /**
  * Replace marker by tags in post content, use ShortCode
  *
  * @param array $atts
  *
  * @return string
  */
 public static function shortcode($atts)
 {
     extract(shortcode_atts(array('param' => ''), $atts));
     $param = html_entity_decode($param);
     $param = trim($param);
     if (empty($param)) {
         $param = 'title=';
     }
     return SimpleTags_Client_PostTags::extendedPostTags($param);
 }