1<?php
2/**
3 * Copyright (c) 2020. ComboStrap, Inc. and its affiliates. All Rights Reserved.
4 *
5 * This source code is licensed under the GPL license found in the
6 * COPYING  file in the root directory of this source tree.
7 *
8 * @license  GPL 3 (https://www.gnu.org/licenses/gpl-3.0.en.html)
9 * @author   ComboStrap <support@combostrap.com>
10 *
11 */
12
13namespace ComboStrap;
14
15
16class NavBarUtility
17{
18
19    /**
20     * @param $text
21     * @return string - a text styled for inside a navbar
22     */
23    public static function text($text)
24    {
25        if (!empty(trim($text))) {
26            return '<span class="navbar-text active">' . $text . '</span>';
27        }
28    }
29
30
31}
32