<commit_before>{title help="Quicktags"}{tr}Admin Quicktags{/tr}{/title}
<div class="quicktags-admin clearfix">
	<form method="post" action="tiki-admin_quicktags.php" onsubmit="return saveRows()">
		<div>
			<label>{tr}Section{/tr}:</label>
			<select name="section" onchange="this.form.submit()">
				{foreach from=$sections item=name}
					<option{if $name eq $loaded} selected="selected"{/if}>{$name|escape}</option>
				{/foreach}
			</select>
			<label>{tr}Comments{/tr}:</label>
			<input name="comments" type="checkbox" onchange="this.form.submit()" {if $comments eq 'on'}checked{/if}/>
			{if $prefs.javascript_enabled eq 'n'}<input name="load" type="submit" value="{tr}Load{/tr}"/>{/if}
			<input type="submit" name="save" value="{tr}Save{/tr}"/>
			{if $loaded neq 'global' }<input type="submit" name="reset" value="{tr}Reset to Global{/tr}"/>{/if}
		</div>
	<div class="rows">
		{foreach from=$current item=line name=line}
			<label for="row-{$smarty.foreach.line.iteration|escape}">{tr}Row{/tr}&nbsp;{$smarty.foreach.line.iteration}:</label>
			<ul id="row-{$smarty.foreach.line.iteration|escape}" class="row">
			{foreach from=$line item=tool}
				<li class="{$qtelement[$tool].class}">{$qtelement[$tool].html}</li>
			{/foreach}
			</ul>
			{if $smarty.foreach.line.last and $rowCount gt 1}
				{assign var=total value=`$smarty.foreach.line.total+1`}
			<label for="row-{$total|escape}">{tr}Row{/tr}&nbsp;{$total}:</label>
				<ul id="row-{$total|escape}" class="row">
			{/if}
		{/foreach}
	</div>
	<input id="qt-form-field" type="hidden" name="pref" value=""/>
	<div class="rows">
		<label for="#full-list">{tr}All Quicktags:{/tr}</label><br/>
		{if $prefs.feature_jquery eq 'y'}<div id="qt_filter_div">
			{tr}Filters{/tr}:
			<input id="qt-wiki-filter" class="qt-filter" type="checkbox" checked /><label>{tr}Wiki{/tr}</label>
			<input id="qt-wys-filter" class="qt-filter" type="checkbox" checked /><label>{tr}WYSIWYG{/tr}</label>
			<input id="qt-plugin-filter" class="qt-filter" type="checkbox" checked /><label>{tr}Plugins{/tr}</label>
		</div>{/if}<commit_msg>[ENH] allow to deactivate the autoreload by adding a checkbox...<commit_after>{title help="Quicktags"}{tr}Admin Quicktags{/tr}{/title}
<script type='text/javascript'>
<!--//--><![CDATA[//><!--
{literal}
	function quicktags_autoreload() {
		if (document.forms['quicktags'].elements['autoreload'].checked) {
			document.forms['quicktags'].submit();
		}
	}
{/literal}
//--><!]]>
</script>
<div class="quicktags-admin clearfix">
	<form name="quicktags" method="post" action="tiki-admin_quicktags.php" onsubmit="return saveRows()">
		<div>
			<label>{tr}Section{/tr}:</label>
			<select name="section" onchange="javascript:quicktags_autoreload()">
				{foreach from=$sections item=name}
					<option{if $name eq $loaded} selected="selected"{/if}>{$name|escape}</option>
				{/foreach}
			</select>
			<label for="autoreload">{tr}Auto Reloading{/tr}:</label>
			<input id="autoreload" name="autoreload" type="checkbox" checked="checked"/>
			<label>{tr}Comments{/tr}:</label>
			<input name="comments" type="checkbox" onchange="javascript:quicktags_autoreload()" {if $comments eq 'on'}checked="checked"{/if}/>
			{if $prefs.javascript_enabled eq 'n'}<input name="load" type="submit" value="{tr}Load{/tr}"/>{/if}
			<input type="submit" name="save" value="{tr}Save{/tr}"/>
			{if $loaded neq 'global' }<input type="submit" name="reset" value="{tr}Reset to Global{/tr}"/>{/if}
		</div>
	<div class="rows">
		{foreach from=$current item=line name=line}
			<label for="row-{$smarty.foreach.line.iteration|escape}">{tr}Row{/tr}&nbsp;{$smarty.foreach.line.iteration}:</label>
			<ul id="row-{$smarty.foreach.line.iteration|escape}" class="row">
			{foreach from=$line item=tool}
				<li class="{$qtelement[$tool].class}">{$qtelement[$tool].html}</li>
			{/foreach}
			</ul>
			{if $smarty.foreach.line.last and $rowCount gt 1}
				{assign var=total value=`$smarty.foreach.line.total+1`}
			<label for="row-{$total|escape}">{tr}Row{/tr}&nbsp;{$total}:</label>
				<ul id="row-{$total|escape}" class="row">
			{/if}
		{/foreach}
	</div>
	<input id="qt-form-field" type="hidden" name="pref" value=""/>
	<div class="rows">
		<label for="#full-list">{tr}All Quicktags:{/tr}</label><br/>
		{if $prefs.feature_jquery eq 'y'}<div id="qt_filter_div">
			{tr}Filters{/tr}:
			<input id="qt-wiki-filter" class="qt-filter" type="checkbox" checked /><label>{tr}Wiki{/tr}</label>
			<input id="qt-wys-filter" class="qt-filter" type="checkbox" checked /><label>{tr}WYSIWYG{/tr}</label>
			<input id="qt-plugin-filter" class="qt-filter" type="checkbox" checked /><label>{tr}Plugins{/tr}</label>
		</div>{/if}
{'fraction_non_alphanumeric': 0.2342844883072302, 'fraction_numerical': 0.0008581849388543231, 'mean_word_length': 5.547752808988764, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, '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': '504715', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1696, 'n_words': 282}