Internal: Remove reference to stylesheets setting

pull/5656/head
Angel Fernando Quiroz Campos 1 year ago
parent 1627273c72
commit d76896cc3e
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 17
      public/main/help/allowed_html_tags.php
  2. 3
      public/main/lp/lp_view.php
  3. 10
      public/main/lp/openoffice_text.class.php
  4. 8
      public/main/lp/openoffice_text_document.class.php
  5. 2
      public/plugin/advanced_subscription/views/admin_accepted_notice_admin.tpl
  6. 2
      public/plugin/advanced_subscription/views/admin_accepted_notice_student.tpl
  7. 2
      public/plugin/advanced_subscription/views/admin_accepted_notice_superior.tpl
  8. 2
      public/plugin/advanced_subscription/views/admin_rejected_notice_admin.tpl
  9. 2
      public/plugin/advanced_subscription/views/admin_rejected_notice_student.tpl
  10. 2
      public/plugin/advanced_subscription/views/admin_rejected_notice_superior.tpl
  11. 2
      public/plugin/advanced_subscription/views/reminder_notice_admin.tpl
  12. 2
      public/plugin/advanced_subscription/views/reminder_notice_student.tpl
  13. 2
      public/plugin/advanced_subscription/views/reminder_notice_superior.tpl
  14. 2
      public/plugin/advanced_subscription/views/reminder_notice_superior_max.tpl
  15. 2
      public/plugin/advanced_subscription/views/student_no_superior_notice_admin.tpl
  16. 2
      public/plugin/advanced_subscription/views/student_no_superior_notice_student.tpl
  17. 2
      public/plugin/advanced_subscription/views/student_notice_student.tpl
  18. 2
      public/plugin/advanced_subscription/views/student_notice_superior.tpl
  19. 2
      public/plugin/advanced_subscription/views/superior_accepted_notice_admin.tpl
  20. 2
      public/plugin/advanced_subscription/views/superior_accepted_notice_student.tpl
  21. 2
      public/plugin/advanced_subscription/views/superior_accepted_notice_superior.tpl
  22. 2
      public/plugin/advanced_subscription/views/superior_rejected_notice_student.tpl
  23. 2
      public/plugin/advanced_subscription/views/superior_rejected_notice_superior.tpl

@ -16,22 +16,7 @@ header('Content-Type: text/html; charset='.api_get_system_encoding());
<title>
<?php echo get_lang('Allowed HTML tags'); ?>
</title>
<style type="text/css" media="screen, projection">
/*<![CDATA[*/
@import "<?php echo api_get_path(WEB_CSS_PATH); ?>chamilo/default.css";
/*]]>*/
</style>
<?php
if ('' != api_get_setting('stylesheets')) {
?>
<style type="text/css" media="screen, projection">
/*<![CDATA[*/
@import "<?php echo api_get_path(WEB_CSS_PATH), api_get_setting('stylesheets'); ?>/default.css";
/*]]>*/
</style>
<?php
}
?>
<link rel="stylesheet" href="/build/app.css">
</head>
<body dir="<?php echo api_get_text_direction(); ?>">
<div style="margin:10px;">

@ -86,8 +86,7 @@ if (!api_is_allowed_to_edit(null, true)) {
}
}
$platform_theme = api_get_setting('stylesheets');
$my_style = $platform_theme;
$my_style = Container::getThemeHelper()->getVisualTheme();
$ajaxUrl = api_get_path(WEB_AJAX_PATH).'lp.ajax.php?a=get_item_prerequisites&'.api_get_cidreq();
$htmlHeadXtra[] = '<script>
$(function() {

@ -10,6 +10,8 @@
* @license GNU/GPL
*/
use Chamilo\CoreBundle\Framework\Container;
/**
* Defines the "OpenofficeText" child of class "learnpath".
*/
@ -78,13 +80,7 @@ class OpenofficeText extends OpenofficeDocument
$header = preg_replace("|font\-family[^;]*;|i", '', $header);
// Chamilo styles.
$my_style = api_get_setting('stylesheets');
if (empty($my_style)) {
$my_style = 'chamilo';
}
$style_to_import = "<style type=\"text/css\">\r\n";
$style_to_import .= '@import "'.api_get_path(WEB_CODE_PATH).'css/'.$my_style.'/default.css";'."\n";
$style_to_import .= "</style>\r\n";
$style_to_import = Container::getThemeHelper()->getThemeAssetLinkTag('default.css');
$header = preg_replace("|</head>|i", "\r\n$style_to_import\r\n\\0", $header);
// Line break before and after picture.

@ -73,13 +73,7 @@ class OpenOfficeTextDocument extends OpenofficeDocument
$header = preg_replace("|font\-family[^;]*;|i", '', $header);
// Chamilo styles.
$my_style = api_get_setting('stylesheets');
if (empty($my_style)) {
$my_style = 'chamilo';
}
$style_to_import = "<style type=\"text/css\">\r\n";
$style_to_import .= '@import "'.api_get_path(WEB_CODE_PATH).'css/'.$my_style.'/default.css";'."\n";
$style_to_import .= "</style>\r\n";
$style_to_import = Container::getThemeHelper()->getThemeAssetLinkTag('default.css');
$header = preg_replace("|</head>|i", "\r\n$style_to_import\r\n\\0", $header);
// Line break before and after picture.

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

@ -17,7 +17,7 @@
<td valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">&nbsp;</td>
<td width="394"><img src="{{ _p.web_css }}/themes/{{ "stylesheets"|api_get_setting }}/images/header-logo.png" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="394"><img src="{{ theme_asset('images/header-logo.png') }}" width="230" height="60" alt="Ministerio de Educación"></td>
<td width="50">&nbsp;</td>
</tr>
<tr>

Loading…
Cancel
Save