Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mod/block/class/Block_Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function view($pin_mode = FALSE, $admin_icon = TRUE)
{
$edit = $opt = null;
if (Current_User::allow('block', 'edit_block', $this->id)) {
$img = '<i class="fa fa-edit" title="' . dgettext('block',
'Edit block') . '"></i>';
$img = '<button class="btn btn-default"><i class="fa fa-pencil" title="' . dgettext('block',
'Edit block') . '"></i> Edit</button>';
$edit = PHPWS_Text::secureLink($img, 'block',
array('block_id' => $this->id,
'action' => 'edit'));
Expand All @@ -184,8 +184,8 @@ public function view($pin_mode = FALSE, $admin_icon = TRUE)
TRUE);
$js_var['QUESTION'] = dgettext('block',
'Are you sure you want to remove this block from this page?');
$js_var['LINK'] = "<i class='fa fa-remove-circle' title='" . dgettext('block',
'Remove block from page') . "'></i>";
$js_var['LINK'] = "<button class='btn btn-default'><i class='fa fa-minus-circle' aria-hidden='true' title='" . dgettext('block',
'Remove block from page') . "'></i> Remove</button>";

$opt = Layout::getJavascript('confirm', $js_var);
}
Expand Down