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();
}
|