{* $Id$ *} {if $base_uri and ($dir_level gt 0 or $prefs.feature_html_head_base_tag eq 'y')} {/if} {* --- SocialNetwork:Domain ---*} {* may be obsolete when using twitter:card *} {* --- Canonical URL --- *} {include file="canonical.tpl"} {if !empty($forum_info.name) & $prefs.metatag_threadtitle eq 'y'} {elseif $prefs.metatag_keywords neq '' or !empty($metatag_local_keywords)} {/if} {if $prefs.metatag_author neq ''} {/if} {* --- Blog description --- *} {if isset($section) and $section eq "blogs"} {if not empty($post_info.parsed_excerpt)} {$metatag_description = $post_info.parsed_excerpt|strip_tags:false|truncate:200|escape} {elseif not empty($post_info.parsed_data|strip_tags)} {$metatag_description = $post_info.parsed_data|strip_tags:false|truncate:200|escape} {else} {$metatag_description = $post_info.title|cat:' - '|cat:$blog_data.title|escape} {/if} {* --- Article description --- *} {elseif isset($section) and $section eq "cms"} {if not empty($heading)} {$metatag_description = $parsed_heading|strip_tags:false|truncate:200|escape} {elseif not empty ($body)} {$metatag_description = $parsed_body|strip_tags:false|truncate:200|escape} {/if} {* --- File Gallery description --- *} {elseif isset($section) and $section eq "file_galleries"} {if not empty($gal_info.description)} {$metatag_description = $gal_info.description|strip_tags:false|truncate:200|escape} {/if} {* --- Page description --- *} {elseif $prefs.metatag_pagedesc eq 'y' and not empty($description)} {$metatag_description = $description|escape} {elseif not empty($prefs.metatag_description_translated)} {$metatag_description = $prefs.metatag_description_translated|escape} {elseif not empty($prefs.metatag_description)} {$metatag_description = $prefs.metatag_description|escape} {/if} {if not empty($metatag_description) and not empty($metatag_description|trim)} {else} {/if} {if $prefs.metatag_geoposition neq ''} {/if} {if $prefs.metatag_georegion neq ''} {/if} {if $prefs.metatag_geoplacename neq ''} {/if} {if (isset($prefs.metatag_robots) and $prefs.metatag_robots neq '') and (!isset($metatag_robots) or $metatag_robots eq '')} {/if} {if (!isset($prefs.metatag_robots) or $prefs.metatag_robots eq '') and (isset($metatag_robots) and $metatag_robots neq '')} {/if} {if (isset($prefs.metatag_robots) and $prefs.metatag_robots neq '') and (isset($metatag_robots) and $metatag_robots neq '')} {/if} {if $prefs.metatag_revisitafter neq ''} {/if} {* --- SocialNetwork:site_name --- *} {* --- SocialNetwork: fb:app_id ---*} {if not empty($prefs.socialnetworks_facebook_application_id)}{/if} {capture assign='header_title'}{strip} {if !empty($sswindowtitle)} {if $sswindowtitle eq 'none'}   {else} {$sswindowtitle|escape} {/if} {else} {if $prefs.site_title_location eq 'before'}{if not empty($prefs.browsertitle_translated)}{$prefs.browsertitle_translated|tr_if|escape}{else}{$prefs.browsertitle|tr_if|escape}{/if} {$prefs.site_nav_seper} {/if} {capture assign="page_description_title"} {if ($prefs.feature_breadcrumbs eq 'y' or $prefs.site_title_breadcrumb eq "desc") && isset($trail)} {breadcrumbs type=$prefs.site_title_breadcrumb loc="head" crumbs=$trail} {/if} {/capture} {if isset($structure) and $structure eq 'y'} {* get the alias name if item is a wiki page and it is in a structure *} {section loop=$structure_path name=ix} {assign var="aliasname" value={$structure_path[ix].page_alias}} {/section} {/if} {if $prefs.site_title_location eq 'only'} {if not empty($prefs.browsertitle_translated)}{$prefs.browsertitle_translated|tr_if|escape}{else}{$prefs.browsertitle|tr_if|escape}{/if} {else} {if !empty($page_description_title)} {$page_description_title} {else} {if !empty($tracker_item_main_value)} {$tracker_item_main_value|truncate:255|escape} {elseif !empty($title) and !is_array($title)} {$title|escape} {elseif !empty($aliasname)} {$aliasname|escape} {elseif !empty($arttitle)} {$arttitle|escape} {elseif !empty($thread_info.title)} {$thread_info.title|escape} {elseif !empty($forum_info.name)} {$forum_info.name|escape} {elseif !empty($categ_info.name)} {$categ_info.name|escape} {elseif !empty($userinfo.login)} {$userinfo.login|username} {elseif !empty($tracker_info.pagetitle)} {$tracker_info.pagetitle|escape} {elseif !empty($tracker_info.name)} {$tracker_info.name|escape} {elseif !empty($description)} {$description|escape}{* use description if nothing else is found but this is likely to contain tiki markup *} {* add $description|escape if you want to put the description + update breadcrumb_build replace return $crumbs->title; with return empty($crumbs->description)? $crumbs->title: $crumbs->description; *} {elseif !empty($page)} {$page|escape} {* Must stay after description as it is unlikely to be empty if wiki pages *} {elseif !empty($headtitle)} {$headtitle|stringfix:" "|escape}{* use $headtitle last if feature specific title not found - Must stay the last one as failback *} {/if} {/if} {/if} {if $prefs.site_title_location eq 'after'} {$prefs.site_nav_seper} {if not empty($prefs.browsertitle_translated)}{$prefs.browsertitle_translated|tr_if|escape}{else}{$prefs.browsertitle|tr_if|escape}{/if}{/if} {/if} {/strip}{/capture} {* --- tiki block --- *} {$header_title} {* --- SocialNetwork:title --- *} {* Facebook *} {* Twitter *} {* --- SocialNetwork:type --- *} {if $prefs.feature_canonical_url eq 'y' and isset($mid)} {if $mid eq 'tiki-view_blog.tpl' or $mid eq 'tiki-view_blog_post.tpl' or $mid eq 'tiki-read_article.tpl'} {else} {/if} {/if} {* To be added someday when using cart feature: product, product.group, product.item *} {* May be usefull too : profile *} {* --- SocialNetwork:image --- *} {* first we check if there is a featured image to use it *} {if not empty($header_featured_images)} {foreach $header_featured_images as $header_featured_image} {/foreach} {elseif $prefs.feature_canonical_url eq 'y' and isset($mid)} {if $mid eq 'tiki-view_blog.tpl'} {elseif $mid eq 'tiki-view_blog_post.tpl'} {* --- Article --- *} {* If there is no featured image we check if an article image or a topic image exist to use it *} {elseif ($mid eq 'tiki-read_article.tpl') and ($hasImage eq 'y') or (not empty ($topics.image_name))} {* We use the social network image as failsafe - control panel social network *} {else} {if $prefs.socialnetworks_facebook_site_image}{/if} {if $prefs.socialnetworks_twitter_site_image}{/if} {/if} {/if} {* --- universaleditbutton.org --- *} {if (isset($editable) and $editable) and ($tiki_p_edit eq 'y' or $page|lower eq 'sandbox' or $tiki_p_admin_wiki eq 'y')} {/if} {* --- Firefox RSS icons --- *} {if $prefs.feature_wiki eq 'y' and $prefs.feed_wiki eq 'y' and $tiki_p_view eq 'y'} {/if} {if $prefs.feature_blogs eq 'y' and $prefs.feed_blogs eq 'y' and $tiki_p_read_blog eq 'y'} {/if} {if $prefs.feature_articles eq 'y' and $prefs.feed_articles eq 'y' and $tiki_p_read_article eq 'y'} {/if} {if $prefs.feature_file_galleries eq 'y' and $prefs.feed_file_galleries eq 'y' and $tiki_p_view_file_gallery eq 'y'} {/if} {if $prefs.feature_forums eq 'y' and $prefs.feed_forums eq 'y' and $tiki_p_forum_read eq 'y'} {/if} {if $prefs.feature_directory eq 'y' and $prefs.feed_directories eq 'y' and $tiki_p_view_directory eq 'y'} {/if} {if $prefs.feature_calendar eq 'y' and $prefs.feed_calendar eq 'y' and $tiki_p_view_calendar eq 'y'} {/if} {if $prefs.feature_trackers eq 'y' and $prefs.feed_tracker eq 'y'} {foreach from=$rsslist_trackers item="tracker"} {/foreach} {/if} {if $prefs.tiki_monitor_performance eq 'y'} {/if} {if ($prefs.feature_blogs eq 'y' and $prefs.feature_blog_sharethis eq 'y') or ($prefs.feature_articles eq 'y' and $prefs.feature_cms_sharethis eq 'y') or ($prefs.feature_wiki eq 'y' and $prefs.feature_wiki_sharethis eq 'y')} {if $prefs.blog_sharethis_publisher neq "" and $prefs.article_sharethis_publisher neq ""} {elseif $prefs.blog_sharethis_publisher neq "" and $prefs.article_sharethis_publisher eq ""} {elseif $prefs.blog_sharethis_publisher eq "" and $prefs.article_sharethis_publisher neq ""} {elseif $prefs.blog_sharethis_publisher eq "" and $prefs.article_sharethis_publisher eq ""} {/if} {/if} {if $prefs.vuejs_enable eq 'y'} {* How to load Vue 3 (race conditions issue solved): https://github.com/systemjs/systemjs/issues/2272#issuecomment-744636282 *} {/if} {if $headerlib} {$headerlib->output_headers()}{/if} {if $prefs.feature_custom_html_head_content} {eval var=$prefs.feature_custom_html_head_content} {/if} {* Include mautic snipet code with mautic *} {if $prefs.feature_mautic_tracking_script_location eq 'head'} {wikiplugin _name=mautic type="inclusion"}{/wikiplugin} {/if} {* END of html head content *}