Created
June 28, 2012 00:04
-
-
Save dotsonjb14/3007742 to your computer and use it in GitHub Desktop.
get_tags, check for empty term
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function get_tags() | |
{ | |
$this->theme->wsse = Utils::WSSE(); | |
$this->theme->tags = Tags::vocabulary()->get_tree( 'term_display asc' ); | |
$this->theme->max = Tags::vocabulary()->max_count(); | |
for( $i = 0; $i < count($this->theme->tags); $i++ ) | |
{ | |
if( $this->theme->tags[$i]->term_display == "" ) | |
{ | |
$this->theme->tags[$i]->term_display = "Tag term missing"; | |
} | |
} | |
$this->display( 'tags' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment