@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | $interbreadcrumb[] = array('url' => api_get_self().'?'.api_get_cidreq(), 'name' => get_lang('CustomizeIcons')); |
47 | 47 | $toolName = $tool['name']; |
48 | 48 | |
49 | - $currentUrl = api_get_self().'?action=edit_icon&id=' . $id.'&'.api_get_cidreq(); |
|
49 | + $currentUrl = api_get_self().'?action=edit_icon&id='.$id.'&'.api_get_cidreq(); |
|
50 | 50 | |
51 | 51 | $form = new FormValidator('icon_edit', 'post', $currentUrl); |
52 | 52 | $form->addElement('header', get_lang('EditIcon')); |
53 | 53 | $form->addHtml('<div class="col-md-7">'); |
54 | 54 | $form->addElement('text', 'name', get_lang('Name')); |
55 | 55 | $form->addElement('text', 'link', get_lang('Links')); |
56 | - $allowed_picture_types = array ('jpg', 'jpeg', 'png'); |
|
56 | + $allowed_picture_types = array('jpg', 'jpeg', 'png'); |
|
57 | 57 | $form->addElement('file', 'icon', get_lang('CustomIcon')); |
58 | 58 | $form->addRule('icon', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
59 | 59 | $form->addElement( |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $iconsTools .= Display::page_header(get_lang('CustomizeIcons'), null, 'h4'); |
119 | 119 | $iconsTools .= '<div class="row">'; |
120 | 120 | foreach ($toolList as $tool) { |
121 | - $toolIconName = 'Tool' . api_underscore_to_camel_case($tool['name']); |
|
121 | + $toolIconName = 'Tool'.api_underscore_to_camel_case($tool['name']); |
|
122 | 122 | $toolIconName = isset($$toolIconName) ? get_lang($toolIconName) : $tool['name']; |
123 | 123 | |
124 | 124 | $iconsTools .= '<div class="col-md-2">'; |
@@ -140,13 +140,13 @@ discard block |
||
140 | 140 | |
141 | 141 | $delete = (!empty($tool['custom_icon'])) ? "<a class=\"btn btn-default\" onclick=\"javascript: |
142 | 142 | if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)). |
143 | - "')) return false;\" href=\"". api_get_self() . '?action=delete_icon&id=' . $tool['iid'] . '&'.api_get_cidreq()."\"> |
|
143 | + "')) return false;\" href=\"".api_get_self().'?action=delete_icon&id='.$tool['iid'].'&'.api_get_cidreq()."\"> |
|
144 | 144 | <em class=\"fa fa-trash-o\"></em></a>" : ""; |
145 | - $edit = '<a class="btn btn-default" href="' . api_get_self() . '?action=edit_icon&id=' . $tool['iid'] . '&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
145 | + $edit = '<a class="btn btn-default" href="'.api_get_self().'?action=edit_icon&id='.$tool['iid'].'&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
146 | 146 | |
147 | - $iconsTools .= '<div class="icon-tools">'. $icon . '</div>'; |
|
148 | - $iconsTools .= '<div class="name-tools">' . $toolIconName . '</div>'; |
|
149 | - $iconsTools .= '<div class="toolbar">' . $edit . $delete . '</div>'; |
|
147 | + $iconsTools .= '<div class="icon-tools">'.$icon.'</div>'; |
|
148 | + $iconsTools .= '<div class="name-tools">'.$toolIconName.'</div>'; |
|
149 | + $iconsTools .= '<div class="toolbar">'.$edit.$delete.'</div>'; |
|
150 | 150 | $iconsTools .= '</div>'; |
151 | 151 | $iconsTools .= '</div>'; |
152 | 152 | } |