Fixing LP view due recent changes

skala
Julio Montoya 12 years ago
parent 21d4ec3445
commit 9fb5b393c3
  1. 1
      main/inc/global.inc.php
  2. 11
      main/inc/lib/display.lib.php
  3. 2
      main/newscorm/lp_list.php
  4. 17
      main/newscorm/lp_view.php
  5. 1
      main/template/default/learnpath/subscribe_users.tpl

@ -602,6 +602,7 @@ if (file_exists($mail_conf)) {
$mail_settings = array();
// Email service provider
$app->register(new Silex\Provider\SwiftmailerServiceProvider(), array(
'swiftmailer.options' => array(
'host' => isset($platform_email['SMTP_HOST']) ? $platform_email['SMTP_HOST'] : null,

@ -58,24 +58,27 @@ class Display
*/
public static function display_reduced_header()
{
global $app;
$app['classic_layout'] = true;
global $show_learnpath, $tool_name, $app;
$app['template.show_header'] = false;
$app['template.show_footer'] = false;
$app['template.show_learnpath'] = $show_learnpath;
self::$global_template = new Template($tool_name);
echo self::$global_template->show_header_template();
self::display_header();
//self::$global_template = new Template($tool_name);
//echo self::$global_template->show_header_template();
}
public static function display_no_header()
{
$app['classic_layout'] = true;
global $app;
global $tool_name, $app, $show_learnpath;
$disable_js_and_css_files = true;
$app['template.show_header'] = false;
$app['template.show_footer'] = false;
$app['template.show_learnpath'] = $show_learnpath;
self::$global_template = new Template($tool_name);
self::display_header();
}
/**

@ -390,7 +390,7 @@ foreach ($categories as $item) {
//Subscribe users
$subscribe_users = null;
if ($details['subscribe_users'] == 1) {
$subscribe_users = Display::url(Display::return_icon('add.png', get_lang('AddUsers')), api_get_path(WEB_PUBLIC_PATH)."learnpath/subscribe_users/$id");
$subscribe_users = Display::url(Display::return_icon('user.png', get_lang('SubscribeUsersToLp')), api_get_path(WEB_PUBLIC_PATH)."learnpath/subscribe_users/$id");
}
/* Auto Lunch LP code */

@ -76,21 +76,7 @@ $user_id = api_get_user_id();
$platform_theme = api_get_setting('stylesheets'); // Plataform's css.
$my_style = $platform_theme;
$htmlHeadXtra[] = '<script src="'.api_get_path(
WEB_LIBRARY_PATH
).'javascript/jquery.lp_minipanel.js" type="text/javascript" language="javascript"></script>';
/*
* already added in lp_controller.php
if (api_get_setting('show_glossary_in_documents') == 'ismanual' || api_get_setting('show_glossary_in_documents') == 'isautomatic' ) {
$htmlHeadXtra[] = '<script type="text/javascript">
<!--
var jQueryFrameReadyConfigPath = \''.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.min.js\';
-->
</script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.frameready.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js" type="text/javascript" language="javascript"></script>';
}*/
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.lp_minipanel.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<script>
$(document).ready(function(){
$("div#log_content_cleaner").bind("click", function() {
@ -301,6 +287,7 @@ if ($_SESSION['oLP']->mode == 'fullscreen') {
$htmlHeadXtra[] = "<script>window.open('$src','content_id','toolbar=0,location=0,status=0,scrollbars=1,resizable=1');</script>";
}
// Not in fullscreen mode.
Display::display_reduced_header($nameTools);

@ -1,5 +1,6 @@
{% extends "default/layout/layout_1_col.tpl" %}
{% block content %}
<h2>{{ 'SubscribeUsersToLp' | get_lang }}</h2>
<script>
$().ready(function() {
$('#add').click(function() {

Loading…
Cancel
Save