Guest User

Code from header,html template

a guest
Aug 10th, 2010
766
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $HAANGA_VERSION  = '1.1.3';
  3. /* Generated from /home/gallir/Proyectos/meneame/dev/templates/header.html */
  4. function haanga_8d1c798484d8e9130a9fb1a63254c313f673ee27($vars, $return=FALSE, $blocks=array())
  5. {
  6.     global $globals, $current_user;
  7.     extract($vars);
  8.     if ($return == TRUE) {
  9.         ob_start();
  10.     }
  11.     echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$globals['lang'].'" lang="'.$globals['lang'].'"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="ROBOTS" content="NOARCHIVE" /> <title>'.$title.'</title> ';
  12.     if ($globals['css_main']) {
  13.         echo ' <link rel="stylesheet" type="text/css" media="all" href="'.$globals['base_static'].$globals['css_main'].'"/> ';
  14.     }
  15.    
  16.     if ($globals['css_color']) {
  17.         echo ' <link rel="stylesheet" type="text/css" media="all" href="'.$globals['base_static'].$globals['css_color'].'"/> ';
  18.     }
  19.    
  20.     foreach ($globals['extra_css'] as  $css) {
  21.         echo ' <link rel="stylesheet" type="text/css" media="all" href="'.$globals['base_static'].'css/'.$css.'"/> ';
  22.     }
  23.     echo ' <!--[if lte IE 6]> <link rel="stylesheet" type="text/css" media="screen" href="'.$globals['base_static'].'css/ie6-hacks.css" /> <![endif]--> <meta name="generator" content="meneame" /> ';
  24.     if ($globals['noindex']) {
  25.         echo ' <meta name="robots" content="noindex,follow"/> ';
  26.     }
  27.    
  28.     if ($globals['tags']) {
  29.         echo ' <meta name="keywords" content="'.$globals['tags'].'" /> ';
  30.     }
  31.    
  32.     if ($globals['description']) {
  33.         echo ' <meta name="description" content="'.$globals['description'].'" /> ';
  34.     }
  35.    
  36.     if ($globals['link']) {
  37.         echo ' <link rel="pingback" href="http://'.$globals['server_name'].$globals['base_url'].'xmlrpc.php"/> ';
  38.     }
  39.     echo ' <link rel="microsummary" type="application/x.microsummary+xml" href="'.$globals['base_url'].'microsummary.xml" /> <link rel="search" type="application/opensearchdescription+xml" title="'._('búsqueda').'" href="http://'.$globals['server_name'].$globals['base_url'].'opensearch_plugin.php"/> <link rel="alternate" type="application/rss+xml" title="'._('publicadas').'" href="http://'.$globals['server_name'].$globals['base_url'].'rss2.php" /> <link rel="alternate" type="application/rss+xml" title="'._('pendientes').'" href="http://'.$globals['server_name'].$globals['base_url'].'rss2.php?status=queued" /> <link rel="alternate" type="application/rss+xml" title="'._('comentarios').'" href="http://'.$globals['server_name'].$globals['base_url'].'comments_rss2.php" /> ';
  40.     if ($globals['favicon']) {
  41.         echo ' <link rel="shortcut icon" href="'.$globals['base_static'].$globals['favicon'].'" type="image/x-icon"/> ';
  42.     } else {
  43.         echo ' <link rel="shortcut icon" href="'.$globals['base_static'].'img/favicons/favicon4.ico" type="image/x-icon"/> ';
  44.     }
  45.     echo ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script> <script src="'.$globals['base_url'].'js/'.$globals['js_main'].'" type="text/javascript" charset="utf-8"></script> ';
  46.     foreach ($globals['extra_js'] as  $js) {
  47.         echo ' <script src="'.$globals['base_static'].'js/'.$js.'" type="text/javascript"></script> ';
  48.     }
  49.    
  50.     if ($globals['extra_js_text']) {
  51.         echo ' <script type="text/javascript"> '.$globals['extra_js_text'].' </script> ';
  52.     }
  53.     echo ' <script type="text/javascript"> if(top.location != self.location)top.location = self.location; var base_key="'.$globals['security_key'].'"; </script> ';
  54.     if ($globals['thumbnail']) {
  55.         echo ' <meta name="thumbnail_url" content="'.$globals['thumbnail'].'"/> ';
  56.     } else {
  57.         echo ' <meta name="thumbnail_url" content="http://'.$globals['static_server_name'].$globals['base_url'].$globals['thumbnail_logo'].'"/> ';
  58.     }
  59.    
  60.     if ($globals['extra_head']) {
  61.         echo ' '.$globals['extra_head'].' ';
  62.     }
  63.     echo ' </head> <body id="'.$id.'" '.$globals['body_args'].'> <div id="wrap"> <div id="header"> <a href="'.$globals['base_url'].'" title="'._('inicio').'" id="logo">'._('menéame').'</a> <ul id="headtools"> <li class="searchbox"> <form action="'.$globals['base_url'].'search.php" method="get" name="top_search"> <img src="'.$globals['base_static'].'img/common/search-left-04.png" width="6" height="22" alt=""/> ';
  64.     if ($globals['q']) {
  65.         echo ' <input type="text" name="q" value="'.htmlentities($globals['q']).'" /> ';
  66.     } else {
  67.         echo ' <input name="q" value="'._('buscar').'..." type="text" onblur="if(this.value==\'\') this.value=\''._('buscar').'...\';" onfocus="if(this.value==\''._('buscar').'...\') this.value=\'\';"/> ';
  68.     }
  69.     echo ' <a href="javascript:document.top_search.submit()"><img class="searchIcon" alt="'._('buscar').'" src="'.$globals['base_static'].'img/common/search-04.png" id="submit_image" width="28" height="22"/></a> ';
  70.     if ($globals['search_options']) {
  71.        
  72.         foreach ($globals['search_options'] as  $name => $value) {
  73.             echo ' <input type="hidden" name="'.$name.'" value="'.$value.'"/> ';
  74.         }
  75.        
  76.     }
  77.     echo ' </form> </li> <li><a href="http://meneame.wikispaces.com/Comenzando">'._('ayuda').' <img src="'.$globals['base_static'].'img/common/help-bt-02.png" alt="help button" title="'._('ayuda').'" width="13" height="16" /></a></li> ';
  78.     if ($current_user->admin) {
  79.         echo ' <li><a href="'.$globals['base_url'].'admin/bans.php">admin <img src="'.$globals['base_static'].'img/common/tools-bt-02.png" alt="tools button" title="'._('herramientas').'" width="16" height="16" /> </a></li> ';
  80.     }
  81.    
  82.     if ($current_user->authenticated) {
  83.         echo ' <li><a href="'.get_user_uri($current_user->user_login).'" title="'._('menéame te saluda en').' '.$greeting.'">'.$greeting.'&nbsp;'.$current_user->user_login.'&nbsp;<img src="'.get_avatar_url($current_user->user_id, $current_user->user_avatar, 20).'" width="20" height="20" alt="'.$current_user->user_login.'"/></a></li> <li><a href="'.$globals['base_url'].'login.php?op=logout&amp;return='.urlencode($globals['uri']).'">'._('cerrar sesión').' <img src="'.$globals['base_static'].'img/common/logout-bt-02.png" alt="" title="logout" width="22" height="16" /></a></li> ';
  84.     } else {
  85.         echo ' <li><a href="'.$globals['base_url'].'register.php"> '._('registrarse').' <img src="'.$globals['base_static'].'img/common/register-bt-02.png" alt="" title="register" width="16" height="18" /></a></li> <li><a href="'.$globals['base_url'].'login.php?return='.urlencode($globals['uri']).'">'._('login').' <img src="'.$globals['base_static'].'img/common/login-bt-02.png" alt="" title="login" width="22" height="16" /></a></li> ';
  86.     }
  87.     echo ' </ul></div> <div id="naviwrap"> <ul> <li><a href="'.$globals['base_url'].'submit.php">'._('enviar noticia').'</a></li> <li><a href="'.$globals['base_url'].'shakeit.php">'._('pendientes').'</a></li> <li><a href="'.$globals['base_url'].'sneak.php">'._('fisgona').'</a></li> <li><a href="'.$globals['base_url'].'notame/">'._('nótame').'</a></li> </ul></div> ';
  88.     $foo  = do_banner_top();
  89.     echo ' <div id="container"> ';
  90.     if ($return == TRUE) {
  91.         return ob_get_clean();
  92.     }
  93. }
RAW Paste Data