1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8function prefs_metatag_list()
9{
10	return [
11		'metatag_keywords' => [
12			'name' => tra('Keywords'),
13			'description' => tra('A list of keywords (separated by commas) that describe this website.'),
14			'type' => 'textarea',
15			'size' => '4',
16			'default' => '',
17			'tags' => ['basic'],
18			'translatable' => true,
19		],
20		'metatag_freetags' => [
21			'name' => tra('Include tags'),
22			'description' => tra('If the Tags feature is enabled, the tags for each page with tags set will be used as meta keywords. This allows individual pages at the site to have different meta tags.'),
23			'type' => 'flag',
24			'dependencies' => [
25				'feature_freetags',
26			],
27			'default' => 'n',
28		],
29		'metatag_threadtitle' => [
30			'name' => tra('Use thread title instead'),
31			'description' => tra('Use the forum thread title in the meta title tag.'),
32			'type' => 'flag',
33			'dependencies' => [
34				'feature_forums',
35			],
36			'default' => 'n',
37		],
38		'metatag_imagetitle' => [
39			'name' => tra('Use the image title instead'),
40			'description' => tra('Use the image title in the meta title tag'),
41			'type' => 'flag',
42			'dependencies' => [
43				'feature_galleries',
44			],
45			'default' => 'n',
46		],
47		'metatag_description' => [
48			'name' => tra('Description'),
49			'description' => tra('A short description of the website. Some search engines display this information with the website\'s listing.'),
50			'type' => 'textarea',
51			'size' => '5',
52			'default' => '',
53			'tags' => ['basic'],
54			'translatable' => true,
55		],
56		'metatag_pagedesc' => [
57			'name' => tra('Page description'),
58			'description' => tra('Use each page description as a meta tag for that page.'),
59			'type' => 'flag',
60			'default' => 'n',
61		],
62		'metatag_author' => [
63			'name' => tra('Author'),
64			'description' => tra('The author of this website. Typically this is the Admin or Webmaster.'),
65			'type' => 'text',
66			'size' => '50',
67			'default' => '',
68			'tags' => ['basic'],
69		],
70		'metatag_geoposition' => [
71			'name' => tra('geo.position'),
72			'description' => tra('The latitude and longitude of the physical location of the site. For example "38.898748, -77.037684".'),
73			'type' => 'text',
74			'size' => '50',
75			'help' => 'http://geotags.com/geo/geotags2.html',
76			'default' => '',
77		],
78		'metatag_georegion' => [
79			'name' => tra('geo.region'),
80			'description' => tra('The ISO-3166 country and region codes for your location. For example, "US-NY".'),
81			'type' => 'text',
82			'size' => '50',
83			'help' => 'http://en.wikipedia.org/wiki/ISO_3166-1',
84			'default' => '',
85		],
86		'metatag_geoplacename' => [
87			'name' => tra('geo.placename'),
88			'description' => tra('A free-text description of your location.'),
89			'type' => 'text',
90			'size' => '50',
91			'default' => '',
92		],
93		'metatag_robots' => [
94			'name' => tra('Meta robots'),
95			'description' => tra('Specify how search engines robots should index your site. Will override page defaults. Valid values include: noindex, nofollow, none, all, noimageindex, noarchive, nocache, nosnippet, notranslate, unavailable_after and noyaca.'),
96			'type' => 'text',
97			'shorthint' => tra('Should be comma separated eg. noimageindex, nocache.'),
98			'help' => 'Robots-Exclusion-Protocol#HTML_META_Directives',
99			'size' => '50',
100			'default' => '',
101		],
102		'metatag_revisitafter' => [
103			'name' => tra('Revisit after'),
104			'description' => tra('Specify how often (in days) Web robots should visit your site.'),
105			'type' => 'text',
106			'unit' => tr('days'),
107			'size' => '50',
108			'default' => '',
109			'tags' => ['experimental'],
110		],
111	];
112}
113