Difference between revisions of "WpLicense Function Reference"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Developer]]
 
[[Category:Developer]]
[[Category:OpenSource]]
+
[[Category:Opensource]]
 
[[Category:WpLicense]]
 
[[Category:WpLicense]]
  

Revision as of 18:33, 8 June 2007

WpLicense includes functions which may be added to templates in order to include license metadata or a license marking. Functions are also included to support retrieval of license RDF or URI for other applications to build on.

licenseRdf($display=True)

Retrieves the RDF block associated with the selected license. If $display is True or not specified, the RDF is echoed into the current document. If $display is False, the RDF block is returned as a String.

licenseHtml($display=True)

Retrieves the HTML block associated with the selected license. The HTML block includes the license RDF and optional work RDF, encoded in an HTML comment, along with the “Some Rights Reserved” image, if appropriate. If $display is True or not specified, the RDF is echoed into the current document. If $display is False, the RDF block is returned as a String.

licenseUri()

Returns the URI of the selected license. This will be a link to the human readable deed, which also includes embedded RDF defining the specific license properties.