Default template for Subrion CMS 4.x with style support for every Subrion plugin and package.
- Download latest release https://github.com/intelliants/subrion-template-startup/releases
- Unpack contents of archive to
[root]/templates
folder - Rename
subrion-template-startup-master
tostartup
- Activate template in admin dashboard.
Or you can
cd [root]/templates # where root is the location of subrion core
git clone https://github.com/intelliants/subrion-template-startup.git ./startup
Voila! Just activate it in your Dashboard / Extensions / Templates
This manual covers development of visual styles. To learn more about Subrion template structure and configuration options, please refer to Subrion Extensions wiki page:
URL_TO_SUBRION_WIKI
The startup template is setup to use Gulp to compile LESS (with source maps), run it through AutoPrefixr, optimize images, and syncs changes across local development devices with BrowserSync, with flexibility to add any additional tasks via the Gulpfile. Alternatively, you can use Prepros or whatever else y ou prefer to compile the LESS and manage the JavaScript.
In root folder of startup template run:
npm i
To install all necessary node modules.
Before running dev
task, be sure to copy config.sample.json and rename it to config.json. Then change server config in config.json file for BrowserSync to work properly. Otherwise BrowserSync won't work.
gulp dev
Starts BrowserSync and watches for LESS files. Optimizes images and compiles LESS with SourceMaps.
gulp build
Compiles LESS and optimizes images.
If you don't want to use Gulp task-runner to process template files, you can use any GUI compilers like Prepros, Koala or Simpless.
What is important:
- The main file for compilation is
iabootstrap.less
. It should be compiled to[root]/templates/startup/css/iabootstrap.css
There is a hidden page with all supported elements. You can access it like this:
http://yourdomain.com/?elements
Anyone is welcome to contribute! Check out the Contributing Guidelines.