1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* This file adds a warning message if the theme is beeing used disabled.
|
5
|
*/
|
6
|
|
7
|
// Define the base site url.
|
8
|
global $base_url;
|
9
|
|
10
|
// Display the warning in its own div.
|
11
|
print theme('html_tag', array(
|
12
|
'element' => array(
|
13
|
'#tag' => 'div',
|
14
|
'#attributes' => array(
|
15
|
'class' => 'messages theme-disabled',
|
16
|
),
|
17
|
'#value' => t('Adminimal Theme must be enabled to work properly. Please enable it from the <a href="@link">Appearance page</a>.', array('@link' => $base_url . '/admin/appearance')),
|
18
|
),
|
19
|
));
|