aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ecml/views')
-rw-r--r--mod/ecml/views/default/ecml/admin/css.php156
-rw-r--r--mod/ecml/views/default/ecml/help.php28
-rw-r--r--mod/ecml/views/default/ecml/help/blip.tv.php12
-rw-r--r--mod/ecml/views/default/ecml/help/dailymotion.php12
-rw-r--r--mod/ecml/views/default/ecml/help/googlemaps.php12
-rw-r--r--mod/ecml/views/default/ecml/help/livevideo.php12
-rw-r--r--mod/ecml/views/default/ecml/help/redlasso.php13
-rw-r--r--mod/ecml/views/default/ecml/help/slideshare.php12
-rw-r--r--mod/ecml/views/default/ecml/help/vimeo.php12
-rw-r--r--mod/ecml/views/default/ecml/help/youtube.php12
-rw-r--r--mod/ecml/views/default/ecml/input_ext.php10
-rw-r--r--mod/ecml/views/default/ecml/keyword_help.php18
-rw-r--r--mod/ecml/views/default/ecml/keywords/blip.tv.php19
-rw-r--r--mod/ecml/views/default/ecml/keywords/dailymotion.php27
-rw-r--r--mod/ecml/views/default/ecml/keywords/entity.php22
-rw-r--r--mod/ecml/views/default/ecml/keywords/googlemaps.php23
-rw-r--r--mod/ecml/views/default/ecml/keywords/livevideo.php25
-rw-r--r--mod/ecml/views/default/ecml/keywords/redlasso.php23
-rw-r--r--mod/ecml/views/default/ecml/keywords/slideshare.php30
-rw-r--r--mod/ecml/views/default/ecml/keywords/user_list.php43
-rw-r--r--mod/ecml/views/default/ecml/keywords/vimeo.php50
-rw-r--r--mod/ecml/views/default/ecml/keywords/youtube.php39
-rw-r--r--mod/ecml/views/default/embed/web_services/content.php220
-rw-r--r--mod/ecml/views/default/settings/ecml/edit.php133
24 files changed, 0 insertions, 963 deletions
diff --git a/mod/ecml/views/default/ecml/admin/css.php b/mod/ecml/views/default/ecml/admin/css.php
deleted file mode 100644
index 0b018733a..000000000
--- a/mod/ecml/views/default/ecml/admin/css.php
+++ /dev/null
@@ -1,156 +0,0 @@
-<?php
-/**
-* ECML CSS
-*/
-?>
-
-.ecml_admin_table {
- width:100%;
-}
-.ecml_admin_table td, th {
- border: 1px solid gray;
- text-align: center;
- padding: 5px;
-}
-.ecml_admin_table th, .ecml_keyword_desc {
- font-weight: bold;
-}
-.ecml_row_odd {
- background-color: #EEE;
-}
-.ecml_row_even {
-
-}
-.ecml_restricted {
- color: #555;
-}
-
-
-/* ecml embed web services list */
-.ecml_web_service_list {
- margin:0;
- padding:0;
-}
-.ecml_web_service_list li {
- list-style: none;
- margin:0 0 0 0;
- padding:0;
- /* display:inline; */
-
-}
-.ecml_web_service_list li a {
- display:block;
- float:left;
- height:41px;
- width:152px;
- background-position: center center;
- background-repeat: no-repeat;
- text-indent: -900em;
- border:2px solid transparent;
- margin:0 20px 10px 0;
-}
-.ecml_web_service_list li a.selected {
- border-color:#999999;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
-}
-.ecml_web_service_list li a.youtube {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_youtube.gif);
- width:102px;
-}
-.ecml_web_service_list li a.slideshare {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_slideshare.gif);
-}
-.ecml_web_service_list li a.vimeo {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_vimeo.gif);
- width:130px;
-}
-.ecml_web_service_list li a.googlemaps {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_googlemaps.gif);
-}
-.ecml_web_service_list li a.blip_tv {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_bliptv.gif);
- width:102px;
-}
-.ecml_web_service_list li a.dailymotion {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_dailymotion.gif);
-}
-.ecml_web_service_list li a.livevideo {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_livevideo.gif);
- width:166px;
-}
-.ecml_web_service_list li a.redlasso {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/logo_redlasso.gif);
- background-position:center 4px;
- width:130px;
-}
-
-.embed_content_section {
- border:none;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- background-color:#EEEEEE;
- margin:10px 0 10px 0;
- padding:5px;
- width:auto;
-}
-.ecml_generated_code {
- color:#666666;
- font-size:85%;
- font-style:normal;
- line-height: 1.3em;
- margin:5px 0;
-}
-.ecml_embed_instructions,
-.ecml_embed_preview {
- background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png);
- background-repeat: no-repeat;
- background-position: 0px -367px;
- padding-left: 12px;
-}
-.ecml_embed_instructions.open,
-.ecml_embed_preview.open {
- background-position: 0px -388px;
-}
-#embed_service_url {
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- background-color:#EEEEEE;
- margin:10px 0 10px 0;
- padding:5px;
- width:auto;
-}
-#web_services_resource {
- width:670px;
-}
-#url_status {
- width:30px;
- height:30px;
- float:right;
-}
-#url_status.success {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/url_status.png);
- background-repeat: no-repeat;
- background-position: left top;
-}
-#url_status.failure {
- background-image: url(<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/url_status.png);
- background-repeat: no-repeat;
- background-position: left bottom;
-}
-#embed_ecml_keyword_help,
-#ecml_preview {
- padding:10px;
-}
-#ecml_preview object,
-#ecml_preview embed,
-#ecml_preview iframe {
- width: auto;
- max-height:240px;
-}
-#embed_submit {
- margin:10px 0 0 0;
-}
-
-
-
diff --git a/mod/ecml/views/default/ecml/help.php b/mod/ecml/views/default/ecml/help.php
deleted file mode 100644
index 4fca93a2a..000000000
--- a/mod/ecml/views/default/ecml/help.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/**
- * Lists available keywords
- *
- * @package ECML
- */
-
-$keywords = $vars['config']->ecml_keywords;
-$title = elgg_echo('ecml:keywords_title');
-$instructions = elgg_echo('ecml:keywords_instructions');
-$more_info = elgg_echo('ecml:keywords_instructions_more');
-
-$keywords_html = '';
-foreach ($keywords as $keyword => $info) {
- $desc = htmlentities($info['description']);
- $keywords_html .= "
-<dt>[$keyword]</dt>
-<dd>$desc</dd>";
-}
-
-echo "
-<h3>$title</h3>
-<p>$instructions</p>
-$more_info
-<dl>
- $keywords_html
-</dl>
-"; \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/blip.tv.php b/mod/ecml/views/default/ecml/help/blip.tv.php
deleted file mode 100644
index bac4c99c3..000000000
--- a/mod/ecml/views/default/ecml/help/blip.tv.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for blip.tv
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:blip.tv') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:blip.tv:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:blip.tv:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/blip.tv.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/dailymotion.php b/mod/ecml/views/default/ecml/help/dailymotion.php
deleted file mode 100644
index 80efa91e7..000000000
--- a/mod/ecml/views/default/ecml/help/dailymotion.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for dailymotion
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:dailymotion') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:dailymotion:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:dailymotion:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/dailymotion.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/googlemaps.php b/mod/ecml/views/default/ecml/help/googlemaps.php
deleted file mode 100644
index d55c351fb..000000000
--- a/mod/ecml/views/default/ecml/help/googlemaps.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for googlemaps
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:googlemaps') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:googlemaps:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:googlemaps:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/googlemaps.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/livevideo.php b/mod/ecml/views/default/ecml/help/livevideo.php
deleted file mode 100644
index 1343a34da..000000000
--- a/mod/ecml/views/default/ecml/help/livevideo.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for livevideo
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:livevideo') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:livevideo:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:livevideo:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/livevideo.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/redlasso.php b/mod/ecml/views/default/ecml/help/redlasso.php
deleted file mode 100644
index 07b497913..000000000
--- a/mod/ecml/views/default/ecml/help/redlasso.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-/**
- * ECML help for redlasso
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:redlasso') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:redlasso:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:redlasso:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/redlasso_1.png" />
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/redlasso_2.png" />
diff --git a/mod/ecml/views/default/ecml/help/slideshare.php b/mod/ecml/views/default/ecml/help/slideshare.php
deleted file mode 100644
index 45ada4b54..000000000
--- a/mod/ecml/views/default/ecml/help/slideshare.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for youtube
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:slideshare') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:slideshare:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:slideshare:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/slideshare.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/vimeo.php b/mod/ecml/views/default/ecml/help/vimeo.php
deleted file mode 100644
index e5f6ae28a..000000000
--- a/mod/ecml/views/default/ecml/help/vimeo.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for vimeo
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:vimeo') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:vimeo:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:vimeo:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/vimeo.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/help/youtube.php b/mod/ecml/views/default/ecml/help/youtube.php
deleted file mode 100644
index 53be4a3c0..000000000
--- a/mod/ecml/views/default/ecml/help/youtube.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * ECML help for youtube
- */
-
-echo '<h3>' . elgg_echo('ecml:keywords:youtube') . '</h3>';
-echo '<p>' . elgg_echo('ecml:keywords:youtube:desc') . '</p>';
-echo '<p>' . elgg_echo('ecml:keywords:youtube:usage') . '</p>';
-
-?>
-
-<img src="<?php echo elgg_get_site_url()?>mod/ecml/graphics/youtube.png" /> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/input_ext.php b/mod/ecml/views/default/ecml/input_ext.php
deleted file mode 100644
index d5da6dd13..000000000
--- a/mod/ecml/views/default/ecml/input_ext.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-/**
- * Displays an ECML icon on ECML-enabled forms
- *
- * @package ECML
- */
-
-$docs_href = elgg_get_site_url()."pg/ecml";
-?>
-<a href="<?php echo $docs_href; ?>" class="elgg-longtext-control" title="<?php echo elgg_echo('ecml:help'); ?>" target="_new"><img src="<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/ecml.png" width="50" height="15" alt="ECML" /></a> \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keyword_help.php b/mod/ecml/views/default/ecml/keyword_help.php
deleted file mode 100644
index 6f9021fdd..000000000
--- a/mod/ecml/views/default/ecml/keyword_help.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * Specific keyword help.
- *
- * Looks for a view ecml/help/keyword
- *
- */
-
-$keyword = elgg_get_array_value('keyword', $vars);
-$content = elgg_view("ecml/help/$keyword");
-
-if (!$keyword || !ecml_is_valid_keyword($keyword)) {
- echo elgg_echo('ecml:help:invalid_keyword');
-} elseif (!$content) {
- echo elgg_echo('ecml:help:no_help');
-} else {
- echo $content;
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/blip.tv.php b/mod/ecml/views/default/ecml/keywords/blip.tv.php
deleted file mode 100644
index 453026533..000000000
--- a/mod/ecml/views/default/ecml/keywords/blip.tv.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/**
- * ECML Blip.tv support
- *
- * @package ECML
- */
-
-$params = str_replace('?', '', $vars['ecml_params_string']);
-$width = (isset($vars['width'])) ? $vars['width'] : 425;
-$height = (isset($vars['height'])) ? $vars['height'] : 350;
-
-if ($params) {
- $embed_src = elgg_http_add_url_query_elements($src, array('output' => 'embed'));
- $link_href = elgg_http_add_url_query_elements($src, array('source' => 'embed'));
-
- echo "
-<p><script type='text/javascript' src='http://blip.tv/syndication/write_player?skin=js&cross_post_destination=-1&view=full_js&$params'></script></p>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/dailymotion.php b/mod/ecml/views/default/ecml/keywords/dailymotion.php
deleted file mode 100644
index 4060d6117..000000000
--- a/mod/ecml/views/default/ecml/keywords/dailymotion.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * ECML Daily Motion support
- *
- * @package ECML
- */
-
-$base_url = 'http://www.dailymotion.com/video/';
-$src = (isset($vars['src'])) ? str_replace($base_url, '', $vars['src']) : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 480;
-$height = (isset($vars['height'])) ? $vars['height'] : 270;
-
-if ($src) {
- list($vid, $name) = explode('_', $src);
- $url = "http://www.dailymotion.com/swf/video/$vid";
-
- echo "
- <p>
- <object width=\"$width\" height=\"$height\">
- <param name=\"movie\" value=\"$url\"></param>
- <param name=\"allowFullScreen\" value=\"true\"></param>
- <param name=\"allowScriptAccess\" value=\"always\"></param>
- <embed type=\"application/x-shockwave-flash\" src=\"$url\" width=\"$width\" height=\"$height\" allowfullscreen=\"true\" allowscriptaccess=\"always\"></embed>
- </object>
- </p>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/entity.php b/mod/ecml/views/default/ecml/keywords/entity.php
deleted file mode 100644
index 73491f6a3..000000000
--- a/mod/ecml/views/default/ecml/keywords/entity.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/**
- * ECML Generic Object GUID
- *
- * @package ECML
- */
-
-$guid = $vars['guid'];
-
-if ($entity = get_entity($guid)) {
- echo elgg_view('output/url', array(
- 'href' => $entity->getURL(),
- 'title' => $entity->title,
- 'text' => $entity->title,
- 'class' => "embeded_file link",
- // abusing the js attribute
- 'js' => "style=\"background-image:url({$entity->getIcon('tiny')})\""
-
- ));
-} else {
- echo elgg_echo('ecml:entity:invalid');
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/googlemaps.php b/mod/ecml/views/default/ecml/keywords/googlemaps.php
deleted file mode 100644
index 2e13f9f43..000000000
--- a/mod/ecml/views/default/ecml/keywords/googlemaps.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * ECML Google Maps support
- *
- * @package ECML
- */
-
-$src = (isset($vars['src'])) ? $vars['src'] : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 425;
-$height = (isset($vars['height'])) ? $vars['height'] : 350;
-
-if ($src) {
- $src = html_entity_decode($src);
-
- $embed_src = elgg_http_add_url_query_elements($src, array('output' => 'embed'));
- $link_href = elgg_http_add_url_query_elements($src, array('source' => 'embed'));
-
- echo "
-<iframe width=\"$width\" height=\"$height\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"$embed_src\"></iframe>
-<br />
-<small><a href=\"$link_href\" style=\"color:#0000FF;text-align:left\">" . elgg_echo('ecml:googlemaps:view_larger_map') . "</a></small>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/livevideo.php b/mod/ecml/views/default/ecml/keywords/livevideo.php
deleted file mode 100644
index b445f4575..000000000
--- a/mod/ecml/views/default/ecml/keywords/livevideo.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/**
- * ECML Live Video support
- *
- * @package ECML
- */
-
-$base_url = 'http://www.livevideo.com/video/';
-$src = (isset($vars['src'])) ? str_replace($base_url, '', $vars['src']) : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 445;
-$height = (isset($vars['height'])) ? $vars['height'] : 369;
-
-if ($src) {
- $parts = explode('/', $src);
- $vid = $parts[0];
-
- // it automatically autostarts, but not passing it causes control issues
- $url = "http://www.livevideo.com/flvplayer/embed/$vid&autoStart=1";
-
- echo "
- <p>
- <embed src=\"$url\" type=\"application/x-shockwave-flash\" quality=\"high\" WIDTH=\"$width\" HEIGHT=\"$height\" wmode=\"transparent\"></embed>
- </p>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/redlasso.php b/mod/ecml/views/default/ecml/keywords/redlasso.php
deleted file mode 100644
index 462865bec..000000000
--- a/mod/ecml/views/default/ecml/keywords/redlasso.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * ECML Red Lasso support
- *
- * @package ECML
- */
-
-$vid = (isset($vars['id'])) ? $vars['id'] : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 390;
-$height = (isset($vars['height'])) ? $vars['height'] : 320;
-
-if ($vid) {
- echo "
-<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"$width\" height=\"$height\" id=\"Redlasso\">
- <param name=\"movie\" value=\"http://player.redlasso.com/redlasso_player_b1b_deploy.swf\" />
- <param name=\"flashvars\" value=\"embedId=$vid&pid=\" />
- <param name=\"allowScriptAccess\" value=\"always\" />
- <param name=\"allowFullScreen\" value=\"true\" />
- <embed src=\"http://player.redlasso.com/redlasso_player_b1b_deploy.swf\" flashvars=\"embedId=$vid&pid=\" width=\"$width\" height=\"$height\" type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" allowFullScreen=\"true\" name=\"Redlasso\">
- </embed>
-</object>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/slideshare.php b/mod/ecml/views/default/ecml/keywords/slideshare.php
deleted file mode 100644
index 34db6aed5..000000000
--- a/mod/ecml/views/default/ecml/keywords/slideshare.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * ECML Slideshare support
- *
- * @package ECML
- */
-
-// this wants the "wordpress.com" embed code.
-// to make life easier on users, don't require them to add the "s
-// and just chop out the id= bit here from the full attr list
-
-$id = str_replace('id=', '', $vars['ecml_params_string']);
-$width = (isset($vars['width'])) ? $vars['width'] : 450;
-$height = (isset($vars['height'])) ? $vars['height'] : 369;
-
-if ($id) {
- // @todo need to check if the & should be encoded.
-
- $slide_url = "http://static.slideshare.net/swf/ssplayer2.swf?id=$id";
-
- echo "
-<object type=\"application/x-shockwave-flash\" wmode=\"opaque\" data=\"$slide_url\" width=\"$width\" height=\"$height\">
- <param name=\"movie\" value=\"$slide_url\" />
- <param name=\"allowFullScreen\" value=\"true\" />
- <param name=\"allowScriptAccess\" value=\"always\" />
-
- <embed src=\"$slide_url\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\"></embed>
-</object>
-";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/user_list.php b/mod/ecml/views/default/ecml/keywords/user_list.php
deleted file mode 100644
index b1c398e2e..000000000
--- a/mod/ecml/views/default/ecml/keywords/user_list.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/**
- * Lists users
- *
- * @package SitePages
- */
-
-$only_with_avatars = (isset($vars['only_with_avatars'])) ? $vars['only_with_avatars'] : TRUE;
-$list_type = (isset($vars['list_type'])) ? $vars['list_type'] : 'newest';
-$limit = (isset($vars['limit'])) ? $vars['limit'] : 10;
-
-$options = array(
- 'type' => 'user',
- 'limit' => $limit
-);
-
-if ($only_with_avatars == TRUE) {
- $options['metadata_name_value_pairs'] = array('name' => 'icontime', 'operand' => '!=', 'value' => 0);
-}
-
-switch ($list_type) {
- case 'newest':
- $options['order_by'] = 'e.time_created DESC';
- break;
-
- case 'online':
- // show people with a last action of < 10 minutes.
- $last_action = time() - 10 * 60;
- $options['joins'] = array("JOIN {$vars['config']->dbprefix}users_entity ue on ue.guid = e.guid");
- $options['wheres'] = array("ue.last_action > $last_action");
- break;
-
- case 'random':
- $options['order_by'] = 'RAND()';
- break;
-
- default:
- break;
-}
-
-$users = elgg_get_entities_from_metadata($options);
-
-echo elgg_view_entity_list($users, count($users), 0, $limit, FALSE, FALSE, FALSE); \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/vimeo.php b/mod/ecml/views/default/ecml/keywords/vimeo.php
deleted file mode 100644
index 263eb3740..000000000
--- a/mod/ecml/views/default/ecml/keywords/vimeo.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * ECML vimeo support
- *
- * @package ECML
- */
-
-$src = (isset($vars['src'])) ? $vars['src'] : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 480;
-$height = (isset($vars['height'])) ? $vars['height'] : 385;
-
-// need to extract the video id.
-// the src arg can take a full url or an id.
-// assume if no youtube.com that it's an id.
-if (strpos($src, 'vimeo.com') === FALSE) {
- $vid = $src;
-} else {
- // we love vimeo.
- list($address, $vid) = explode('vimeo.com/', $src);
-}
-
-if ($vid) {
- $movie_url = "http://vimeo.com/moogaloop.swf?";
- $query = array('clip_id' => $vid, 'server' => 'vimeo.com');
-
- $params = array(
- 'show_title' => 1,
- 'show_byline' => 1,
- 'show_portrait' => 0,
- 'color' => '',
- 'fullscreen' => 1
- );
-
- foreach ($params as $param => $default) {
- $query[$param] = (isset($vars[$param])) ? $vars[$param] : $default;
- }
-
- $query_str = http_build_query($query);
- $movie_url .= $query_str;
-
- echo "
-<object width=\"$width\" height=\"$height\">
- <param name=\"allowfullscreen\" value=\"true\" />
- <param name=\"allowscriptaccess\" value=\"always\" />
- <param name=\"movie\" value=\"$movie_url\" />
- <embed src=\"$movie_url\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"$width\" height=\"$height\">
- </embed>
-</object>
- ";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/ecml/keywords/youtube.php b/mod/ecml/views/default/ecml/keywords/youtube.php
deleted file mode 100644
index c212f6841..000000000
--- a/mod/ecml/views/default/ecml/keywords/youtube.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * ECML Youtube support
- *
- * @package ECML
- */
-
-$src = (isset($vars['src'])) ? $vars['src'] : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 480;
-$height = (isset($vars['height'])) ? $vars['height'] : 385;
-
-// need to extract the video id.
-// the src arg can take a full url or an id.
-// assume if no youtube.com that it's an id.
-if (strpos($src, 'youtube.com') === FALSE) {
- $vid = $src;
-} else {
- // grab the v param
- if ($parts = parse_url($src)) {
- if (isset($parts['query'])) {
- parse_str($parts['query'], $query_arr);
- $vid = (isset($query_arr['v'])) ? $query_arr['v'] : FALSE;
- }
- }
-}
-
-if ($vid) {
- $movie_url = "http://www.youtube.com/v/$vid";
-
- echo "
-<object width=\"$width\" height=\"$height\">
- <param name=\"movie\" value=\"$movie_url\"></param>
- <param name=\"allowFullScreen\" value=\"true\"></param>
- <param name=\"allowscriptaccess\" value=\"always\"></param>
-
- <embed src=\"$movie_url\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\"></embed>
-</object>
- ";
-} \ No newline at end of file
diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php
deleted file mode 100644
index 9e7ffbbb4..000000000
--- a/mod/ecml/views/default/embed/web_services/content.php
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-/**
- * URL -> 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();
-$keywords_html = "<ul class='ecml_web_service_list clearfix'>";
-// include support for standard ECML so you can get previews and validation.
-//$keyword_html = '<li class="ecml_web_service"><a class="ecml">Generic ECML</a></li>';
-
-foreach ($keywords as $i => $v) {
- if (!isset($v['type']) || $v['type'] != 'web_service') {
- unset ($keywords[$i]);
- continue;
- }
-
- // make sure the classname doens't have invalid chars.
- $class = str_replace(array('.', ','), '_', $i);
- $keyword_js_array[] = $class;
-
- $keywords_html .= "<li class='ecml_web_service'><a class=\"$class link\">{$v['name']}</a></li>";
-}
-
-$keywords_html .= "</ul>";
-
-$keywords_js = json_encode($keyword_js_array);
-
-$input = elgg_view('input/text', array(
- 'internalid' => 'web_services_resource'
-));
-
-$embed = elgg_view('input/submit', array(
- 'name' => 'buggy',
- 'internalid' => 'embed_submit',
- 'type' => 'button',
- 'value' => elgg_echo('embed:embed'),
- 'class' => 'elgg-submit-button disabled',
- 'disabled' => TRUE
-));
-
-echo '<p>' . elgg_echo('ecml:embed:instructions') . '</p>';
-
-echo $keywords_html;
-
-echo "<div class='embed_content_section instructions hidden'><a class='ecml_embed_instructions link'>Instructions</a>";
-echo "<div id='embed_ecml_keyword_help' class='hidden'></div></div>";
-
-echo "<div id='embed_service_url'><label>URL<br />".$input."<div id='url_status' class=''></div></label>";
-echo "<div class='ecml_generated_code hidden'>ECML: <span id='ecml_code'></span></div></div>";
-
-echo "<div class='embed_content_section preview hidden'><a class='ecml_embed_preview link'>Preview</a>";
-echo "<div id='ecml_preview' class='hidden'></div></div>";
-
-echo "<div class='divider margin-top'></div>";
-echo $embed;
-
-?>
-
-<script type="text/javascript">
-
-$(document).ready(function() {
- $('a.ecml_embed_instructions.link').click(function() {
- elgg_slide_toggle($(this), '.embed_content_section.instructions', '#embed_ecml_keyword_help');
- $('.ecml_embed_instructions').toggleClass('open');
- });
-
- $('a.ecml_embed_preview.link').click(function() {
- elgg_slide_toggle($(this), '.embed_content_section.preview', '#ecml_preview');
- $('.ecml_embed_preview').toggleClass('open');
- });
-});
-
-$(function() {
- var keywords = <?php echo $keywords_js; ?>;
- var selected_service = '';
- var manual_selected_service = false;
- var embed_button = $('#embed_submit');
- var url_status = $('#url_status');
- var embed_resource_input = $('#web_services_resource');
-
- // counter for paused input to try to validate/generate a preview.
- var rest_timeout_id = null;
- var rest_min_time = 750;
- var embed_generate_ecml_url = '<?php echo elgg_get_site_url(); ?>pg/ecml_generate';
- var embed_ecml_keyword_help_url = '<?php echo elgg_get_site_url(); ?>pg/ecml/';
- var internal_name = '<?php echo addslashes($internal_name); ?>';
-
- var web_services_ecml_update = function() {
- if (rest_timeout_id) {
- clearTimeout(rest_timeout_id);
- }
-
- if (manual_selected_service) {
- // fire off preview attempt
- rest_timeout_id = setTimeout(generate_ecml, rest_min_time);
- return true;
- }
-
- var value = $(this).val();
- var value_length = value.length;
-
- if (value_length > 0) {
- //embed_button.removeAttr('disabled').removeClass('disabled');//.addClass('embed_warning');
- url_status.removeClass('success').addClass('failure');
- } else {
- embed_button.attr('disabled', 'disabled').addClass('disabled');
- url_status.removeClass('success').removeClass('failure');
- }
-
- if (value_length < 5) {
- $('.ecml_web_service a').removeClass('selected');
- return true;
- }
-
- // if this is ECML check that it's a valid keyword
- if (value.substr(0, 1) == '[') {
- var keyword = value.split(' ')[0];
- keyword = keyword.replace('[', '');
- keyword = keyword.replace(']', '');
- if ($.inArray(keyword, keywords) >= 0) {
- select_service(keyword);
- }
- } else {
- // check if any of the ECML keywords exist in the
- // string and select that service.
- $(keywords).each(function(index, keyword) {
- if (value.indexOf(keyword) >= 0) {
- select_service(keyword);
- return true;
- }
- });
- }
-
- // fire off a preview attempt
- if (selected_service) {
- rest_timeout_id = setTimeout(generate_ecml, rest_min_time);
- }
- };
-
- var select_service = function(service) {
- if ($.inArray(service, keywords) === false) {
- return false;
- }
-
- selected_service = service;
- $('.ecml_web_service a').removeClass('selected');
- $('.ecml_web_service a.' + service).addClass('selected');
- $('.embed_content_section.instructions').removeClass('hidden'); // reveal instructions link/panel
- }
-
- // pings back core to generate the ecml.
- // includes a status, ecml code, and the generated html.
- var generate_ecml = function() {
- if (!selected_service) {
- return false;
- }
-
- var resource = embed_resource_input.val();
- var post_data = {'service': selected_service, 'resource': resource};
-
- $.post(embed_generate_ecml_url, post_data, function(data) {
- if (data.status == 'success') {
- // show previews and update embed code.
- $('#ecml_preview').html(data.html);
- $('#ecml_code').html(data.ecml);
- $('body').data('elgg_embed_ecml', data.ecml);
- $('.embed_content_section.preview').removeClass('hidden'); // reveal preview link/panel
- $('.ecml_generated_code').removeClass('hidden'); // reveal ecml generated code
-
- // set status for embed button
- embed_button.removeAttr('disabled').removeClass('disabled');
- url_status.removeClass('failure').addClass('success');
- } else {
- // data failure
- embed_button.attr('disabled', 'disabled').addClass('disabled');
- url_status.removeClass('success').removeClass('failure');
- }
- }, 'json');
- }
-
- // auto guess the service.
- embed_resource_input.keyup(web_services_ecml_update);
-
- // manually specify the service
- $('.ecml_web_service a').click(function() {
- select_service($(this).attr('class').split(' ')[0]);
- manual_selected_service = true;
-
- // show tip
- var help_url = embed_ecml_keyword_help_url + selected_service + '?ajax=true';
- $('#embed_ecml_keyword_help').load(help_url);
- });
-
- $('#embed_submit').click(function() {
- // insert the ECML
- // if the ECML input is empty, insert the resource.
- if (!(content = $('body').data('elgg_embed_ecml'))) {
- // @todo display an error?
- content = embed_resource_input.val();
- }
-
- elggEmbedInsertContent(content, internal_name);
-
- return false;
- });
-});
-
-
-</script> \ No newline at end of file
diff --git a/mod/ecml/views/default/settings/ecml/edit.php b/mod/ecml/views/default/settings/ecml/edit.php
deleted file mode 100644
index 8c1a3b4a1..000000000
--- a/mod/ecml/views/default/settings/ecml/edit.php
+++ /dev/null
@@ -1,133 +0,0 @@
-<?php
-/**
- * Configs granular access
- *
- * @package ECML
- */
-
-$views = $vars['config']->ecml_parse_views;
-$keywords = $vars['config']->ecml_keywords;
-$perms = $vars['config']->ecml_permissions;
-
-ksort($views);
-ksort($keywords);
-
-echo '<p class="margin-top">' . elgg_echo('ecml:admin:instruction') . '</p>';
-
-// yes I'm using a table because this is table.
-$form_body = <<<___END
-<table class="ecml_admin_table">
- <tr>
- <th>&nbsp</th>
-___END;
-
-foreach ($views as $view => $view_desc) {
- $form_body .= "<th><acronym class=\"ecml_view ecml_check_all\" title=\"$view\">$view_desc</acronym></th>";
- $n++;
-}
-$form_body .= '</tr>';
-
-$odd = 'odd';
-foreach ($keywords as $keyword => $keyword_info) {
- $keyword_desc = $keyword_info['description'];
- if (isset($keyword_info['restricted'])) {
- $restricted = elgg_echo('ecml:admin:restricted');
- $form_body .= "
- <tr class=\"ecml_row_$odd\">
- <td class=\"ecml_keyword_desc\"><acronym class=\"ecml_keyword ecml_restricted\" title=\"$keyword_desc\">$keyword ($restricted)</acronym></td>
- ";
- } else {
- $form_body .= "
- <tr class=\"ecml_row_$odd\">
- <td class=\"ecml_keyword_desc\"><acronym class=\"ecml_keyword ecml_check_all\" title=\"$keyword_desc\">$keyword</acronym></td>
- ";
- }
- foreach ($views as $view => $view_info) {
- // if this is restricted and we're not on the specified view don't allow changes
- // since we don't save this, no need to pass a name
- if (isset($keyword_info['restricted'])) {
- $checked = (in_array($view, $keyword_info['restricted'])) ? 'checked="checked"' : '';
- $form_body .= "<td><input type=\"checkbox\" $checked name=\"whitelist[$view][]\" value=\"$keyword\" disabled=\"disabled\"/></td>";
- } else {
- $checked = (!in_array($keyword, $perms[$view])) ? 'checked="checked"' : '';
-
- // ooook. input/checkboxes isn't overly useful.
- // do it ourself.
- $form_body .= "<td><input type=\"checkbox\" name=\"whitelist[$view][]\" value=\"$keyword\" $checked /></td>";
- }
- }
- $form_body .= '</tr>';
-
- $odd = ($odd == 'odd') ? 'even' : 'odd';
-}
-
-$form_body .= '</table>';
-
-echo $form_body;
-
-?>
-<script type="text/javascript">
-
-$(document).ready(function() {
- // append check all link
- $('.ecml_check_all').before('<input type="checkbox" checked="checked" class="check_all">');
-
- // determin initial state of checkall checkbox.
- $('.ecml_check_all').each(function() {
- var keyword = $(this).hasClass('ecml_keyword');
- var checkbox = $(this).parent().find('input[type=checkbox]');
- var checked;
-
- // no keywords checked, checkall unchecked
- // any keyword checked, checkall unchecked
- // all keywords checked, checkall checked
-
- // if keyword, check the TR
- if (keyword) {
- checked = true;
- $(this).parent().parent().find('input').each(function() {
- if (!$(this).hasClass('check_all') && !$(this).attr('disabled')) {
- checked = (checked && $(this).attr('checked'));
- // can't break...
- }
- });
- checkbox.attr('checked', checked);
- } else {
- checked = true;
- var rowIndex = $(this).parent().parent().children().index($(this).parent());
-
- $('.ecml_admin_table > tbody > tr td:nth-child(' + (rowIndex + 1) + ') input[type=checkbox]').each(function() {
- if (!$(this).hasClass('check_all') && !$(this).attr('disabled')) {
- checked = (checked && $(this).attr('checked'));
- // can't break...
- }
- });
- checkbox.attr('checked', checked);
- }
- });
-
- // handle checkall boxes
- $('input.check_all').click(function() {
- // yoinked from
- // http://stackoverflow.com/questions/788225/table-row-and-column-number-in-jquery
- var rowIndex = $(this).parent().parent().children().index($(this).parent());
- var check = $(this).attr('checked');
-
- // clicked on a keyword on the left, check all boxes in the tr
- if (rowIndex == 0) {
- $(this).parent().parent().find('input').each(function() {
- if (!$(this).attr('disabled')) {
- $(this).attr('checked', check);
- }
- });
- } else {
- boxes = $('.ecml_admin_table > tbody > tr td:nth-child(' + (rowIndex + 1) + ') input[type=checkbox]');
- boxes.each(function() {
- if (!$(this).attr('disabled')) {
- $(this).attr('checked', check);
- }
- });
- }
- });
-});
-</script>