Skip to content

Commit b29eb6b

Browse files
committed
Merge pull request #18 from documentcloud/officializing
Canonicalizing the plugin name
2 parents 1b84674 + f6ccc34 commit b29eb6b

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

navis-documentcloud.php renamed to documentcloud.php

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22
/***
3-
* Plugin Name: Navis DocumentCloud
4-
* Description: Embed DocumentCloud documents that won't be eaten by the visual editor
5-
* Version: 0.1
6-
* Author: Chris Amico
3+
* Plugin Name: DocumentCloud
4+
* Plugin URI: https://www.documentcloud.org/
5+
* Description: Embed DocumentCloud resources in WordPress content.
6+
* Version: 0.1.1
7+
* Authors: Chris Amico, Justin Reese
78
* License: GPLv2
89
***/
910
/*
10-
Copyright 2011 National Public Radio, Inc.
11+
Copyright 2011 National Public Radio, Inc.
12+
Copyright 2015 DocumentCloud, Investigative Reporters & Editors
1113
1214
This program is free software; you can redistribute it and/or modify
1315
it under the terms of the GNU General Public License, version 2, as
@@ -23,7 +25,7 @@
2325
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2426
*/
2527

26-
class Navis_DocumentCloud {
28+
class WP_DocumentCloud {
2729

2830
function __construct() {
2931

@@ -51,7 +53,7 @@ function register_tinymce_filters() {
5153

5254
function add_tinymce_plugin($plugin_array) {
5355
$plugin_array['documentcloud'] = plugins_url(
54-
'js/navis-documentcloud-editor-plugin.js', __FILE__);
56+
'js/documentcloud-editor-plugin.js', __FILE__);
5557
return $plugin_array;
5658
}
5759

@@ -242,4 +244,4 @@ function embed_shortcode($atts, $content, $code) {
242244
}
243245
}
244246

245-
new Navis_DocumentCloud;
247+
new WP_DocumentCloud;

js/navis-documentcloud-editor-plugin.js renamed to js/documentcloud-editor-plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
// Register example button
2626
ed.addButton('documentcloud', {
27-
title : 'Document Cloud',
27+
title : 'DocumentCloud',
2828
cmd : 'documentcloud',
2929
image : url + '/button.png'
3030
});
@@ -57,7 +57,7 @@
5757
*/
5858
getInfo : function() {
5959
return {
60-
longname : 'Navis DocumentCloud Plugin',
60+
longname : 'DocumentCloud Plugin',
6161
author : 'Chris Amico',
6262
authorurl : 'http://stateimpact.npr.org/',
6363
infourl : 'http://stateimpact.npr.org/',

js/window.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
1515
<script src="<?php echo $SITEURL; ?>wp-includes/js/tinymce/tiny_mce_popup.js"></script>
1616
<script src="<?php echo $SITEURL; ?>wp-includes/js/tinymce/utils/form_utils.js"></script>
17-
<script src="<?php echo $SITEURL; ?>wp-content/plugins/navis-documentcloud/js/tinywindow.js?version=1"></script>
17+
<script src="<?php echo $SITEURL; ?>wp-content/plugins/documentcloud/js/tinywindow.js?version=1"></script>
1818
<style>
1919
form p {
2020
font-size: 1.5em;

readme.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
=== Navis DocumentCloud ===
2-
Contributors: chrisamico
1+
=== DocumentCloud ===
2+
Contributors: chrisamico, reefdog
33
Tags: documentcloud, documents
44
Requires at least: 3.2
55
Tested up to: 3.9.1
66
Stable tag: trunk
77

8-
Embed DocumentCloud documents that won't be eaten by the visual editor.
8+
Embed DocumentCloud resources in WordPress content.
99

1010
== Description ==
1111

12-
[DocumentCloud](http://www.documentcloud.org/home) is a free service allowing journalists to analyze, annotate and publish documents, funded by the Knight Foundation. Initial development supported by [NPR](http://www.npr.org) as part of [StateImpact](http://stateimpact.npr.org) project.
12+
[DocumentCloud](https://www.documentcloud.org/) is a free service allowing journalists to analyze, annotate and publish documents, funded by the Knight Foundation. Initial development of this plugin supported by [NPR](http://www.npr.org) as part of [StateImpact](http://stateimpact.npr.org) project.
1313

1414
DocumentCloud's normal embed code looks like this:
1515

@@ -41,7 +41,7 @@ This will use default height and width settings, which you can update in the Wor
4141

4242
== Installation ==
4343

44-
1. Upload the navis-documentcloud directory to `wp-content/plugins/wordpress-documentcloud`
44+
1. Upload the documentcloud directory to `wp-content/plugins/documentcloud`
4545
2. Activate the plugin
4646
3. In your posts, add documents using the DocumentCloud button, or the `[documentcloud]` shortcode.
4747

0 commit comments

Comments
 (0)