<?php

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

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

$this->headLink()
     ->prependStylesheet( 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css' )

     ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/themes/default/ui.print.css'), 'print' )
     ->prependStylesheet( $this->baseUrl('/resources/library/ui/admin/css/themes/default/ui.css') )
     ->prependStylesheet( $this->cdnUrl( '/scripts/michael-multiselect-10d5a88/css/ui.multiselect.css') )
     ->prependStylesheet( $this->cdnUrl( '/scripts/jquery.gccolor/css/gccolor.css') )
     //->prependStylesheet( $this->cdnUrl( '/scripts/shadowbox/shadowbox.css') )
     ->appendStylesheet( $this->cdnUrl( '/scripts/colorbox/themes/theme1/colorbox.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') )
	 ;

$this->inlineScript()
     ->prependFile( $this->baseUrl('/resources/library/ui/admin/js/custom.js') )
     ->prependFile( $this->baseUrl('/resources/library/ui/admin/js/tooltip.js') )
     ->prependFile( $this->baseUrl('/resources/library/ui/admin/js/superfish.js') )
     ->prependFile( $this->baseUrl('/resources/library/ui/admin/js/cookie.js') )
     ->prependFile( $this->cdnUrl( '/scripts/shadowbox/shadowbox.js') )
     ->prependFile( $this->cdnUrl('/scripts/colorbox/jquery.colorbox-min.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/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/jquery.gccolor/jquery.gccolor.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->cdnUrl( '/scripts/jquery.timepicker.js' ) )
     ->prependFile( $this->cdnUrl( '/scripts/jquery.json-2.2.min.js' ) )
	 ->appendScript('var WEB_PATH = "'. WEB_PATH .'"')
	 ->appendScript('var Tinymce_ThemeAdvancedStyles = "'. Alfred_Hod::options('params/content/tinymce/theme_advanced_styles') .'"')
	 
	   ;
	   
//->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.7.2')->setUiVersion('1.8.21')->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;*/
