]> git.mxchange.org Git - friendica.git/commitdiff
Use a header element for the oembed data.
authorMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 20:24:10 +0000 (21:24 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 20:24:10 +0000 (21:24 +0100)
include/oembed.php
view/global.css

index 00489193f388bd02ebef83a1883f4152b396e50f..87beab23936a76914d31e325abab7460b0f15ea1 100755 (executable)
@@ -163,6 +163,7 @@ function oembed_format_object($j){
 
        // add link to source if not present in "rich" type
        if ($j->type!='rich' || !strpos($j->html,$embedurl) ){
+               $ret .= "<h5>";
                if (isset($j->title)) {
                        if (isset($j->provider_name))
                                $ret .= $j->provider_name.": ";
@@ -189,11 +190,12 @@ function oembed_format_object($j){
                }
                //if (isset($j->author_name)) $ret.=" by ".$j->author_name;
                //if (isset($j->provider_name)) $ret.=" on ".$j->provider_name;
+               $ret .= "</h5>";
        } else {
                // add <a> for html2bbcode conversion
                $ret .= "<a href='$embedurl' rel='oembed'>$embedurl</a>";
+               $ret.="<br style='clear:left'></span>";
        }
-       $ret.="<br style='clear:left'></span>";
        return  mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
 }
 
index 0c6fb63209744cf0fb33b64d1cd4e8f096fbab84..06ff9bbef2d7771b2df168d083a4b0b0671839ae 100644 (file)
@@ -129,7 +129,7 @@ blockquote.shared_content {
 
 /* headers */
 h1, h2, h3, h4, h5, h6 {
-  margin: 10px 0px;
+  margin: 0px 0px 5px 0px;
   font-weight: normal;
   line-height: normal;
   text-rendering: optimizelegibility;
@@ -152,9 +152,9 @@ h4 {
 }
 
 h5 {
-  font-size: 16.5px;
+  font-size: 18px;
 }
 
 h6 {
-  font-size: 14.95px;
+  font-size: 16.5px;
 }