From 11303f9b08227999ac0f362eaea145989555fa95 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 8 Jul 2010 18:58:33 +0000 Subject: Added missing important view for ECML web services embed. git-svn-id: http://code.elgg.org/elgg/trunk@6665 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/embed/web_services/content.php | 183 +++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 mod/ecml/views/default/embed/web_services/content.php (limited to 'mod') diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php new file mode 100644 index 000000000..42e9279c9 --- /dev/null +++ b/mod/ecml/views/default/embed/web_services/content.php @@ -0,0 +1,183 @@ + ECML converter for supported 3rd party services. + * + * Tries to automatically detect which site/ecml to use. + * Will highlight the correct one. + * If can find none, will show an error. + * Lets users click to force an ECML keyword, but will display a warning. + * + */ + +$internal_name = elgg_get_array_value('internal_name', $vars); + +$keywords = ecml_get_keywords(); +elgg_sort_3d_array_by_value($keywords, 'name'); + +$keyword_js_array = array(); +$keyword_html = ''; + +$keywords_js = json_encode($keyword_js_array); + +$input = elgg_view('input/text', array( + 'internalid' => 'web_services_resource' +)); + +$embed = elgg_view('input/button', array( + 'name' => 'buggy', + 'internalid' => 'embed_submit', + 'type' => 'button', + 'value' => elgg_echo('embed:embed'), + 'class' => 'embed_disabled', + 'disabled' => TRUE +)); + +echo $input; +echo '

ECML:

'; +echo $keywords_html; +echo $embed; + +?> +

Preview

+
+ + \ No newline at end of file -- cgit v1.2.3