public static function bulletItem($Section, $Return = true) { $Result = ''; if (self::$_BulletSection === false) { self::$_BulletSection = $Section; } elseif (self::$_BulletSection != $Section) { $Result = "<!-- {$Section} -->" . self::$_BulletSep; self::$_BulletSection = $Section; } if ($Return) { return $Result; } else { echo $Result; } }
/** * Add 'Facebook' option to the row. */ public function base_afterReactions_handler($Sender, $Args) { if (!$this->socialReactions()) { return; } echo Gdn_Theme::bulletItem('Share'); $this->addReactButton($Sender, $Args); }