Merge pull request #1270 from aragonc/1.11.x

1.11.x
pull/2487/head
Alex Aragon Calixto 9 years ago committed by GitHub
commit 70175adc57
  1. 19
      app/Resources/public/css/base.css
  2. 6
      main/admin/index.php
  3. 2
      main/chat/chat.php
  4. BIN
      main/img/icons/32/dropbox.png
  5. BIN
      main/img/icons/32/folder_document.png
  6. BIN
      main/img/icons/32/glossary.png
  7. BIN
      main/img/icons/32/link.png
  8. BIN
      main/img/icons/32/links.png
  9. BIN
      main/img/icons/32/members.png
  10. BIN
      main/img/icons/32/notebook.png
  11. BIN
      main/img/icons/32/valves.png
  12. BIN
      main/img/icons/32/works.png
  13. 9
      main/inc/lib/course_home.lib.php
  14. 2
      main/template/default/auth/session_catalog.tpl
  15. 3
      main/template/default/layout/course_navigation.tpl

@ -5675,6 +5675,25 @@ footer{
background: #ffffff; background: #ffffff;
width: 100%; width: 100%;
} }
#toolshortcuts_horizontal{
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 10px;
text-align: center;
}
#toolshortcuts_horizontal .items-icon{
padding: 0px;
display: inline-block;
}
#toolshortcuts_horizontal .items-icon img{
padding:5px;
border-radius:5px;
-webkit-box-shadow: 0 1px 3px #C8C8C8;
-opera-box-shadow: 0 1px 3px #C8C8C8;
-moz-box-shadow: 0 1px 3px #C8C8C8;
box-shadow: 0 1px 3px #C8C8C8;
border: 1px solid #e6e6e6;
}
/* CSS NEW TOP ******************************************************************************/ /* CSS NEW TOP ******************************************************************************/
/* CSS Responsive */ /* CSS Responsive */
@media (min-width: 1025px) and (max-width: 1200px) { @media (min-width: 1025px) and (max-width: 1200px) {

@ -78,7 +78,7 @@ if (!empty($hook)) {
} }
/* Users */ /* Users */
$blocks['users']['icon'] = Display::return_icon('members.gif', get_lang('Users'), array(), ICON_SIZE_MEDIUM, false); $blocks['users']['icon'] = Display::return_icon('members.png', get_lang('Users'), array(), ICON_SIZE_MEDIUM, false);
$blocks['users']['label'] = api_ucfirst(get_lang('Users')); $blocks['users']['label'] = api_ucfirst(get_lang('Users'));
$blocks['users']['class'] = 'block-admin-users'; $blocks['users']['class'] = 'block-admin-users';
@ -432,7 +432,7 @@ if (api_is_platform_admin()) {
/* Chamilo.org */ /* Chamilo.org */
$blocks['chamilo']['icon'] = Display::return_icon('logo.png', 'Chamilo.org', array(), ICON_SIZE_MEDIUM, false); $blocks['chamilo']['icon'] = Display::return_icon('platform.png', 'Chamilo.org', array(), ICON_SIZE_MEDIUM, false);
$blocks['chamilo']['label'] = 'Chamilo.org'; $blocks['chamilo']['label'] = 'Chamilo.org';
$blocks['chamilo']['class'] = 'block-admin-chamilo'; $blocks['chamilo']['class'] = 'block-admin-chamilo';
@ -456,7 +456,7 @@ if (api_is_platform_admin()) {
$blocks['chamilo']['search_form'] = null; $blocks['chamilo']['search_form'] = null;
// Version check // Version check
$blocks['version_check']['icon'] = Display::return_icon('logo.png', 'Chamilo.org', array(), ICON_SIZE_MEDIUM, false); $blocks['version_check']['icon'] = Display::return_icon('platform.png', 'Chamilo.org', array(), ICON_SIZE_MEDIUM, false);
$blocks['version_check']['label'] = get_lang('VersionCheck'); $blocks['version_check']['label'] = get_lang('VersionCheck');
$blocks['version_check']['extra'] = '<div class="admin-block-version"></div>'; $blocks['version_check']['extra'] = '<div class="admin-block-version"></div>';
$blocks['version_check']['search_form'] = null; $blocks['version_check']['search_form'] = null;

@ -55,4 +55,4 @@ $template = $view->get_template('chat/chat.tpl');
$content = $view->fetch($template); $content = $view->fetch($template);
$view->assign('content', $content); $view->assign('content', $content);
$view->display_one_col_template(); $view->display_no_layout_template();

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@ -1218,26 +1218,27 @@ class CourseHome
$style_id = "toolshortcuts_vertical"; $style_id = "toolshortcuts_vertical";
} }
$html .= '<div id="'.$style_id.'">'; $html .= '<div id="'.$style_id.'">';
foreach ($navigation_items as $key => $navigation_item) { foreach ($navigation_items as $key => $navigation_item) {
if (strpos($navigation_item['link'], 'chat') !== false && if (strpos($navigation_item['link'], 'chat') !== false &&
api_get_course_setting('allow_open_chat_window') api_get_course_setting('allow_open_chat_window')
) { ) {
$html .= '<a href="javascript: void(0);" onclick="javascript: window.open(\''.$navigation_item['link'].'\',\'window_chat'.$_SESSION['_cid'].'\',config=\'height=\'+600+\', width=\'+825+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="'.$navigation_item['target'].'"'; $html .= '<a class="items-icon" href="javascript: void(0);" onclick="javascript: window.open(\''.$navigation_item['link'].'\',\'window_chat'.$_SESSION['_cid'].'\',config=\'height=\'+600+\', width=\'+825+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="'.$navigation_item['target'].'"';
} else { } else {
$html .= '<a href="'.$navigation_item['link'].'"'; $html .= '<a class="items-icon" href="'.$navigation_item['link'].'"';
} }
if (strpos(api_get_self(), $navigation_item['link']) !== false) { if (strpos(api_get_self(), $navigation_item['link']) !== false) {
$html .= ' id="here"'; $html .= ' id="here"';
} }
$html .= ' target="_top" title="'.$navigation_item['name'].'">'; $html .= ' target="_top" title="'.$navigation_item['name'].'">';
$html .= '<img src="'.api_get_path(WEB_IMG_PATH).$navigation_item['image'].'" alt="'.$navigation_item['name'].'"/>'; $html .= Display::return_icon(substr($navigation_item['image'],0,-3)."png", $navigation_item['name'], null, ICON_SIZE_MEDIUM);
//$html .= '<img src="'.api_get_path(WEB_IMG_PATH).$navigation_item['image'].'" alt="'.$navigation_item['name'].'"/>';
$html .= '</a> '; $html .= '</a> ';
if ($orientation == SHORTCUTS_VERTICAL) { if ($orientation == SHORTCUTS_VERTICAL) {
$html .= '<br />'; $html .= '<br />';
} }
} }
$html .= '</div>'; $html .= '</div>';
} }
return $html; return $html;

@ -1,4 +1,4 @@
{% extends template ~ "/layout/main.tpl" %} {% extends template ~ "/layout/page.tpl" %}
{% block body %} {% block body %}
<script type="text/javascript"> <script type="text/javascript">

@ -2,8 +2,7 @@
{% if show_header == true %} {% if show_header == true %}
{% if show_course_shortcut is not null %} {% if show_course_shortcut is not null %}
<div class="col-md-12"> <div class="nav-tools">
{{ show_course_shortcut }} {{ show_course_shortcut }}
</div> </div>
{% endif %} {% endif %}

Loading…
Cancel
Save