Skip to content

Commit

Permalink
Issue #6205: Provide class names to operations links on Appearance page.
Browse files Browse the repository at this point in the history
  • Loading branch information
laryn authored Aug 31, 2023
1 parent 0ac5151 commit 8effd29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/modules/system/system.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,21 @@ function system_themes_page() {
// Create the operations links.
$query['theme'] = $theme->name;
if (backdrop_theme_access($theme) && theme_has_settings($theme->name)) {
$theme->operations[] = array(
$theme->operations['settings'] = array(
'title' => t('Settings'),
'href' => 'admin/appearance/settings/' . $theme->name,
'attributes' => array('title' => t('Settings for !theme theme', array('!theme' => $theme->info['name']))),
);
}
if (!empty($theme->status)) {
if (!$theme->is_default) {
$theme->operations[] = array(
$theme->operations['disable'] = array(
'title' => t('Disable'),
'href' => 'admin/appearance/disable',
'query' => $query,
'attributes' => array('title' => t('Disable !theme theme', array('!theme' => $theme->info['name']))),
);
$theme->operations[] = array(
$theme->operations['default'] = array(
'title' => t('Set default'),
'href' => 'admin/appearance/default',
'query' => $query,
Expand All @@ -181,13 +181,13 @@ function system_themes_page() {
}
}
else {
$theme->operations[] = array(
$theme->operations['enable'] = array(
'title' => t('Enable'),
'href' => 'admin/appearance/enable',
'query' => $query,
'attributes' => array('title' => t('Enable !theme theme', array('!theme' => $theme->info['name']))),
);
$theme->operations[] = array(
$theme->operations['enable-default'] = array(
'title' => t('Enable and set default'),
'href' => 'admin/appearance/default',
'query' => $query,
Expand Down

1 comment on commit 8effd29

@backdrop-ci
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.