<commit_before><?php
/**
 * @package OnlinePublisher
 * @subpackage Tools.Sites
 */
require_once '../../../Config/Setup.php';
require_once '../../Include/Security.php';
require_once '../../Classes/In2iGui.php';
require_once '../../Classes/Template.php';
require_once '../../Classes/Design.php';
require_once '../../Classes/Frame.php';

$designItems='';
$designs = Design::search();
foreach ($designs as $design) {
	$designItems.='<item title="'.In2iGui::escape($design->getTitle()).'" image="../../../style/'.$design->getUnique().'/info/Preview128.png" value="'.$design->getId().'"/>';
}

$frameItems='';
$frames = Frame::search();
foreach ($frames as $frame) {
	$frameItems.='<item icon="common/settings" title="'.In2iGui::escape($frame->getName()).'" value="'.$frame->getId().'"/>';
}

$templateItems='';
$templates = Template::getInstalledTemplates();
foreach ($templates as $template) {
	$templateItems.='<item title="'.$template['unique'].'" image="../../Template/'.$template['unique'].'/thumbnail128.jpg" value="'.$template['id'].'"/>';
}

$gui='
<gui xmlns="uri:In2iGui" title="Sites" padding="10">
	<controller source="controller.js"/>
	<source name="pageListSource" url="ListPages.php">
		<parameter key="windowPage" value="@list.window.page"/>
		<parameter key="sort" value="@list.sort.key"/>
		<parameter key="direction" value="@list.sort.direction"/>
		<parameter key="query" value="@search.value"/>
		<parameter key="kind" value="@selector.kind"/>
		<parameter key="value" value="@selector.value"/>
	</source>
	<source name="languageSource" url="LanguageItems.php"/>
	<source name="hierarchySource" url="HierarchyItems.php"/>
	<source name="newPageHierarchySource" url="FrameHierarchyItems.php">
		<parameter key="frame" value="@frameSelection.value"/>
	</source>
	<layout>
		<top>
			<toolbar>
				<icon icon="common/page" title="Ny side" overlay="new" name="newPage"/>
				<divider/>
				<!--<icon icon="common/internet" overlay="upload" title="Udgiv ændringer" action="box.show()"/>-->
				<icon icon="common/edit" title="Rediger" name="edit" disabled="true"/>
				<icon icon="common/info" title="Info" name="info" disabled="true"/>
				<icon icon="common/view" title="Vis" name="view" disabled="true"/>
				<icon icon="common/delete" title="Slet" name="delete" disabled="true"/>
				<divider/>
				<icon icon="common/page" title="Nyt underpunkt" overlay="new" name="newSubPage" disabled="true"/>
				<right>
					<searchfield title="Søgning" name="search"/>
					<divider/>
					<icon icon="common/settings" title="Avanceret" name="setup" action="advancedBox.show()"/>
				</right>
			</toolbar>
		</top>
		<middle>
			<left>
				<overflow>
					<selection value="all" name="selector">
						<item icon="file/generic" title="Alle sider" value="all"/>
						<title>Hierarkier</title>
						<items source="hierarchySource"/>
						<title>Sprog</title>
						<items source="languageSource"/>
						<title>Oversigter</title>
						<item icon="part/news" title="Nyheder" value="news" kind="subset"/>
						<item icon="common/warning" title="Advarsler" value="warnings"/>
						<item icon="common/edit" title="Ændret" value="changed"/>
						<item icon="common/delete" title="Uden menupunkt" value="nomenu"/>
					</selection>
				</overflow><commit_msg>Better icon label<commit_after><?php
/**
 * @package OnlinePublisher
 * @subpackage Tools.Sites
 */
require_once '../../../Config/Setup.php';
require_once '../../Include/Security.php';
require_once '../../Classes/In2iGui.php';
require_once '../../Classes/Template.php';
require_once '../../Classes/Design.php';
require_once '../../Classes/Frame.php';

$designItems='';
$designs = Design::search();
foreach ($designs as $design) {
	$designItems.='<item title="'.In2iGui::escape($design->getTitle()).'" image="../../../style/'.$design->getUnique().'/info/Preview128.png" value="'.$design->getId().'"/>';
}

$frameItems='';
$frames = Frame::search();
foreach ($frames as $frame) {
	$frameItems.='<item icon="common/settings" title="'.In2iGui::escape($frame->getName()).'" value="'.$frame->getId().'"/>';
}

$templateItems='';
$templates = Template::getInstalledTemplates();
foreach ($templates as $template) {
	$templateItems.='<item title="'.$template['unique'].'" image="../../Template/'.$template['unique'].'/thumbnail128.jpg" value="'.$template['id'].'"/>';
}

$gui='
<gui xmlns="uri:In2iGui" title="Sites" padding="10">
	<controller source="controller.js"/>
	<source name="pageListSource" url="ListPages.php">
		<parameter key="windowPage" value="@list.window.page"/>
		<parameter key="sort" value="@list.sort.key"/>
		<parameter key="direction" value="@list.sort.direction"/>
		<parameter key="query" value="@search.value"/>
		<parameter key="kind" value="@selector.kind"/>
		<parameter key="value" value="@selector.value"/>
	</source>
	<source name="languageSource" url="LanguageItems.php"/>
	<source name="hierarchySource" url="HierarchyItems.php"/>
	<source name="newPageHierarchySource" url="FrameHierarchyItems.php">
		<parameter key="frame" value="@frameSelection.value"/>
	</source>
	<layout>
		<top>
			<toolbar>
				<icon icon="common/page" title="Ny SIDE" overlay="new" name="newPage"/>
				<divider/>
				<!--<icon icon="common/internet" overlay="upload" title="Udgiv ændringer" action="box.show()"/>-->
				<icon icon="common/edit" title="Rediger" name="edit" disabled="true"/>
				<icon icon="common/info" title="Info" name="info" disabled="true"/>
				<icon icon="common/view" title="Vis" name="view" disabled="true"/>
				<icon icon="common/delete" title="Slet" name="delete" disabled="true"/>
				<divider/>
				<icon icon="common/page" title="Nyt underpunkt" overlay="new" name="newSubPage" disabled="true"/>
				<right>
					<searchfield title="Søgning" name="search"/>
					<divider/>
					<icon icon="common/settings" title="Avanceret" name="setup" action="advancedBox.show()"/>
				</right>
			</toolbar>
		</top>
		<middle>
			<left>
				<overflow>
					<selection value="all" name="selector">
						<item icon="file/generic" title="Alle sider" value="all"/>
						<title>Hierarkier</title>
						<items source="hierarchySource"/>
						<title>Sprog</title>
						<items source="languageSource"/>
						<title>Oversigter</title>
						<item icon="part/news" title="Nyheder" value="news" kind="subset"/>
						<item icon="common/warning" title="Advarsler" value="warnings"/>
						<item icon="common/edit" title="Ændret" value="changed"/>
						<item icon="common/delete" title="Uden menupunkt" value="nomenu"/>
					</selection>
				</overflow>
{'fraction_non_alphanumeric': 0.22497704315886133, 'fraction_numerical': 0.0036730945821854912, 'mean_word_length': 4.819234194122886, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '896930', 'n_tokens_mistral': 2354, 'n_tokens_neox': 2086, 'n_words': 375}