Skip to content
Creative Commons Chapter site theme (including chapter sites setup, taxonomies, and widget code)
CSS PHP HTML JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create CODEOWNERS Jun 21, 2019
css add padding to mobile view post & pages May 3, 2019
fonts/fontello iniitial creative commons org commit Feb 11, 2019
images #14 - add default CC favicon Apr 25, 2019
inc
js Chapter sites alpha release Apr 1, 2019
scss add padding to mobile view post & pages May 3, 2019
template-parts
.cc-metadata.yml
.gitignore exclude/ignore general macOS files Mar 7, 2019
404.php files rearrangement and syntax fix Mar 5, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Jun 22, 2019
CONTRIBUTING.md
LICENSE added LICENSE (gpl v2) Mar 8, 2019
README.md
archive.php #16 - add filter to custom WP archive post Apr 29, 2019
author.php
category.php #16 - add filter to custom WP archive post Apr 29, 2019
composer.json
favicon.ico iniitial creative commons org commit Feb 11, 2019
footer.php add custom footer content field to website settings Apr 27, 2019
front-page.php Chapter sites alpha release Apr 1, 2019
functions.php add standalone install notes & fix composer.json issues Aug 7, 2019
gulpfile.js
header.php
index.php #16 - add filter to custom WP archive post Apr 29, 2019
package.json add standalone install notes & fix composer.json issues Aug 7, 2019
page-home.php
page.php #12 - posts archive on selected page. added to the index.php Apr 29, 2019
page_program.php
readme.txt updated names to WordPress.org names Mar 8, 2019
screenshot.png iniitial creative commons org commit Feb 11, 2019
search.php page & post layout fix Apr 14, 2019
single-cc_chevent.php deactivate custom post types for now Apr 10, 2019
single-post.php fix include external files Mar 5, 2019
single.php
style.css fix version number consistency Jun 20, 2019
template-news.php #16 - add filter to custom WP archive post Apr 29, 2019

README.md

Creative Commons - Chapter WordPress theme

  • Contributors: quentinrogers, mackaffinity, cctimidrobot, hugosolar
  • Tags: CreativeCommons
  • Requires at least: 4.5+
  • Tested up to: 5.0.3
  • Requires PHP: 7.0
  • License: GPLv2 or later
  • License URI: https://www.gnu.org/licenses/gpl-2.0.html

Creative Commons Chapter site theme (including chapter sites setup, taxonomies, and widget code)

Development Installation

This theme uses npm, gulp, and browserify to manage dependencies.

Versions of node and npm we know work:

  • npm 3.3.12
  • node 5.4.1

To install gulp:

  • run npm install -g gulp

To build the js/css:

  • run npm install to download the 3rd party libs in package.json
  • during development:
    • run gulp in the background, i.e. run gulp in a terminal and leave it running. It will automatically recompile css/app.css files as you edit the src files.
  • when preparing for production:
    • run gulp dist to create minified css/app.css files.
  • also update the CC_CSS_RELEASE_SERIAL_NUMBER at the top of functions.php to purge the caches.

Standalone installation

Requirements

  • Composer
  • node / npm (yarn also works)
  • git

Clone the repository into your wp-content/themes

> git clone git@github.com:creativecommons/wp-theme-cc-chapter.git

then, go to the directory (cd wp-theme-cc-chapter ) and execute composer install

> composer install

Composer will install the required dependencies such as

  • Queulat
  • Twentysixteen

Once composer finished to install dependencies a new directory called queulat will be created in wp-content/mu-plugins To enable this plugin you should create a queulat.php file in wp-content/mu-plugins with the following content:

<?php
/**
 * Plugin Name: Queulat Loader
 * Description: Load Queulat mu-plugin
 */

// Load Composer autoloader
require_once __DIR__ .'/../themes/wp-theme-cc-chapter/vendor/autoload.php';

// Load Queulat main file.
require_once __DIR__ .'/queulat/queulat.php';

note: if you chose a different directory name for theme repository you should replace wp-theme-cc-chapter for the chosen folder name

Once queulat ins installed, you should install its javascript dependencies by executing

> npm install --production

or

> yarn install --prod

Zip install

You can download the zip of this theme and dependencies in the last release in the repository

Please unzip the downloaded file and copy/upload directories to the wordpress install in the following order:

  • zip > wp-theme-cc-chapter > mu-plugins -> wp-content/mu-plugins/
  • zip > wp-theme-cc-chapter > themes/wp-theme-cc-chapter -> wp-content/themes/wp-theme-cc-chapter
  • zip > wp-theme-cc-chapter > themes/twentysixteen -> wp-content/themes/twentysixteen
You can’t perform that action at this time.