Skip to content

Commit c558f34

Browse files
authored
Merge pull request #29 from creativecommons/master
Update dev branch to v2019.8.1
2 parents 1a34cd1 + 11173ad commit c558f34

File tree

9 files changed

+158
-5
lines changed

9 files changed

+158
-5
lines changed

.cc-metadata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Whether this GitHub repo is for a CC-led engineering project
2+
engineering_project: true
3+
# Whether this repository should be featured on the CC Open Source site's "Projects" page
4+
featured: false

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# https://help.github.com/en/articles/about-code-owners
2+
* @creativecommons/web

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributor Code of Conduct
2+
3+
The Creative Commons team is committed to fostering a welcoming community. This
4+
project and all other Creative Commons open source projects are governed by our
5+
[Code of Conduct][code_of_conduct]. Please report unacceptable behavior to
6+
[conduct@creativecommons.org](mailto:conduct@creativecommons.org) per our
7+
[reporting guidelines][reporting_guide].
8+
9+
For a history of updates, see the [page history here][updates].
10+
11+
[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/
12+
[reporting_guide]:https://opensource.creativecommons.org/community/code-of-conduct/enforcement/
13+
[updates]:https://github.com/creativecommons/creativecommons.github.io-source/commits/master/content/community/code-of-conduct/contents.lr

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing to CC Open Source
2+
3+
Thank you for your interest in contributing to CC Open Source! This document is
4+
a set of guidelines to help you contribute to this project.
5+
6+
## Code of Conduct
7+
8+
By participating in this project, you are expected to uphold our [Code of
9+
Conduct][code_of_conduct].
10+
11+
[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/
12+
13+
## Project Documentation
14+
15+
The `README` in the root of the repository should contain or link to
16+
project documentation. If you cannot find the documentation you're
17+
looking for, please file a GitHub issue with details of what
18+
you'd like to see documented.
19+
20+
## How to Contribute
21+
22+
Please follow the processes in our general [Contributing Code][contributing]
23+
guidelines on the Creative Common Open Source website.
24+
25+
[contributing]:https://opensource.creativecommons.org/contributing-code/
26+
27+
## Questions or Thoughts?
28+
29+
Talk to us on [one of our community forums][community].
30+
31+
[community]:https://opensource.creativecommons.org/community/

README.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Creative Commons - Chapter WordPress theme
2+
3+
- Contributors: quentinrogers, mackaffinity, cctimidrobot, hugosolar
4+
- Tags: CreativeCommons
5+
- Requires at least: 4.5+
6+
- Tested up to: 5.0.3
7+
- Requires PHP: 7.0
8+
- License: GPLv2 or later
9+
- License URI: https://www.gnu.org/licenses/gpl-2.0.html
10+
11+
Creative Commons Chapter site theme (including chapter sites setup,
12+
taxonomies, and widget code)
13+
14+
## Development Installation
15+
16+
This theme uses npm, gulp, and browserify to manage dependencies.
17+
18+
Versions of node and npm we know work:
19+
20+
- `npm 3.3.12`
21+
- `node 5.4.1`
22+
23+
To install gulp:
24+
25+
- run `npm install -g gulp`
26+
27+
To build the js/css:
28+
29+
- run `npm install` to download the 3rd party libs in `package.json`
30+
- during development:
31+
- run `gulp` in the background, i.e. run `gulp` in a terminal and leave it
32+
running. It will automatically recompile `css/app.css` files as you edit
33+
the src files.
34+
- when preparing for production:
35+
- run `gulp dist` to create minified `css/app.css` files.
36+
- also update the CC_CSS_RELEASE_SERIAL_NUMBER at the top of functions.php to
37+
purge the caches.
38+
39+
## Standalone installation
40+
41+
### Requirements
42+
- Composer
43+
- node / npm (yarn also works)
44+
- git
45+
46+
Clone the repository into your `wp-content/themes`
47+
48+
```
49+
> git clone git@github.com:creativecommons/wp-theme-cc-chapter.git
50+
```
51+
52+
then, go to the directory (`cd wp-theme-cc-chapter` ) and execute composer install
53+
```
54+
> composer install
55+
```
56+
Composer will install the required dependencies such as
57+
- Queulat
58+
- Twentysixteen
59+
60+
Once composer finished to install dependencies a new directory called `queulat` will be created in `wp-content/mu-plugins`
61+
To enable this plugin you should create a `queulat.php` file in `wp-content/mu-plugins` with the following content:
62+
```php
63+
<?php
64+
/**
65+
* Plugin Name: Queulat Loader
66+
* Description: Load Queulat mu-plugin
67+
*/
68+
69+
// Load Composer autoloader
70+
require_once __DIR__ .'/../themes/wp-theme-cc-chapter/vendor/autoload.php';
71+
72+
// Load Queulat main file.
73+
require_once __DIR__ .'/queulat/queulat.php';
74+
```
75+
*note: if you chose a different directory name for theme repository you should replace `wp-theme-cc-chapter` for the chosen folder name*
76+
77+
Once queulat ins installed, you should install its `javascript` dependencies by executing
78+
```
79+
> npm install --production
80+
```
81+
or
82+
83+
```
84+
> yarn install --prod
85+
```
86+
87+
## Zip install
88+
89+
You can download the zip of this theme and dependencies in the [last release](https://github.com/creativecommons/wp-theme-cc-chapter/releases) in the repository
90+
91+
Please unzip the downloaded file and copy/upload directories to the wordpress install in the following order:
92+
93+
- zip > `wp-theme-cc-chapter` > `mu-plugins` -> `wp-content/mu-plugins/`
94+
- zip > `wp-theme-cc-chapter` > `themes/wp-theme-cc-chapter` -> `wp-content/themes/wp-theme-cc-chapter`
95+
- zip > `wp-theme-cc-chapter` > `themes/twentysixteen` -> `wp-content/themes/twentysixteen`

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"type":"vcs",
2727
"url":"https://github.com/creativecommons/queulat",
2828
"no-api":true
29+
},
30+
{
31+
"type":"composer",
32+
"url":"https://wpackagist.org"
2933
}
3034
],
3135
"require": {
@@ -34,7 +38,11 @@
3438
"wpackagist-theme/twentysixteen":"1.9"
3539
},
3640
"extra": {
37-
"installer-name":"cc-chapter"
41+
"installer-name":"cc-chapter",
42+
"installer-paths" : {
43+
"../../mu-plugins/{$name}" : ["type:wordpress-muplugin"],
44+
"../../themes/{$name}" : ["wpackagist-theme/twentysixteen"]
45+
}
3846
},
3947
"scripts": {
4048
"compat":"phpcs -p --standard=PHPCompatibility --runtime-set testVersion 7.0 -n . --extensions=php --cache",

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Release serial number - Used to bust the cache. Please update
66
* any time you change CSS or JS.
77
*/
8-
define( 'CC_CSS_RELEASE_SERIAL_NUMBER', 'v2019.6.2' );
8+
define( 'CC_CSS_RELEASE_SERIAL_NUMBER', '2019.8.1' );
99
/**
1010
* Include telated files
1111
*/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "CC Chapters theme",
3-
"version": "v2019.6.2",
2+
"name": "cc-chapters-theme",
3+
"version": "2019.8.1",
44
"description": "Creative Commons Chapter websites WordPress theme",
55
"directories": {},
66
"author": "Creative Commons",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Author: Creative Commons
55
Author URI: https://creativecommons.org/
66
Description: The Creative Commons Chapter theme
77
Template: twentysixteen
8-
Version: v2019.6.2
8+
Version: 2019.8.1
99
License: GPL2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

0 commit comments

Comments
 (0)