<?php
	class UI {
		public static function toggleMenu($links = array()) {
			$s = "";
            foreach ($links as $k => $v) {
                $s .= "<a href=\"{$v['link']}\">{$v['text']}</a>";
            }
            return "
            <div>
                            <a class=\"toggle-menu-act\" onclick=\"UI.toggleMenu(this);\">
                                <span></span>
                            </a>
                            <div class=\"toggle-menu\">
                            <div class=\"toggle-menu-arrow\"><span></span></div>
                            <ul class=\"toggle-menu-block\">
                                {$s}
                            </ul>
                            </div>
                        </div>
            ";
		}
	}