diff --git a/cdm.css b/cdm.css new file mode 100644 index 000000000..2795b378c --- /dev/null +++ b/cdm.css @@ -0,0 +1,56 @@ +div.cdmHeader img, div.cdmHeader input, div.cdmFooter img { + vertical-align : middle; +} + +div.cdmHeader { + padding : 5px; +} + +div.cdmHeader span.updated { + color : gray; + font-weight : normal; +} + +div.cdmHeader input { + margin-right : 5px; +} + +div.cdmHeader img, div.cdmFooter img { + margin-left : 5px; + width : 16px; + height : 16px; +} + +div.cdmContent { + font-weight : normal; +} + +div.cdmContentInner { + margin : 0px 10px 10px 10px; +} + +div.cdmFooter { + background : #f9f9f9; + padding : 5px; + font-weight : normal; + color : gray; + clear : both; +} + +.evenUnreadSelected div.cdmFooter, .oddUnreadSelected div.cdmFooter, +.evenSelected div.cdmFooter, .oddSelected div.cdmFooter { + background-color : #FFF2BF; +} + +span.cdmExcerpt { + font-size : 11px; + color : gray; + font-weight : normal; + cursor : pointer; +} + +div.cdmContent div.postEnclosures { + margin-top : 1em; + color : gray; +} + diff --git a/functions.php b/functions.php index bc3b28826..af5a5c828 100644 --- a/functions.php +++ b/functions.php @@ -4979,76 +4979,11 @@ print $article_content; -// $result = db_query($link, "SELECT * FROM ttrss_enclosures WHERE -// post_id = '$id' AND content_url != ''"); + print_article_enclosures($link, $id, $always_display_enclosures, + $article_content); - $result = get_article_enclosures($link, $id); - -// if (db_num_rows($result) > 0) { - - if (count($result) > 0) { - - $entries_html = array(); - $entries = array(); - - //while ($line = db_fetch_assoc($result)) { - foreach ($result as $line) { - - $url = $line["content_url"]; - $ctype = $line["content_type"]; - - if (!$ctype) $ctype = __("unknown type"); - - $filename = substr($url, strrpos($url, "/")+1); - - $entry = format_inline_player($link, $url, $ctype); - - $entry .= " " . - $filename . " (" . $ctype . ")" . ""; - - array_push($entries_html, $entry); - - $entry = array(); - - $entry["type"] = $ctype; - $entry["filename"] = $filename; - $entry["url"] = $url; - - array_push($entries, $entry); - } - - print "