diff --git a/.gitignore b/.gitignore index 8dc6169..d0f43f4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,8 +21,9 @@ listings/lp-output/* cache cache-lt -# Local config -config/*.ini +# Custom content +/custom/config/*.ini +/custom/site-components/*.php # Archives /etc/archives/logrotate.status diff --git a/.phpenv.php b/.phpenv.php index 14befcb..cdc64f6 100644 --- a/.phpenv.php +++ b/.phpenv.php @@ -46,12 +46,6 @@ */ $TEMPLATES_ROOT="$PROJECT_ROOT/sites"; - /** - * @var string $LANGUAGES_ROOT - * Directory containing languages module. - */ - $LANGUAGES_ROOT="$PROJECT_ROOT/languages"; - /** * @var string $QR_CODES * Directory containing served QR codes. @@ -94,11 +88,29 @@ */ $SOURCES_CACHE="$LONG_TERM_CACHE_ROOT/sources"; + /** + * @var string $CUSTOM_CONTENT_ROOT + * Directory containing custom site content. + */ + $CUSTOM_CONTENT_ROOT="$PROJECT_ROOT/custom"; + /** * @var string $CONFIG_ROOT - * Directory containing local config files. + * Directory containing custom config files. + */ + $CONFIG_ROOT="$CUSTOM_CONTENT_ROOT/config"; + + /** + * @var string $LANGUAGES_ROOT + * Directory containing languages module. + */ + $LANGUAGES_ROOT="$CUSTOM_CONTENT_ROOT/languages"; + + /** + * @var string $CUSTOM_COMPONENTS_ROOT + * Directory containing custom site components. */ - $CONFIG_ROOT="$PROJECT_ROOT/config"; + $CUSTOM_COMPONENTS_ROOT="$CUSTOM_CONTENT_ROOT/site-components"; /** * @var string $LISTING_PROVIDER_ROOT diff --git a/config/room-overrides.ini.sample b/custom/config/room-overrides.ini.sample similarity index 100% rename from config/room-overrides.ini.sample rename to custom/config/room-overrides.ini.sample diff --git a/languages/language-flags.php b/custom/languages/language-flags.php similarity index 100% rename from languages/language-flags.php rename to custom/languages/language-flags.php diff --git a/sites/+components/issue-banner.php b/custom/site-components/issue-banner.php.sample similarity index 58% rename from sites/+components/issue-banner.php rename to custom/site-components/issue-banner.php.sample index 90e2c82..38a91b4 100644 --- a/sites/+components/issue-banner.php +++ b/custom/site-components/issue-banner.php.sample @@ -8,9 +8,9 @@
- + + >Description with link. diff --git a/languages/README.md b/languages/README.md deleted file mode 100644 index a47a0b9..0000000 --- a/languages/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# Language information on sessioncommunities.online - -## Contribute - -To help label Communities by language, send your labelings to us ([see contact info](../README.md#contact-us)), or fork this repository and submit a pull request with your changes (account required). - -To make language tags a native feature, support this issue on Oxen Github. - --- Languagehelp us label: diff --git a/sites/+templates/index.php b/sites/+templates/index.php index 0091b15..5bf9a7e 100644 --- a/sites/+templates/index.php +++ b/sites/+templates/index.php @@ -60,7 +60,7 @@ class="non-anchorstyle" > - +