/** * Output our icon. * * @return mixed False if we have already defined the icon, else void. */ public function the_icon_definition() { // Have we already defined our icon? If so, bail. if (self::$got_svg) { return FALSE; } // Set the flag to true so we don't output this twice. self::$got_svg = TRUE; // Grab the icon definition. $out = $this->get_icon_definition(); // Output the icon definition. echo $out; }