<commit_before>{title url="tiki-edit_structure.php?page_ref_id=$page_ref_id"}{if $editable == 'y'}{tr}Modify Structure{/tr}{else}{tr}Structure{/tr}{/if}: {$structure_name}{/title}

<div class="navbar">
{button href="tiki-admin_structures.php" _text="{tr}Structures{/tr}"}
</div>

{if $remove eq 'y'}
	{tr}You will remove{/tr} '{$removePageName}' {if $page_removable == 'y'}{tr}and its subpages from the structure, now you have two options:{/tr}{else}{tr}and its subpages from the structure{/tr}{/if}
<ul>
	<li>
		<a class="link"
		   href="tiki-edit_structure.php?page_ref_id={$structure_id}&amp;rremove={$removepage}&amp;page={$removePageName|escape:"url"}">{tr}
			Remove only from structure{/tr}</a>
	</li>
	{if $page_removable == 'y'}
		<li>
			<a class="link"
			   href="tiki-edit_structure.php?page_ref_id={$structure_id}&amp;sremove={$removepage}&amp;page={$removePageName|escape:"url"}">{tr}
				Remove from structure and remove page too{/tr}</a>
		</li>
	{/if}
</ul>
<br/>
{/if}

{if $alert_exists eq 'y'}
<strong>{tr}The page already exists. The page that has been added to the structure is the existing one.{/tr}</strong>
<br/>
{/if}

{if count($alert_in_st) > 0}
	{tr}Note that the following pages are also part of another structure. Make sure that access permissions (if any) do not conflict:{/tr}
	{foreach from=$alert_in_st item=thest}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thest|escape:"url"}' target="_blank">{$thest}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_categorized) > 0}
	{tr}The following pages added have automatically been categorized with the same categories as the structure:{/tr}
	{foreach from=$alert_categorized item=thecat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thecat|escape:"url"}' target="_blank">{$thecat}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_to_remove_cats) > 0}
	{tr}The following pages have categories but the structure has none. You may wish to uncategorize them to be consistent:{/tr}
	{foreach from=$alert_to_remove_cats item=thecat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thecat|escape:"url"}' target="_blank">{$thecat}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_to_remove_extra_cats) > 0}
	{tr}The following pages are in categories that the structure is not in. You may wish to recategorize them in order to be consistent:{/tr}
	{foreach from=$alert_to_remove_extra_cats item=theextracat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$theextracat|escape:"url"}'
				   target="_blank">{$theextracat}</a>
	{/foreach}
<br/>
<br/>
{/if}

<h2>{tr}Structure Layout{/tr}</h2>
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _ajax="n" _auto_args="save_structure,page_ref_id"}
{self_link page_ref_id=$structure_id}
	{if $structure_id eq $page_ref_id}<strong>{/if}
	<big>{tr}Top{/tr}</big>
	{if $structure_id eq $page_ref_id}</strong>
	{/if}
{/self_link}
<form action="tiki-edit_structure.php" method="post" style="display: inline-block; margin-left: 1em;">
	<input type="hidden" name="page_ref_id" value="{$structure_id}">
	<label for="pageAlias">{tr}Alias:{/tr}</label></td>
	<input type="text" name="pageAlias" id="pageAlias" value="{$topPageAlias}">
	<small><input type="submit" name="create" value="{tr}Update{/tr}"></small>
</form>
<div class="structure-container">
	{$nodelist}
</div>
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _ajax="n" _auto_args="save_structure,page_ref_id"}

{if $editable == 'y'}
	<form action="tiki-edit_structure.php" method="post">
		<h3>{tr}Add pages{/tr}</h3>
		<input type="hidden" name="page_ref_id" value="{$page_ref_id}"><commit_msg>[FIX] Unused tag<commit_after>{title url="tiki-edit_structure.php?page_ref_id=$page_ref_id"}{if $editable == 'y'}{tr}Modify Structure{/tr}{else}{tr}Structure{/tr}{/if}: {$structure_name}{/title}

<div class="navbar">
{button href="tiki-admin_structures.php" _text="{tr}Structures{/tr}"}
</div>

{if $remove eq 'y'}
	{tr}You will remove{/tr} '{$removePageName}' {if $page_removable == 'y'}{tr}and its subpages from the structure, now you have two options:{/tr}{else}{tr}and its subpages from the structure{/tr}{/if}
<ul>
	<li>
		<a class="link"
		   href="tiki-edit_structure.php?page_ref_id={$structure_id}&amp;rremove={$removepage}&amp;page={$removePageName|escape:"url"}">{tr}
			Remove only from structure{/tr}</a>
	</li>
	{if $page_removable == 'y'}
		<li>
			<a class="link"
			   href="tiki-edit_structure.php?page_ref_id={$structure_id}&amp;sremove={$removepage}&amp;page={$removePageName|escape:"url"}">{tr}
				Remove from structure and remove page too{/tr}</a>
		</li>
	{/if}
</ul>
<br/>
{/if}

{if $alert_exists eq 'y'}
<strong>{tr}The page already exists. The page that has been added to the structure is the existing one.{/tr}</strong>
<br/>
{/if}

{if count($alert_in_st) > 0}
	{tr}Note that the following pages are also part of another structure. Make sure that access permissions (if any) do not conflict:{/tr}
	{foreach from=$alert_in_st item=thest}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thest|escape:"url"}' target="_blank">{$thest}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_categorized) > 0}
	{tr}The following pages added have automatically been categorized with the same categories as the structure:{/tr}
	{foreach from=$alert_categorized item=thecat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thecat|escape:"url"}' target="_blank">{$thecat}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_to_remove_cats) > 0}
	{tr}The following pages have categories but the structure has none. You may wish to uncategorize them to be consistent:{/tr}
	{foreach from=$alert_to_remove_cats item=thecat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$thecat|escape:"url"}' target="_blank">{$thecat}</a>
	{/foreach}
<br/>
<br/>
{/if}

{if count($alert_to_remove_extra_cats) > 0}
	{tr}The following pages are in categories that the structure is not in. You may wish to recategorize them in order to be consistent:{/tr}
	{foreach from=$alert_to_remove_extra_cats item=theextracat}
	&nbsp;&nbsp;<a class='tablename' href='tiki-index.php?page={$theextracat|escape:"url"}'
				   target="_blank">{$theextracat}</a>
	{/foreach}
<br/>
<br/>
{/if}

<h2>{tr}Structure Layout{/tr}</h2>
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _ajax="n" _auto_args="save_structure,page_ref_id"}
{self_link page_ref_id=$structure_id}
	{if $structure_id eq $page_ref_id}<strong>{/if}
	<big>{tr}Top{/tr}</big>
	{if $structure_id eq $page_ref_id}</strong>
	{/if}
{/self_link}
<form action="tiki-edit_structure.php" method="post" style="display: inline-block; margin-left: 1em;">
	<input type="hidden" name="page_ref_id" value="{$structure_id}">
	<label for="pageAlias">{tr}Alias:{/tr}</label>
	<input type="text" name="pageAlias" id="pageAlias" value="{$topPageAlias}">
	<small><input type="submit" name="create" value="{tr}Update{/tr}"></small>
</form>
<div class="structure-container">
	{$nodelist}
</div>
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _ajax="n" _auto_args="save_structure,page_ref_id"}

{if $editable == 'y'}
	<form action="tiki-edit_structure.php" method="post">
		<h3>{tr}Add pages{/tr}</h3>
		<input type="hidden" name="page_ref_id" value="{$page_ref_id}">
{'fraction_non_alphanumeric': 0.19628826876185315, 'fraction_numerical': 0.002438363587103766, 'mean_word_length': 6.837579617834395, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 118, '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': '7200794', 'n_tokens_mistral': 2845, 'n_tokens_neox': 2761, 'n_words': 581}