* @license Apache License, Version 2.0 */ /** * Template function: Current comment body * * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE * @return string * @since 0.1 */ function pzdc_comment_body($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('comment', 'comment', $echo); } /** * Template function: Current comment body * * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE * @param string $format strftime() conversion specifiers * @param string * @return string * @since 0.1 */ function pzdc_comment_created_at($echo = TRUE, $format = NULL) { global $PraizedCommunity; $out = $PraizedCommunity->tpt_attribute_helper('comment', 'created_at', FALSE); if ( strstr($format, '%') ) $out = pzdc_date($out, $format); if ( $echo ) echo $out; return $out; } /** * Template function: Current comment community name (defaults to echo) * * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE * @return string * @since 2.0 */ function pzdc_comment_community_name($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('comment', 'community->name', $echo); } /** * Template function: Current comment community base url (defaults to echo) * * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE * @return string * @since 2.0 */ function pzdc_comment_community_base_url($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('comment', 'community->base_url', $echo); } ?>