• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/ui/panel.php
  • Класс: BitrixTranslateUiPanel
  • Вызов: Panel::showLoadedFiles
static function showLoadedFiles()
{
	/**
	 * @global CUser $USER
	 * @global CMain $APPLICATION
	 */
	global $APPLICATION, $USER;

	if (!$USER instanceof CUser || !$USER->isAuthorized())
	{
		return;
	}

	if (!TranslatePermission::canView($USER))
	{
		return;
	}

	if (($_SESSION["SHOW_LANG_FILES"] ?? '') !== 'Y')
	{
		return;
	}

	$request = MainContext::getCurrent()->getRequest();

	// ajax
	if ($request->isAjaxRequest() || $request->get('AJAX_CALL') !== null)
	{
		return;
	}

	$searchString = $request->get('srchlngfil');

	CJSCore::init('admin_interface');
	if (!defined("ADMIN_SECTION"))
	{
		$APPLICATION->setAdditionalCSS('/bitrix/themes/.default/pubstyles.css');
	}

	$popup = new CJSPopupOnPage();
	$popup->jsPopup = self::DIALOG_ID;

	?>
	
	startDescription('bx-translate-search');
	$popup->startContent(array('buffer' => true));


	if(!defined('BX_PUBLIC_MODE'))
	{
		?>
		

$phrase) { if ( $lookForCode && mb_strpos($code, $searchString) !== false || mb_strpos($phrase, $searchString) !== false ) { $found = true; $highlight = "&highlight=". preg_replace("/[^a-z1-9_]+/i", '', $code); $stf .= ''. htmlspecialcharsbx($phrase). '
'; } } } if (!$found) { continue; } } ?>
endContent(); $popup->startButtons(); $popup->showStandardButtons(array('close')); if ($searchString !== null) { ?>