Add prefetch

This commit is contained in:
Michael RICOIS 2016-07-07 10:19:18 +02:00
parent dcfe78b3c3
commit 775954a8c0

View File

@ -43,6 +43,9 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
$layout->setLayout('layout');
$layout->setLayoutPath($layoutPath);
// DNS Prefetch
$view->headLink(array('rel'=>'dns-prefetch', 'href'=> '//'.$request->getHttpHost()));
//Load default style and javascript files for the selected theme
switch ( $theme ) {
case 'default':
@ -55,21 +58,21 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendHttpEquiv('Content-Language', 'fr-FR');
//Favicon - Touch icon for iOS 2.0+ and Android 2.1+
$view->headLink()->headLink(array(
$view->headLink(array(
'rel' => 'apple-touch-icon-precomposed',
'href' => '/favicon-152.png'
));
//Favicon - targeted to any additional png size
$view->headLink()->headLink(array(
$view->headLink(array(
'rel' => 'icon',
'type' => 'image/png',
'href' => '/favicon-32.png'
));
$view->headLink()->headLink(array(
$view->headLink(array(
'rel' => 'shortcut icon',
'type' => 'image/x-icon',
'href' => '/favicon.ico')
);
'href' => '/favicon.ico'
));
$UserLogin = false;
if ( $controller == 'user' && ( $action == 'login' || $action == 'logout' ) ) {