Overview
Comment:Ajout de balise #URL_CSS_DEFAUT pour que la CSS pointe sur la version modifiée si elle l'a été
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f7d2a56ab1814c494ce78bacec744c53181ab389
User & Date: bohwaz on 2016-06-25 12:33:49
Other Links: manifest | tags
Context
2016-07-20
13:05
Fix typo CSS, signalé par @sebastien check-in: e148c3909c user: bohwaz tags: trunk
2016-06-25
12:33
Ajout de balise #URL_CSS_DEFAUT pour que la CSS pointe sur la version modifiée si elle l'a été check-in: f7d2a56ab1 user: bohwaz tags: trunk
2016-06-24
13:34
typo check-in: 6719940972 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Squelette.php from [67661ea4c3] to [26448fef49].

210
211
212
213
214
215
216



217


218
219

220
221
222
223
224
225
226
227
228

        $this->assign('url_racine', WWW_URL);
        $this->assign('url_site', WWW_URL);
        $this->assign('url_atom', WWW_URL . 'feed/atom/');
        $this->assign('url_elements', WWW_URL . 'squelettes/');
        $this->assign('url_admin', WWW_URL . 'admin/');




        $lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) 


            ? preg_replace('/^.*(\w{2}).*$/Ui', '$1', $_SERVER['HTTP_ACCEPT_LANGUAGE'])
            : '';

        
        $this->assign('langue_visiteur', strtolower($lang));
    }

    public function __construct()
    {
        $this->_registerDefaultModifiers();
        $this->_registerDefaultTags();
    }







>
>
>
|
>
>
|
<
>
|
|







210
211
212
213
214
215
216
217
218
219
220
221
222
223

224
225
226
227
228
229
230
231
232
233

        $this->assign('url_racine', WWW_URL);
        $this->assign('url_site', WWW_URL);
        $this->assign('url_atom', WWW_URL . 'feed/atom/');
        $this->assign('url_elements', WWW_URL . 'squelettes/');
        $this->assign('url_admin', WWW_URL . 'admin/');

        $url = file_exists(DATA_ROOT . '/www/squelettes/default.css')
            ? WWW_URL . 'squelettes/default.css'
            : WWW_URL . 'squelettes-dist/default.css';

        $this->assign('url_css_defaut', $url);

        $lang = \Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);

        $lang = strtolower(substr($lang, 0, 2));

        $this->assign('langue_visiteur', $lang);
    }

    public function __construct()
    {
        $this->_registerDefaultModifiers();
        $this->_registerDefaultTags();
    }

Modified src/www/squelettes-dist/entete.html from [b267a242f4] to [a49afe476b].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8" />
    <title>[(#TITRE) - ]#NOM_ASSO</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, target-densitydpi=device-dpi" />
    <link rel="stylesheet" type="text/css" href="[(#URL_SITE)]squelettes-dist/default.css" media="screen,projection,handheld" />
    <link rel="alternate" type="application/atom+xml" title="Actualité de #NOM_ASSO" href="#URL_ATOM" />
    <!--[if lte IE 8]>
    <script type="text/javascript">
  	'article aside footer header nav section time'.replace(/\w+/g,function(n){document.createElement(n)})
	</script>
    <![endif]-->
</head>






|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8" />
    <title>[(#TITRE) - ]#NOM_ASSO</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, target-densitydpi=device-dpi" />
    <link rel="stylesheet" type="text/css" href="[(#URL_CSS_DEFAUT)]" media="screen,projection,handheld" />
    <link rel="alternate" type="application/atom+xml" title="Actualité de #NOM_ASSO" href="#URL_ATOM" />
    <!--[if lte IE 8]>
    <script type="text/javascript">
  	'article aside footer header nav section time'.replace(/\w+/g,function(n){document.createElement(n)})
	</script>
    <![endif]-->
</head>