AntonLV il y a 8 ans
Parent
commit
a7c3ad4814

+ 1 - 0
modules/boonex/timeline/classes/BxTimelineTemplate.php

@@ -208,6 +208,7 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
         	'content' => $sContent,
         	'view_image_popup' => $this->_getImagePopup($aParams),
             'js_content' => $this->getJsCode('view', array(
+				'sVideosAutoplay' => $this->_oConfig->getVideosAutoplay(),
                 'sReferrer' => $sReferrer
             )) . $this->getJsCode('repost')
         )));

+ 6 - 0
modules/boonex/timeline/js/view.js

@@ -119,6 +119,12 @@ BxTimelineView.prototype.init = function() {
 	    this.blink(this.oViewOutline);
 	}
 
+	if(this.bViewItem) {
+		//--- Init Video Layout
+    	if(this._sVideosAutoplay != 'off')
+    		this.initVideos(this.oViewItem);
+	}
+
 	this.initFlickity();
 };