Fix php warnings, fix icons

pull/3768/head
Julio Montoya 4 years ago
parent 84dd35b460
commit 1d6196c60a
  1. 2
      public/main/inc/lib/display.lib.php
  2. 2
      public/main/inc/lib/exercise.lib.php
  3. 9
      public/main/inc/lib/social.lib.php
  4. 1
      public/main/messages/record_audio.php
  5. 4
      public/main/social/friends.php
  6. 4
      public/main/social/search.php
  7. 2
      public/main/template/default/exercise/partials/result_exercise.html.twig
  8. 2
      public/main/template/default/layout/login_form.html.twig
  9. 2
      public/main/template/default/my_space/partials/tracking_course_overview.html.twig
  10. 2
      public/main/template/default/my_space/user_details.html.twig
  11. 2
      public/main/template/default/skill/badge_create.html.twig
  12. 4
      public/main/template/default/social/friends.html.twig
  13. 2
      public/main/template/default/social/user_block.html.twig
  14. 4
      public/main/template/default/user_portal/classic_courses_with_category.html.twig
  15. 4
      public/main/template/default/user_portal/classic_courses_without_category.html.twig
  16. 4
      public/main/template/default/user_portal/grid_courses_with_category.html.twig
  17. 4
      public/main/template/default/user_portal/grid_courses_without_category.html.twig
  18. 4
      public/main/template/default/user_portal/grid_session.html.twig

@ -2725,7 +2725,7 @@ HTML;
}
return '<div id="user_card_'.$userInfo['id'].'" class="card d-flex flex-row">
<img src="'.$userInfo['avatar'].'" class="rounded">
<img src="'.$userInfo['avatar'].'" class="rounded" />
<h3 class="card-title">'.$userInfo['complete_name'].'</h3>
<div class="card-body">
<div class="card-title">

@ -1612,7 +1612,7 @@ HOTSPOT;
<input
type="radio" value="0"
name="'.$questionId.'-options" autocomplete="off" checked>
<span class="fa fa-pencil" aria-hidden="true"></span>
<span class="fas fa-pencil-alt" aria-hidden="true"></span>
</label>
<label class="btn btn-default"
aria-label="'.get_lang('Add annotation text').'">

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Framework\Container;
@ -881,7 +882,7 @@ class SocialManager extends UserManager
$show,
['shared_profile', 'groups', 'group_edit', 'member_list', 'waiting_list', 'invite_friends']
)) {
$links = '<ul class="nav nav-pills nav-stacked">';
$links = '<ul class="nav-bar">';
$active = 'home' === $show ? 'active' : null;
$links .= '
<li class="home-icon '.$active.'">
@ -1003,7 +1004,7 @@ class SocialManager extends UserManager
}
if ('shared_profile' === $show) {
$links = '<ul class="nav nav-pills nav-stacked">';
$links = '<ul class="nav-bar">';
// My own profile
if ($show_full_profile && $user_id == api_get_user_id()) {
$links .= '
@ -1187,7 +1188,7 @@ class SocialManager extends UserManager
if ($show_delete_account_button) {
$html .= '<div class="panel panel-default"><div class="panel-body">';
$html .= '<ul class="nav nav-pills nav-stacked"><li>';
$html .= '<ul class="nav-bar"><li>';
$url = api_get_path(WEB_CODE_PATH).'auth/unsubscribe_account.php';
$html .= Display::url(
Display::return_icon(
@ -1768,7 +1769,7 @@ class SocialManager extends UserManager
</div>
<div class="col-sm-3 pull-right">
<a onclick="submitComment('.$messageId.');" href="javascript:void(0);" name="social_wall_new_msg_submit" class="btn btn-default btn-post">
<em class="fa fa-pencil"></em> '.get_lang('Post').'
<em class="fas fa-pencil-alt"></em> '.get_lang('Post').'
</a>
</div>
</form>';

@ -16,6 +16,7 @@ $htmlHeadXtra[] = api_get_js('record_audio/record_audio.js');
$tpl = new Template(get_lang('Compose message'), false, false, false, true);
$record = $tpl->get_template('message/record_audio.tpl');
$tpl->assign('directory', '');
$tpl->assign('user_id', api_get_user_id());
$tpl->assign('audio_title', api_get_unique_id());
$tpl->assign('reload_page', 0);

@ -25,7 +25,7 @@ function delete_friend (element_div) {
type: "POST",
url: "'.api_get_path(WEB_AJAX_PATH).'social.ajax.php?a=delete_friend",
data: "delete_friend_id="+user_id[1],
success: function(datos) {
success: function(datos) {
$("#user_card_"+user_id[1]).hide("slow");
}
});
@ -109,7 +109,6 @@ if (0 == count($friends)) {
$social_right_content .= $filterForm->returnForm();
$friend_html = '<div id="whoisonline">';
$friend_html .= '<div class="row">';
$number_friends = count($friends);
$j = 0;
@ -128,7 +127,6 @@ if (0 == count($friends)) {
}
}
$friend_html .= '</div>';
$friend_html .= '</div>';
$social_right_content .= $friend_html;
}
$social_right_content .= '</div>';

@ -82,7 +82,6 @@ if ('' != $query || ('1' == $query_vars['search_type'] && count($query_vars) > 2
$results = '<div id="whoisonline">';
if (is_array($users) && count($users) > 0) {
$results .= '<div class="row">';
$buttonClass = 'btn btn-default btn-sm';
foreach ($users as $user) {
$user_info = api_get_user_info($user['id'], true);
@ -134,7 +133,6 @@ if ('' != $query || ('1' == $query_vars['search_type'] && count($query_vars) > 2
$invitations
);
}
$results .= '</div>';
}
$results .= '</div>';
@ -200,7 +198,7 @@ if ('' != $query || ('1' == $query_vars['search_type'] && count($query_vars) > 2
</div>
<div class="user-info">
'.$item_1.'
<p>'.$members.'</p>
<p>'.$members.'</p>
<p>'.$group['description'].'</p>
<p>'.$tags.'</p>
<p>'.$url_open.get_lang('See more').$url_close.'</p>

@ -55,7 +55,7 @@
<div class="list-data">
<span class="item"></span>
<a id="sign" class="btn btn-primary" href="javascript:void(0)">
<em class="fa fa-pencil"></em> {{ 'Sign'| get_plugin_lang('ExerciseSignaturePlugin') }}
<em class="fas fa-pencil-alt"></em> {{ 'Sign'| get_plugin_lang('ExerciseSignaturePlugin') }}
</a>
</div>
{% endif %}

@ -14,7 +14,7 @@
{{ login_form }}
{% if "allow_lostpassword" | api_get_setting == 'true' or "allow_registration" | api_get_setting == 'true' %}
<ul class="nav nav-pills nav-stacked">
<ul class="nav-bar">
{% if "allow_registration" | api_get_setting != 'false' %}
<li><a href="{{ _p.web_main }}auth/inscription.php"> {{ 'SignUp' | get_lang }} </a></li>
{% endif %}

@ -71,7 +71,7 @@
<span title="{{ 'TotalNumberOfAssignments'|get_lang }}">{{ 'TotalNumberOfAssignments'|get_lang }}</span>
</dt>
<dd>
<span class="text-color"><i class="fa fa-pencil" aria-hidden="true"></i></span>
<span class="text-color"><i class="fas fa-pencil-alt" aria-hidden="true"></i></span>
<span class="text-color">{{ data.number_assignments }}</span>
</dd>
<dt>

@ -102,7 +102,7 @@
<div class="card box-widget">
<div class="card-body">
<div class="stat-widget-five">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
{{ user_extra.tools.tasks }}
<div class="box-name">
{{ 'Assignments'|trans }}

@ -685,7 +685,7 @@
<div class="create-openbadges">
<button id="btn-open-designer" class="help-badges btn btn-primary btn-large btn-block" data-toggle="tooltip" data-placement="bottom" title="{{ 'DesignANewBadgeComment' | get_lang }}" type="button">
<em class="fa fa-pencil"></em> {{ 'DesignNewBadge' | get_lang }}
<em class="fas fa-pencil-alt"></em> {{ 'DesignNewBadge' | get_lang }}
</button>
</div>
<div class="create-openbadges">

@ -19,11 +19,11 @@
{{ social_right_content}}
</div>
<div id="display_response_id" class="span5"></div>
{{ social_auto_extend_link }}
{# {{ social_auto_extend_link }}#}
</div>
<div class="col-md-4">
<div class="row">
{{ social_right_information }}
{# {{ social_right_information }}#}
</div>
</div>
</div>

@ -13,7 +13,7 @@
title="{{ "Edit"|get_lang }}"
href="{{ url('home') }}main/admin/user_edit.php?user_id={{ user.id }}"
>
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
</div>
{% endif %}

@ -33,12 +33,12 @@
<div class="pull-right">
{% if item.document == '' %}
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{% else %}
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{{ item.document }}
</div>

@ -31,12 +31,12 @@
<div class="pull-right">
{% if item.document == '' %}
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{% else %}
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{{ item.document }}
</div>

@ -42,12 +42,12 @@
<div class="admin-actions">
{% if item.document == '' %}
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{% else %}
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{{ item.document }}
</div>

@ -24,12 +24,12 @@
<div class="admin-actions">
{% if item.document == '' %}
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{% else %}
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{{ item.document }}
</div>

@ -15,12 +15,12 @@
<div class="admin-actions">
{% if course.document == '' %}
<a class="btn btn-default btn-sm" href="{{ course.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{% else %}
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{{ course.edit_actions }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</a>
{{ course.document }}
</div>

Loading…
Cancel
Save