diff --git a/CHANGELOG b/CHANGELOG index ea46c65..124828e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,17 @@ +0.8.1 +fixed forwarded links. forwards to owners/groups pages when integration is enabled, or pads when not. +Changed river message, "created a new collaborative pad" as it works for both pads and collab pages. +History button now only appears when pages integration is enabled. +Fixed fullscreen button, works again and only appears if pages integration is disabled. + +0.8.0 (Big thanks to Sem) +Pages integration +Group pads. +Lots of refactoring. +Bug fixes. +Plugin name changed from 'elggpad-lite' to 'elggpad'. +Changed 'Etherpads' to 'Pads' for consistency. + 0.6.0 Fixed Etherpad Lite authentication. Pads now support elgg permissions (private, logged in users only, friends, public) diff --git a/README b/README index ac12281..c7406de 100644 --- a/README +++ b/README @@ -1,8 +1,9 @@ -elggpad-lite v0.6.0 +elggpad v0.8.0 Requires: elgg 1.8 http://elgg.org/download.php etherpad lite 1.0 http://etherpad.org/download/ + Install: Extract plugin. @@ -17,6 +18,7 @@ Configure: like a password. The plugin needs this to function correctly, you can find your api key in etherpad lites root directory in a text file called APIKEY.txt New pad text, this is the text that will be added to each new pad. + Integrate pads and pages, Removes normal pad behavior and integrates pads into pages. (Requires pages plugin) Show controls, show/hide etherpad lites control bar. Show chat, show/hide etherpad lites built in chat service. Show line numbers, show/hide line numbers. @@ -26,15 +28,15 @@ Configure: Supported languages: English, Spanish. Notes: + Huge thanks to Sem for this release, really nice work. Etherpad Lite is not included in the plugin, you need to install and configure it separately. Changes: - Fixed Etherpad Lite authentication. - Pads now support elgg permissions (private, logged in users only, friends, public) - Pads can no longer be directly accessed without logging into elgg. (unless public) - -TODO: + Pages integration Group pads. + Lots of refactoring. + Bug fixes. + Plugin name changed from 'elggpad-lite' to 'elggpad' License: GPL version 2, see LICENSE for more details. diff --git a/TODO b/TODO index cfc9727..6807283 100644 --- a/TODO +++ b/TODO @@ -1,12 +1,2 @@ TODO: - -Major: - Group pads, fix group ownership of pads (elgg), fix group module. - -Minor: - - -Thinking about: - Save button, Saves current pad contents to blog/page. - (Will require blog and/or page plugins to be activated) - Passworded pads. + Update spanish language file. \ No newline at end of file diff --git a/etherpad/README b/etherpad/README index ac12281..c7406de 100644 --- a/etherpad/README +++ b/etherpad/README @@ -1,8 +1,9 @@ -elggpad-lite v0.6.0 +elggpad v0.8.0 Requires: elgg 1.8 http://elgg.org/download.php etherpad lite 1.0 http://etherpad.org/download/ + Install: Extract plugin. @@ -17,6 +18,7 @@ Configure: like a password. The plugin needs this to function correctly, you can find your api key in etherpad lites root directory in a text file called APIKEY.txt New pad text, this is the text that will be added to each new pad. + Integrate pads and pages, Removes normal pad behavior and integrates pads into pages. (Requires pages plugin) Show controls, show/hide etherpad lites control bar. Show chat, show/hide etherpad lites built in chat service. Show line numbers, show/hide line numbers. @@ -26,15 +28,15 @@ Configure: Supported languages: English, Spanish. Notes: + Huge thanks to Sem for this release, really nice work. Etherpad Lite is not included in the plugin, you need to install and configure it separately. Changes: - Fixed Etherpad Lite authentication. - Pads now support elgg permissions (private, logged in users only, friends, public) - Pads can no longer be directly accessed without logging into elgg. (unless public) - -TODO: + Pages integration Group pads. + Lots of refactoring. + Bug fixes. + Plugin name changed from 'elggpad-lite' to 'elggpad' License: GPL version 2, see LICENSE for more details. diff --git a/etherpad/actions/etherpad/delete.php b/etherpad/actions/etherpad/delete.php index dfaeb01..8674ad2 100644 --- a/etherpad/actions/etherpad/delete.php +++ b/etherpad/actions/etherpad/delete.php @@ -32,11 +32,15 @@ forward($parent->getURL()); } } + //Forward to pages only if pages integration enabled. Otherwise forward to pads. + $handler = elgg_get_plugin_setting('integrate_in_pages', 'etherpad') == 'yes' ? 'pages' : 'etherpad'; + if (elgg_instanceof($container, 'group')) { - forward("pages/group/$container->guid/all"); + forward("$handler/group/$container->guid/all"); } else { - forward("pages/owner/$container->username"); + forward("$handler/owner/$container->username"); } + } } } diff --git a/etherpad/languages/en.php b/etherpad/languages/en.php index 364ef62..561b707 100644 --- a/etherpad/languages/en.php +++ b/etherpad/languages/en.php @@ -11,26 +11,27 @@ * Menu items and titles */ - 'etherpad' => "Etherpads", - 'etherpad:owner' => "%s's etherpads", - 'etherpad:friends' => "Friends' etherpads", - 'etherpad:all' => "All site etherpads", + 'etherpad' => "Pads", + 'etherpad:owner' => "%s's pads", + 'etherpad:friends' => "Friends' pads", + 'etherpad:all' => "All site pads", 'etherpad:add' => "Add pad", 'etherpad:timeslider' => 'History', - 'etherpad:none' => 'No etherpads created yet', + 'etherpad:fullscreen' => 'Fullscreen', + 'etherpad:none' => 'No pads created yet', - 'etherpad:group' => 'Group etherpads', + 'etherpad:group' => 'Group pads', 'groups:enablepads' => 'Enable group pads', /** * River */ - 'river:create:object:etherpad' => '%s created a new collaborative page %s', - 'river:create:object:subpad' => '%s created a new collaborative page %s', - 'river:update:object:etherpad' => '%s updated the collaborative page %s', - 'river:update:object:subpad' => '%s updated the collaborative page %s', - 'river:comment:object:etherpad' => '%s commented on the collaborative page %s', - 'river:comment:object:subpad' => '%s commented on the collaborative page %s', + 'river:create:object:etherpad' => '%s created a new collaborative pad %s', + 'river:create:object:subpad' => '%s created a new collaborative pad %s', + 'river:update:object:etherpad' => '%s updated the collaborative pad %s', + 'river:update:object:subpad' => '%s updated the collaborative pad %s', + 'river:comment:object:etherpad' => '%s commented on the collaborative pad %s', + 'river:comment:object:subpad' => '%s commented on the collaborative pad %s', 'item:object:etherpad' => 'Pads', 'item:object:subpad' => 'Subpads', @@ -65,7 +66,7 @@ 'etherpad:showcomments' => "Show comments?", 'etherpad:newpadtext' => "New pad text:", 'etherpad:pad:message' => 'New pad created successfully.', - 'etherpad:integrateinpages' => "Integrate pads and pages?", + 'etherpad:integrateinpages' => "Integrate pads and pages? (Requires Pages plugin to be enabled)", /** * Widget diff --git a/etherpad/manifest.xml b/etherpad/manifest.xml index 28ab7a5..a3ac0be 100644 --- a/etherpad/manifest.xml +++ b/etherpad/manifest.xml @@ -2,7 +2,7 @@ Etherpad Lite Luke Williams, Lorea - 0.6.0 + 0.8.1 integrations widget Etherpad Lite integration. @@ -13,10 +13,10 @@ elgg_release 1.8 - + plugin pages - + priority after diff --git a/etherpad/start.php b/etherpad/start.php index e378c4b..d9ce1a1 100644 --- a/etherpad/start.php +++ b/etherpad/start.php @@ -138,14 +138,25 @@ function etherpad_entity_menu($hook, $type, $return, $params) { return $return; } - // timeslider button + // timeslider button, show only if pages integration is enabled. $handler = elgg_get_plugin_setting('integrate_in_pages', 'etherpad') == 'yes' ? 'pages' : 'etherpad'; - $options = array( - 'name' => 'etherpad-timeslider', - 'text' => elgg_echo('etherpad:timeslider'), - 'href' => elgg_get_site_url() . "$handler/history/" . $entity->guid, - 'priority' => 200, - ); + if($handler == 'pages') { + $options = array( + 'name' => 'etherpad-timeslider', + 'text' => elgg_echo('etherpad:timeslider'), + 'href' => elgg_get_site_url() . "$handler/history/" . $entity->guid, + 'priority' => 200, + ); + } else { + // fullscreen button + $entity = new ElggPad($entity->guid); + $options = array( + 'name' => 'etherpadfs', + 'text' => elgg_echo('etherpad:fullscreen'), + 'href' => $entity->getPadPath(), + 'priority' => 200, + ); + } $return[] = ElggMenuItem::factory($options); return $return; diff --git a/etherpad/views/default/object/etherpad.php b/etherpad/views/default/object/etherpad.php index 499cb39..571efce 100644 --- a/etherpad/views/default/object/etherpad.php +++ b/etherpad/views/default/object/etherpad.php @@ -27,9 +27,11 @@ $etherpad_icon = elgg_view('etherpad/icon', array('entity' => $etherpad, 'size' => 'small')); +//link to owners pages only if pages integration is enabled. Else link to owners pads. +$handler = elgg_get_plugin_setting('integrate_in_pages', 'etherpad') == 'yes' ? 'pages' : 'etherpad'; $editor = get_entity($etherpad->owner_guid); $editor_link = elgg_view('output/url', array( - 'href' => "pages/owner/$editor->username", + 'href' => "$handler/owner/$editor->username", 'text' => $editor->name, 'is_trusted' => true, )); diff --git a/etherpad/views/default/output/iframe.php b/etherpad/views/default/output/iframe.php index 429335b..3531705 100644 --- a/etherpad/views/default/output/iframe.php +++ b/etherpad/views/default/output/iframe.php @@ -9,13 +9,13 @@ * @uses $vars['type'] type of iframe. */ - + //This is where theme makers can override iframe dimensions. $fullsrc = "\"" . $vars['value'] . "\""; $type = $vars['type']; if($type){ switch($type) { case "etherpad" : - $fullsrc .= " width=728 height=405"; + $fullsrc .= " width=728 height=405"; break; default : break;