Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
knuch committed Jul 26, 2018
2 parents 3812b0f + 117e813 commit a735453
Show file tree
Hide file tree
Showing 92 changed files with 2,831 additions and 5,176 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# CHANGELOG

*1.0.0* (2018-07-26)
- First release
- current state of the styleguide (1.0.0)
229 changes: 0 additions & 229 deletions EPFL-plugin-news/EPFL-news-2018.php

This file was deleted.

53 changes: 0 additions & 53 deletions EPFL-plugin-news/EPFL-news-utils.php

This file was deleted.

18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ Epfl theme (Wordpress)
* composer

## Setup
1. `$ composer install`
1. Copy (or symlink) the theme in the `/wp-content/themes` directory of your project
2. Nothing more, you're ready to go! 🚀

## Recovering the last version of the styleguide
1. head towards [https://github.com/epfl-idevelop/elements](https://github.com/epfl-idevelop/elements)
2. clone the repo locally
3. install the project locally (see elements documentation)
4. launch `$ yarn && yarn build` or `$ docker-compose up builder`
5. after build finished, move the content of the `elements/build/` folder to `epfl-theme/assets`
6. commit the builds
7. here you go, you just updated the styleguide version container in this theme !

## Shortcodes
Each shortcode has its own subfoler in the `shortcodes/` directory, placed at the root of the template.

The `_load.php` automatically loads all files named `controller.php` in all subfolders.
The `index.php` automatically loads all files named `controller.php` in all subfolders.

```
├── shortcodes/
| ├── _load.php
| ├── index.php
| ├── placeholder.php
| ├── [shortcode-slug]/
| ├── controller.php
| └── view.php
Expand All @@ -30,6 +40,8 @@ file|role
--|--
`controller.php`| - recover the plugin datas using (actions)[]<br/>- Pass data to the view<br>- Render view<br>- use (Shortcake)[https://github.com/wp-shortcake/shortcake] API to declare backend UI
`view.php`|Output shortcode's html using given datas
`shortcake.php`|Defines shortcake admin interface
`placeholder.php`|a custom component to display in admin editor

### Types
#### EPFL shortcode
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
3 changes: 1 addition & 2 deletions assets/css/base.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/css/base.css.map

This file was deleted.

Loading

0 comments on commit a735453

Please sign in to comment.