summaryrefslogtreecommitdiff
path: root/templates/html_head_inc.tpl
blob: 87da1923c5f4d2ad99eba8e5e4e527554c55aed4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{* $Header$ *}
{strip}
{if !empty($structureInfo)}
	<link rel="index" title="{tr}Contents{/tr}" href="index.php?structure_id={$structureInfo.root_structure_id}" />
	{if $structureInfo.prev.structure_id}
		<link rel="prev" title="{tr}Previous{/tr}" href="index.php?structure_id={$structureInfo.prev.structure_id}" />
	{/if}
	{if $structureInfo.next.structure_id}
		<link rel="next" title="{tr}Next{/tr}" href="index.php?structure_id={$structureInfo.next.structure_id}" />
	{/if}
{/if}

{* perhaps we can remove this as well at some point and load it using
$gBitThemes->loadJavascript(); *}
{if $gContent}
	{if $gBitSystem->isFeatureActive('comments_ajax')}
		<script nonce="{$cspNonce}" src="{$smarty.const.LIBERTY_PKG_URL}scripts/LibertyComment.js"></script>
		<script nonce="{$cspNonce}">
			LibertyComment.ROOT_ID = {if $gContent->mContentId}{$gContent->mContentId}{elseif $commentsParentId}{$commentsParentId}{else}null{/if}; {* this is the content id - would be better as part of something in kernel but here it is until that day *}
			LibertyComment.ROOT_GUID = "{if $gContent->mContentTypeGuid}{$gContent->mContentTypeGuid}{/if}";
			LibertyComment.SORT_MODE = "{$comments_sort_mode}";
			LibertyComment.BROWSER = "{$gBrowserInfo.browser}";
		</script>
	{/if}
	{if !empty($gContent->mContentTypeGuid)}
		<script nonce="{$cspNonce}">
			LibertyContent = {ldelim}{rdelim};
			LibertyContent.CONTENT_TYPE_GUID = "{$gContent->mContentTypeGuid}";
		</script>
	{/if}
	{$gContent->getField('metatags')}
{/if}
{/strip}