Added versatile textarea for additional meta tags
authorMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 18:09:41 +0000 (19:09 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 18:09:41 +0000 (19:09 +0100)
closes #2229

com.woltlab.wcf/option.xml
com.woltlab.wcf/templates/headInclude.tpl
constants.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index bec5b11371003d79b6be21f921f916f5e105d2ad..87f1686938d55c6d181058d864134f25ba7660ca 100644 (file)
                                <optiontype>boolean</optiontype>
                                <defaultvalue>0</defaultvalue>
                        </option>
+                       <option name="head_code">
+                               <categoryname>general.page</categoryname>
+                               <optiontype>textarea</optiontype>
+                       </option>
                        <option name="footer_code">
                                <categoryname>general.page</categoryname>
                                <optiontype>textarea</optiontype>
index c49db36c3274fa4c00f753c7f21442f89f4b0256..7a57e4eee89a324dd56f476a82b62c66f5d99757 100644 (file)
@@ -40,3 +40,5 @@
                {event name='javascriptInit'}
        });
 </script>
+
+{@HEAD_CODE}
index 3c174450139115b7718334ff58aeaa714a977895..baa0978c23ec587a7086a5d79505e2fe66fc6691 100644 (file)
@@ -217,3 +217,4 @@ define('SHOW_STYLE_CHANGER', 0);
 define('ARTICLE_SORT_ORDER', 'DESC');
 define('USE_PAGE_TITLE_ON_LANDING_PAGE', 1);
 define('OG_IMAGE', '');
+define('HEAD_CODE', '');
index 1f73a0bb98a16b9a622a356cee39f7c4a71b41c2..59ff52b55be707c8135a6190ec09919e007ef264 100644 (file)
@@ -1249,6 +1249,8 @@ GmbH=Gesellschaft mit beschränkter Haftung]]></item>
                <item name="wcf.acp.option.article_sort_order"><![CDATA[Sortierungsreihenfolge]]></item>
                <item name="wcf.acp.option.article_sort_order.description"><![CDATA[Standard-Reihenfolge für die Liste der Artikel.]]></item>
                <item name="wcf.acp.option.use_page_title_on_landing_page"><![CDATA[Titel der Seite als Überschrift auf Startseite anzeigen]]></item>
+               <item name="wcf.acp.option.head_code"><![CDATA[Head-Code]]></item>
+               <item name="wcf.acp.option.head_code.description"><![CDATA[Der hier angegebene Code wird im Head-Tag jeder Seite ausgegeben. Der Head-Code eignet sich z.B. sehr gut für die Einbindung von zusätzlichen Meta-Tags.]]></item>
        </category>
        
        <category name="wcf.acp.package">
index 946fe7af436f1d6363afc2893746562d29df6905..0e81efa5f2e1981604f80692ee7be6a4c11689ae 100644 (file)
@@ -1252,6 +1252,8 @@ Examples for medium ID detection:
                <item name="wcf.acp.option.article_sort_order"><![CDATA[Sort Order]]></item>
                <item name="wcf.acp.option.article_sort_order.description"><![CDATA[Choose default sort order of articles.]]></item>
                <item name="wcf.acp.option.use_page_title_on_landing_page"><![CDATA[Use page title on landing page]]></item>
+               <item name="wcf.acp.option.head_code"><![CDATA[Head Code]]></item>
+               <item name="wcf.acp.option.head_code.description"><![CDATA[The entered code will be appended to the head tag of your site. You can use it to add additional meta tags.]]></item>
        </category>
        
        <category name="wcf.acp.package">