From 68803264c6476fd96311bc83937f04164348cce4 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 26 Jan 2011 11:55:03 +0000 Subject: moving ecml to plugins repository as it won't be a part of 1.8.0. It will be back though... git-svn-id: http://code.elgg.org/elgg/trunk@7938 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/ecml/views/default/ecml/admin/css.php | 156 --------------- mod/ecml/views/default/ecml/help.php | 28 --- mod/ecml/views/default/ecml/help/blip.tv.php | 12 -- mod/ecml/views/default/ecml/help/dailymotion.php | 12 -- mod/ecml/views/default/ecml/help/googlemaps.php | 12 -- mod/ecml/views/default/ecml/help/livevideo.php | 12 -- mod/ecml/views/default/ecml/help/redlasso.php | 13 -- mod/ecml/views/default/ecml/help/slideshare.php | 12 -- mod/ecml/views/default/ecml/help/vimeo.php | 12 -- mod/ecml/views/default/ecml/help/youtube.php | 12 -- mod/ecml/views/default/ecml/input_ext.php | 10 - mod/ecml/views/default/ecml/keyword_help.php | 18 -- mod/ecml/views/default/ecml/keywords/blip.tv.php | 19 -- .../views/default/ecml/keywords/dailymotion.php | 27 --- mod/ecml/views/default/ecml/keywords/entity.php | 22 --- .../views/default/ecml/keywords/googlemaps.php | 23 --- mod/ecml/views/default/ecml/keywords/livevideo.php | 25 --- mod/ecml/views/default/ecml/keywords/redlasso.php | 23 --- .../views/default/ecml/keywords/slideshare.php | 30 --- mod/ecml/views/default/ecml/keywords/user_list.php | 43 ---- mod/ecml/views/default/ecml/keywords/vimeo.php | 50 ----- mod/ecml/views/default/ecml/keywords/youtube.php | 39 ---- .../views/default/embed/web_services/content.php | 220 --------------------- mod/ecml/views/default/settings/ecml/edit.php | 133 ------------- 24 files changed, 963 deletions(-) delete mode 100644 mod/ecml/views/default/ecml/admin/css.php delete mode 100644 mod/ecml/views/default/ecml/help.php delete mode 100644 mod/ecml/views/default/ecml/help/blip.tv.php delete mode 100644 mod/ecml/views/default/ecml/help/dailymotion.php delete mode 100644 mod/ecml/views/default/ecml/help/googlemaps.php delete mode 100644 mod/ecml/views/default/ecml/help/livevideo.php delete mode 100644 mod/ecml/views/default/ecml/help/redlasso.php delete mode 100644 mod/ecml/views/default/ecml/help/slideshare.php delete mode 100644 mod/ecml/views/default/ecml/help/vimeo.php delete mode 100644 mod/ecml/views/default/ecml/help/youtube.php delete mode 100644 mod/ecml/views/default/ecml/input_ext.php delete mode 100644 mod/ecml/views/default/ecml/keyword_help.php delete mode 100644 mod/ecml/views/default/ecml/keywords/blip.tv.php delete mode 100644 mod/ecml/views/default/ecml/keywords/dailymotion.php delete mode 100644 mod/ecml/views/default/ecml/keywords/entity.php delete mode 100644 mod/ecml/views/default/ecml/keywords/googlemaps.php delete mode 100644 mod/ecml/views/default/ecml/keywords/livevideo.php delete mode 100644 mod/ecml/views/default/ecml/keywords/redlasso.php delete mode 100644 mod/ecml/views/default/ecml/keywords/slideshare.php delete mode 100644 mod/ecml/views/default/ecml/keywords/user_list.php delete mode 100644 mod/ecml/views/default/ecml/keywords/vimeo.php delete mode 100644 mod/ecml/views/default/ecml/keywords/youtube.php delete mode 100644 mod/ecml/views/default/embed/web_services/content.php delete mode 100644 mod/ecml/views/default/settings/ecml/edit.php (limited to 'mod/ecml/views/default') 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 @@ - - -.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(mod/ecml/graphics/logo_youtube.gif); - width:102px; -} -.ecml_web_service_list li a.slideshare { - background-image: url(mod/ecml/graphics/logo_slideshare.gif); -} -.ecml_web_service_list li a.vimeo { - background-image: url(mod/ecml/graphics/logo_vimeo.gif); - width:130px; -} -.ecml_web_service_list li a.googlemaps { - background-image: url(mod/ecml/graphics/logo_googlemaps.gif); -} -.ecml_web_service_list li a.blip_tv { - background-image: url(mod/ecml/graphics/logo_bliptv.gif); - width:102px; -} -.ecml_web_service_list li a.dailymotion { - background-image: url(mod/ecml/graphics/logo_dailymotion.gif); -} -.ecml_web_service_list li a.livevideo { - background-image: url(mod/ecml/graphics/logo_livevideo.gif); - width:166px; -} -.ecml_web_service_list li a.redlasso { - background-image: 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(_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(mod/ecml/graphics/url_status.png); - background-repeat: no-repeat; - background-position: left top; -} -#url_status.failure { - background-image: 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 @@ -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 .= " -
[$keyword]
-
$desc
"; -} - -echo " -

$title

-

$instructions

-$more_info -
- $keywords_html -
-"; \ 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 @@ -' . elgg_echo('ecml:keywords:blip.tv') . ''; -echo '

' . elgg_echo('ecml:keywords:blip.tv:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:blip.tv:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:dailymotion') . ''; -echo '

' . elgg_echo('ecml:keywords:dailymotion:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:dailymotion:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:googlemaps') . ''; -echo '

' . elgg_echo('ecml:keywords:googlemaps:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:googlemaps:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:livevideo') . ''; -echo '

' . elgg_echo('ecml:keywords:livevideo:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:livevideo:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:redlasso') . ''; -echo '

' . elgg_echo('ecml:keywords:redlasso:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:redlasso:usage') . '

'; - -?> - - - 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 @@ -' . elgg_echo('ecml:keywords:slideshare') . ''; -echo '

' . elgg_echo('ecml:keywords:slideshare:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:slideshare:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:vimeo') . ''; -echo '

' . elgg_echo('ecml:keywords:vimeo:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:vimeo:usage') . '

'; - -?> - - \ 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 @@ -' . elgg_echo('ecml:keywords:youtube') . ''; -echo '

' . elgg_echo('ecml:keywords:youtube:desc') . '

'; -echo '

' . elgg_echo('ecml:keywords:youtube:usage') . '

'; - -?> - - \ 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 @@ - -ECML \ 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 @@ - 'embed')); - $link_href = elgg_http_add_url_query_elements($src, array('source' => 'embed')); - - echo " -

-"; -} \ 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 @@ - - - - - - - -

-"; -} \ 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 @@ - $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 @@ - 'embed')); - $link_href = elgg_http_add_url_query_elements($src, array('source' => 'embed')); - - echo " - -
-" . elgg_echo('ecml:googlemaps:view_larger_map') . " -"; -} \ 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 @@ - - -

-"; -} \ 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 @@ - - - - - - - - -"; -} \ 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 @@ - - - - - - - -"; -} \ 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 @@ - '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 @@ - $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 " - - - - - - - - "; -} \ 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 @@ - - - - - - - - "; -} \ 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 @@ - 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 = ""; - -$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 '

' . elgg_echo('ecml:embed:instructions') . '

'; - -echo $keywords_html; - -echo ""; - -echo "
"; -echo "
"; - -echo ""; - -echo "
"; -echo $embed; - -?> - - \ 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 @@ -ecml_parse_views; -$keywords = $vars['config']->ecml_keywords; -$perms = $vars['config']->ecml_permissions; - -ksort($views); -ksort($keywords); - -echo '

' . elgg_echo('ecml:admin:instruction') . '

'; - -// yes I'm using a table because this is table. -$form_body = <<<___END - - - -___END; - -foreach ($views as $view => $view_desc) { - $form_body .= ""; - $n++; -} -$form_body .= ''; - -$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 .= " - - - "; - } else { - $form_body .= " - - - "; - } - 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 .= ""; - } else { - $checked = (!in_array($keyword, $perms[$view])) ? 'checked="checked"' : ''; - - // ooook. input/checkboxes isn't overly useful. - // do it ourself. - $form_body .= ""; - } - } - $form_body .= ''; - - $odd = ($odd == 'odd') ? 'even' : 'odd'; -} - -$form_body .= '
 $view_desc
$keyword ($restricted)
$keyword
'; - -echo $form_body; - -?> - -- cgit v1.2.3