<?php
$this->doctype(Zend_View_Helper_Doctype::XHTML5);

$this->headTitle( '#administration#' );

/**
 * Metatags
 * Tags communs, les metatags spécifiques sont
 * spécifiés dans les controllers.
 */
$this->headMeta()
     ->setCharset('utf-8')
     ->appendName( 'Robots', 'noindex,nofollow' )
     ->appendHttpEquiv( 'Content-Type', 'text/html; charset=UTF-8' );

$this->jQuery()->enable()->setVersion()
               ->uiEnable()->setUiVersion();

$this->headLink()
     //->prependStylesheet( 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css' )
     
     ->prependStylesheet( $this->baseUrl( '/resources/library/scripts/chosen/chosen.css' )  )
     ->prependStylesheet( $this->baseUrl('/resources/library/ui/custom-theme/jquery-ui-1.8.16.custom.css') )
     ->prependStylesheet( $this->baseUrl('/resources/application/layouts/admin/css/screen.css') )
     //->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/themes/default/ui.css') )
          ->appendStylesheet( $this->cdnUrl( '/scripts/colorbox/themes/theme1/colorbox.css') )

     ->prependStylesheet( $this->cdnUrl( '/scripts/michael-multiselect-10d5a88/css/ui.multiselect.css') )
     ->prependStylesheet( $this->baseUrl( '/resources/library/scripts/jquery-miniColors/jquery.miniColors.css') )
     ->prependStylesheet( $this->baseUrl( '/resources/library/scripts/jquery-timepicker-addon/jquery-ui-timepicker-addon.css') )
     //->prependStylesheet( $this->cdnUrl( '/scripts/jquery.gccolor/css/gccolor.css') )
     //->prependStylesheet( $this->cdnUrl( '/scripts/shadowbox/shadowbox.css') )
    /* ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/ui/ui.accordion.css') )
     ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/ui/ui.tabs.css') )
     ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/ui/ui.slider.css') )
     ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/ui/ui.datepicker.css') )*/
     //->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/ui/ui.base.css') )
	 //->prependStylesheet( $this->baseUrl('/resources/library/plugins/jquery.multiselect.css') )
	 ;



$sciptVars =  'var WEB_PATH = "'. WEB_PATH .'";' . PHP_EOL
            . 'var Tinymce_ThemeAdvancedStyles = "'. Alfred_Hod::options('params/content/tinymce/theme_advanced_styles') .'"';

if(!isset($this->Tinymce_content_css)){
    $this->Tinymce_content_css = $this->baseUrl('/resources/themes/default/css/app.min.css').','.$this->baseUrl('/resources/application/layouts/public/css/tinymce.css').',/resources/themes/default/fonts/titiliumweb/stylesheet.css,/resources/themes/default/fonts/indeego/style.css';
}

$sciptVars .= PHP_EOL. 'var Tinymce_content_css = "'. $this->Tinymce_content_css .'";' ;

$this->inlineScript()
 
     ->prependFile( $this->baseUrl('/resources/application/layouts/admin/js/form.js') )
     ->prependFile( $this->baseUrl('/resources/application/layouts/admin/js/admin.js') )
     ->prependFile( $this->baseUrl('/resources/application/layouts/admin/js/bootstrap.min.js') )

    // ->prependFile( $this->cdnUrl( '/scripts/shadowbox/shadowbox.js') )
    //->prependFile( $this->cdnUrl('/scripts/jquery.labelover.js') )
	// ->prependFile( 'http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js' )
     ->prependFile( $this->baseUrl( '/resources/library/scripts/chosen/chosen.jquery.min.js' ) )
     ->prependFile( $this->baseUrl( '/resources/library/scripts/tiny_mce/tiny_mce.js' ) )
     ->prependFile( $this->baseUrl( '/resources/library/scripts/tiny_mce/jquery.tinymce.js' ) )
     ->prependFile( $this->baseUrl( '/resources/library/scripts/tiny_mce/plugins/filemanager/js/mcfilemanager.js' ) )

	// 	 	  ->prependFile( $this->cdnUrl('/scripts/jquery.mediaqueries.js') )	
		 
    ->prependFile( $this->cdnUrl( '/scripts/michael-multiselect-10d5a88/js/ui.multiselect.js' ) )
    ->prependFile( $this->cdnUrl('/scripts/colorbox/jquery.colorbox-min.js') )
    ->prependFile( $this->baseUrl( '/resources/library/scripts/jquery-miniColors/jquery.miniColors.min.js') )
    // ->prependFile( $this->cdnUrl( '/scripts/ofthedead.forms/combobox.js' ) )
    // ->prependFile( $this->cdnUrl( '/scripts/ofthedead/forms.tabify.js' ) )
    // ->prependFile( $this->cdnUrl( '/scripts/ofthedead/forms.geopositioner.js' ) )
    // ->prependFile( 'http://maps.google.com/maps/api/js?sensor=false&language='. $this->locale()  )
	   ->prependFile( $this->baseUrl( '/resources/library/scripts/jquery-timepicker-addon/jquery-ui-timepicker-addon.min.js' ) )
      // ->prependFile('http://code.jquery.com/jquery-migrate-1.1.0.min.js')
    // ->prependFile( $this->cdnUrl( '/scripts/jquery.json-2.2.min.js' ) )
           ->prependFile( 'http://code.jquery.com/jquery-migrate-1.2.1.js' )
    ;
$this->headScript()
	 ->appendScript($sciptVars)
	 
	   ;
	   
//->prependFile( $this->baseUrl( '/resources/library/plugins/jquery.datepick/jquery.datepick-'. $this->locale() .'.js' ) )
     //->prependFile( $this->baseUrl( '/resources/library/plugins/jquery.datepick/jquery.datepick.js' ) )
     //->prependFile( $this->cdnUrl( '/scripts/jquery.template.js' ) )	 
	 //->prependFile( $this->cdnUrl( '/scripts/tiny_mce/tiny_mce.js' ) )
    // ->prependFile( $this->baseUrl( '/resources/library/plugins/jquery.gccolor/jquery.gccolor.js' ) )
$this->jQuery()->setVersion('1.10.2')->setUiVersion('1.9.0')->enable()->uiEnable();

$this->render( 'partials/common/head.phtml' );
/*$container = $this->navigation()->getContainer();
$container->removePage( $container->findOneBy( 'id', 'home' ) );
$active = $this->navigation()->findActive( $container );
$active = array_key_exists( 'page', $active ) ? $active['page'] : null;*/
