| 1 |
<?php |
<?php |
| 2 |
// $Id: creativecommons.class.php,v 1.3.4.43 2009/11/01 11:34:25 balleyne Exp $ |
// $Id: creativecommons.class.php,v 1.3.4.44 2009/11/04 08:14:54 balleyne Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 407 |
'@cc:attributionURL' => $this->metadata['attributionURL'] && creativecommons_metadata_is_available('attributionURL') ? $this->metadata['attributionURL'] : $default_attributionURL, |
'@cc:attributionURL' => $this->metadata['attributionURL'] && creativecommons_metadata_is_available('attributionURL') ? $this->metadata['attributionURL'] : $default_attributionURL, |
| 408 |
); |
); |
| 409 |
|
|
| 410 |
|
// All rights reserved |
| 411 |
|
if ($this->type == '') { |
| 412 |
|
// None (All Rights Reserved) |
| 413 |
|
$html .= variable_get('creativecommons_arr_text', NULL); |
| 414 |
|
} |
| 415 |
// Site license, no attribution name |
// Site license, no attribution name |
| 416 |
if ($site && (!$this->metadata['attributionName'] || !creativecommons_metadata_is_available('attributionName'))) { |
else if ($site && (!$this->metadata['attributionName'] || !creativecommons_metadata_is_available('attributionName'))) { |
| 417 |
// CC0 |
// CC0 |
| 418 |
if ($this->type == 'zero') { |
if ($this->type == 'zero') { |
| 419 |
$html .= t('To the extent possible under law, all copyright and related or neighboring rights to this <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <a rel="cc:attributionURL" href="@cc:attributionURL" property="dc:title">@dc:title</a>, have been waived, although certain works referenced herein may be separately licensed.', $args); |
$html .= t('To the extent possible under law, all copyright and related or neighboring rights to this <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <a rel="cc:attributionURL" href="@cc:attributionURL" property="dc:title">@dc:title</a>, have been waived, although certain works referenced herein may be separately licensed.', $args); |
| 429 |
if ($this->type == 'zero') { |
if ($this->type == 'zero') { |
| 430 |
$html .= t('To the extent possible under law, all copyright and related or neighboring rights to this <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <span property="dc:title">@dc:title</span>, by <a rel="cc:attributionURL" href="@cc:attributionURL" property="cc:attributionName">@cc:attributionName</a> have been waived.', $args); |
$html .= t('To the extent possible under law, all copyright and related or neighboring rights to this <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <span property="dc:title">@dc:title</span>, by <a rel="cc:attributionURL" href="@cc:attributionURL" property="cc:attributionName">@cc:attributionName</a> have been waived.', $args); |
| 431 |
} |
} |
|
else if ($this->type == '') { |
|
|
// None (All Rights Reserved) |
|
|
$html .= variable_get('creativecommons_arr_text', NULL); |
|
|
} |
|
| 432 |
// Rest |
// Rest |
| 433 |
else { |
else { |
| 434 |
$html .= t('This <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <span property="dc:title">@dc:title</span>, by <a rel="cc:attributionURL" href="@cc:attributionURL" property="cc:attributionName">@cc:attributionName</a> is licensed under a <a rel="license" href="@license-uri">@license-name license</a>.', $args); |
$html .= t('This <span rel="dc:type" href="@dc:type-uri">@dc:type-name</span>, <span property="dc:title">@dc:title</span>, by <a rel="cc:attributionURL" href="@cc:attributionURL" property="cc:attributionName">@cc:attributionName</a> is licensed under a <a rel="license" href="@license-uri">@license-name license</a>.', $args); |