Download the PHP package lekoala/silverstripe-theme-framework without Composer

On this page you can find all versions of the php package lekoala/silverstripe-theme-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-theme-framework

Silverstripe Theme Framework

A default set of tools to create themes for Silverstripe with LESS.

SiteConfig and Page extensions

When adding this module, the ThemeSiteConfigExtension is activated on your SiteConfig. It will create a new theme tab where you can configure your theme.

You can configure the base, primary and secondary colors of your theme and the logo/favicon.

The ThemePageControllerExtension will make sure that:

Two conventions are used by the Theme Framework:

All compiled styles are stored in assets/Theme folder to avoid versioning compiled versions of your theme.

You can disable auto compile (which is slow if you are developing locally) by defining the following constant:

define('THEME_FRAMEWORK_DISABLE_COMPILE',true);

Ui Kit

For webapps, I recommend using the Ui Kit framework to get most of what you need http://getuikit.com/

To enable, simply use the following yml config:

ThemePageControllerExtension:
  uikit:
    enabled: true
    theme_enabled: false
    theme: 'almost-flat'

You can choose to use a already compiled theme or use the less files. It is useful to use the less files if you want to overwrite variables based on your own color scheme.

NOTE: don't forget that less variables are lazy evaluated, meaning that you can define variables AFTER importing the uikit.less

NOTE: if you choose to import less files, you can import any of the base themes. For the icons, to avoid messing with paths, it's easier to copy the "fonts" directory right inside your theme folder

Google Fonts

By default the theme framework will load Open Sans as the default font. You can define the fonts of your choice or disabling this setting

SiteConfig:
  google_fonts: 'Open+Sans:400italic,400,600&subset=latin,latin-ext'

Noty

The theme framework comes with a notification system that use Noty https://github.com/needim/noty

Messages can also be pulled from the session by using SetSessionMessage method on the controller

Outdated browsers

This plugin is integrated and enabled by default with IE9 as a minimum https://github.com/burocratik/outdated-browser

Icomoon

This module comes bundled with a all Fontawesome. Feel free to include your own set of icons created through the online app: https://icomoon.io/app/

Default CSS for Silverstripe

Libraries:

Please note that since less files are compiled through php, your less librairies should not make use of Javascript functions (like Lesshat does).

Default styles:

The css framework comes with a series of breakpoints that should fit most projects. You can check the "variables.less" files.

The Grid

This module includes a standalone grid system compatible with Silverstripe Forms

How to create a theme?

Create a theme as usual ! Simply include the less files you need. Typically, I'll have the following files:

Include Theme Framework base less files in each, for instance in variables.less

@import "../../../theme-framework/css/variables.less";

Or in layout.less

@import "variables.less";
@import "../../../theme-framework/css/mixins.less";
@import "../../../theme-framework/css/layout.less";

Google Analytics Helper

It is a common scenario to have Google Analytics in your project. Although modules exists to do so in Silverstripe, I always feel it is a bit of a shame to include a whole module just to add a snippet at the bottom of your pages. It is also a common scenario to let your user configure their tracking code. Therefore, this module comes with a little helper to include tracking code.

Thirdparty libs

Icon generator https://github.com/chrisbliss18/php-ico

Less compiler https://github.com/oyejorge/less.php

Compatibility

Tested with 3.1

Maintainer

LeKoala - [email protected]


All versions of silverstripe-theme-framework with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lekoala/silverstripe-theme-framework contains the following files

Loading the files please wait ....