Przeglądaj źródła

#1339 - Embeds for all content types

RomanL 4 lat temu
rodzic
commit
9e8dd3bc10

+ 1 - 4
inc/js/embed.js

@@ -1,4 +1 @@
-var bIgnorePixelRatio = true;
-$(document).ready(function() {
-    $(window.frameElement, window.parent.document).height($('.bx-embed').height() + 2);
-});
+var bIgnorePixelRatio = true;

+ 4 - 7
modules/boonex/videos/template/unit_gallery_embed.html

@@ -1,11 +1,10 @@
-<div class="__class__ bx-base-text-unit bx-base-text-unit-gallery bx-def-gal-unit-size bx-def-padding-sec bx-def-margin-sec-bottom">
-    <div class="bx-base-text-unit-cnt bx-def-box bx-def-round-corners bx-def-color-bg-box bx-def-box-sizing">
+
         <bx_if:thumb>
-            <a href="__content_url__" title="__summary_attr__">
+           
                 <div class="bx-def-round-corners bx-def-font-middle" >
                     __entry_video__
                 </div>
-            </a>
+
         </bx_if:thumb>
         <bx_if:no_thumb>
             <div class="bx-def-gal-img-column">
@@ -15,6 +14,4 @@
                 </div>
             </div>
         </bx_if:no_thumb>
-        
-    </div>
-</div>  
+       

+ 1 - 1
template/css/embed.css

@@ -3,7 +3,7 @@ body,
     background-color: transparent !important;
 }
 .bx-embed{
-    width:calc(100% - 2px);
+    width:100%;
 }
 .bx-embed .bx-base-pofile-unit-with-cover{
     display: block;