Шаблон «Сhaos to Block»
9 фото
Адаптивный шаблон для создания своего «супер» интернет журнала. Подойдет как для коллективной работы, так и для личного блога.
Показать все 9 фото →
Показать все 9 фото →
Виктор
<div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="..."></iframe> </div>
$("iframe").addClass('embed-responsive-item'); $("iframe").wrap('<div class="embed-responsive embed-responsive-16by9"/>');
<input type="hidden" name="return-path" value="{$PATH_WEB_CURRENT|escape:'html'}">
в файле \classes\actions\ActionAjax.class.php в строке 987
$oTopic->_Validate(array('topic_title','topic_text','topic_tags','topic_type'),false);убираем 'topic_tags',
public function VideoParser($sText) { /** * youtu.be */ $sText = preg_replace( '/<video>http:\/\/(?:www\.|)youtu.be\/([a-zA-Z0-9_\-]+)(&.+)?<\/video>/Ui', '<iframe width="560" height="315" src="http://www.youtube.com/embed/$1?rel=0" frameborder="0" allowfullscreen></iframe>', $sText);