\Cairn_Copyright

Creative Commons licensing options for posts and fineart.

Summary

Methods
Properties
Constants
html()
text()
license_box()
update()
$countries
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$countries

$countries

List of countries

Methods

html()

html(array $license) : string

Returns HTML display of a license.

Parameters

array $license

The license array for the post.

Returns

string —

The html output for the license.

text()

text(array $license) : string

Returns text display of a license.

Parameters

array $license

As stored by self::license_box and self::update

Returns

string —

The text output for the license.

license_box()

license_box()

Callback to add the license options to post and fineart.

update()

update(integer $post_id, array $postdata)

Callback to save the license options for the post and fineart.

Parameters

integer $post_id

The ID of the item/post

array $postdata

The submitted information to change the item/post