Difference between revisions of "WpLicense Function Reference"
Line 6: | Line 6: | ||
== licenseRdf($display=True) == | == licenseRdf($display=True) == | ||
+ | |||
+ | '''Deprecated; no longer supported in wpLicense 0.9''' | ||
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. | 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. |
Revision as of 20:45, 31 July 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)
Deprecated; no longer supported in wpLicense 0.9
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.