本文整理匯總了PHP中rex_view::clangSwitchAsButtons方法的典型用法代碼示例。如果您正苦於以下問題:PHP rex_view::clangSwitchAsButtons方法的具體用法?PHP rex_view::clangSwitchAsButtons怎麽用?PHP rex_view::clangSwitchAsButtons使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rex_view
的用法示例。
在下文中一共展示了rex_view::clangSwitchAsButtons方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rex_request
$category_id = $OOArt->getCategoryId();
// ----- Request Parameter
$subpage = rex_be_controller::getCurrentPagePart(2);
$function = rex_request('function', 'string');
$warning = htmlspecialchars(rex_request('warning', 'string'));
$info = htmlspecialchars(rex_request('info', 'string'));
$context = new rex_context(['page' => rex_be_controller::getCurrentPage(), 'article_id' => $article_id, 'clang' => $clang, 'ctype' => $ctype]);
// ----- Titel anzeigen
echo rex_view::title(rex_i18n::msg('content'), '');
if (rex_be_controller::getCurrentPagePart(1) == 'content' && $article_id > 0) {
$icon = $article->getValue('startarticle') == 1 ? 'rex-icon-startarticle' : 'rex-icon-article';
$term = $article->getValue('startarticle') == 1 ? rex_i18n::msg('start_article') : rex_i18n::msg('article');
//echo '<h2><i class="rex-icon ' . $icon . '" title="' . $term . '"></i> ' . $article->getValue('name') . ' <small>' . rex_i18n::msg('id') . '=' . $article->getValue('id') . ', ' . $term . '</small></h2>';
}
// ----- Languages
echo rex_view::clangSwitchAsButtons($context);
// ----- category pfad und rechte
require rex_path::addon('structure', 'functions/function_rex_category.php');
// ----- EXTENSION POINT
echo rex_extension::registerPoint(new rex_extension_point('STRUCTURE_CONTENT_HEADER', '', ['article_id' => $article_id, 'clang' => $clang, 'function' => $function, 'slice_id' => $slice_id, 'page' => rex_be_controller::getCurrentPage(), 'ctype' => $ctype, 'category_id' => $category_id, 'article_revision' => &$article_revision, 'slice_revision' => &$slice_revision]));
// --------------------- SEARCH BAR
//require_once $this->getAddon()->getPath('functions/function_rex_searchbar.php');
//echo rex_structure_searchbar($context);
// ----------------- HAT USER DIE RECHTE AN DIESEM ARTICLE ODER NICHT
if (!rex::getUser()->getComplexPerm('structure')->hasCategoryPerm($category_id)) {
// ----- hat keine rechte an diesem artikel
echo rex_view::warning(rex_i18n::msg('no_rights_to_edit'));
} else {
// ----- hat rechte an diesem artikel
// ------------------------------------------ Slice add/edit/delete
if (rex_request('save', 'boolean') && in_array($function, ['add', 'edit', 'delete'])) {