-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_public.php
More file actions
40 lines (33 loc) · 1.26 KB
/
_public.php
File metadata and controls
40 lines (33 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @brief AltoWithCSS3, a theme for Dotclear 2
*
* @package Dotclear
* @subpackage Theme
*
* @author Pierre Van Glabeke
* @copyright http://creativecommons.org/licenses/by-nc/2.0/fr/
*/
if (!defined('DC_RC_PATH')) {
return;
}
l10n::set(__DIR__ . '/locales/' . dcCore::app()->lang . '/main');
# appel css menu
dcCore::app()->addBehavior('publicHeadContent', 'altowithcss3_publicHeadContent');
function altowithcss3_publicHeadContent()
{
// menu
$style = dcCore::app()->blog->settings->themes->altowithcss3_menu;
if (!preg_match('/^menu|simplemenu|menuno$/', (string) $style)) {
$style = 'simplemenu';
}
$url = dcCore::app()->blog->settings->system->themes_url . '/' . dcCore::app()->blog->settings->system->theme;
echo '<link rel="stylesheet" type="text/css" media="screen" href="' . $url . '/css/' . $style . ".css\" />\n";
// width
$style = dcCore::app()->blog->settings->themes->altowithcss3_width;
if (!preg_match('/^880|1024|1280$/', (string) $style)) {
$style = '1024';
}
$url = dcCore::app()->blog->settings->system->themes_url . '/' . dcCore::app()->blog->settings->system->theme;
echo '<link rel="stylesheet" type="text/css" media="screen" href="' . $url . '/css/' . $style . ".css\" />\n";
}