-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.php
40 lines (32 loc) · 1.58 KB
/
config.php
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
34
35
36
37
38
39
40
<?php
/*
This file must be included by inserting <?php require_once("../config.php"); ?>
at the top of every php page in www directory.
*/
// Site language which is used in <html lang="…"> attributes and for translations.
// PHAINA_LANG environment variable can override site's language.
// TODO(Alex): Generate all supported languages from one launch, without editing this constant.
define('LANG', getenv('PHAINA_LANG') ?: 'ru');
// Production base urls, also used for static pages generation.
// Please use BaseURL() function instead of direct access, it makes development easier.
// Url for current active language will be treated as base url.
define('LANG_SITES', [
// 'en' => 'https://www.vibrobox.com/',
'ru' => 'https://biodranik.github.io/phaina/']);
// If translated sites are in different domains you can set unique GA ID for every
// language in translations/variables.json file.
// If you have only one GA ID, you can set it here directly.
define('GOOGLE_ANALYTICS_ID', ['en' => 'UA-71329020-3', 'ru' => 'UA-71329020-2']);
// Translation defines for meta keywords and meta description if they are not customized in $PAGES.
define('DEFAULT_META_DESCRIPTION', 'metaDescriptionIndexPage');
define('DEFAULT_META_KEYWORDS', 'metaKeywordsIndexPage');
// Any custom constants can be defined here too.
define('CODE_AND_DOCS_URL', 'https://github.com/biodranik/phaina');
require_once('include/globals.php');
require_once('include/strings.php');
require_once('include/file_system.php');
// TODO: Support direct html links in the menu.
define('MENU', [
'index.php' => 'menuIndexPage',
]);
?>