<?php
/**
 * Metatags
 * Tags communs, les metatags spécifiques sont
 * spécifiés dans les controllers.
 */

$themeUrl = '/resources/themes/lumiere';

$this->doctype(Zend_View_Helper_Doctype::XHTML5);


$this->headTitle( '#site title#' )
    ->setSeparator(' - ')
    ->enableTranslation()
    ->setIndent( 4 );

$this->headMeta()->setIndent( 4 )
    //->appendName( 'Copyright', '#copyright line#' )
    ->appendName( 'Robots', 'follow,index,all' )
	->appendName( 'Author', 'Visible [Creative Agency]' )
	->appendName( 'viewport','width=device-width, initial-scale=1.0, maximum-scale=1.0' )
	//->appendHttpEquiv( 'X-UA-Compatible',"IE=7")
// facebook
	//->appendName( 'og:title',$this->headTitle())
	->appendName( 'og:url', $this->serverUrl($this->url()))
 	//->setCharset('utf-8')
    ;

$this->headLink()
	->appendStylesheet( 'https://fonts.googleapis.com/css?family=Archivo+Narrow:700,400,400italic')
	->appendStylesheet( 'https://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css' )
	->appendStylesheet( $this->baseUrl( $themeUrl.'/css/plugins.min.css?3') )
	->appendStylesheet( $this->baseUrl( $themeUrl.'/css/main.css?7') )

	//->appendStylesheet( $this->baseUrl('/resources/application/layouts/public/css/ie.css'),'all','lte IE 9')
	->appendStylesheet( $this->baseUrl( $themeUrl.'/css/print.min.css','print') )
	;

// $this->favicons(array('icons'=>'all','iconspath'=>'/ico'));

$this->headScript()->setIndent( 4 )
	->appendFile($this->baseUrl('/resources/library/scripts/modernizr.2.5.3.js'))
	//->appendFile($this->baseUrl('/resources/library/scripts/selectivizr.js'),'text/javascript', array('conditional' => '(gte IE 6)&(lte IE 8)'))
	//->appendScript( "Modernizr.load([{  test: Modernizr.flexbox || Modernizr.flexboxLegacy,  nope: '/resources/library/scripts/flexie.min.js'}]);" )
	->appendScript( $this->render( 'partials/public/analytics.phtml' ) )
    ;

$messageCookies = $this->cmsContent('MESSAGE_WARNING_COOKIES')->render();
$messageBrowser = $this->cmsContent('MESSAGE_WARNING_BROWSER')->render();

$this->inlineScript()->captureStart(); ?>
var MESSAGE_WARNING_COOKIES = "<?= str_replace(array("\n","\r"),'', addslashes( $messageCookies)) ?>";
var MESSAGE_WARNING_BROWSER = "<?= str_replace(array("\n","\r"),'', addslashes( $messageBrowser)) ?>";
<?php
$this->inlineScript()->captureEnd();
$this->inlineScript()->setIndent( 4 )
    ->appendFile('https://code.jquery.com/jquery-1.12.4.min.js')
    ->appendFile( $this->baseUrl( $themeUrl.'/js/plugins.min.js?3' ))
    ->appendFile( $this->baseUrl( $themeUrl.'/js/app.min.js?3' ))
	;



//$this->jQuery()->setVersion('1.8')->setUiVersion('1.8')->enable()->uiEnable();
$this->jQuery()->disable();

$this->lang = $this->locale();
$bodyClass = $this->bodyClass();

if( !$bodyClass ){
    $bodyClass = 'default';
}
$this->tplClass = $this->lang . ' ' . $this->bodyClass();
