Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 94d5d73

Browse files
authored
Merge pull request #59 from Gabrielchihonglee/develop
Fix 49: Missing 'license' at end
2 parents e179851 + 86cbab6 commit 94d5d73

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

includes/class-creativecommons.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class CreativeCommons {
1414
private $locale;
1515

1616
private static $instance = null;
17-
17+
1818

1919
private function __construct()
2020
{
2121
}
2222

23-
23+
2424
public function init()
2525
{
2626
$this->plugin_url = plugin_dir_url(dirname(__FILE__));
@@ -92,20 +92,20 @@ public function init()
9292
);
9393
}
9494
}
95-
95+
9696

9797
public static function get_instance()
9898
{
99-
99+
100100
if ( null == self::$instance ) {
101101
self::$instance = new self;
102102
}
103-
103+
104104
return self::$instance;
105-
105+
106106
}
107-
108-
107+
108+
109109
function wphub_register_settings()
110110
{
111111
add_option('wphub_use_api', '1');
@@ -129,7 +129,7 @@ function wphub_register_options_page()
129129
/**
130130
* Register and add settings
131131
*/
132-
132+
133133
public function page_init()
134134
{
135135
register_setting(
@@ -199,7 +199,7 @@ public function page_init()
199199
'license-section',
200200
array('label_for' => 'allow_user_override')
201201
);
202-
202+
203203
add_settings_field(
204204
'allow_content_override',
205205
__(
@@ -366,7 +366,7 @@ function plugin_default_license()
366366
'image' => 'https://licensebuttons.net/l/by-sa/4.0/88x31.png',
367367
'attribute_to' => '',
368368
'title' => get_bloginfo('name'),
369-
'name' => 'Creative Commons Attribution-Share Alike 4.0 License',
369+
'name' => 'Creative Commons Attribution-Share Alike 4.0',
370370
'sitename' => get_bloginfo(''),
371371
'siteurl' => get_bloginfo('url'),
372372
'author' => get_bloginfo(),
@@ -729,7 +729,7 @@ private function _verify_license_data($from, $data = null)
729729
) {
730730
$data = $_POST['license'];
731731
}
732-
732+
733733
// always save the current version
734734
$license['version'] = self::VERSION;
735735
$license['deed'] = esc_url( $data['deed'] );
@@ -739,7 +739,7 @@ private function _verify_license_data($from, $data = null)
739739
$license['attribute_other'] = esc_html($data['attribute_other' ]);
740740
$license['attribute_other_url']
741741
= esc_html($data['attribute_other_url']);
742-
742+
743743
switch($from) {
744744
// @TODO need to check this!
745745
case 'network':
@@ -1087,7 +1087,7 @@ public function license_html_rdfa($deed_url, $license_name, $image_url,
10871087
$html .= $attribute_text;
10881088
}
10891089
}
1090-
$html .= sprintf(__('is licensed under a <a rel="license" href="%s">%s</a>.', $this->localization_domain), $deed_url, $license_name);
1090+
$html .= sprintf(__('is licensed under a <a rel="license" href="%s">%s</a> License.', $this->localization_domain), $deed_url, $license_name);
10911091
if ($source_work_url) {
10921092
$html .= '<br />';
10931093
$html .= sprintf(__('Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="%s" rel="dct:source">%s</a>.', $this->localization_domain), $source_work_url, $source_work_url);
@@ -1103,7 +1103,7 @@ public function license_html_rdfa($deed_url, $license_name, $image_url,
11031103
return $html;
11041104
}
11051105

1106-
1106+
11071107
public function cc0_html_rdfa($title_work, $attribute_url, $attribute_text)
11081108
{
11091109
$result = '<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
@@ -1178,7 +1178,7 @@ function license_as_widget() {
11781178
register_widget('CreativeCommons_widget');
11791179
}
11801180

1181-
1181+
11821182
// log all errors if wp_debug is active
11831183
private function _logger($string)
11841184
{
@@ -1188,5 +1188,5 @@ private function _logger($string)
11881188
return;
11891189
}
11901190
}
1191-
1192-
}
1191+
1192+
}

0 commit comments

Comments
 (0)