Fix icon size for SVG support - refs #7359

1.10.x
Yannick Warnier 10 years ago
parent ff7ee35916
commit bc67fd6ef2
  1. 4
      main/template/default/agenda/event_list.tpl
  2. 2
      main/template/default/course_description/edit.tpl
  3. 4
      main/template/default/course_description/index.tpl
  4. 2
      main/template/default/layout/hot_courses.tpl
  5. 2
      main/template/default/learnpath/list.tpl
  6. 2
      main/template/default/sequence_resource/session_requirements.tpl
  7. 4
      main/template/default/skill/badge.tpl
  8. 6
      main/template/default/skill/badge_list.tpl
  9. 4
      main/template/default/skill/skill_wheel_student.tpl
  10. 2
      main/template/default/social/skills_block.tpl
  11. 10
      main/template/default/user_portal/session.tpl
  12. 6
      main/template/default/user_portal/session_category.tpl
  13. 4
      main/template/default/work/comments.tpl
  14. 2
      main/template/default/work/view.tpl

@ -45,12 +45,12 @@
<td>
{% if event.visibility == 1 %}
<a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=0&id={{ event.real_id }}">
<img title="{{ 'Invisible' }}" src="{{'visible.png'|icon(32)}} ">
<img title="{{ 'Invisible' }}" src="{{'visible.png'|icon(32)}} " width="32" height="32">
</a>
{% else %}
{% if event.type == 'course' or event.type == 'session' %}
<a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=1&id={{ event.real_id }}">
<img title="{{ 'Visible' }}" src="{{'invisible.png'|icon(32)}} ">
<img title="{{ 'Visible' }}" src="{{'invisible.png'|icon(32)}} " width="32" height="32">
</a>
{% endif %}
{% endif %}

@ -14,7 +14,7 @@
<div class="btn-group edit new">
{% for type in types %}
<a href="{{root}}&amp;action=add&amp;description_type={{type.id}}" class="btn btn-default">
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} ">
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} " width="32" height="32">
</a>
{% endfor %}
</div>

@ -54,7 +54,7 @@
<div class="btn-group edit new">
{% for type in types %}
<a href="{{root}}&amp;action=add&amp;description_type={{type.id}}" class="btn btn-default">
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} ">
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} " width="32" height="32">
</a>
{% endfor %}
</div>
@ -92,7 +92,7 @@
{% else %}
<img title="{{'EditionNotAvailableFromSession'|get_lang}}"
alt="{{'EditionNotAvailableFromSession'|get_lang}}"
src="{{'edit_na.png'|icon(22)}}"
src="{{'edit_na.png'|icon(22)}}" width="22" height="22"
style="vertical-align:middle;">
{% endif %}
</div>

@ -27,7 +27,7 @@ $(document).ready( function() {
{% if _u.is_admin %}
<span class="pull-right">
<a title="{{ "Hide"|get_lang }}" alt="{{ "Hide"|get_lang }}" href="{{ _p.web_main }}admin/settings.php?search_field=show_hot_courses&submit_button=&_qf__search_settings=&category=search_setting">
<img src="{{ "eyes.png"|icon(22) }}">
<img src="{{ "eyes.png"|icon(22) }}" width="22" height="22">
</a>
</span>
{% endif %}

@ -124,7 +124,7 @@
{% if is_allowed_to_edit and not lp_is_shown %}
<div id="no-data-view">
<h2>{{ "LearningPaths"|get_lang }}</h2>
<img src="{{ "scorms.png"|icon(64) }}">
<img src="{{ "scorms.png"|icon(64) }}" width="64" height="64">
<div class="controls">
<a href="{{ web_self ~ "?" ~ web_cid_query ~ "&action=add_lp" }}" class="btn btn-default">
{{ "LearnpathAddLearnpath"|get_lang }}

@ -7,7 +7,7 @@
{% for session in item.requirements %}
<div class="parent">
<div class="big-icon">
<img src="{{ 'item-sequence.png'|icon(48) }}">
<img src="{{ 'item-sequence.png'|icon(48) }}" width="48" height="48">
<p class="sequence-course">{{ session.name }}</p>
<span class="label {{ session.status ? 'label-success' : 'label-danger' }}">
{% if session.status %}

@ -12,7 +12,7 @@
<div class="tab-content">
<div class="tab-pane active">
<div class="openbadges-introduction">
<h1 class="title"><img src="{{ 'badges.png' | icon(64) }}">{{ 'OpenBadgesTitle' | get_lang }}</h1>
<h1 class="title"><img src="{{ 'badges.png' | icon(64) }}" width="64" height="64">{{ 'OpenBadgesTitle' | get_lang }}</h1>
<div class="row">
<div class="col-xs-12 col-md-6">
<p class="lead">
@ -23,7 +23,7 @@
</p>
</div>
<div class="col-xs-12 col-md-6">
<img class="img-responsive" src="{{ 'openbadges.png' | icon() }}">
<img class="img-responsive" src="{{ 'openbadges.png' | icon() }}" width="22" height="22">
</div>
</div>

@ -31,9 +31,9 @@
<tr>
<td>
{% if skill.icon is empty %}
<img src="{{ 'badges-default.png' | icon(128) }}" width="50" alt="{{ skill.name }}">
<img src="{{ 'badges-default.png' | icon(128) }}" width="50" height="50" alt="{{ skill.name }}">
{% else %}
<img src="{{ skill.web_icon_path }}" width="50" alt="{{ skill.name }}">
<img src="{{ skill.web_icon_path }}" width="50" height="50" alt="{{ skill.name }}">
{% endif %}
{{ skill.name }}
@ -41,7 +41,7 @@
<td>{{ skill.description }}</td>
<td>
<a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" title="{{ 'Edit' | get_lang }}">
<img src="{{ _p.web_img }}icons/22/edit.png" alt="{{ 'Edit' | get_lang }}">
<img src="{{ 'edit.png' | icon(22) }}" width="22" height="22" alt="{{ 'Edit' | get_lang }}">
</a>
</td>
</tr>

@ -171,7 +171,7 @@ $(document).ready(function() {
{% if skills is not empty %}
{% for skill in skills %}
{% if skill.icon is empty %}
<img src="{{ 'badges.png' | icon(32) }}" alt="{{ skill.name }}" title="{{ skill.name }}">
<img src="{{ 'badges.png' | icon(32) }}" width="32" height="32" alt="{{ skill.name }}" title="{{ skill.name }}">
{% else %}
<img src="{{ skill.web_icon_thumb_path }}" alt="{{ skill.name }}" title="{{ skill.name }}">
{% endif %}
@ -179,7 +179,7 @@ $(document).ready(function() {
{% endif %}
{% for i in 1..(9 - ranking) %}
<img src="{{ 'badges-default.png' | icon(32) }}">
<img src="{{ 'badges-default.png' | icon(32) }}" width="32" height="32">
{% endfor %}
</div>
</div>

@ -26,7 +26,7 @@
<ul class="list-badges">
{% for skill in skills %}
<li>
<img title="{{ skill.name }}" src="{{ skill.icon ? skill.web_icon_thumb_path : 'badges-default.png'|icon(64) }}" alt="{{ skill.name }}">
<img title="{{ skill.name }}" src="{{ skill.icon ? skill.web_icon_thumb_path : 'badges-default.png'|icon(64) }}" width="64" height="64" alt="{{ skill.name }}">
<div class="badges-name">{{ skill.name }}</div>
</li>
{% endfor %}

@ -3,17 +3,17 @@
<div class="panel-heading">
{% if session.show_link_to_session %}
<a href="{{ _p.web_main ~ 'session/index.php?session_id=' ~ session.id }}">
<img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" alt="{{ session.title }}" title="{{ session.title }}">
<img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ session.title }}" title="{{ session.title }}">
{{ session.title }}
</a>
{% else %}
<img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" alt="{{ session.title }}" title="{{ session.title }}">
<img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ session.title }}" title="{{ session.title }}">
{{ session.title }}
{% endif %}
{% if session.show_actions %}
<div class="pull-right">
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ session.id }}">
<img src="{{ "edit.png"|icon(22) }}" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
</a>
</div>
{% endif %}
@ -50,7 +50,7 @@
{% if session.show_actions %}
<div class="col-md-5 text-right">
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ session.id }}">
<img src="{{ "edit.png"|icon(22) }}" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
</a>
</div>
{% endif %}
@ -82,7 +82,7 @@
{{ item.title }}
{% if item.coaches|length > 0 %}
<img src="{{ 'teacher.png'|icon(16) }}">
<img src="{{ 'teacher.png'|icon(16) }}" width="16" height="16">
{% for coach in item.coaches %}
{{ loop.index > 1 ? ' | ' }}

@ -4,17 +4,17 @@
<div class="col-md-2">
{% if session_category.show_actions %}
<a href="{{ _p.web_main ~ 'session/session_category_edit.php?id=' ~ session_category.id }}" class="thumbnail">
<img src="{{ "sessions_category.png"|icon(48) }}" alt="{{ session_category.title }}" title="{{ session_category.title }}">
<img src="{{ "sessions_category.png"|icon(48) }}" width="48" height="48" alt="{{ session_category.title }}" title="{{ session_category.title }}">
</a>
{% else %}
<img src="{{ "sessions_category.png"|icon(48) }}" alt="{{ session_category.title }}" title="{{ session_category.title }}">
<img src="{{ "sessions_category.png"|icon(48) }}" width="48" height="48" alt="{{ session_category.title }}" title="{{ session_category.title }}">
{% endif %}
</div>
<div class="col-md-10">
{% if session_category.show_actions %}
<div class="pull-right">
<a href="{{ _p.web_main ~ 'session/session_category_edit.php?id=' ~ session_category.id }}">
<img src="{{ "edit.png"|icon(22) }}" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
</a>
</div>
{% endif %}

@ -23,12 +23,12 @@
{% if comment.file_url is not empty %}
<p>
<a href="{{ comment.file_url }}">
<img src="{{ "attachment.gif"|icon(32) }}">
<img src="{{ "attachment.gif"|icon(32) }}" width="32" height="32">
{{ comment.file_name_to_show }}
</a>
{% if is_allowed_to_edit %}
<a href="{{ comment.delete_file_url }}">
<img src="{{ "delete.png"|icon(22) }}">
<img src="{{ "delete.png"|icon(22) }}" width="22" height="22">
</a>
{% endif %}
</p>

@ -2,7 +2,7 @@
<h2>
{{ work.title }}
{% if work.contains_file %}
<a href="{{ work.download_url }}"><img src="{{ "save.png"|icon(22) }}"></a>
<a href="{{ work.download_url }}"><img src="{{ "save.png"|icon(22) }}" width="22" height="22"></a>
{% endif %}
</h2>
</div>

Loading…
Cancel
Save