Skip to content

Commit 5511dca

Browse files
committed
Issue #3426873: Switch default admin theme to the Gin Admin theme as Vartheme Claro is deprecated
1 parent 9540807 commit 5511dca

File tree

2 files changed

+73
-2
lines changed

2 files changed

+73
-2
lines changed

templates/install-page.html.twig

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{#
2+
/**
3+
* @file
4+
* Theme implementation to display a Drupal installation page.
5+
*
6+
* All available variables are mirrored in page.html.twig.
7+
* Some may be blank but they are provided for consistency.
8+
*
9+
* @see template_preprocess_install_page()
10+
*/
11+
#}
12+
<div class="layout-container">
13+
14+
<header role="banner">
15+
{% if site_name %}
16+
<h1 class="page-title">
17+
{% if profile_logo %}
18+
<img src="{{ profile_logo }}" class="installer-logo">
19+
{% else %}
20+
<img src="../{{ active_theme_path() }}/images/varbase-medium-logo.png" class="installer-logo">
21+
{% endif %}
22+
23+
{% if site_version %}
24+
<span class="site-version">{{ site_version }}</span>
25+
{% endif %}
26+
</h1>
27+
{% endif %}
28+
</header>
29+
30+
{% if page.sidebar_first %}
31+
<aside class="layout-sidebar-first" role="complementary">
32+
{{ page.sidebar_first }}
33+
</aside>{# /.layout-sidebar-first #}
34+
{% endif %}
35+
36+
<main role="main">
37+
{% if title %}
38+
<h2>{{ title }}</h2>
39+
{% endif %}
40+
{{ page.highlighted }}
41+
{{ page.content }}
42+
</main>
43+
44+
{% if page.sidebar_second %}
45+
<aside class="layout-sidebar-second" role="complementary">
46+
{{ page.sidebar_second }}
47+
</aside>{# /.layout-sidebar-second #}
48+
{% endif %}
49+
50+
</div>{# /.layout-container #}
51+
52+
<footer class="installer-footer clearfix">
53+
<div id="credit" class="clearfix">
54+
<div class="message">Proudly built by</div>
55+
<div class="logo">
56+
<a href="http://www.vardot.com" target="_blank">Vardot Company</a>
57+
</div>
58+
</div>
59+
</footer>

varbase.profile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,13 +758,25 @@ function varbase_requirements($phase) {
758758
return $requirements;
759759
}
760760

761+
/**
762+
* Implements hook_theme().
763+
*/
764+
function varbase_theme($existing, $type, $theme, $path) {
765+
return [
766+
'install_page' => [
767+
'template' => 'install-page.html',
768+
'path' => $path . '/templates'
769+
],
770+
];
771+
}
772+
761773
/**
762774
* Implements hook_library_info_alter().
763775
*/
764776
function varbase_library_info_alter(&$libraries, $extension) {
765777
if ($extension === 'claro' && isset($libraries['install-page'])) {
766778
unset($libraries['install-page']['css']);
767-
$libraries['claro']['dependencies'][] = 'varbase/install-styling';
768-
$libraries['claro']['dependencies'][] = 'varbase/install-scripts';
779+
$libraries['install-page']['dependencies'][] = 'varbase/install-styling';
780+
$libraries['install-page']['dependencies'][] = 'varbase/install-scripts';
769781
}
770782
}

0 commit comments

Comments
 (0)