/[drupal]/contributions/modules/creativecommons/creativecommons.class.php
ViewVC logotype

Diff of /contributions/modules/creativecommons/creativecommons.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.4.44, Wed Nov 4 08:14:54 2009 UTC revision 1.3.4.45, Wed Nov 4 08:51:15 2009 UTC
# Line 1  Line 1 
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
# Line 407  class creativecommons_license { Line 407  class creativecommons_license {
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);
# Line 424  class creativecommons_license { Line 429  class creativecommons_license {
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);

Legend:
Removed from v.1.3.4.44  
changed lines
  Added in v.1.3.4.45

  ViewVC Help
Powered by ViewVC 1.1.2