Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.

License

Notifications You must be signed in to change notification settings

GwynethLlewelyn/wp-plugin-creativecommons

 
 

Repository files navigation

All Contributors

CC WordPress Plugin

Official Creative Commons plugin for licensing your content on your WordPress website. With Creative Commons licenses, keep your copyright and share your creativity.

PRs Welcome License: GPL v2 CalVer Format: YYYY.0M.Micro

Note & Disclaimer

This is a fork that I was doing to basically replace the exif_read_data() call with wp_read_image_metadata(), which includes metadata from IPTC, not only EXIF. Unfortunately, for security reasons, the Automattic folks clean up the results, stripping all the tags from them, including non-HTML tags, which may render the information next to useless. See issue #14.

A pity that I only read that 5-year-old issue after doing all the work on this fork, which also includes a lot of cleaning up. Alas, everything now is useless, so I'm freezing the code and archiving it on GitHub, in case anyone finds the subtle changes I made to get the code more conforming to the WordPress coding style useful...

-- Gwyneth Llewelyn, on the last day of August 2021

Description

The plugin is an attribution tool. It has multiple features that allow users to attribute their content by including Creative Commons license (Choose a License) on their WordPress website. This includes default, post, page and media attribution.

Installation

Download the latest version from this project's releases. You can install the plugin to your WP website using any of these methods:

  1. In your plugin Dashboard on WordPress, Click Add New and upload the plugin .zip file. When installed, activate the plugin.
  2. Extract the .zip file and paste the extracted folder to the "/wp-content/plugins/" directory. Go to your plugin Dashboard and activate the plugin.

Features

Setting a Default Site License

After activating the plugin, head to Settings > Creative Commons to set up the default license.

Plugin Settings

Selecting a license is simple. Select one from the given CC licenses, by default CC BY-SA license is used.

Select License

There are multiple options available for the license. You can add:

  • Additional attribution text for a custom note.
  • Title and Title URL. If not mentioned it defaults to "the content".
  • Author and Author URL. If not mentioned it defaults to "on this site".
  • Display options.

License Options

Widget

There are two options to display the default license, as a widget or in the footer. We recommend using the widget for better theme compatibility.

Widget

After selecting the widget go to Appearance > Widgets and drag the CC License Widget to the required area. The widget will then display the default license on all pages of the site.

Widget Front-end

Gutenberg Blocks

The plugin adds specific Gutenberg blocks for each Creative Commons license. If you are using the default Gutenberg editor, you will find these blocks under a separate category.

Blocks Category

These blocks can be used to license any page/post/image or other media.

Blocks Back-end

Following is an image attributed using CC gutenberg block.

Attributed Image

At a glance, with WP CC Plugin you can:

  • License your site with a default license.
  • You can display the default license in the footer or as a widget in widget areas.
  • Display license for the site, posts and pages license)
  • License your WordPress Network (WordPress Multisite install)
  • License some of your sites differently in your WordPress Network
  • License some posts, pages, or images differently from your default license (per content license)
  • License posts and pages by simply including CC Gutenberg blocks for each license required (Gutenberg License Blocks)

Contributing

Contributions will be very appreciated. See CONTRIBUTING.md.

Release Schedule

We will release a new version every month that there are substantial changes. See milestones for how GitHub issues are assigned for release.

History

This plugin is loosely based on an existing, but seemingly abandoned WordPress plugin named 'License' (a component of the MIT Educational Collaboration Space project) by mitcho (Michael Yoshitaka Erlewine) and Brett Mellor. We're also inspired by Creative Commons' original wordpress-cc-plugin written by former Creative Commons CTO Nathan Yergler.

Credits

  • Michael Yoshitaka Erlewine (License v0.5)
  • Brett Mellor (License v0.5)
  • Bjorn Wijers
  • Matt Lee
  • Rob Myers
  • Tarmo Toikkanen

License

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Juane Puig

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 59.3%
  • JavaScript 31.1%
  • CSS 4.9%
  • Shell 2.4%
  • SCSS 2.3%