public static function get($icon = NULL) { if (is_null(self::$obj)) { self::$obj = new self(); } self::$obj->reset(); self::$obj->small(); if ($icon) { self::$obj->class_name('nc--' . $icon); } return self::$obj; }
/** * Добавляет большую иконку перед текстом * @param string $icon название иконки * @return object $this */ public function icon_large($icon) { $this->icon = strval(nc_ui_icon::get($icon)->large()); return $this; }