X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/c42685eb41e003f7702d473c739564d64f1a133f..HEAD:/cx/lib/markdown.php?ds=sidebyside diff --git a/cx/lib/markdown.php b/cx/lib/markdown.php index 771b947..b79fb85 100644 --- a/cx/lib/markdown.php +++ b/cx/lib/markdown.php @@ -20,14 +20,12 @@ class ExtendedParsedown extends Parsedown { return; } - $permalink = '/data/images/' . $image->url; - return array( 'extent' => strlen($matches[0]) + 1, 'element' => array( 'name' => 'img', 'attributes' => array( - 'src' => cx_url_site($permalink), + 'src' => cx_url_site($image->get_permalink_path()), 'alt' => $image->alt_text, ), ), @@ -49,10 +47,10 @@ class ExtendedParsedown extends Parsedown { 'name' => 'iframe', 'text' => '', 'attributes' => array( - 'id' => "ytplayer", + 'class' => "video", 'type' => "text/html", - 'width' => "640", - 'height' => "360", + //'width' => "640", + //'height' => "360", 'src' => "https://www.youtube.com/embed/" . $video_id, 'frameborder' => "0", 'loading' => "lazy",