本文整理汇总了PHP中language::name_by_code方法的典型用法代码示例。如果您正苦于以下问题:PHP language::name_by_code方法的具体用法?PHP language::name_by_code怎么用?PHP language::name_by_code使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类language
的用法示例。
在下文中一共展示了language::name_by_code方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: languages
public function languages()
{
$options = array();
foreach ($this->languages_list as $active_language_code) {
$options[$active_language_code] = language::name_by_code($active_language_code);
}
return $options;
}
示例2: nvweb_languages
function nvweb_languages($vars = array())
{
global $website;
global $current;
$out = array();
$class = value_or_default($vars['class'], "");
switch ($vars['mode']) {
case 'code':
foreach ($website->languages_published as $lang) {
if ($current['lang'] == $lang) {
$out[] = '<a href="?lang=' . $lang . '" class="language-selected ' . $class . ' active">' . $lang . '</a>';
} else {
$out[] = '<a href="?lang=' . $lang . '" class="' . $class . '">' . $lang . '</a>';
}
}
$out = implode('<span class="nv-language-separator">' . $vars['separator'] . '</span>', $out);
break;
case 'name':
foreach ($website->languages_published as $lang) {
$lang_name = language::name_by_code($lang);
if ($current['lang'] == $lang) {
$out[] = '<a href="?lang=' . $lang . '" class="language-selected ' . $class . ' active">' . $lang_name . '</a>';
} else {
$out[] = '<a href="?lang=' . $lang . '" class="' . $class . '">' . $lang_name . '</a>';
}
}
$out = implode('<span class="nv-language-separator">' . $vars['separator'] . '</span>', $out);
break;
case 'flag':
foreach ($website->languages_published as $lang) {
$flag = $lang;
if (strpos($lang, '_') > 0) {
$code = explode('_', $lang);
$flag = $code[0];
$extra = ' ' . $code[1];
}
if ($current['lang'] == $lang) {
$out[] = '<a href="?lang=' . $lang . '" class="language-selected ' . $class . ' active"><img src="' . NVWEB_ABSOLUTE . '/object?type=flag&code=' . $flag . '" />' . $extra . '</a>';
} else {
$out[] = '<a href="?lang=' . $lang . '" class="' . $class . '"><img src="' . NVWEB_ABSOLUTE . '/object?type=flag&code=' . $flag . '" alt="' . $flag . '" />' . $extra . '</a>';
}
}
$out = implode('<span class="nv-language-separator">' . $vars['separator'] . '</span>', $out);
break;
case 'li':
foreach ($website->languages_published as $lang) {
if (empty($lang)) {
continue;
}
$lang_name = language::name_by_code($lang);
if ($current['lang'] == $lang) {
$out[] = '<li><a href="?lang=' . $lang . '" class="language-selected ' . $class . ' active">' . $lang_name . '</a></li>';
} else {
$out[] = '<li><a href="?lang=' . $lang . '" class="' . $class . '">' . $lang_name . '</a></li>';
}
}
$out = implode('<span class="nv-language-separator">' . $vars['separator'] . '</span>', $out);
break;
case 'select':
default:
$out[] = '<select class="' . $class . '" onchange="if(this.value!=\'' . $current['lang'] . '\') window.location.href = \'?lang=\'+this.value;">';
foreach ($website->languages_published as $lang) {
if (empty($lang)) {
continue;
}
$lang_name = language::name_by_code($lang);
if ($current['lang'] == $lang) {
$out[] = '<option value="' . $lang . '" selected="selected">' . $lang_name . '</option>';
} else {
$out[] = '<option value="' . $lang . '">' . $lang_name . '</option>';
}
}
$out[] = '</select>';
$out = implode("\n", $out);
break;
}
return $out;
}
示例3: webdictionary_edit_language_form
function webdictionary_edit_language_form($code)
{
global $DB;
global $website;
global $theme;
global $events;
$navibars = new navibars();
$naviforms = new naviforms();
$navibars->title(t(21, 'Dictionary') . ' / ' . t(602, 'Edit language'));
$navibars->add_actions(array('<a href="#" onclick="navigate_tabform_submit(0);"><img height="16" align="absmiddle" width="16" src="img/icons/silk/accept.png"> ' . t(34, 'Save') . '</a>'));
$navibars->add_actions(array('<a href="?fid=webdictionary&act=0"><img height="16" align="absmiddle" width="16" src="img/icons/silk/application_view_list.png"> ' . t(39, 'List') . '</a>'));
$navibars->form();
$navibars->add_tab(t(188, "Translate"));
$navibars->add_tab_content($naviforms->hidden('form-sent', 'true'));
$origin = "";
foreach ($website->languages_list as $l) {
if ($l == $code) {
continue;
} else {
$origin = $l;
break;
}
}
// retrieve original theme translations, if any
$theme->get_translations();
$dict_dest = array();
foreach ($theme->dictionaries as $otext) {
if ($otext['lang'] == $code) {
$dict_dest[$otext['node_id']] = $otext['text'];
}
}
// retrieve existing database dictionary translations
$DB->query('
SELECT *
FROM nv_webdictionary
WHERE ( (node_type = "global")
OR (node_type = "theme" AND theme= "' . $theme->name . '")
) AND
website = ' . $website->id . '
');
$db_trans = $DB->result();
foreach ($db_trans as $otext) {
$text_id = $otext->node_id;
if ($otext->node_type == "theme") {
$text_id = $otext->subtype;
}
if ($otext->lang == $code) {
$dict_dest[$text_id] = $otext->text;
} else {
if ($otext->lang == $origin && $otext->node_type == "global") {
array_push($theme->dictionaries, array("source" => $text_id, "node_id" => $text_id, "text" => $otext->text, "lang" => $otext->lang));
}
}
}
$extensions_translations = array();
$extensions = extension::list_installed();
if (!is_array($extensions)) {
$extensions = array();
}
foreach ($extensions as $extension) {
$ext = new extension();
$ext->load($extension['code']);
$extension_translations = $ext->get_translations();
// load all translations of the extension
$extensions_translations = array_merge($extensions_translations, $extension_translations);
}
$DB->query('
SELECT *
FROM nv_webdictionary
WHERE node_type = "extension" AND
website = ' . $website->id, 'array');
$resultset = $DB->result();
for ($dbrs = 0; $dbrs < count($resultset); $dbrs++) {
$found = false;
for ($trs = 0; $trs < count($extensions_translations); $trs++) {
if ($resultset[$dbrs]['node_type'] == "extension" && $resultset[$dbrs]['extension'] == $extensions_translations[$trs]['extension'] && $resultset[$dbrs]['subtype'] == $extensions_translations[$trs]['node_id'] && $resultset[$dbrs]['lang'] == $extensions_translations[$trs]['lang']) {
$found = true;
$extensions_translations[$trs]['text'] = $resultset[$dbrs]['text'];
}
}
// translation was not included in the extension languages, so we need to add it to our array
if (!$found) {
$extensions_translations[] = array('extension' => $resultset[$dbrs]['extension'], 'source' => 'extension.' . $resultset[$dbrs]['extension'] . '.' . $resultset[$dbrs]['subtype'], 'node_id' => $resultset[$dbrs]['subtype'], 'lang' => $resultset[$dbrs]['lang'], 'text' => $resultset[$dbrs]['text']);
}
}
// generate table
$table = '<table class="box-table">';
$table .= '<tr><th>' . t(237, "Code") . '</th><th>' . language::name_by_code($origin) . '</th><th>' . language::name_by_code($code) . '</th></tr>';
foreach ($theme->dictionaries as $otext) {
if ($otext['lang'] == $origin) {
$translation = $dict_dest[$otext['node_id']];
if (is_numeric($otext['source'])) {
$otext['source'] = 'global.' . $otext['source'];
}
// note: PHP does not allow using dots in $_POST variable names, unless they are used in an array
$table .= '
<tr>
<td>' . $otext['node_id'] . '</textarea></td>
<td><textarea rows="2" cols="60" disabled="disabled">' . $otext['text'] . '</textarea></td>
<td><textarea name="data[' . $code . '.' . $otext['source'] . ']" rows="2" cols="60">' . $translation . '</textarea></td>
//.........这里部分代码省略.........
示例4: block_group_form
//.........这里部分代码省略.........
' . implode("\n", array_map(function ($b) use($item) {
global $theme;
$html = '<div class="block_group_block ui-state-default" data-block-id="' . $b->id . '" data-block-type="block_group_block" title="' . $theme->t(@$b->description) . '">' . '<div class="actions">
' . (empty($b->properties) ? '' : '<a href="#" data-block-group="' . $item->code . '" data-block-group-block="' . $b->id . '" data-block-group-action="settings" onclick="navigate_blocks_group_block_settings(this);"><img src="' . NAVIGATE_URL . '/img/icons/silk/cog.png" /></a>') . '
<a href="#" onclick="navigate_blocks_selection_remove(this);"><img src="' . NAVIGATE_URL . '/img/icons/silk/cancel.png" /></a>
</div>' . '<div class="title">' . $theme->t($b->title) . '</div>' . '<div class="subcomment">
<span style="float: right;">ID ' . $b->id . '</span>
<img src="img/icons/silk/bricks.png" />' . '</div>' . '</div>';
return $html;
}, $block_group_blocks)) . '
</div>
<h3><i class="fa fa-fw fa-puzzle-piece"></i> ' . t(327, 'Extensions') . '</h3>
<div>
' . implode("\n", array_map(function ($b) use($allowed_types, $item) {
$classes = 'block_group_block ui-state-default';
$extension = new extension();
$extension->load($b->_extension);
$html = '<div class="' . $classes . '" data-block-id="' . $b->id . '" data-block-type="extension" data-block-extension="' . $b->_extension . '">' . '<div class="actions">
' . (empty($b->properties) ? '' : '<a href="#" data-block-group="' . $item->code . '" data-block-group-block="' . $b->id . '" data-block-group-action="settings" onclick="navigate_block_group_extension_block_settings(this);"><img src="' . NAVIGATE_URL . '/img/icons/silk/cog.png" /></a>') . '
<a href="#" onclick="navigate_blocks_selection_remove(this);"><img src="' . NAVIGATE_URL . '/img/icons/silk/cancel.png" /></a>
</div>' . '<div class="title">' . $extension->t($b->title) . '</div>' . '<div class="subcomment"><span style="float: right;">ID ' . $b->id . '</span><img src="img/icons/silk/plugin.png" /> ' . $extension->title . '</div>' . '</div>';
return $html;
}, $extensions_blocks)) . '
</div>
</div>
<div class="subcomment">
<img src="img/icons/silk/information.png" align="absmiddle" /> ' . t(638, "Disabled blocks are not compatible with the current block group type") . '
</div>
</div>');
$block_group_block_types_form = "";
foreach ($website->languages_list as $lang) {
$block_group_block_types_form .= '
<div data-lang="' . $lang . '" class="navigate-form-row">
<label style="width: 48px; "><span title="' . language::name_by_code($lang) . '" class="navigate-form-row-language-info"><img align="absmiddle" src="img/icons/silk/comment.png">' . $lang . '</span></label>
<input type="text" style=" width: 340px;" name="block_type_title_value[' . $lang . ']" value="">
</div>
';
}
$navibars->add_tab_content('
<div id="navigate-block-groups-block-type-title" class="hidden">
' . $block_group_block_types_form . '
<div class="subcomment" style="margin-left: 0;"><img src="img/icons/silk/information.png" /> ' . t(641, "It will only be shown if the template supports it") . '</div>
</div>
');
$layout->add_script('
function navigate_blocks_block_type_title(el)
{
var title = $(el).find("span").text();
try
{
title = jQuery.parseJSON(title);
}
catch(e)
{
// not json; do nothing
}
$("#navigate-block-groups-block-type-title").find("input[type=text]").each(function()
{
if(typeof(title)=="object")
$(this).val(title[$(this).parent().data("lang")]);
else
$(this).val(title);
});
示例5: items_form
//.........这里部分代码省略.........
<li id="contextmenu-gallery-items-focalpoint"><a href="#"><span class="ui-icon ui-icon-image"></span>' . t(540, "Focal point") . '</a></li>
<li id="contextmenu-gallery-items-description"><a href="#"><span class="ui-icon ui-icon-comment"></span>' . t(334, 'Description') . '</a></li>
<li><!--divider--></li>
<li id="contextmenu-gallery-items-remove"><a href="#"><span class="ui-icon ui-icon-minus"></span>' . t(627, 'Remove') . '</a></li>
<li id="contextmenu-gallery-items-move-beginning"><a href="#"><span class="ui-icon ui-icon-arrowthickstop-1-n"></span>' . t(628, 'Move to the beginning') . '</a></li>
<li id="contextmenu-gallery-items-move-end"><a href="#"><span class="ui-icon ui-icon-arrowthickstop-1-s"></span>' . t(629, 'Move to the end') . '</a></li>
</ul>
');
// script#6
$layout->add_script('
$(window).on("load", function()
{
new LazyLoad({
threshold: 200,
container: $("#items-gallery-elements-order").parent()[0],
elements_selector: "#items-gallery-elements img",
throttle: 40,
data_src: "src",
show_while_loading: true
});
});
');
$captions_form = '
<div id="navigate_items_gallery_captions_form" style=" display: none; ">
<div class="navigate-form-row">
<label>' . t(157, 'Image') . '</label>
' . $naviforms->dropbox('navigate_items_gallery_captions_form_image', '', 'image', true) . '
</div>
';
$caption_langs = array_values($website->languages_list);
foreach ($caption_langs as $caption_language) {
$captions_form .= '
<div class="navigate-form-row">
<label>' . language::name_by_code($caption_language) . '</label>
' . $naviforms->textfield('navigate_items_gallery_captions_form_image_' . $caption_language, '') . '
</div>
';
}
$captions_form .= '
</div>
';
$layout->add_content($captions_form);
}
// Properties TAB (only if needed)
$properties_html = '';
if ($item->association == 'free' && !empty($item->template) && $item->template != '0') {
// we already know the properties to show: template is set on item
$properties_html = navigate_property_layout_form('item', $item->template, 'item', $item->id);
} else {
if ($item->association == 'category' && $item->embedding == 0 && !empty($item->template)) {
// we already know the properties to show: template is set on item
$properties_html = navigate_property_layout_form('item', $item->template, 'item', $item->id);
} else {
if ($item->association == 'category' && $item->category > 0) {
// we have to get the template set in the category of the item
$template_id = $DB->query_single('template', 'nv_structure', ' id = ' . protect($item->category) . ' AND website = ' . $website->id);
$properties_html = navigate_property_layout_form('item', $template_id, 'item', $item->id);
}
}
}
if (!empty($properties_html)) {
$navibars->add_tab(t(77, "Properties"));
// tab #4
$navibars->add_tab_content($properties_html);
}
if ($template->comments > 0 || $template->comments == 'true' || $template->comments === true || is_object($template->comments)) {
示例6: websites_form
//.........这里部分代码省略.........
mail_password: $("#mail_password").val(),
send_to: $("#contact_emails").val()
},
success: function(data)
{
navigate_status(navigate_lang_dictionary[42], "ready");
if(!data)
navigate_notification("' . t(56, "Unexpected error.") . '");
else
navigate_notification("' . t(392, "E-Mail sent") . '");
},
error: function(data)
{
navigate_status(navigate_lang_dictionary[42], "ready");
var error_message = (data.responseText).split("<br />")[0];
if(error_message!="")
error_message = ": " + error_message;
navigate_notification("' . t(56, "Unexpected error.") . '" + error_message, true);
},
dataType: "json"
});
return false;
});
');
/* METATAGS TAB */
if (!empty($item->id) && !empty($item->languages)) {
$navibars->add_tab(t(513, "Metatags"));
$website_languages_selector = $item->languages();
$website_languages_selector = array_merge(array('' => '(' . t(443, 'All') . ')'), $website_languages_selector);
$navibars->add_tab_content_row(array('<label>' . t(63, 'Languages') . '</label>', $naviforms->buttonset('metatags_language_selector', $website_languages_selector, '', "navigate_tabform_language_selector(this);")));
foreach ($item->languages_list as $lang) {
$language_info = '<span class="navigate-form-row-language-info" title="' . language::name_by_code($lang) . '"><img src="img/icons/silk/comment.png" align="absmiddle" />' . $lang . '</span>';
$navibars->add_tab_content_row(array('<label>' . t(334, 'Description') . ' ' . $language_info . '</label>', $naviforms->textfield('metatag_description-' . $lang, $item->metatag_description[$lang]), '<span class="navigate-form-row-info">150-160</span>'), '', 'lang="' . $lang . '"');
$navibars->add_tab_content_row(array('<label>' . t(536, 'Keywords') . ' ' . $language_info . '</label>', $naviforms->textfield('metatag_keywords-' . $lang, $item->metatag_keywords[$lang])), '', 'lang="' . $lang . '"');
$layout->add_script('
$("#metatag_keywords-' . $lang . '").tagit({
removeConfirmation: true,
allowSpaces: true,
singleField: true,
singleFieldDelimiter: ",",
placeholderText: "+",
autocomplete:
{
delay: 0,
minLength: 1,
source: "?fid=items&act=json_tags_search&lang=' . $lang . '"
},
afterTagAdded: function(event, ui)
{
var tags = $(this).tagit("assignedTags");
if(tags.length > 0)
tags = tags.join(",");
else
tags = "";
$("#metatag_keywords-' . $lang . '").val(tags);
}
});
');
$navibars->add_tab_content_row(array('<label>' . t(514, "Additional metatags") . ' ' . $language_info . '</label>', $naviforms->scriptarea('metatags-' . $lang, $item->metatags[$lang], 'html', ' width: 75%; height: 100px; ')), '', 'lang="' . $lang . '"');
}
}
/* SERVICES TAB */
$navibars->add_tab(t(178, "Services"));
示例7: navigate_property_layout_field
//.........这里部分代码省略.........
$("#property-' . $property->id . '-map").width($("#property-' . $property->id . '-map-container").width());
$("#property-' . $property->id . '-map").height($("#property-' . $property->id . '-map-container").height());
property_' . $property->id . '_lmap.invalidateSize();
}
function property' . $property->id . 'search()
{
var address = $("#property-' . $property->id . '-search input").val();
$.getJSON("http://services.gisgraphy.com/geocoding/geocode?format=json&callback=?&address="+address, function(data)
{
if(!data.result || data.result.length < 1)
alert("Geocode was not successful for the following reason: " + status);
else
{
property_' . $property->id . '_lmap.setView([data.result[0].lat, data.result[0].lng], 19);
}
});
return false;
}
');
break;
case 'text':
foreach ($langs as $lang) {
if (!is_array($property->value)) {
$ovalue = $property->value;
$property->value = array();
foreach ($langs as $lang_value) {
$property->value[$lang_value] = $ovalue;
}
}
$language_info = '<span class="navigate-form-row-language-info" title="' . language::name_by_code($lang) . '"><img src="img/icons/silk/comment.png" align="absmiddle" />' . $lang . '</span>';
$field[] = '<div class="navigate-form-row" nv_property="' . $property->id . '" lang="' . $lang . '">';
$field[] = '<label>' . $property_name . ' ' . $language_info . '</label>';
$field[] = $naviforms->textfield("property-" . $property->id . "-" . $lang, $property->value[$lang]);
if (!empty($property->helper)) {
$helper_text = $property->helper;
if (!empty($object)) {
$helper_text = $object->t($helper_text);
}
$field[] = '<div class="subcomment">' . $helper_text . '</div>';
}
$field[] = '</div>';
}
break;
case 'textarea':
foreach ($langs as $lang) {
if (!is_array($property->value)) {
$ovalue = $property->value;
$property->value = array();
foreach ($langs as $lang_value) {
$property->value[$lang_value] = $ovalue;
}
}
$style = "";
if (!empty($property->width)) {
$style = ' width: ' . $property->width . 'px; ';
}
$language_info = '<span class="navigate-form-row-language-info" title="' . language::name_by_code($lang) . '"><img src="img/icons/silk/comment.png" align="absmiddle" />' . $lang . '</span>';
if ($property->multilanguage == 'false') {
$language_info = '';
}
$field[] = '<div class="navigate-form-row" nv_property="' . $property->id . '" lang="' . $lang . '">';
$field[] = '<label>' . $property_name . ' ' . $language_info . '</label>';
示例8: feeds_form
function feeds_form($item)
{
global $user;
global $DB;
global $website;
global $layout;
$navibars = new navibars();
$naviforms = new naviforms();
$layout->navigate_media_browser();
// we can use media browser in this function
if (empty($item->id)) {
$navibars->title(t(326, 'Feeds') . ' / ' . t(38, 'Create'));
} else {
$navibars->title(t(326, 'Feeds') . ' / ' . t(170, 'Edit') . ' [' . $item->id . ']');
}
$navibars->add_actions(array('<a href="#" onclick="javascript: navigate_media_browser();"><img height="16" align="absmiddle" width="16" src="img/icons/silk/images.png"> ' . t(36, 'Media') . '</a>'));
if (empty($item->id)) {
$navibars->add_actions(array('<a href="#" onclick="navigate_tabform_submit(1);"><img height="16" align="absmiddle" width="16" src="img/icons/silk/accept.png"> ' . t(34, 'Save') . '</a>'));
} else {
$navibars->add_actions(array('<a href="#" onclick="navigate_tabform_submit(1);"><img height="16" align="absmiddle" width="16" src="img/icons/silk/accept.png"> ' . t(34, 'Save') . '</a>', '<a href="#" onclick="navigate_delete_dialog();"><img height="16" align="absmiddle" width="16" src="img/icons/silk/cancel.png"> ' . t(35, 'Delete') . '</a>'));
$delete_html = array();
$delete_html[] = '<div id="navigate-delete-dialog" class="hidden">' . t(57, 'Do you really want to delete this item?') . '</div>';
$delete_html[] = '<script language="javascript" type="text/javascript">';
$delete_html[] = 'function navigate_delete_dialog()';
$delete_html[] = '{';
$delete_html[] = '$("#navigate-delete-dialog").removeClass("hidden");';
$delete_html[] = '$("#navigate-delete-dialog").dialog({
resizable: true,
height: 150,
width: 300,
modal: true,
title: "' . t(59, 'Confirmation') . '",
buttons: {
"' . t(58, 'Cancel') . '": function() {
$(this).dialog("close");
},
"' . t(35, 'Delete') . '": function() {
$(this).dialog("close");
window.location.href = "?fid=' . $_REQUEST['fid'] . '&act=4&id=' . $item->id . '";
}
}
});';
$delete_html[] = '}';
$delete_html[] = '</script>';
$navibars->add_content(implode("\n", $delete_html));
}
$navibars->add_actions(array(!empty($item->id) ? '<a href="?fid=feeds&act=2"><img height="16" align="absmiddle" width="16" src="img/icons/silk/add.png"> ' . t(38, 'Create') . '</a>' : '', '<a href="?fid=feeds&act=0"><img height="16" align="absmiddle" width="16" src="img/icons/silk/application_view_list.png"> ' . t(39, 'List') . '</a>', 'search_form'));
$navibars->form();
$navibars->add_tab(t(43, "Main"));
$navibars->add_tab_content($naviforms->hidden('form-sent', 'true'));
$navibars->add_tab_content($naviforms->hidden('id', $item->id));
$navibars->add_tab_content_row(array('<label>ID</label>', '<span>' . (!empty($item->id) ? $item->id : t(52, '(new)')) . '</span>'));
$navibars->add_tab_content_row(array('<label>' . t(331, 'Format') . '</label>', $naviforms->selectfield('format', array(0 => 'RSS2.0', 1 => 'RSS0.91', 2 => 'ATOM', 3 => 'ATOM0.3', 4 => 'OPML', 5 => 'MBOX', 6 => 'HTML'), array(0 => 'RSS 2.0 (' . t(333, 'Recommended') . ')', 1 => 'RSS 0.91', 2 => 'ATOM', 3 => 'ATOM 0.3', 4 => 'OPML', 5 => 'mBox', 6 => 'HTML'), $item->format)));
$navibars->add_tab_content_row(array('<label>' . t(335, 'Entries') . '</label>', $naviforms->selectfield('entries', array(0 => 10, 1 => 15, 2 => 20, 3 => 25, 4 => 50), array(0 => 10, 1 => 15, 2 => 20, 3 => 25, 4 => 50), $item->entries)));
$navibars->add_tab_content_row(array('<label>' . t(336, 'Display') . '</label>', $naviforms->selectfield('content', array(0 => 'title', 1 => 'resume', 2 => 'content'), array(0 => t(67, 'Title'), 1 => t(337, 'Summary'), 2 => t(9, 'Content')), $item->content)));
$navibars->add_tab_content_row(array('<label>' . t(157, 'Image') . '</label>', $naviforms->dropbox('image', $item->image, 'image')));
$navibars->add_tab_content_row(array('<label>' . t(68, 'Status') . '</label>', $naviforms->selectfield('permission', array(0 => 0, 1 => 1, 2 => 2), array(0 => t(69, 'Published'), 1 => t(70, 'Private'), 2 => t(81, 'Hidden')), $item->permission, '', false, array(0 => t(360, 'Visible to everybody'), 1 => t(359, 'Visible only to Navigate CMS users'), 2 => t(358, 'Hidden to everybody')))));
$navibars->add_tab_content_row(array('<label>' . t(65, 'Enabled') . '</label>', $naviforms->checkbox('enabled', $item->enabled)));
$navibars->add_tab_content_row(array('<label>' . t(332, 'Views') . '</label>', intval($item->views)));
$navibars->add_tab(t(54, "Text") . ' / ' . t(74, "Paths"));
$lang_selector = array();
$lang_selector[] = '<div class="buttonset">';
$checked = ' checked="checked" ';
foreach ($website->languages_list as $lang_code) {
$lang_selector[] = '<input type="radio" id="language_selector_' . $lang_code . '" name="language_selector" value="' . $lang_code . '" ' . $checked . ' />
<label for="language_selector_' . $lang_code . '" onclick="navigate_feeds_select_language(\'' . $lang_code . '\');">' . language::name_by_code($lang_code) . '</label>';
$checked = "";
}
$lang_selector[] = '</div>';
$navibars->add_tab_content_row(array('<label>' . t(63, 'Languages') . '</label>', implode("\n", $lang_selector)));
foreach ($website->languages_list as $lang_code) {
$navibars->add_tab_content('<div class="language_fields" id="language_fields_' . $lang_code . '" style=" display: none; ">');
$navibars->add_tab_content_row(array('<label>' . t(67, 'Title') . '</label>', $naviforms->textfield('title-' . $lang_code, @$item->dictionary[$lang_code]['title'])));
$open_live_site = '';
if (!empty($item->paths[$lang_code])) {
$open_live_site = ' <a target="_blank" href="' . $website->absolute_path(true) . $item->paths[$lang_code] . '"><img src="img/icons/silk/world_go.png" align="absmiddle" /></a>';
}
$navibars->add_tab_content_row(array('<label>' . t(75, 'Path') . $open_live_site . '</label>', $naviforms->textfield('path-' . $lang_code, @$item->paths[$lang_code], NULL, 'navigate_feeds_path_check(this);'), '<span> </span>'));
$navibars->add_tab_content_row(array('<div class="subcomment"><span class="ui-icon ui-icon-info" style=" float: left; margin-left: -3px; "></span>
' . t(83, 'Leave blank to disable this item') . '</div>'));
$navibars->add_tab_content_row(array('<label>' . t(334, 'Description') . '</label>', $naviforms->textarea('description-' . $lang_code, @$item->dictionary[$lang_code]['description'])));
$navibars->add_tab_content('</div>');
}
$layout->add_script('
function navigate_feeds_select_language(code)
{
$(".language_fields").css("display", "none");
$("#language_fields_" + code).css("display", "block");
}
var active_languages = ["' . implode('", "', $website->languages_list) . '"];
var last_check = [];
function navigate_feeds_path_generate(el)
{
var language = $(el).attr("id").substr(5);
var surl = "";
surl = "/" + language;
var title = $("#title-"+language).val();
title = title.replace(/([\'"“”«»?:\\+\\&!¿#\\\\])/g, "");
//.........这里部分代码省略.........
示例9: files_item_properties
//.........这里部分代码省略.........
<script language="javascript" type="text/javascript">
function navigate_pixlr_edit()
{
pixlr.overlay.show({
service: "editor",
loc: "' . $user->language . '",
image:"' . NAVIGATE_DOWNLOAD . '?id=' . $item->id . '&disposition=inline&sid=' . session_id() . '&seed=" + new Date().getTime(),
title: "' . $item->name . '",
target: "' . NAVIGATE_URL . '/navigate_upload.php?wid=' . $website->id . '&engine=pixlr&id=' . $item->id . '&session_id=' . session_id() . '&seed=" + + new Date().getTime(),
exit: "' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=' . $_REQUEST['fid'] . '&act=pixlr_exit&id=' . $item->id . '&ts=" + + new Date().getTime(),
credentials: true,
method: "GET",
referrer: "Navigate CMS",
icon: "' . NAVIGATE_URL . '/img/navigate-isotype-16x16.png",
locktitle: true,
locktype: "png",
redirect: "' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=' . $_REQUEST['fid'] . '&act=pixlr_exit&id=' . $item->id . '&ts=" + + new Date().getTime()
});
// add a close button
var close_button = $(\'<a href="#"><span class="fa-stack"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-close fa-stack-1x fa-inverse"></i></span></a>\');
close_button.css({
"position": "absolute",
"right": "-20px",
"top": "-20px",
"font-size": "20px",
"color": "#222"
});
close_button.on("click", function()
{
pixlr.overlay.hide();
$("#image-preview").attr("src", $("#image-preview").attr("src") + "&refresh=" + new Date().getTime());
});
$("div:last").prepend(close_button);
}
</script>
<a href="#" class="button" onclick="navigate_pixlr_edit();"><img src="' . NAVIGATE_URL . '/img/logos/pixlr.png" width="100px" height="42px" /></a>
'));
$navibars->add_tab_content_row(array('<label>' . t(274, 'Preview') . '</label>', '<div><img id="image-preview" src="' . $website_root . '?id=' . $item->id . '&disposition=inline&seed=' . core_time() . '" width="400px" /></div>'));
$navibars->add_tab_content_row(array('<label> </label>' . '<button onclick="navigate_media_browser_focalpoint(' . $item->id . '); return false;"><img src="img/icons/silk/picture-measurement.png" align="absmiddle"> ' . t(540, 'Focal point') . '</button>'));
$navibars->add_tab(t(334, 'Description'));
$website_languages_selector = $website->languages();
$website_languages_selector = array_merge(array('' => '(' . t(443, 'All') . ')'), $website_languages_selector);
$navibars->add_tab_content_row(array('<label>' . t(63, 'Languages') . '</label>', $naviforms->buttonset('files_description_language_selector', $website_languages_selector, '', "navigate_tabform_language_selector(this);")));
foreach ($website->languages_list as $lang) {
$language_info = '<span class="navigate-form-row-language-info" title="' . language::name_by_code($lang) . '"><img src="img/icons/silk/comment.png" align="absmiddle" />' . $lang . '</span>';
$navibars->add_tab_content_row(array('<label>' . t(67, 'Title') . ' ' . $language_info . '</label>', $naviforms->textfield('title-' . $lang, @$item->title[$lang])), '', 'lang="' . $lang . '"');
$navibars->add_tab_content_row(array('<label>' . t(334, 'Description') . ' ' . $language_info . '</label>', $naviforms->textfield('description-' . $lang, @$item->description[$lang])), '', 'lang="' . $lang . '"');
}
} else {
if ($item->type == 'video') {
$navibars->add_tab(t(272, "Video"));
/*
$navibars->add_tab_content_row(array( '<label>'.t(272, 'Video').'</label>',
'<div id="video_'.$item->id.'" style="display:block;width:640px;height:360px;float:left;" class="video">',
'<video controls="controls">',
' <source src="'.NAVIGATE_DOWNLOAD.'?wid='.$website->id.'&id='.$item->id.'&disposition=inline" type="'.$item->mime.'" />',
'</video>',
'</div>'
));
$layout->add_script('
$("#video_'.$item->id.' video").mediaelementplayer(
{
pluginPath: "'.NAVIGATE_URL.'/lib/external/mediaelement/"
});
');
*/
$navibars->add_tab_content_row(array('<label>' . t(272, 'Video') . '</label>', '<div id="video_' . $item->id . '" style="display:block;width:640px;height:360px;float:left;" class="video">
<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
</div>', '<script language="javascript" type="text/javascript" src="http://bitcast-b.bitgravity.com/player/6/functions.js"></script>'));
$layout->add_script('
var flashvars = {};
flashvars.AutoPlay = "false";
flashvars.File = "' . urlencode(NAVIGATE_DOWNLOAD . '?wid=' . $website->id . '&id=' . $item->id . '&disposition=inline') . '";
flashvars.Mode = "ondemand";
var params = {};
params.allowFullScreen = "true";
params.allowScriptAccess = "always";
var attributes = {};
attributes.id = "bitgravity_player_6";
swfobject.embedSWF(stablerelease, "video_' . $item->id . '", "640", "360", "9.0.115", "http://bitcast-b.bitgravity.com/player/expressInstall.swf", flashvars, params, attributes);
');
} else {
if ($item->type == 'audio') {
$navibars->add_tab(t(31, "Audio"));
$navibars->add_tab_content_row(array('<label>' . t(31, 'Audio') . '</label>', '<div id="audio_' . $item->id . '" style="display:block;float:left;" class="audio">', '<audio controls="controls">', ' <source src="' . NAVIGATE_DOWNLOAD . '?wid=' . $website->id . '&id=' . $item->id . '&disposition=inline" type="' . $item->mime . '" />', '</audio>', '</div>'));
$layout->add_script('
$("#audio_' . $item->id . ' audio").mediaelementplayer(
{
pluginPath: "' . NAVIGATE_URL . '/lib/external/mediaelement/"
});
$("#audio_' . $item->id . '").addClass("ui-state-default");
');
}
}
}
return $navibars->generate();
}
示例10: navigate_media_browser
//.........这里部分代码省略.........
$("#permissions-dialog-webuser-groups-field").hide();
if($("#contextmenu-permissions-dialog").is(":visible"))
{
$("#contextmenu-permissions-dialog").dialog("option", "width", "620");
$("#contextmenu-permissions-dialog").dialog("option", "height", "200");
}
}
}
navigate_permissions_dialog_webuser_groups_visibility(0);
');
$permissions_dialog[] = '<div class="navigate-form-row">';
$permissions_dialog[] = '<label>' . t(80, 'Permission') . '</label>';
$permissions_dialog[] = $naviforms->selectfield('contextmenu-permissions-permission', array(0 => 0, 1 => 1, 2 => 2), array(0 => t(69, 'Published'), 1 => t(70, 'Private'), 2 => t(81, 'Hidden')), 0);
$permissions_dialog[] = '</div>';
$permissions_dialog[] = '<div class="navigate-form-row">';
$permissions_dialog[] = '<label>' . t(65, 'Enabled') . '</label>';
$permissions_dialog[] = $naviforms->checkbox('contextmenu-permissions-enabled', false);
$permissions_dialog[] = '</div>';
$this->add_content('
<div id="contextmenu-permissions-dialog" style="display: none;">
' . implode("\n", $permissions_dialog) . '
</div>
');
// title/description(alt) dialog
$description_dialog = array();
$website_languages_selector = $website->languages();
$website_languages_selector = array_merge(array('' => '(' . t(443, 'All') . ')'), $website_languages_selector);
$description_dialog[] = '<div class="navigate-form-row">';
$description_dialog[] = '<label>' . t(63, 'Languages') . '</label>';
$description_dialog[] = $naviforms->buttonset('files_texts_language_selector', $website_languages_selector, '', "navigate_tabform_language_selector(this);");
$description_dialog[] = '</div>';
foreach ($website->languages_list as $lang) {
$language_info = '<span class="navigate-form-row-language-info" title="' . language::name_by_code($lang) . '"><img src="img/icons/silk/comment.png" align="absmiddle" />' . $lang . '</span>';
$description_dialog[] = '<div class="navigate-form-row" lang="' . $lang . '">';
$description_dialog[] = '<label>' . t(67, 'Title') . ' ' . $language_info . '</label>';
$description_dialog[] = $naviforms->textfield('contextmenu-description-dialog-title-' . $lang, "");
$description_dialog[] = '</div>';
$description_dialog[] = '<div class="navigate-form-row" lang="' . $lang . '">';
$description_dialog[] = '<label>' . t(334, 'Description') . ' ' . $language_info . '</label>';
$description_dialog[] = $naviforms->textfield('contextmenu-description-dialog-description-' . $lang, "");
$description_dialog[] = '</div>';
}
$this->add_content('
<div id="contextmenu-description-dialog" style="display: none;">
' . implode("\n", $description_dialog) . '
</div>
');
// plupload
$this->add_content('<div id="navigate-media-browser-files-uploader"></div>');
$this->add_script('
plupload.addI18n(
{
"Select files" : "' . t(142, 'Select files') . '",
"Add files to the upload queue and click the start button." : "' . t(143, 'Add files to the upload queue and click the start button.') . '",
"Filename" : "' . t(144, 'Filename') . '",
"Status" : "' . t(68, 'Status') . '",
"Size" : "' . t(145, 'Size') . '",
"Add files" : "' . t(146, 'Select files') . '",
"Start upload":"' . t(147, 'Start upload') . '",
"Stop current upload" : "' . t(148, 'Stop current upload') . '",
"Start uploading queue" : "' . t(149, 'Start uploading queue') . '",
"Drag files here." : "' . t(150, 'Drag files here.') . '",
"Uploaded %d/%d files": "' . t(338, 'Uploaded %d/%d files') . '",
"N/A": "' . t(339, 'N/A') . '",
"File extension error.": "' . t(340, 'File extension error') . '",
示例11: nvweb_liveedit
function nvweb_liveedit($vars = array())
{
global $website;
global $current;
global $DB;
global $lang;
global $theme;
global $session;
global $webuser;
$out = array();
$url = '';
if (!empty($_SESSION['APP_USER#' . APP_UNIQUE])) {
switch ($current['type']) {
case 'item':
$url = NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=10&act=2&id=' . $current['object']->id . '&tab=2&tab_language=' . $current['lang'] . '&quickedit=true&wid=' . $website->id;
break;
case 'structure':
// load the first item
$DB->query(' SELECT id
FROM nv_items
WHERE category = ' . protect($current['category']) . '
AND permission < 2
AND website = ' . $website->id . '
');
$rs = $DB->first();
$url = NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=10&act=2&id=' . $rs->id . '&tab=2&quickedit=true&wid=' . $website->id;
break;
default:
}
if (empty($lang)) {
$lang = new language();
$lang->load($current['lang']);
}
// add jQuery if has not already been loaded in the template
$includes = array();
if (strpos($vars['nvweb_html'], 'jquery') === false) {
$includes[] = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>';
}
$includes[] = '<script language="javascript" type="text/javascript" src="' . NAVIGATE_URL . '/js/navigate_liveedit.js"></script>';
$includes[] = '<link rel="stylesheet" type="text/css" href="' . NAVIGATE_URL . '/css/tools/navigate_liveedit.css" />';
nvweb_after_body('html', implode("\n", $includes) . "\n");
$comments = comment::pending_count();
// TODO: check user permissions before allowing "Create", "Edit" and other functions
$out[] = '<div id="navigate_liveedit_bar" style="display: none;">';
$out[] = ' <a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '" target="_blank"><img src="' . NAVIGATE_URL . '/img/navigatecms/navigatecms_logo_52x24_white.png" width="52" height="24" /></a>';
$out[] = '
<div>
<ul class="navigate_liveedit_bar_menu">
<li><a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=blocks&act=create" target="_blank"><img src="' . NAVIGATE_URL . '/img/icons/silk/brick.png" /> ' . t(437, 'Block') . '</a></li>
<li><a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=structure&act=create" target="_blank"><img src="' . NAVIGATE_URL . '/img/icons/silk/sitemap_color.png" /> ' . t(479, 'Structure entry') . '</a></li>
<li><a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=items&act=create" target="_blank"><img src="' . NAVIGATE_URL . '/img/icons/silk/page.png" /> ' . t(180, 'Item') . '</a></li>
</ul>
<a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=items&act=create" target="_blank"><img src="' . NAVIGATE_URL . '/img/icons/silk/page_add.png" /> ' . t(38, 'Create') . '</a>
</div>
';
$out[] = ' <a href="' . NAVIGATE_URL . '/' . NAVIGATE_MAIN . '?fid=comments" target="_blank"><img src="' . NAVIGATE_URL . '/img/icons/silk/comments.png" /> ' . $comments . '</a>';
//$out[] = ' <div id="navigate_liveedit_bar_liveedit_button"><img src="'.NAVIGATE_URL.'/img/icons/silk/shape_square_select.png" /> '.t(458, 'Edit in place').'</div>';
$out[] = ' <div id="navigate_liveedit_bar_hide_button" style=" float: right; " title="' . t(554, 'Hide') . '">x</div>';
if (!empty($url)) {
$out[] = '<a style="float: right;" href="' . $url . '" target="_blank">
<img src="' . NAVIGATE_URL . '/img/icons/silk/application_double.png" />
' . t(456, 'Edit in Navigate CMS') . '
</a>';
}
$out[] = ' <div id="navigate_liveedit_bar_information_button" style=" float: right; "><img src="' . NAVIGATE_URL . '/img/icons/silk/information.png" /> ' . t(457, 'Information') . '</div>';
$page_type = array('item' => t(180, 'Item'), 'structure' => t(16, 'Structure'));
$page_type = $page_type[$current['type']];
$out[] = ' <div id="navigate_liveedit_bar_information">';
$out[] = ' <span>' . t(368, 'Theme') . ' <strong>' . $theme->title . '</strong></span>';
$out[] = ' <span>' . t(79, 'Template') . ' <strong>' . $theme->template_title($current['template'], false) . '</strong></span>';
$out[] = ' <span>' . t(160, 'Type') . ' <strong>' . $page_type . '</strong></span>';
$out[] = ' <span>ID <strong>' . $current['id'] . '</strong></span>';
$out[] = ' <span>' . t(46, 'Language') . ' <strong>' . language::name_by_code($session['lang']) . '</strong></span>';
$out[] = ' <span>' . t(647, 'Webuser') . ' <strong>' . (empty($webuser->id) ? '(' . mb_strtolower(t(581, "None")) . ')' : $webuser->username . ' (' . $webuser->id . ')') . '</strong></span>';
/* elements associated to this structure entry
if($current['type']=='structure')
{
if(empty($current['structure_elements']))
$current['structure_elements'] = $current['object']->elements();
$se_ids = array();
for($se=0; $se < count($current['structure_elements']); $se++)
$se_ids[] = $current['structure_elements'][$se]->id;
if(!empty($se_ids))
$out[] = ' <span>'.t(22, 'Elements').' <strong>'.implode(', ', $se_ids).'</strong></span>';
}
*/
$out[] = ' </div>';
$out[] = '</div>';
}
return implode("\n", $out);
}
示例12: structure_form
//.........这里部分代码省略.........
if (empty($item->template) && isset($_GET['template'])) {
$item->template = $_GET['template'];
}
$templates = template::elements('structure');
$template_select = $naviforms->select_from_object_array('template', $templates, 'id', 'title', $item->template);
$navibars->add_tab_content_row(array('<label>' . t(79, 'Template') . '</label>', $template_select));
$navibars->add_tab_content_row(array('<label>' . t(85, 'Date published') . '</label>', $naviforms->datefield('date_published', $item->date_published, true)));
$navibars->add_tab_content_row(array('<label>' . t(90, 'Date unpublished') . '</label>', $naviforms->datefield('date_unpublish', $item->date_unpublish, true)));
$navibars->add_tab_content_row(array('<label>' . t(364, 'Access') . '</label>', $naviforms->selectfield('access', array(0 => 0, 1 => 2, 2 => 1, 3 => 3), array(0 => t(254, 'Everybody'), 1 => t(362, 'Not signed in'), 2 => t(361, 'Web users only'), 3 => t(512, 'Selected web user groups')), $item->access, 'navigate_webuser_groups_visibility($(this).val());', false, array(1 => t(363, 'Users who have not yet signed in')))));
$webuser_groups = webuser_group::all_in_array();
$navibars->add_tab_content_row(array('<label>' . t(506, "Groups") . '</label>', $naviforms->multiselect('groups', array_keys($webuser_groups), array_values($webuser_groups), $item->groups)), 'webuser-groups-field');
$layout->add_script('
function navigate_webuser_groups_visibility(access_value)
{
if(access_value==3)
$("#webuser-groups-field").show();
else
$("#webuser-groups-field").hide();
}
navigate_webuser_groups_visibility(' . $item->access . ');
');
$navibars->add_tab_content_row(array('<label>' . t(68, 'Status') . '</label>', $naviforms->selectfield('permission', array(0 => 0, 1 => 1, 2 => 2), array(0 => t(69, 'Published'), 1 => t(70, 'Private'), 2 => t(81, 'Hidden')), $item->permission, '', false, array(0 => t(360, 'Visible to everybody'), 1 => t(359, 'Visible only to Navigate CMS users'), 2 => t(358, 'Hidden to everybody')))));
$navibars->add_tab_content_row(array('<label>' . t(283, 'Shown in menus') . '</label>', $naviforms->checkbox('visible', $item->visible)));
if ($item->views > 0) {
$navibars->add_tab_content_row(array('<label>' . t(280, 'Page views') . '</label>', $item->views));
}
$navibars->add_tab(t(54, "Text") . ' / ' . t(74, "Paths"));
$lang_selector = array();
$lang_selector[] = '<div class="buttonset">';
$checked = ' checked="checked" ';
foreach ($website->languages_list as $lang_code) {
$lang_selector[] = '<input type="radio" id="language_selector_' . $lang_code . '" name="language_selector" value="' . $lang_code . '" ' . $checked . ' />
<label for="language_selector_' . $lang_code . '" onclick="navigate_structure_select_language(\'' . $lang_code . '\');">' . language::name_by_code($lang_code) . '</label>';
$checked = "";
}
$lang_selector[] = '</div>';
$navibars->add_tab_content_row(array('<label>' . t(63, 'Languages') . '</label>', implode("\n", $lang_selector)));
foreach ($website->languages_list as $lang_code) {
$navibars->add_tab_content('<div class="language_fields" id="language_fields_' . $lang_code . '" style=" display: none; ">');
$navibars->add_tab_content_row(array('<label>' . t(67, 'Title') . '</label>', $naviforms->textfield('title-' . $lang_code, @$item->dictionary[$lang_code]['title'])));
$open_live_site = '';
if (!empty($item->paths[$lang_code])) {
$open_live_site = ' <a target="_blank" href="' . $website->absolute_path(true) . $item->paths[$lang_code] . '"><img src="img/icons/silk/world_go.png" align="absmiddle" /></a>';
}
$navibars->add_tab_content_row(array('<label>' . t(75, 'Path') . $open_live_site . '</label>', $naviforms->textfield('path-' . $lang_code, @$item->paths[$lang_code], NULL, 'navigate_structure_path_check(this);'), '<span> </span>'));
/*
$navibars->add_tab_content_row(array( '<label> </label>',
'<div class="subcomment"><sup>*</sup> '.t(83, 'Leave blank to disable this item').'</div>',
));
*/
$navibars->add_tab_content_row(array('<label>' . t(172, 'Action') . '</label>', $naviforms->selectfield('action-type-' . $lang_code, array(0 => 'url', 1 => 'jump-branch', 2 => 'jump-item', 3 => 'do-nothing'), array(0 => t(173, 'Open URL'), 1 => t(322, 'Jump to another branch'), 2 => t(323, 'Jump to an element'), 3 => t(183, 'Do nothing')), $item->dictionary[$lang_code]['action-type'], "navigate_structure_action_change('" . $lang_code . "', this);")));
// load item title if action was "jump to an element"
$jump_item_id = '';
$jump_item_title = '';
if (!empty($item->dictionary[$lang_code]['action-jump-item'])) {
$tmp = new Item();
$tmp->load($item->dictionary[$lang_code]['action-jump-item']);
$jump_item_title = array($tmp->dictionary[$lang_code]['title']);
$jump_item_id = array($item->dictionary[$lang_code]['action-jump-item']);
}
$navibars->add_tab_content_row(array('<label>' . t(180, 'Item') . ' [' . t(67, 'Title') . ']</label>', $naviforms->selectfield('action-jump-item-' . $lang_code, $jump_item_id, $jump_item_title, $item->dictionary[$lang_code]['action-jump-item'], null, false, null, null, false), '<div class="subcomment"><span class="ui-icon ui-icon-info" style=" float: left; margin-left: -3px; "></span> ' . t(534, "You can only select elements which have their own path (no category embedded elements)") . '</div>'));
$categories_list = structure::hierarchyList($hierarchy, $item->dictionary[$lang_code]['action-jump-branch'], $lang_code);
$navibars->add_tab_content_row(array('<label>' . t(325, 'Branch') . '</label>', '<div class="category_tree" id="category_tree_jump_branch_' . $lang_code . '">
<img src="img/icons/silk/world.png" align="absmiddle" /> ' . $website->name . '<div class="category_tree_ul">' . $categories_list . '</div>' . '</div>', $naviforms->hidden('action-jump-branch-' . $lang_code, $item->dictionary[$lang_code]['action-jump-branch'])));
$navibars->add_tab_content_row(array('<label>' . t(324, 'New window') . '</label>', $naviforms->checkbox('action-new-window-' . $lang_code, $item->dictionary[$lang_code]['action-new-window'])));