<commit_before>{if !$__wcf->isLandingPage()}
	{capture assign='pageTitle'}{$content->title}{/capture}
	{capture assign='contentTitle'}{$content->title}{/capture}
{/if}

{capture assign='headContent'}
	{if $page->isMultilingual && $page->getPageLanguages()|count > 1}
		{foreach from=$page->getPageLanguages() item='pageLanguage'}
			<link rel="alternate" hreflang="{$pageLanguage->getLanguage()->languageCode}" href="{$pageLanguage->getLink()}">
		{/foreach}
	{/if}
{/capture}

{capture assign='contentHeaderNavigation'}
	{if $__wcf->getSession()->getPermission('admin.content.cms.canManagePage')}<li><a href="{link controller='PageEdit' id=$page->pageID isACP=true}{/link}" class="button buttonPrimary"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.page.edit{/lang}</span></a></li>{/if}
{/capture}

{capture assign='contentInteractionButtons'}
	{if $page->showShareButtons()}
		<a href="{$content->getLink()}" class="contentInteractionButton button small wsShareButton jsOnly" data-link-title="{$content->getTitle()}">{lang}wcf.message.share{/lang}</a>
	{/if}

	{if $page->isMultilingual && $__wcf->user->userID && $page->getPageLanguages()|count > 1}
		<div class="contentInteractionButton dropdown jsOnly">
			<a class="button small  dropdownToggle boxFlag box24">
				<span><img src="{$activePageLanguage->getIconPath()}" alt="" class="iconFlag"></span>
				<span>{$activePageLanguage->languageName}</span>
			</a>
			<ul class="dropdownMenu">
				{foreach from=$page->getPageLanguages() item='pageLanguage'}
					<li class="boxFlag">
						<a class="box24" href="{$pageLanguage->getLink()}">
							<span><img src="{$pageLanguage->getLanguage()->getIconPath()}" alt="" class="iconFlag"></span>
							<span>{$pageLanguage->getLanguage()->languageName}</span>
						</a>
					</li>
				{/foreach}
			</ul>
		</div>
	{/if}
{/capture}

{include file='header'}

{if $content->content}
	{if $page->pageType == 'text'}
		<div class="section cmsContent htmlContent">
			{@$content->getFormattedContent()}
		</div>
	{elseif $page->pageType == 'html'}
		{@$content->getParsedContent()}
	{elseif $page->pageType == 'tpl'}
		{@$page->getParsedTemplate($content)}
	{/if}
{/if}

<footer class="contentFooter">
	{hascontent}
		<nav class="contentFooterNavigation">
			<ul>
				{content}{event name='contentFooterNavigation'}{/content}
			</ul>
		</nav>
	{/hascontent}
</footer>

{include file='footer'}
<commit_msg>Moved "edit page" button into contentInteractionButtons<commit_after>{if !$__wcf->isLandingPage()}
	{capture assign='pageTitle'}{$content->title}{/capture}
	{capture assign='contentTitle'}{$content->title}{/capture}
{/if}

{capture assign='headContent'}
	{if $page->isMultilingual && $page->getPageLanguages()|count > 1}
		{foreach from=$page->getPageLanguages() item='pageLanguage'}
			<link rel="alternate" hreflang="{$pageLanguage->getLanguage()->languageCode}" href="{$pageLanguage->getLink()}">
		{/foreach}
	{/if}
{/capture}

{capture assign='contentInteractionButtons'}
	{if $page->showShareButtons()}
		<a href="{$content->getLink()}" class="contentInteractionButton button small wsShareButton jsOnly" data-link-title="{$content->getTitle()}">{lang}wcf.message.share{/lang}</a>
	{/if}

	{if $page->isMultilingual && $__wcf->user->userID && $page->getPageLanguages()|count > 1}
		<div class="contentInteractionButton dropdown jsOnly">
			<a class="button small dropdownToggle boxFlag box24">
				<span><img src="{$activePageLanguage->getIconPath()}" alt="" class="iconFlag"></span>
				<span>{$activePageLanguage->languageName}</span>
			</a>
			<ul class="dropdownMenu">
				{foreach from=$page->getPageLanguages() item='pageLanguage'}
					<li class="boxFlag">
						<a class="box24" href="{$pageLanguage->getLink()}">
							<span><img src="{$pageLanguage->getLanguage()->getIconPath()}" alt="" class="iconFlag"></span>
							<span>{$pageLanguage->getLanguage()->languageName}</span>
						</a>
					</li>
				{/foreach}
			</ul>
		</div>
	{/if}

	{if $__wcf->getSession()->getPermission('admin.content.cms.canManagePage')}<a href="{link controller='PageEdit' id=$page->pageID isACP=true}{/link}" class="contentInteractionButton button small">{lang}wcf.acp.page.edit{/lang}</a>{/if}
{/capture}

{include file='header'}

{if $content->content}
	{if $page->pageType == 'text'}
		<div class="section cmsContent htmlContent">
			{@$content->getFormattedContent()}
		</div>
	{elseif $page->pageType == 'html'}
		{@$content->getParsedContent()}
	{elseif $page->pageType == 'tpl'}
		{@$page->getParsedTemplate($content)}
	{/if}
{/if}

<footer class="contentFooter">
	{hascontent}
		<nav class="contentFooterNavigation">
			<ul>
				{content}{event name='contentFooterNavigation'}{/content}
			</ul>
		</nav>
	{/hascontent}
</footer>

{include file='footer'}

{'fraction_non_alphanumeric': 0.21124111993313832, 'fraction_numerical': 0.0029251984956122023, 'mean_word_length': 5.957848837209302, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 147, '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': '7227823', 'n_tokens_mistral': 1766, 'n_tokens_neox': 1620, 'n_words': 261}