<commit_before>{* $Id$ *}
<div class="tikimenu{if $menu_info.structure eq 'y'} structuremenu{/if}">
	{assign var=opensec value='0'}
	{assign var=sep value=''}

	{foreach key=pos item=chdata from=$menu_channels}
		{assign var=cname value=$menu_info.menuId|cat:'__'|cat:$chdata.position}
		{* ----------------------------- section *}
		{if $chdata.type ne 'o' and $chdata.type ne '-'}

			{if $opensec > 0}
				{assign var=sectionType value=$chdata.type}
				{if $sectionType eq 's' or $sectionType eq 'r'}
					{assign var=sectionType value=0}
				{/if}
				{if $opensec > $sectionType}
					{assign var=m value=$opensec-$sectionType}
					{section loop=$menu_channels name=close max=$m}
						</div>
					{/section}
					{assign var=opensec value=$sectionType}
				{/if}
			{/if}

			<div class="separator{$sep}{if isset($chdata.selected) and $chdata.selected} selected{/if}{if isset($chdata.selectedAscendant) and $chdata.selectedAscendant} selectedAscendant{/if}">
				{if $sep eq 'line'}
					{assign var=sep value=''}
				{/if}
				{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
					{if $prefs.menus_items_icons eq 'y' and $menu_info.use_items_icons eq 'y'}
						<span class="separatoricon-toggle" style="display:inline">
							<a class='separator' href="javascript:toggle('menu{$cname}');">
								{icon _id=$chdata.icon alt="{tr}Toggle{/tr}" _defaultdir=$prefs.menus_items_icons_path}
							</a>
						</span>
						{if $chdata.url and $link_on_section eq 'y'}
							<span class="separatoricon-url" style="display:none">
								<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}">
									{icon _id=$chdata.icon alt="{tr}Toggle{/tr}" _defaultdir=$prefs.menus_items_icons_path}
								</a>
							</span>
						{/if}
					{elseif $prefs.feature_menusfolderstyle eq 'y'}
						{assign var="icon_name" value="icnmenu$cname"}
						<a class='separator' href="javascript:icntoggle('menu{$cname}');" title="{tr}Toggle options{/tr}">
							{if $menu_info.type ne 'd'}
								{if empty($menu_info.icon)}
									{icon _id="ofolder" alt='Toggle' name="$icon_name" id="$icon_name"}
								{else}
									<img src="{$menu_info.oicon|escape}" alt="{tr}Toggle{/tr}" name="{$icon_name}" id="$icon_name">
								{/if}
							{else}
								{if empty($menu_info.icon)}
									{if isset($chdata.open) and $chdata.open}
										{icon _id="ofolder" alt='Toggle' name="$icon_name" id="$icon_name"}
									{else}
										{icon _id="folder" alt='Toggle' name="$icon_name" id="$icon_name"}
									{/if}
								{else}
									{if isset($chdata.open) and $chdata.open}
										<img src="{$menu_info.oicon|escape}" alt="{tr}Toggle{/tr}" name="{$icon_name}" id="$icon_name">
									{else}
										<img src="{$menu_info.icon|escape}" alt="{tr}Toggle{/tr}" name="{$icon_name}" id="$icon_name">
									{/if}
								{/if}
							{/if}
						</a>
					{else}
						<a class='separator' href="javascript:toggle('menu{$cname}');">[-]</a>
					{/if}
				{/if}
				{if $chdata.url and $link_on_section eq 'y'}
					<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}" class="separator">
				{else}
					<a href="javascript:icntoggle('menu{$cname}');" class="separator">
				{/if}
					<span class="menuText">
						{if $translate eq 'n'}
							{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}
						{else}
							{tr}{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}{/tr}
						{/if}
					</span>
				</a>
				{if ($menu_info.type eq 'e' or $menu_info.type eq 'd') and $prefs.feature_menusfolderstyle ne 'y'}
					<a class='separator' href="javascript:toggle('menu{$cname}');">[+]</a>
				{/if}
			</div> {* separator *}

			{assign var=opensec value=$opensec+1}
			{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
				<div class="menuSection" {if !isset($chdata.open) || !$chdata.open}style="display:none;"{else}style="display:block;"{/if} id='menu{$cname}'>
			{else}
				<div class="menuSection">
			{/if}
		{* ----------------------------- option *}
		{elseif $chdata.type eq 'o'}
			<div class="option{$chdata.optionId} option{$sep}{if isset($chdata.selected) and $chdata.selected} selected{/if}">
				<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}" class="linkmenu">
					{if $prefs.menus_items_icons eq 'y' and $menu_info.use_items_icons eq 'y' and ($opensec eq 0 or $chdata.icon neq '')}
						{icon _id=$chdata.icon alt='' _defaultdir=$prefs.menus_items_icons_path}
					{/if}
					<span class="menuText">
						{if $translate eq 'n'}
							{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}
						{else}
							{tr}{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}{/tr}
						{/if}
					</span>
				</a>
			</div>
			{if $sep eq 'line'}
				{assign var=sep value=''}
			{/if}

		{* ----------------------------- separator *}
		{elseif $chdata.type eq '-'}
			{if $opensec > 0}
				</div>{assign var=opensec value=$opensec-1}
			{/if}
			{assign var=sep value="line"}
		{/if}
	{/foreach}

	{if $opensec > 0}
		{section loop=$menu_channels name=close max=$opensec}
			</div>
		{/section}
		{assign var=opensec value=0}
	{/if}
</div>
<commit_msg>[MRG] Automatic merge, branches/14.x 55703 to 55706<commit_after>{* $Id$ *}
<div class="tikimenu{if $menu_info.structure eq 'y'} structuremenu{/if}">
	{assign var=opensec value='0'}
	{assign var=sep value=''}

	{foreach key=pos item=chdata from=$menu_channels}
		{assign var=cname value=$menu_info.menuId|cat:'__'|cat:$chdata.position}
		{* ----------------------------- section *}
		{if $chdata.type ne 'o' and $chdata.type ne '-'}

			{if $opensec > 0}
				{assign var=sectionType value=$chdata.type}
				{if $sectionType eq 's' or $sectionType eq 'r'}
					{assign var=sectionType value=0}
				{/if}
				{if $opensec > $sectionType}
					{assign var=m value=$opensec-$sectionType}
					{section loop=$menu_channels name=close max=$m}
						</div>
					{/section}
					{assign var=opensec value=$sectionType}
				{/if}
			{/if}

			<div class="separator{$sep}{if isset($chdata.selected) and $chdata.selected} selected{/if}{if isset($chdata.selectedAscendant) and $chdata.selectedAscendant} selectedAscendant{/if}">
				{if $sep eq 'line'}
					{assign var=sep value=''}
				{/if}
				{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
					{if $prefs.menus_items_icons eq 'y' and $menu_info.use_items_icons eq 'y'}
						<span class="separatoricon-toggle" style="display:inline">
							<a class='separator' href="javascript:toggle('menu{$cname}');">
								{icon _id=$chdata.icon alt="{tr}Toggle{/tr}" _defaultdir=$prefs.menus_items_icons_path}
							</a>
						</span>
						{if $chdata.url and $link_on_section eq 'y'}
							<span class="separatoricon-url" style="display:none">
								<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}">
									{icon _id=$chdata.icon alt="{tr}Toggle{/tr}" _defaultdir=$prefs.menus_items_icons_path}
								</a>
							</span>
						{/if}
					{elseif $prefs.feature_menusfolderstyle eq 'y'}
						{assign var="icon_name" value="icnmenu$cname"}
						<a class='separator' href="javascript:icntoggle('menu{$cname}');" title="{tr}Toggle options{/tr}">
							{if $menu_info.type ne 'd'}
								{if empty($menu_info.icon)}
									{icon name="file-archive-open" alt='Toggle' id="$icon_name"}
								{else}
									<img src="{$menu_info.oicon|escape}" alt="{tr}Toggle{/tr}" id="{$icon_name}">
								{/if}
							{else}
								{if empty($menu_info.icon)}
									{if isset($chdata.open) and $chdata.open}
										{icon name="file-archive-open" alt='Toggle' name="{$icon_name}" id="$icon_name"}
									{else}
										{icon name="file-archive" alt='Toggle' name="{$icon_name}" id="$icon_name"}
									{/if}
								{else}
									{if isset($chdata.open) and $chdata.open}
										<img src="{$menu_info.oicon|escape}" alt="{tr}Toggle{/tr}" id="$icon_name">
									{else}
										<img src="{$menu_info.icon|escape}" alt="{tr}Toggle{/tr}" id="$icon_name">
									{/if}
								{/if}
							{/if}
						</a>
					{else}
						<a class='separator' href="javascript:toggle('menu{$cname}');">[-]</a>
					{/if}
				{/if}
				{if $chdata.url and $link_on_section eq 'y'}
					<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}" class="separator">
				{else}
					<a href="javascript:icntoggle('menu{$cname}');" class="separator">
				{/if}
					<span class="menuText">
						{if $translate eq 'n'}
							{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}
						{else}
							{tr}{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}{/tr}
						{/if}
					</span>
				</a>
				{if ($menu_info.type eq 'e' or $menu_info.type eq 'd') and $prefs.feature_menusfolderstyle ne 'y'}
					<a class='separator' href="javascript:toggle('menu{$cname}');">[+]</a>
				{/if}
			</div> {* separator *}

			{assign var=opensec value=$opensec+1}
			{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
				<div class="menuSection" {if !isset($chdata.open) || !$chdata.open}style="display:none;"{else}style="display:block;"{/if} id='menu{$cname}'>
			{else}
				<div class="menuSection">
			{/if}
		{* ----------------------------- option *}
		{elseif $chdata.type eq 'o'}
			<div class="option{$chdata.optionId} option{$sep}{if isset($chdata.selected) and $chdata.selected} selected{/if}">
				<a href="{if $prefs.feature_sefurl eq 'y' and !empty($chdata.sefurl)}{$chdata.sefurl|escape}{else}{if $prefs.menus_item_names_raw eq 'n'}{$chdata.url|escape}{else}{$chdata.url}{/if}{/if}" class="linkmenu">
					{if $prefs.menus_items_icons eq 'y' and $menu_info.use_items_icons eq 'y' and ($opensec eq 0 or $chdata.icon neq '')}
						{icon _id=$chdata.icon alt='' _defaultdir=$prefs.menus_items_icons_path}
					{/if}
					<span class="menuText">
						{if $translate eq 'n'}
							{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}
						{else}
							{tr}{if $escape_menu_labels}{$chdata.name|escape}{else}{$chdata.name}{/if}{/tr}
						{/if}
					</span>
				</a>
			</div>
			{if $sep eq 'line'}
				{assign var=sep value=''}
			{/if}

		{* ----------------------------- separator *}
		{elseif $chdata.type eq '-'}
			{if $opensec > 0}
				</div>{assign var=opensec value=$opensec-1}
			{/if}
			{assign var=sep value="line"}
		{/if}
	{/foreach}

	{if $opensec > 0}
		{section loop=$menu_channels name=close max=$opensec}
			</div>
		{/section}
		{assign var=opensec value=0}
	{/if}
</div>

{'fraction_non_alphanumeric': 0.21345791034049053, 'fraction_numerical': 0.002695175635612254, 'mean_word_length': 3.393054459352802, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1050312', 'n_tokens_mistral': 5233, 'n_tokens_neox': 4171, 'n_words': 766}