summaryrefslogtreecommitdiff
path: root/utils/modules/downloads.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-12 19:53:13 +0000
committerdeva <deva>2010-02-12 19:53:13 +0000
commitb54d8a974cc5bb581e6326b71cc67611de795432 (patch)
tree958b04ce8cd7f4eb3f981532fb7ec038b165ae49 /utils/modules/downloads.php
parent5c577a73ec8b5549ada0700058b8995fca75ccf5 (diff)
Changed the tags a bit for more convenient css-ing.
Diffstat (limited to 'utils/modules/downloads.php')
-rw-r--r--utils/modules/downloads.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/modules/downloads.php b/utils/modules/downloads.php
index 1356fc1..99e9962 100644
--- a/utils/modules/downloads.php
+++ b/utils/modules/downloads.php
@@ -79,15 +79,16 @@ class DownloadItem {
$str = "";
$str .= " <div class=\"download_item\">\n";
+ $str .= " <div class=\"download_item_type_".$this->type."\">\n";
$str .= " <span class=\"download_item_title\">".$this->title."</span>\n";
if($this->type == "image") {
- $str .= " <img class=\"download_item_image\" alt=\"".$this->title.
+ $str .= " <img class=\"download_item_image_icon\" alt=\"".$this->title.
"\" src=\"".$this->value."\"/>\n";
}
if($this->type == "youtube") {
- $str .= "<object width=\"".$VIDEO_WIDTH."\" height=\"".$VIDEO_HEIGHT."\">\n";
+ $str .= "<object class=\"download_item_video\" width=\"".$VIDEO_WIDTH."\" height=\"".$VIDEO_HEIGHT."\">\n";
$str .= "<param name=\"movie\" value=\"http://www.youtube.com/v/".$this->value."\"></param>\n";
$str .= "<embed src=\"http://www.youtube.com/v/".$this->value."\" ".
"type=\"application/x-shockwave-flash\" width=\"".$VIDEO_WIDTH."\" height=\"400\">\n";
@@ -96,7 +97,7 @@ class DownloadItem {
}
if($this->type == "vimeo") {
- $str .= "<object width=\"".$VIDEO_WIDTH."\" height=\"".$VIDEO_HEIGHT."\">\n";
+ $str .= "<object class=\"download_item_video\" width=\"".$VIDEO_WIDTH."\" height=\"".$VIDEO_HEIGHT."\">\n";
$str .= " <param name=\"allowfullscreen\" value=\"true\" /> \n";
$str .= " <param name=\"allowscriptaccess\" value=\"always\" />\n";
$str .= " <param name=\"movie\" value=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$this->value."&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1\" /> \n";
@@ -115,6 +116,7 @@ class DownloadItem {
$str .= $s->show();
}
$str .= " </div>\n";
+ $str .= " </div>\n";
$str .= " </div>\n";
return $str;
@@ -162,7 +164,7 @@ class DownloadGroup {
$str .= " <div class=\"download_group\">\n";
- $str .= " <span class=\"download_group_title\">".$this->title."</span>\n";
+ $str .= " <div class=\"download_group_title\">".$this->title."</div>\n";
$str .= " <div class=\"download_items\">\n";
if($this->items) {
foreach($this->items as $i) {