Skip to main content

Theme folder structure tosdr.org

The system behind the templating system on http://tosdr.org is pretty easy once you get used to it.

It is important to note that _dev, _staging, _beta and your experiment folder behave exactly the same as the _prod folder.

CODE
.
└── themes/ - Theme Root Folder
    ├── crisp/ - Our Theme
    ├── css/ - Stylesheet directory
    ├── favicon/ - Favicons are saved here in various formats
    ├── img/ - Images
    ├── includes/ - PHP Code for Templates
    │   ├── _beta/ - PHP Code for templates in Beta Universe
    │   │   └── downloads.php - PHP Code for downloads.twig
    │   ├── _dev/ - PHP Code for templates in Development Environment
    │   │   └── downloads.php - PHP Code for downloads.twig
    │   ├── _experiments/ - Experiment Storage
    │   │   └── MY_AWESOME_EXPERIMENT_2021_07/
    │   │       └── downloads.php - PHP Code for downloads.twig
    │   ├── _prod/ - PHP Code for templates in Production Environment
    │   │   └── downloads.php - PHP Code for downloads.twig
    │   └── _staging/ - PHP Code for templates in Staging Environment
    │       └── downloads.php - PHP Code for downloads.twig
    ├── js/ - Javascript directory
    ├── pgp/ - Team Member PGP Keys
    ├── presskit/ - Deprecated
    ├── templates/ - Theme templates
    │   ├── _beta/ - Beta Universe
    │   │   ├── components/ - Template storage for various components, e.g. Navbar
    │   │   └── views/ - Template storage for entire pages e.g. downloads.twig -> /en/downloads
    │   ├── _dev/ - Development Environment
    │   │   ├── components/ - Template storage for various components, e.g. Navbar
    │   │   └── views/ - Template storage for entire pages e.g. downloads.twig -> /en/downloads
    │   ├── _experiments/ - Experiment Storage
    │   │   └── MY_AWESOME_EXPERIMENT_2021_07/ - Experiment Folder
    │   │       ├── components/ - Template storage for various components, e.g. Navbar
    │   │       └── views/ - Template storage for entire pages e.g. downloads.twig -> /en/downloads
    │   ├── _prod/ - Production Environment
    │   │   ├── alert/ - Unused
    │   │   ├── components/ - Template storage for various components, e.g. Navbar
    │   │   ├── errors/ - Error Pages
    │   │   ├── views/ - Template storage for entire pages e.g. downloads.twig -> /en/downloads
    │   │   ├── base.twig - Base Template
    │   │   ├── footer.twig - Footer template
    │   │   └── pihole.twig - Pihole template for the API
    │   └── _staging/ - Staging Environment
    │       ├── components/ - Template storage for various components, e.g. Navbar
    │       └── views/ - Template storage for entire pages e.g. downloads.twig -> /en/downloads
    ├── translations/ - Theme translations
    ├── hook.php - The Theme Hookfile
    ├── thanks.list - Thanks list for /en/thanks
    └── theme.json - Theme Metadata
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.