Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stevie-mayhew/moe-standard-footer

This repository contains all the source code for the standard Ministry of Education footer to avoid the need to rebuild the same markup and functionality between Silverstripe sites.
https://github.com/stevie-mayhew/moe-standard-footer

Last synced: about 2 months ago
JSON representation

This repository contains all the source code for the standard Ministry of Education footer to avoid the need to rebuild the same markup and functionality between Silverstripe sites.

Awesome Lists containing this project

README

        

# Ministry of Education Standard Footer.

This repository contains all the source code for the standard Ministry of
Education footer to avoid the need to rebuild the same markup and functionality
between all the sites.

Authors can remove logos and update all the copy on the text.

![demo](client/img/demo.png)

## Usage

In your template use the include as follows

```
<% include Education\Standards\Footer %>
```

Your SCSS will also need to include the styles

```
@import "../../../vendor/education-nz/moe-standard-footer/client/scss/footer.scss";
```

> :warning: ** In your SCSS make sure to include the root design system before `header.scss`

In your theme SCSS:

```css
@import "../../../vendor/education-nz/moe-design-system/client/scss/moe.scss";
@import "../../../vendor/education-nz/moe-standard-footer/client/scss/footer.scss";
```

For customising any variables, define it prior to those imports.

```css
$color-footer-background: #f00;
...
@import "../../../vendor/education-nz/moe-design-system/client/scss/moe.scss";
@import "../../../vendor/education-nz/moe-standard-footer/client/scss/footer.scss";
```

Then you'll be good to go. You can customize any of the colours, logos as
needed.

## Configuration

The footer has several parts to be created and managed in the CMS as per the
image above.

- Upper Social Links (top left)
- Upper Links (featured buttons top right)
- Lower Links
- Social Media Icons

If you want, you can opt for a compressed version (i.e disabling the top links)
by using the following configuration options:

```
Education\StandardFooter\Extensions\FooterSiteConfig:
top_links_enabled: false
banner_enabled: true
social_media_enabled: false
```