diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-10-30 11:42:18 +0000 |
---|---|---|
committer | root <root@migration.vz.lan> | 2012-10-30 11:42:26 +0000 |
commit | fa825c5d41abf52153c50137d31dfc086c9f154d (patch) | |
tree | 8098f99f8c792f2f0feb968696b6f3ff0fda6eee | |
download | elgg-fa825c5d41abf52153c50137d31dfc086c9f154d.tar.gz elgg-fa825c5d41abf52153c50137d31dfc086c9f154d.tar.bz2 |
thewirewrite widget.
-rw-r--r-- | languages/en.php | 7 | ||||
-rw-r--r-- | languages/es.php | 7 | ||||
-rwxr-xr-x | manifest.xml | 16 | ||||
-rw-r--r-- | start.php | 7 | ||||
-rw-r--r-- | views/default/widgets/thewirewrite/view.php | 11 |
5 files changed, 48 insertions, 0 deletions
diff --git a/languages/en.php b/languages/en.php new file mode 100644 index 000000000..df30fcf73 --- /dev/null +++ b/languages/en.php @@ -0,0 +1,7 @@ +<?php + + $english = array( + 'thewire:add' => "Post to the wire", + 'thewire:write:desc' => 'This widget allows sending messages to the wire' + ); + add_translation("en",$english); diff --git a/languages/es.php b/languages/es.php new file mode 100644 index 000000000..bcc4ee382 --- /dev/null +++ b/languages/es.php @@ -0,0 +1,7 @@ +<?php + + $spanish = array( + 'thewire:add' => "Enviar mensaje a la red", + 'thewire:write:desc' => 'Este widget permite enviar telegramas a la red' + ); + add_translation("es",$spanish); diff --git a/manifest.xml b/manifest.xml new file mode 100755 index 000000000..68d876929 --- /dev/null +++ b/manifest.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8"> + <name>Extra profile widgets</name> + <author>Lorea developers</author> + <version>1.8</version> + <category>widget</category> + <description>Extra widgets for profile and dashboard.</description> + <copyright>(C) Lorea 2011</copyright> + <website>https://lorea.org/</website> + <license>GNU General Public License version 2</license> + <requires> + <type>elgg_release</type> + <version>1.8</version> + </requires> + <activate_on_install>true</activate_on_install> +</plugin_manifest> diff --git a/start.php b/start.php new file mode 100644 index 000000000..17646dad6 --- /dev/null +++ b/start.php @@ -0,0 +1,7 @@ +<?php + +function profile_widgets_init() { + elgg_register_widget_type('thewirewrite', elgg_echo('thewire:add'), elgg_echo("thewire:yourdesc:write:desc"), 'dashboard'); +} + +elgg_register_event_handler('init', 'system', 'profile_widgets_init'); diff --git a/views/default/widgets/thewirewrite/view.php b/views/default/widgets/thewirewrite/view.php new file mode 100644 index 000000000..9dba9a4cb --- /dev/null +++ b/views/default/widgets/thewirewrite/view.php @@ -0,0 +1,11 @@ +<div class="contentWrapper"> +<?php + + $form_vars = array('class' => 'thewire-form'); + $content = elgg_view_form('thewire/add', $form_vars); + $content .= elgg_view('input/urlshortener'); + $context = 'mine'; + echo $content; +?> +</div> + |