Hide mediaelement in myfiles.php page see #7971

1.10.x
Julio Montoya 10 years ago
parent 83ddc999e1
commit 4dbab8da96
  1. 2
      main/inc/lib/template.lib.php
  2. 1
      main/social/myfiles.php
  3. 2
      main/template/default/layout/footer.js.tpl

@ -606,6 +606,8 @@ class Template
// Logo // Logo
$logo = return_logo($this->theme); $logo = return_logo($this->theme);
$this->assign('logo', $logo); $this->assign('logo', $logo);
$this->assign('show_media_element', 1);
} }
/** /**

@ -106,6 +106,7 @@ $editor = $tpl->fetch('default/'.$editor->getEditorStandAloneTemplate());
$tpl->assign('social_right_content', $editor); $tpl->assign('social_right_content', $editor);
$tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_menu_block', $social_menu_block);
$tpl->assign('actions', $actions); $tpl->assign('actions', $actions);
$tpl->assign('show_media_element', 0);
$social_layout = $tpl->get_template('social/myfiles.tpl'); $social_layout = $tpl->get_template('social/myfiles.tpl');
$tpl->display($social_layout); $tpl->display($social_layout);

@ -79,7 +79,9 @@
$(".jp-jplayer audio").addClass('skip'); $(".jp-jplayer audio").addClass('skip');
// Mediaelement // Mediaelement
if ( {{ show_media_element }} == 1) {
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */); jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */);
}
// Table highlight. // Table highlight.
$("form .data_table input:checkbox").click(function () { $("form .data_table input:checkbox").click(function () {

Loading…
Cancel
Save