本文整理汇总了PHP中language::to_output方法的典型用法代码示例。如果您正苦于以下问题:PHP language::to_output方法的具体用法?PHP language::to_output怎么用?PHP language::to_output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类language
的用法示例。
在下文中一共展示了language::to_output方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$_output->close_tag();
$_output->add_tag("monitor_version", MONITOR_VERSION);
$_output->add_tag("website_url", $_SERVER["SERVER_NAME"]);
/* Page information
*/
$_output->add_tag("page", $_page->page, array("url" => $_page->url, "module" => $_page->module, "type" => $_page->type, "readonly" => show_boolean($_page->readonly)));
/* User information
*/
if ($_user->logged_in) {
$params = array("id" => $_user->id, "admin" => show_boolean($_user->is_admin));
$_output->add_tag("user", $_user->fullname, $params);
}
/* Multilingual
*/
if ($_language !== null) {
$_language->to_output();
}
/* Main menu
*/
if (is_true(WEBSITE_ONLINE) && $_user->logged_in) {
if (substr($_page->url, 0, 4) == "/cms" || $_output->layout == LAYOUT_CMS) {
/* CMS menu
*/
if ($_page->page != "logout") {
$_output->open_tag("menu");
$_output->record(array("link" => "/", "text" => "Website"), "item");
$_output->record(array("link" => "/cms", "text" => "CMS"), "item");
$_output->record(array("link" => "/logout", "text" => "Logout"), "item");
$_output->close_tag();
}
} else {