File tree Expand file tree Collapse file tree 2 files changed +73
-2
lines changed Expand file tree Collapse file tree 2 files changed +73
-2
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -758,13 +758,25 @@ function varbase_requirements($phase) {
758
758
return $requirements;
759
759
}
760
760
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
+
761
773
/**
762
774
* Implements hook_library_info_alter().
763
775
*/
764
776
function varbase_library_info_alter(&$libraries, $extension) {
765
777
if ($extension === 'claro' && isset($libraries['install-page'])) {
766
778
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';
769
781
}
770
782
}
You can’t perform that action at this time.
0 commit comments