replace all the remaining old icons with glyphicons
This commit is contained in:
parent
524acb15ba
commit
191ba6e1b1
|
@ -222,7 +222,7 @@ function angeltypes_list_controller() {
|
|||
//$actions[] = '<a class="add" href="' . page_link_to('user_angeltypes') . '&action=add&angeltype_id=' . $angeltype['id'] . '">' . _("join") . '</a>';
|
||||
}
|
||||
|
||||
$angeltype['restricted'] = $angeltype['restricted'] ? '<img src="pic/icons/lock.png" alt="' . _("Restricted") . '" title="' . _("Restricted") . '">' : '';
|
||||
$angeltype['restricted'] = $angeltype['restricted'] ? glyph('lock') : '';
|
||||
$angeltype['name'] = '<a href="' . page_link_to('angeltypes') . '&action=view&angeltype_id=' . $angeltype['id'] . '">' . $angeltype['name'] . '</a>';
|
||||
|
||||
$angeltype['actions'] = table_buttons($actions);
|
||||
|
|
|
@ -570,7 +570,7 @@ function view_user_shifts() {
|
|||
if (time() > $shift['start'])
|
||||
$entry_list[] = $inner_text . ' (vorbei)';
|
||||
elseif ($angeltype['restricted'] == 1 && isset($angeltype['user_id']) && ! isset($angeltype['confirm_user_id']))
|
||||
$entry_list[] = $inner_text . ' <img src="pic/icons/lock.png" alt="unconfirmed" title="' . _("You are not confirmed for this angel type.") . '" />';
|
||||
$entry_list[] = $inner_text . glyph('lock');
|
||||
elseif ($collides)
|
||||
$entry_list[] = $inner_text;
|
||||
else
|
||||
|
@ -707,7 +707,7 @@ function view_user_shifts() {
|
|||
if (time() > $shift['end']) {
|
||||
$entry_list[] = $inner_text . ' (vorbei)';
|
||||
} elseif ($angeltype['restricted'] == 1 && isset($angeltype['user_id']) && ! isset($angeltype['confirm_user_id'])) {
|
||||
$entry_list[] = $inner_text . ' <img src="pic/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />';
|
||||
$entry_list[] = $inner_text . glyph("lock");
|
||||
} else {
|
||||
$entry_list[] = $inner_text . ' <a href="' . page_link_to('user_settings') . '#angel_types_anchor">(Werde ' . $angeltype['name'] . ')</a>';
|
||||
}
|
||||
|
@ -786,7 +786,7 @@ function make_select($items, $selected, $name, $title = null) {
|
|||
$html_items[] = '<h4>' . $title . '</h4>' . "\n";
|
||||
|
||||
foreach ($items as $i)
|
||||
$html_items[] = '<div class="checkbox"><label><input type="checkbox" name="' . $name . '[]" value="' . $i['id'] . '"' . (in_array($i['id'], $selected) ? ' checked="checked"' : '') . '> ' . $i['name'] . '</label>' . (! isset($i['enabled']) || $i['enabled'] ? '' : ' <img src="pic/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />') . '</div><br />';
|
||||
$html_items[] = '<div class="checkbox"><label><input type="checkbox" name="' . $name . '[]" value="' . $i['id'] . '"' . (in_array($i['id'], $selected) ? ' checked="checked"' : '') . '> ' . $i['name'] . '</label>' . (! isset($i['enabled']) || $i['enabled'] ? '' : glyph("lock")) . '</div><br />';
|
||||
$html = '<div id="selection_' . $name . '" class="selection ' . $name . '">' . "\n";
|
||||
$html .= implode("\n", $html_items);
|
||||
$html .= buttons(array(
|
||||
|
|
|
@ -15,17 +15,17 @@ function AngelType_render_membership($user_angeltype) {
|
|||
if ($user_angeltype['user_angeltype_id'] != null) {
|
||||
if ($user_angeltype['restricted']) {
|
||||
if ($user_angeltype['confirm_user_id'] == null)
|
||||
$membership = '<img src="pic/icons/lock.png" alt="' . _("Unconfirmed") . '" title="' . _("Unconfirmed") . '"> ' . _("Unconfirmed");
|
||||
$membership = glyph('lock') . _("Unconfirmed");
|
||||
elseif ($user_angeltype['coordinator'])
|
||||
$membership = '<img src="pic/icons/tick.png" alt="' . _("Coordinator") . '" title="' . _("Coordinator") . '"> ' . _("Coordinator");
|
||||
$membership = glyph_bool(true) . _("Coordinator");
|
||||
else
|
||||
$membership = '<img src="pic/icons/tick.png" alt="' . _("Member") . '" title="' . _("Member") . '"> ' . _("Member");
|
||||
$membership = glyph_bool(true) . _("Member");
|
||||
} elseif ($user_angeltype['coordinator'])
|
||||
$membership = '<img src="pic/icons/tick.png" alt="' . _("Coordinator") . '" title="' . _("Coordinator") . '"> ' . _("Coordinator");
|
||||
$membership = glyph_bool(true) . _("Coordinator");
|
||||
else
|
||||
$membership = '<img src="pic/icons/tick.png" alt="' . _("Member") . '" title="' . _("Member") . '"> ' . _("Member");
|
||||
$membership = glyph_bool(true) . _("Member");
|
||||
} else {
|
||||
$membership = '<img src="pic/icons/cross.png" alt="" title="">';
|
||||
$membership = glyph_bool(false);
|
||||
}
|
||||
return $membership;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ function AngelTypes_list_view($angeltypes, $admin_angeltypes) {
|
|||
)),
|
||||
table(array(
|
||||
'name' => _("Name"),
|
||||
'restricted' => '<img src="pic/icons/lock.png" alt="' . _("Restricted") . '" title="' . _("Restricted") . '" />',
|
||||
'restricted' => glyph('lock') . _("Restricted"),
|
||||
'membership' => _("Membership"),
|
||||
'actions' => ""
|
||||
), $angeltypes)
|
||||
|
|
Loading…
Reference in New Issue