Skip to content

Commit

Permalink
Fixed - some old bootstrap classes updated to BS5
Browse files Browse the repository at this point in the history
(cherry picked from commit 5631d8c7f259e29ede1a3a03f694bce592d6f3c1)
  • Loading branch information
andiamine committed Aug 17, 2024
1 parent 97ff53b commit f317063
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/com_joomcck/library/php/html/records.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static function featured($value = 0, $i, $canChange = true)
$state = \Joomla\Utilities\ArrayHelper::getValue($states, (int) $value, $states[1]);

if ($canChange) {
$html = '<a href="#" class="btn btn-micro" onclick="return Joomla.listItemTask(\'cb'.$i.'\',\''.$state[1].'\')" rel="tooltip" data-bs-original-title="'.\Joomla\CMS\Language\Text::_($state[2]).'">'
$html = '<a href="#" class="btn btn-sm btn-light border rounded" onclick="return Joomla.listItemTask(\'cb'.$i.'\',\''.$state[1].'\')" rel="tooltip" data-bs-original-title="'.\Joomla\CMS\Language\Text::_($state[2]).'">'
. $state[0].'</a>';
}

Expand Down
4 changes: 2 additions & 2 deletions components/com_joomcck/views/diff/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function _drawLine($field_title, $cur, $ver, $field = FALSE)
<td><?php echo _renderCol($cur, $field)?></td>
<td align="center" class="middlerow" nowrap="nowrap">
<?php if($cur):?>
<span class="btn btn-micro" rel="popover-left" data-bs-original-title="<?php echo \Joomla\CMS\Language\Text::_('CROAWDATA')?>" data-content="<?php echo str_replace(' ', '&nbsp;&nbsp;&nbsp;&nbsp;', nl2br(htmlspecialchars(print_r($cur, TRUE), ENT_COMPAT, 'UTF-8')));?>">
<span class="btn btn-sm btn-light border rounded" rel="popover-left" data-bs-original-title="<?php echo \Joomla\CMS\Language\Text::_('CROAWDATA')?>" data-content="<?php echo str_replace(' ', '&nbsp;&nbsp;&nbsp;&nbsp;', nl2br(htmlspecialchars(print_r($cur, TRUE), ENT_COMPAT, 'UTF-8')));?>">
<?php echo HTMLFormatHelper::icon('control-180-small.png'); ?>
</span>
<?php else:?>
Expand All @@ -145,7 +145,7 @@ function _drawLine($field_title, $cur, $ver, $field = FALSE)
<?php endif;?>

<?php if($ver):?>
<span class="btn btn-micro" rel="popover-right" data-bs-original-title="<?php echo \Joomla\CMS\Language\Text::_('CROAWDATA')?>" data-content="<?php echo str_replace(' ', '&nbsp;&nbsp;&nbsp;&nbsp;', nl2br(htmlspecialchars(print_r($ver, TRUE), ENT_COMPAT, 'UTF-8')));?>">
<span class="btn btn-sm btn-light border rounded" rel="popover-right" data-bs-original-title="<?php echo \Joomla\CMS\Language\Text::_('CROAWDATA')?>" data-content="<?php echo str_replace(' ', '&nbsp;&nbsp;&nbsp;&nbsp;', nl2br(htmlspecialchars(print_r($ver, TRUE), ENT_COMPAT, 'UTF-8')));?>">
<?php echo HTMLFormatHelper::icon('control-000-small.png'); ?>
</span>
<?php else:?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_joomcck/views/elements/tmpl/buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<td>
<span>
<?php if ($order->field): ?>
<button type="button" class="btn btn-micro" data-toggle="collapse"
<button type="button" class="btn btn-sm btn-light border rounded" data-toggle="collapse"
data-target="#field<?php echo $order->id ?>"><i
class="icon-arrow-down-3"></i></button>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_joomcck/views/elements/tmpl/saler.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function status($s, $t, $o)
<a href="javascript:void(0)" onclick="if(confirm('<?php echo \Joomla\CMS\Language\Text::_('CCONFIRMDELET_1')?>')){window.location = '<?php echo \Joomla\CMS\Router\Route::_('index.php?option=com_joomcck&task=sale.delete&id='.$order->id)?>'}">
<?php echo HTMLFormatHelper::icon('cross.png'); ?></a>
<?php endif;?>
<button type="button" class="btn btn-micro" data-toggle="collapse" data-target="#field<?php echo $order->id?>"><i class="icon-arrow-down-3"></i></button>
<button type="button" class="btn btn-sm btn-light border rounded" data-toggle="collapse" data-target="#field<?php echo $order->id?>"><i class="icon-arrow-down-3"></i></button>

<a href="<?php echo Url::record($order->record_id)?>">
<?php echo $order->name?></a>
Expand Down
4 changes: 2 additions & 2 deletions components/com_joomcck/views/notifications/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ class="badge text-bg-light shadow-sm px-2 py-1"><?php echo $num; ?></span></labe
<td nowrap>
<div class="btn-group">
<?php if($item->state_new): ?>
<a class="btn btn-micro" id="btn-mark-<?php echo $item->id ?>"
<a class="btn btn-sm btn-light border rounded" id="btn-mark-<?php echo $item->id ?>"
onclick="Joomcck.markRead(<?php echo $item->id; ?>);" rel="tooltip"
data-bs-original-title="<?php echo Text::_('CMARKASREAD') ?>">
<?php echo HTMLFormatHelper::icon('asterisk.png'); ?>
</a>
<?php endif; ?>
<a class="btn btn-micro"
<a class="btn btn-sm btn-light border rounded"
onclick="if(!confirm('<?php echo Text::_("EVENT_CONFIRM_DELETE") ?>') ) {return;} Joomcck.removeNtf(<?php echo $item->id; ?>);">
<?php echo HTMLFormatHelper::icon('cross-button.png'); ?>
</a>
Expand Down

0 comments on commit f317063

Please sign in to comment.