ORIENT/themes/demo
Ben Thomson 86351cec7f Revert "Add Composer scripts"
This reverts commit a1cfc2aa58.
2020-01-20 16:14:00 +08:00
..
assets Remove the IE5 - IE7 Holly Hack support (#4594) 2019-09-04 09:32:29 -06:00
content Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00
layouts Spruce up the demo theme 2016-08-27 21:19:11 +10:00
pages Revert "Add Composer scripts" 2020-01-20 16:14:00 +08:00
partials Add role-form to all forms 2019-07-31 15:46:20 +01:00
README.md Minor improvements 2017-02-03 05:40:24 +11:00
composer.json These will need the installer package to work properly 2015-08-19 22:09:15 +10:00
theme.yaml Pass filter conditions thru dongle 2016-01-12 21:17:07 +11:00

README.md

Demo Theme

OctoberCMS demo theme that demonstrates the basic core functionality and utilizes the accompanying demo plugin. It is a great theme to copy when building a site from scratch.

The theme acts as a reference implementation for default component markup when distributing plugins.

Have fun!

Clean up instructions

If you clone this theme to use as a starting point. You may follow these instructions to clean up:

  1. Delete the pages/ajax.htm and pages/plugins.htm files.
  2. Delete the partials/calcresult.htm partial file.
  3. Delete the partials/explain/ directory and contents.
  4. Delete the content/placeholder/ directory and contents.

Combining CSS and JavaScript

This theme doesn't combine assets for performance reasons. To combine the stylesheets, replace the following lines in the default layout. When combining with this theme, we recommend enabling the config enableAssetDeepHashing in the file config/cms.php.

Uncombined stylesheets:

<link href="{{ 'assets/css/vendor.css'|theme }}" rel="stylesheet">
<link href="{{ 'assets/css/theme.css'|theme }}" rel="stylesheet">

Combined stylesheets:

<link href="{{ [
    '@framework.extras',
    'assets/less/vendor.less',
    'assets/less/theme.less'
]|theme }}" rel="stylesheet">

Note: October also includes an SCSS compiler, if you prefer.

Uncombined JavaScript:

<script src="{{ 'assets/vendor/jquery.js'|theme }}"></script>
<script src="{{ 'assets/vendor/bootstrap.js'|theme }}"></script>
<script src="{{ 'assets/javascript/app.js'|theme }}"></script>
{% framework extras %}

Combined JavaScript:

<script src="{{ [
    '@jquery',
    '@framework',
    '@framework.extras',
    'assets/vendor/bootstrap.js',
    'assets/javascript/app.js'
]|theme }}"></script>

Important: Make sure you keep the {% styles %} and {% scripts %} placeholder tags as these are used by plugins for injecting assets.