|
@@ -46,14 +46,14 @@ discard block |
|
|
block discarded – undo |
|
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( |
|
@@ -140,13 +140,13 @@ discard block |
|
|
block discarded – undo |
|
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
|
} |