Hide mediaelement in myfiles.php page see #7971

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

@ -606,6 +606,8 @@ class Template
// Logo
$logo = return_logo($this->theme);
$this->assign('logo', $logo);
$this->assign('show_media_element', 1);
}
/**
@ -857,7 +859,7 @@ class Template
$notification = return_notification_menu();
$this->assign('notification_menu', $notification);
$resize = '';
if (api_get_setting('accessibility_font_resize') == 'true') {
$resize .= '<div class="resize_font">';
@ -869,7 +871,7 @@ class Template
$resize .= '</div>';
}
$this->assign('accessibility', $resize);
// Preparing values for the menu
// Logout link

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

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

Loading…
Cancel
Save