Example #1
0
    public static function Get_LangDropdown()
    {
        $langlist = DMsg::GetSupportedLang($curlang);
        $buf = '<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span>' . $langlist[$curlang][0] . '</span> <i class="fa fa-angle-down"></i> </a>
				<ul id="lst-lang" class="dropdown-menu pull-right">';
        foreach ($langlist as $lang => $linfo) {
            $buf .= '<li data-lang="' . $lang . '"';
            if ($lang == $curlang) {
                $buf .= ' class="active"';
            }
            $buf .= '><a href="javascript:void(0);">' . $linfo[0] . '</a></li>';
        }
        $buf .= "</ul>\n";
        return $buf;
    }