예제 #1
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html <?php language_attributes('xhtml'); ?> xmlns="http://www.w3.org/1999/xhtml/">
<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="content-type" content="<?php bloginfo('html_type')?>;charset=<?php bloginfo('charset'); ?>"/>
	
	<title><?php make_title()//Uses wp_title by default?></title>
	<meta name="description" content="<?php make_description()?>"/>
	<meta name="keywords" content="<?php if (is_single() && get_tags()) { foreach(get_tags() as $tag){ echo $tag->name . ', '; }}?>"/>
	
	<meta name="language" content="<?php bloginfo('language')?>"/>
	<meta name="robots" content="<?php if(!is_404()){echo "index,follow";}else{echo "noindex,follow";}?>"/>
	<link rel="profile" href="http://microformats.org/profile/hcard"/>
	
	<link rel="stylesheet" href="<?php echo get_stylesheet_uri() ?>" type="text/css" media="screen"/>
	<link rel="icon" type="image/x-icon" href="<?php echo get_stylesheet_directory_uri() ?>/images/favicon.ico"/>

	<?php wp_head()?>
</head>
<body <?php body_class()?>>
	<div id="wrapper">
		<div id="header">
			<div id="banner">
				<a id="logo" href="<?php echo site_url()?>" title="<?php bloginfo('name')?>"><?php bloginfo('name')?></a>	
			</div>
			<?php $args = array(
				'theme_location'  => 'main-menu',
				'container'       => 'ul',
				'menu_class'      => 'menu', 
				'echo'            => true,
				'fallback_cb'     => 'wp_page_menu',
				'show_home'		=> true,
예제 #2
0
 private function logLastChange()
 {
     $usuario = NULL;
     if (UsuarioBackendSesion::usuario()) {
         $usuario = UsuarioBackendSesion::usuario();
     }
     $ultima_version = $this->getUltimaVersion();
     if ($this->Versiones->count() > 1) {
         $penultima_version = $this->Versiones[1];
         $comparacion = $ultima_version->compareWith($penultima_version);
         if ($comparacion) {
             $descripcion = make_description($comparacion, $ultima_version, $this);
             //Helper historial
         } else {
             $descripcion = '<p>' . ($this->flujo ? 'El flujo' : 'La ficha') . ' ha sido guardado pero no se realizaron cambios.</p>';
         }
     } else {
         //El proyectos es nuevo
         $descripcion = '<p>Se ha creado el ' . ($this->flujo ? 'flujo' : 'trámite') . '</p>';
     }
     $log = new Historial();
     $log->Ficha = $this;
     $log->FichaVersion = $ultima_version;
     $log->UsuarioBackend = $usuario;
     $log->descripcion = $descripcion;
     $log->save();
 }