Fix undefined variable
Fix undefined variables in get_markup

Looks like a minor typo in the variable name $text_parts.
Ternary Not Working

I couldn't get this ternary operator to work for me.  It always returned the single label regardless.  Running PHP 5.4.  Perhaps there's something I'm missing, but switching it to an if/else statement seemed to get it working.
Merge pull request #2 from devinsays/patch-1

Fix undefined variables in get_markup
Merge pull request #3 from devinsays/patch-2

Fix label ternary
Merge pull request #1 from grappler/patch-1

Fix undefined variable