first local commit

This commit is contained in:
jorge-vitrubio 2021-02-18 14:09:56 +01:00
parent fcaa549996
commit fc3e098ea4
82 changed files with 15290 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
20200323-hangar-theme.tar.gz
20200323-hangarweb-themes.tar.gz

44
hangar/404.php Normal file
View File

@ -0,0 +1,44 @@
<?php
/**
* 404 Template
*
* The 404 template is used when a reader visits an invalid URL on your site. By default,
* the template will display a generic message. However, if the '404 Template' widget area
* is active, its widgets will be displayed instead. This allows users to customize their error
* pages in any way they want.
*
* For more information on how WordPress handles 404 errors:
* @link http://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Hybrid
* @subpackage Template
*/
@header( 'HTTP/1.1 404 Not found', true, 404 );
get_header(); ?>
<div id="main">
<div id="content" class="unic">
<div id="pagina" class="shadow">
<h2><?php _e("Page not found","hangar"); ?></h2>
<p>
<?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'hangar' ), '<code>' . site_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>
<?php get_search_form(); ?>
</div><!-- pagina -->
</div><!-- .content .hfeed -->
</div>
<?php get_footer(); ?>

23
hangar/README.md Normal file
View File

@ -0,0 +1,23 @@
---
title: hangar template howto
---
### opciones de las páginas de artistas
editar el docuemnto `seccions.php` para controlar la visualización de las páginas
```
if ($pare == 2) : //artistes residents
$tipus = 'art';
elseif ($pare == 46565) : //artistes residents estada curta
$tipus = 'art';
elseif ($pare == 136) : //desc+arregues
$tipus = 'desc';
elseif ($pare == 74) : //equip
$tipus = 'equip';
elseif ($pare == 40378) : //patronat
$tipus = 'equip';
else:
$tipus = 'pag';
endif;
```

46
hangar/artistes_alfa.php Normal file
View File

@ -0,0 +1,46 @@
<?php
/**
* Template Name: Arxiu artistes alfabètic
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header(); ?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="seccio unic">
<div id="pagina" class="shadow">
<h2><?php echo get_the_title();?></h2>
<?php
$the_query ='post_parent=2&post_type=page&meta_key=autor_obra&orderby=meta_value&order=ASC';
$query_object = new WP_Query($the_query);?>
<ul id="artistes" class="alfa">
<?php if ($query_object->have_posts() ) : while($query_object->have_posts() ) : $query_object->the_post(); ?>
<li>
<a href="<?php echo get_permalink();?>"><?php echo get_post_meta($post->ID, 'autor_obra', true);?></a>
</li>
<?php endwhile;
wp_reset_query();
else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .pagina -->
</div><!-- .content -->
</div><!--end Main-->
<?php get_footer(); ?>

54
hangar/artistes_anys.php Normal file
View File

@ -0,0 +1,54 @@
<?php
/**
* Template Name: Arxiu artistes per anys
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header();
?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="seccio unic">
<div id="pagina" class="shadow">
<h2><?php echo get_the_title();?></h2>
<?php
$terms = get_terms('anys');
if (count($terms)) {
echo "<ul id='artistes'>";
}
foreach ($terms as $term) {
$wpq = array ('taxonomy'=>'anys','term'=>$term->slug);
$query = new WP_Query ($wpq);
$article_count = $query->post_count;
echo "<li class=\"term-heading\">";
if ($article_count) { ?>
<a href="<?php echo get_site_url() . '/anys/' .$term->slug .'/';?>">
<? echo $term->name; ?>
<span class="count">
<? echo $article_count; _e(" artists", "hangar");?>
</span>
</a>
<?php
} else {
echo $term->name;
}
echo "</li>";
}
if (count($terms)) {
echo "</ul>";
}
?>
</div><!-- .pagina -->
</div><!-- .content -->
</div><!--end Main-->
<?php get_footer(); ?>

180
hangar/caixes.php Normal file
View File

@ -0,0 +1,180 @@
<li id="post-<?php the_ID(); ?>" <?php echo 'class ="boxentry ' . $tipus; if (in_category("destacado")) echo ' destacat'; echo '"'; ?>>
<!-- <?php echo $category; ?> -->
<!-- <?php echo $tipus; ?> -->
<!-- les pàgines fixes (no categories ni artistes) -->
<?php if ((!$category) and ($tipus == 'pag')) : ?>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php $contingut = get_the_content_with_formatting(); //funció que està a functions.php permet mostrar links i html del contingut, client ho volia ?>
<div class="contingut plus">
<?php echo $contingut; ?>
</div>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
</div>
<!-- els artistes -->
<?php elseif ((!$category) and (($tipus == 'art')) or ($tipus == 'obra')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(2);?>"><?php echo get_the_title(2);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if ($tipus == 'art') :
if(get_post_meta($post->ID, 'autor_tipo_resid', true) && get_post_meta($post->ID, 'autor_data_resid', true)): ?>
<p class="meta box">
<?php echo __(get_post_meta($post->ID, 'autor_tipo_resid', true)) ?>
<br />
<?php echo __(get_post_meta($post->ID, 'autor_data_resid', true)) ?>
</p>
<?php else : ?>
<p class="meta box novista"></p>
<?php endif; ?>
<?php else : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_obra', true) ?></p>
<?php endif; ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('artists-thumb'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="230" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatgegran.jpg';?>" />
<?php endif; ?>
<div class="boxpeu" >
<!-- la fletxeta link al post/pàgina -->
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(2); ?>" class="peudret" title="<?php echo get_the_title(2); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif; ?>
</div>
<!-- EQUIP -->
<?php elseif ((!$category) and ($tipus == 'equip')):
$lang = qtrans_getLanguage();
if($lang == 'ca'):
$carrec = get_post_meta($post->ID, 'carrec', true);
elseif($lang == 'es'):
$carrec = get_post_meta($post->ID, 'carrecES', true);
elseif($lang == 'en'):
$carrec = get_post_meta($post->ID, 'carrecEN', true);
endif;
$email = get_post_meta($post->ID, 'email', true);
$telefon = get_post_meta($post->ID, 'telefon', true);
?>
<div class="head-entry"> <!-- els equips només són índex, no tenen enllça a pàgina ni peu-->
<h3 class="equip <?php echo $tipus;?>"><?php the_title() ;?> </h3>
<p class="carrec"><?php echo $carrec; //echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($carrec); ?> </p>
</div>
<p class="boxcurta"><?php echo $telefon; ?> </p>
<p class="meta box"><?php echo $email; ?> </p>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="150" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo custom_wp_trim_excerpt(); ?></div>
<?php endif; ?>
<!-- els descarregables -->
<?php elseif ((!$category) and ($tipus == 'desc')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(136);?>"><?php echo get_the_title(136);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<div class="contingut llarg">
<?php the_content(); ?>
</div>
<!-- la fletxeta link al post/pàgina -->
<div class="boxpeu">
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<!-- els quadrets link a la categoria pare -->
<?php if (is_home()) : ?>
<a href="<?php echo get_permalink(136); ?>" class="peudret" title="<?php echo get_the_title(136); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a> <?php ?>
<?php endif; ?>
</div>
<!-- resta de categories -->
<?php else :
// echo " category " . $category . " catt2 " . $catt2 . " category 0 " . $category[0]->term_id;?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h2>
<?php else : ?>
<?php if (has_subcategories($catt2)) : ?>
<span class='cat'> <!-- atenció cal assingar cada post a la subcategoria, sinó sortirà la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php else : ?>
<!-- <?php echo get_permalink(); ?> -->
<h3 class="box nosub<?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php endif;?>
<?php endif; ?>
</div>
<?php $lang = qtrans_getLanguage();
if($lang == 'ca' and (get_post_meta($post->ID, 'data_activitat', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitat', true); if (get_post_meta($post->ID, 'horari_activitat', true)) echo " / ".get_post_meta($post->ID, 'horari_activitat', true); if (get_post_meta($post->ID, 'lloc_activitat', true)) echo " - ".get_post_meta($post->ID, 'lloc_activitat', true); ?></p><?php
elseif($lang == 'es' and (get_post_meta($post->ID, 'data_activitatES', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitatES', true); if (get_post_meta($post->ID, 'horari_activitat', true)) echo " / ".get_post_meta($post->ID, 'horari_activitat', true); if (get_post_meta($post->ID, 'lloc_activitat', true)) echo " - ".get_post_meta($post->ID, 'lloc_activitat', true); ?></p><?php
elseif($lang == 'en' and (get_post_meta($post->ID, 'data_activitatEN', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitatEN', true); if (get_post_meta($post->ID, 'horari_activitat', true)) echo " / ".get_post_meta($post->ID, 'horari_activitat', true); if (get_post_meta($post->ID, 'lloc_activitat', true)) echo " - ".get_post_meta($post->ID, 'lloc_activitat', true); ?></p><?php
else: ?>
<p class="meta box novista"><?php // echo __('Publicat el ','hangar') . the_time('d F Y') ?></p>
<?php endif;?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<!--<img class="noimatge" width="200" height="150" title="imatge no disponible" alt="imatge no disponible" src="<?php //echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />-->
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo custom_wp_trim_excerpt(); ?></div>
<?php endif; ?>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id ); ?>" class="peudret" title="<?php echo $category[0]->name; ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif;?>
</div>
<?php endif; ?>
</li><!-- post .hentry -->

164
hangar/caixes4.php Normal file
View File

@ -0,0 +1,164 @@
<li id="post-<?php the_ID(); ?>" <?php echo 'class ="boxentry ' . $tipus . '"'; ?>>
<!-- les pàgines fixes (no categories ni artistes) -->
<?php if ((!$category) and ($tipus == 'pag')) : ?>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php $contingut = get_the_content_with_formatting(); //funció que està a functions.php permet mostrar links i html del contingut, client ho volia ?>
<div class="contingut plus">
<?php echo $contingut; ?>
</div>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalinkblanca.png';?>" /></a>
</div>
<!-- els artistes -->
<?php elseif ((!$category) and (($tipus == 'art')) or ($tipus == 'obra')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(2);?>"><?php echo get_the_title(2);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if ($tipus == 'art') : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'autor_data_resid', true) ?></p>
<?php else : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_obra', true) ?></p>
<?php endif; ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('artists-thumb'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="230" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatgegran.jpg';?>" />
<?php endif; ?>
<div class="boxpeu" >
<!-- la fletxeta link al post/pàgina -->
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(2); ?>" class="peudret" title="<?php echo get_the_title(2); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif; ?>
</div>
<!-- EQUIP -->
<?php elseif ((!$category) and ($tipus == 'equip')):
$lang = qtrans_getLanguage();
if($lang == 'ca'):
$carrec = get_post_meta($post->ID, 'carrec', true);
elseif($lang == 'es'):
$carrec = get_post_meta($post->ID, 'carrecES', true);
elseif($lang == 'en'):
$carrec = get_post_meta($post->ID, 'carrecEN', true);
endif;
$email = get_post_meta($post->ID, 'email', true);
$telefon = get_post_meta($post->ID, 'telefon', true);
?>
<div class="head-entry"> <!-- els equips només són índex, no tenen enllça a pàgina ni peu-->
<h3 class="equip <?php echo $tipus;?>"><?php the_title() ;?> </h3>
<p class="carrec"><?php echo $carrec; //echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($carrec); ?> </p>
</div>
<p class="boxcurta"><?php echo $telefon; ?> </p>
<p class="meta box"><?php echo $email; ?> </p>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="150" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo get_the_content_with_formatting(); ?></div>
<?php endif; ?>
<!-- els descarregables -->
<?php elseif ((!$category) and ($tipus == 'desc')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(136);?>"><?php echo get_the_title(136);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<div class="contingut llarg">
<?php the_content(); ?>
</div>
<!-- la fletxeta link al post/pàgina -->
<div class="boxpeu">
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<!-- els quadrets link a la categoria pare -->
<?php if (is_home()) : ?>
<a href="<?php echo get_permalink(136); ?>" class="peudret" title="<?php echo get_the_title(136); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a> <?php ?>
<?php endif; ?>
</div>
<!-- resta de categories -->
<?php else : ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h2>
<?php else : ?>
<?php if (has_subcategories($catt2)) : ?>
<span class='cat'> <!-- atenció cal assingar cada post a la subcategoria, sinó sortirà la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php else : ?>
<h3 class="box nosub<?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php endif;?>
<?php endif; ?>
</div>
<?php if (get_post_meta($post->ID, 'data_activitat', true) ) : ?></p>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitat', true) ?></p>
<?php else: ?>
<p class="meta box novista"><?php // echo __('Publicat el ','hangar') . the_time('d F Y') ?></p>
<?php endif;?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge" width="200" height="150" title="imatge no disponible" alt="imatge no disponible"
src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo get_the_content_with_formatting(); ?></div>
<!-- <p class="excerptbox"><?php echo wp_trim_excerpt(); ?></p>-->
<?php endif; ?>
<!--
<div class="contentllarg"><?php echo get_the_content_with_formatting(); ?></div>-->
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id ); ?>" class="peudret" title="<?php echo $category[0]->name; ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif;?>
</div>
<?php endif; ?>
</li><!-- post .hentry -->

172
hangar/caixes5.php Normal file
View File

@ -0,0 +1,172 @@
<li id="post-<?php the_ID(); ?>" <?php echo 'class ="boxentry ' . $tipus . '"'; ?>>
<!-- les pàgines fixes (no categories ni artistes) -->
<?php if ((!$category) and ($tipus == 'pag')) : ?>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php $contingut = get_the_content_with_formatting(); //funció que està a functions.php permet mostrar links i html del contingut, client ho volia ?>
<div class="contingut plus">
<?php echo $contingut; ?>
</div>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalinkblanca.png';?>" /></a>
</div>
<!-- els artistes -->
<?php elseif ((!$category) and (($tipus == 'art')) or ($tipus == 'obra')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(2);?>"><?php echo get_the_title(2);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if ($tipus == 'art') :
if(get_post_meta($post->ID, 'autor_data_resid', true)): ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'autor_data_resid', true) ?></p>
<?php else : ?>
<p class="meta box novista"></p>
<?php endif; ?>
<?php else : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_obra', true) ?></p>
<?php endif; ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('artists-thumb'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="230" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatgegran.jpg';?>" />
<?php endif; ?>
<div class="boxpeu" >
<!-- la fletxeta link al post/pàgina -->
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(2); ?>" class="peudret" title="<?php echo get_the_title(2); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif; ?>
</div>
<!-- EQUIP -->
<?php elseif ((!$category) and ($tipus == 'equip')):
$lang = qtrans_getLanguage();
if($lang == 'ca'):
$carrec = get_post_meta($post->ID, 'carrec', true);
elseif($lang == 'es'):
$carrec = get_post_meta($post->ID, 'carrecES', true);
elseif($lang == 'en'):
$carrec = get_post_meta($post->ID, 'carrecEN', true);
endif;
$email = get_post_meta($post->ID, 'email', true);
$telefon = get_post_meta($post->ID, 'telefon', true);
?>
<div class="head-entry"> <!-- els equips només són índex, no tenen enllça a pàgina ni peu-->
<h3 class="equip <?php echo $tipus;?>"><?php the_title() ;?> </h3>
<p class="carrec"><?php echo $carrec; //echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($carrec); ?> </p>
</div>
<p class="boxcurta"><?php echo $telefon; ?> </p>
<p class="meta box"><?php echo $email; ?> </p>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="150" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo custom_wp_trim_excerpt(); ?></div>
<?php endif; ?>
<!-- els descarregables -->
<?php elseif ((!$category) and ($tipus == 'desc')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(136);?>"><?php echo get_the_title(136);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<div class="contingut llarg">
<?php the_content(); ?>
</div>
<!-- la fletxeta link al post/pàgina -->
<div class="boxpeu">
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<!-- els quadrets link a la categoria pare -->
<?php if (is_home()) : ?>
<a href="<?php echo get_permalink(136); ?>" class="peudret" title="<?php echo get_the_title(136); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a> <?php ?>
<?php endif; ?>
</div>
<!-- resta de categories -->
<?php else : ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h2>
<?php else : ?>
<?php if (has_subcategories($catt2)) : ?>
<span class='cat'> <!-- atenció cal assingar cada post a la subcategoria, sinó sortirà la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php else : ?>
<h3 class="box nosub<?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php endif;?>
<?php endif; ?>
</div>
<?php $lang = qtrans_getLanguage();
if($lang == 'ca' and (get_post_meta($post->ID, 'data_activitat', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitat', true); ?></p><?php
elseif($lang == 'es' and (get_post_meta($post->ID, 'data_activitatES', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitatES', true) ?></p><?php
elseif($lang == 'en' and (get_post_meta($post->ID, 'data_activitatEN', true) )):
?><p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitatEN', true) ?></p><?php
else: ?>
<p class="meta box novista"><?php // echo __('Publicat el ','hangar') . the_time('d F Y') ?></p>
<?php endif;?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge" width="200" height="150" title="imatge no disponible" alt="imatge no disponible"
src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo custom_wp_trim_excerpt(); ?></div>
<?php endif; ?>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id ); ?>" class="peudret" title="<?php echo $category[0]->name; ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif;?>
</div>
<?php endif; ?>
</li><!-- post .hentry -->

191
hangar/caixesOld.php Normal file
View File

@ -0,0 +1,191 @@
<li id="post-<?php the_ID(); ?>" <?php echo 'class ="boxentry ' . $tipus . '"'; ?>>
<!-- les pàgines fixes (no categories ni artistes) -->
<?php if ((!$category) and ($tipus == 'pag')) : ?>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php $contingut = get_the_content_with_formatting(); //funció que està a functions.php permet mostrar links i html del contingut, client ho volia ?>
<div class="contingut plus">
<?php echo $contingut; ?>
</div>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalinkblanca.png';?>" /></a>
</div>
<!-- els artistes -->
<?php elseif ((!$category) and (($tipus == 'art')) or ($tipus == 'obra')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(2);?>"><?php echo get_the_title(2);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if ($tipus == 'art') : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'autor_data_resid', true) ?></p>
<?php else : ?>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_obra', true) ?></p>
<?php endif; ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('artists-thumb'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="230" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatgegran.jpg';?>" />
<?php endif; ?>
<div class="boxpeu" >
<!-- la fletxeta link al post/pàgina -->
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(2); ?>" class="peudret" title="<?php echo get_the_title(2); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif; ?>
</div>
<!-- EQUIP -->
<?php elseif ((!$category) and ($tipus == 'equip')):
$carrec = get_post_meta($post->ID, 'carrec', true);
$email = get_post_meta($post->ID, 'email', true);
$telefon = get_post_meta($post->ID, 'telefon', true);
?>
<div class="head-entry"> <!-- els equips només són índex, no tenen enllça a pàgina ni peu-->
<h3 class="equip <?php echo $tipus;?>"><?php the_title() ;?> </h3>
<p class="carrec"><?php echo $carrec; ?> </p>
</div>
<p class="boxcurta"><?php echo $telefon; ?> </p>
<p class="meta box"><?php echo $email; ?> </p>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="150" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo get_the_content_with_formatting(); ?></div>
<?php endif; ?>
<!-- els descarregables -->
<?php elseif ((!$category) and ($tipus == 'desc')): ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_permalink(136);?>"><?php echo get_the_title(136);?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
<?php else : ?>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut llarg"><?php echo get_the_content_with_formatting(); ?></div>
<?php endif;?>
<!-- la fletxeta link al post/pàgina -->
<div class="boxpeu">
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(136); ?>" class="peudret" title="<?php echo get_the_title(136); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a> <?php ?>
</div>
<!-- el claendari -->
<?php elseif ( in_category( '13') || post_is_in_descendant_category( '13') ) : //calendari
$dataobra = get_post_meta($post->ID, 'data_activitat', true);
$llocacte = get_post_meta($post->ID, 'lloc_activitat', true);
$horari = get_post_meta($post->ID, 'horari_activitat', true);
$sicalendari = true; ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<h2 class="blau"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h2>
</span>
<?php else : ?>
<span class='cat'>
<h3 class="box" ><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
</span>
<?php endif; ?>
<p class="box <?php echo $tipus;?>"><?php echo $llocacte;?></p>
</div>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitat', true) ?></p>
<p class="meta horari box"><?php echo get_post_meta($post->ID, 'horari_activitat', true) ?></p>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut mig"><?php echo get_the_content_with_formatting(); ?></div>
<?php endif;?>
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_permalink(13); ?>" class="peudret" title="<?php echo get_the_title(13); ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a> </div>
<!-- resta de categories -->
<?php else : ?>
<div class="head-entry">
<?php if (is_home()) : ?>
<span class='cat'>
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h2 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h2>
<?php else : ?>
<?php if (has_subcategories($catt2)) : ?>
<span class='cat'> <!-- atenció cal assingar cada post a la subcategoria, sinó sortirà la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id );?>"><?php echo $category[0]->name;?></a>
</span>
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php else : ?>
<h3 class="box nosub<?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo the_title();?> </a> </h3>
<?php endif;?>
<?php endif; ?>
</div>
<?php if (get_post_meta($post->ID, 'data_activitat', true) ) : ?></p>
<p class="meta box"><?php echo get_post_meta($post->ID, 'data_activitat', true) ?></p>
<?php else: ?>
<p class="meta box">Publicat el <?php the_time('d F Y') ?></p>
<?php endif;?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge" width="200" height="150" title="imatge no disponible" alt="imatge no disponible"
src="<?php echo get_template_directory_uri() .'/images/noimatge.jpg';?>" />
<?php endif; ?>
<?php if (has_excerpt()) : ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else :?>
<div class="contingut curt"><?php echo get_the_content_with_formatting(); ?></div>
<!-- <p class="excerptbox"><?php echo wp_trim_excerpt(); ?></p>-->
<?php endif; ?>
<!--
<div class="contentllarg"><?php echo get_the_content_with_formatting(); ?></div>-->
<div class="boxpeu" >
<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
<?php if (is_home()) : ?>
<!-- els quadrets link a la categoria pare -->
<a href="<?php echo get_category_link( $category[0]->term_id ); ?>" class="peudret" title="<?php echo $category[0]->name; ?>" rel="bookmark"><img alt="enllaç a la categoria" src="<?php echo get_template_directory_uri() . '/images/totslink.png';?>" /></a>
<?php endif;?>
</div>
<?php endif; ?>
</li><!-- post .hentry -->

30
hangar/cat_links.php Normal file
View File

@ -0,0 +1,30 @@
<?php
/**
* Template Name: Enllaços per categories
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header();
?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="seccio unic">
<div id="pagina" class="shadow">
<h2><?php echo get_the_title();?></h2>
<ul id="llista">
<?php wp_list_bookmarks('categorize=1&title_before=<h3>&title_after=</h3>&title_li');?>
</ul>
</div><!-- .pagina -->
</div><!-- .content -->
</div><!--end Main-->
<?php get_footer(); ?>

59
hangar/category-news.php Normal file
View File

@ -0,0 +1,59 @@
<?php get_header(); ?>
<!-- index categories-->
<div id="main" class="maingran">
<div id="content" class="indexall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat, no fons blanc-->
<ul>
<li id="postt-<?php the_ID(); ?>" <?php echo 'class ="boxentry ie catt nofons"'; ?>>
<?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
<?php $category_description = category_description();
if ( ! empty( $category_description ) ) :
echo '<div class="descseccio">'. category_description(). '</div>';
endif;
?>
<p class="textanunci"></p>
<!-- </div> .entry-content -->
</li><!-- post .hentry -->
</ul>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$tipus = 'catt'; ?>
<?php $category = get_the_category(); ?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; ?>
</ul>
<?php wp_pagenavi(); ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Content-->
</div>
<!--end Main-->
<?php get_footer(); ?>

63
hangar/category.php Normal file
View File

@ -0,0 +1,63 @@
<?php get_header(); ?>
<!-- index categories-->
<div id="main" class="maingran">
<div id="content" class="indexall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat, no fons blanc-->
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry ie nofons"); ?>>
<div class="entry-content">
<?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
<?php $category_description = category_description();
if ( ! empty( $category_description ) ) :
echo '<div class="descseccio">'. category_description(). '</div>';
endif;
?>
<p class="textanunci"></p>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<?php $catt2 = get_query_var('cat'); ?>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $tipus = 'catt';
$category = get_the_category();
?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; ?>
</ul>
<?php wp_pagenavi(); /* kriesi_pagination();*/?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Content-->
</div>
<!--end Main-->
<?php get_footer(); ?>

46
hangar/comments.php Normal file
View File

@ -0,0 +1,46 @@
<?php if ( post_password_required() ) : ?>
<p><?php _e( 'This post is password protected. Enter the password to view any comments.','hangar'); ?></p>
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<div id="comments-content" class="clearfix">
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php
printf( _n( 'One Comment', 'Comments (%1$s)', get_comments_number(), 'hangar' ),
number_format_i18n( get_comments_number() ), '' . get_the_title() . '' );
?></h3>
<ol>
<?php wp_list_comments( array( 'callback' => 'ari_comment' ) ); ?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<p class="alignleft"><?php previous_comments_link( __( '&larr; Older Comments', 'hangar') ); ?></p>
<p class="alignright"><?php next_comments_link( __( 'Newer Comments &rarr;','hangar') ); ?></p>
<?php endif; // check for comment navigation ?>
<?php endif; // end have_comments() ?>
<?php comment_form(
array(
'title_reply' => __( 'Leave a Reply','hangar'),
'comment_notes_before' =>__( '<p class="comment-notes">Required fields are marked <span class="required">*</span></p>','hangar'),
'comment_notes_after' => '',
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><br/><textarea id="comment" name="comment" rows="8" aria-required="true"></textarea></p>',
)
); ?>
</div>
<!--end Comments Content-->

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
table.cf7-db-table tbody td > div {
max-height: none;
}

1315
hangar/css/style2.css Normal file

File diff suppressed because it is too large Load Diff

1341
hangar/css/style3.css Normal file

File diff suppressed because it is too large Load Diff

1424
hangar/css/style4.css Normal file

File diff suppressed because it is too large Load Diff

265
hangar/css/styleHangar.css Normal file
View File

@ -0,0 +1,265 @@
@charset "utf-8";
.centertext {
text-align: center;
margin-bottom:5px;
}
.textblau {
color: blue;
}
.petita10{font-size:10px;}
/* Plugin Styles
--------------------------------------------- */
/* --- Contact Form 7 --- */
#content .wpcf7 {
padding:20px 0px 20px 0px;
}
#content #page .wpcf7 p {
padding:0px 0px 10px 0px;
font-size:13px;
}
input.wpcf7-text {
height:22px;
}
.wpcf7 textarea {
font-family:'Droid Sans', arial, sans-serif;
font-size:14px;
}
input.wpcf7-submit {
margin:0px;
padding:6px 8px 6px 8px;
background:#333333;
border:none;
font-family:'Droid Sans', arial, sans-serif;
font-size:12px;
color:#fff;
cursor:pointer;
}
.wpcf7-response-output, .wpcf7-not-valid-tip {
margin:0px;
font-family:'Droid Serif', Times, serif;
font-size:12px;
line-height:18px;
font-style:italic;
}
.tag .wp-pagenavi a, .tag .wp-pagenavi span {
padding: 1px !important;
}
/* --- jQuery Thickbox --- */
#TB_window img#TB_Image {
border-bottom:none ! important;
border-left:none ! important;
border-right: none ! important;
border-top: none ! important;
margin: 15px 0px 0px 15px;
}
#TB_caption {
height: 30px ! important;
padding: 7px 15px 15px 15px ! important;
}
#TB_secondLine {
padding: 4px 0px 0px 0px;
}
#TB_closeWindow {
height: 30px ! important;
padding: 11px 15px 10px 0px ! important;
}
#TB_window a {
color: #333333 ! important;
}
/* --- Sharif social icons --- */
.shariff-button.info {
display: none;
}
/* logo slider */
#logoslider { width: 230px; height: 120px; margin-top:5px; }
#logoslider div { width: 235px; height: 120px; text-align: left; overflow: hidden }
#logoslider p { padding-bottom:5px; }
#logoslider2 { width: 230px; height: 100px; margin-top:5px; }
#logoslider2 div { width: 235px; height: 100px; text-align: left; overflow: hidden }
#logoslider2 p { padding-bottom:5px; }
#logoslider3 { width: 230px; height: 100px; margin-top:5px; }
#logoslider3 div { width: 235px; height: 100px; text-align: left; overflow: hidden }
#logoslider3 p { padding-bottom:5px; }
#logoslider3 .banner-image {margin-left:0 !important; max-width:150px;}
/* logos portada */
.banner-image {
margin-left: -7px;
}
/*styles para tabla de convocatorias para jurado*/
.page-template-page-plain-php #content.unic #pagina {
background-color: transparent;
}
.page-template-page-plain-php .shadow {
box-shadow: none;
}
li.boxentry.destacat {
background-color: yellow;
}
table.cf7-db-table tbody td > div {
max-height: none;
}
/* mods for mobile devices on top of the theme.
* date: 2020 04 14
* by: jorge vitrubio.net
* * * */
.hide{display: none;}
.toogle-sidebar-segona .show-mobile,
.toogle-sidebar-segona .hide-not-mobile{
display:none;
}
@media screen and (max-width: 768px) {
/* begin of top-head*/
#top-head{
min-height: 6rem;
height:auto;
margin-bottom:2rem;
max-width: 100vw;
min-width: 0;
width: 100vw;
}
#wrap_topheader.amplegrann {
display: inline-block;
}
ul.diversos.alignleft {
float: none;
}
ul.diversos li {
margin-right: 0;
}
.languages.alignleft {
display: block;
float: none;
}
#cercar {
float: none;
margin-right: 0;
width: 100%;
}
.search-input {
width: calc(100% - 75px);
}
/* end of top-head*/
#sidebar-primary {
float: none;
}
/* begin of menu-hidden */
.toogle-sidebar-segona .show-mobile{
display:inherit;
}
.toogle,
.toogled-menu {
display: none;
}
.toogle:checked+.toogled-menu{
display: block;
/* margin-top:0;
position: relative; */
}
.toogle-show {
position: relative;
display: inline-block;
width: 1.8em;
height: 1em;
margin-right: 0.3em;
border-top: 0.3em solid #000;
border-bottom: 0.3em solid #000;
}
.toogle-show:before {
content: "";
position: absolute;
top: 0.3em;
left: 0px;
width: 100%;
border-top: 0.3em solid #000;
}
.toogle-hide::after{
content: 'x';
display: block;
top: -1rem;
left: 0rem;
height: 1.1rem;
width: 1.1rem;
font-size: 2rem;
font-weight: bold;
background-color: white;
color: black;
padding: 0.2rem;
margin-top: -1.4rem;
}
/* end of menu hidden*/
/*
* styles to fit elements into mobile
* * */
#content {
width: 80vw;
float: none;
}
#breadcrumb{
overflow:unset;
width:90vw;
margin-top:1rem;
}
#breadcrumb ul li {
font-size:0.7rem;
}
#content.unic #pagina, #content.unic .post, #content.resultats #pagina {
width: 80vw;
min-height: auto;
}
.boxentry {
width: 100%;
}
:not(li).boxentry {
width: 100%;
height: auto;
padding-bottom:4rem;
}
.boxpeu{
width:100%;
position:relative;
}
.page-template-seccions-php #main, .category #main {
margin-left:auto;
}
#footer {
height: 100%;
display: inline-block;
}
}
@media screen and (min-width: 426px) and (max-width: 768px) {
.boxentry {
max-width: 14rem;
}
:not(li).boxentry {
height: 360px;
padding-bottom:15px;
}
}

View File

@ -0,0 +1,259 @@
@charset "utf-8";
.centertext {
text-align: center;
margin-bottom:5px;
}
.textblau {
color: blue;
}
.petita10{font-size:10px;}
/* Plugin Styles
--------------------------------------------- */
/* --- Contact Form 7 --- */
#content .wpcf7 {
padding:20px 0px 20px 0px;
}
#content #page .wpcf7 p {
padding:0px 0px 10px 0px;
font-size:13px;
}
input.wpcf7-text {
height:22px;
}
.wpcf7 textarea {
font-family:'Droid Sans', arial, sans-serif;
font-size:14px;
}
input.wpcf7-submit {
margin:0px;
padding:6px 8px 6px 8px;
background:#333333;
border:none;
font-family:'Droid Sans', arial, sans-serif;
font-size:12px;
color:#fff;
cursor:pointer;
}
.wpcf7-response-output, .wpcf7-not-valid-tip {
margin:0px;
font-family:'Droid Serif', Times, serif;
font-size:12px;
line-height:18px;
font-style:italic;
}
.tag .wp-pagenavi a, .tag .wp-pagenavi span {
padding: 1px !important;
}
/* --- jQuery Thickbox --- */
#TB_window img#TB_Image {
border-bottom:none ! important;
border-left:none ! important;
border-right: none ! important;
border-top: none ! important;
margin: 15px 0px 0px 15px;
}
#TB_caption {
height: 30px ! important;
padding: 7px 15px 15px 15px ! important;
}
#TB_secondLine {
padding: 4px 0px 0px 0px;
}
#TB_closeWindow {
height: 30px ! important;
padding: 11px 15px 10px 0px ! important;
}
#TB_window a {
color: #333333 ! important;
}
/* logo slider */
#logoslider { width: 230px; height: 120px; margin-top:5px; }
#logoslider div { width: 235px; height: 120px; text-align: left; overflow: hidden }
#logoslider p { padding-bottom:5px; }
#logoslider2 { width: 230px; height: 100px; margin-top:5px; }
#logoslider2 div { width: 235px; height: 100px; text-align: left; overflow: hidden }
#logoslider2 p { padding-bottom:5px; }
#logoslider3 { width: 230px; height: 100px; margin-top:5px; }
#logoslider3 div { width: 235px; height: 100px; text-align: left; overflow: hidden }
#logoslider3 p { padding-bottom:5px; }
#logoslider3 .banner-image {margin-left:0 !important; max-width:150px;}
/* logos portada */
.banner-image {
margin-left: -7px;
}
/*styles para tabla de convocatorias para jurado*/
.page-template-page-plain-php #content.unic #pagina {
background-color: transparent;
}
.page-template-page-plain-php .shadow {
box-shadow: none;
}
li.boxentry.destacat {
background-color: yellow;
}
table.cf7-db-table tbody td > div {
max-height: none;
}
/* mods for mobile devices on top of the theme.
* date: 2020 04 14
* by: jorge vitrubio.net
* * * */
.hide{display: none;}
.toogle-sidebar-segona .show-mobile,
.toogle-sidebar-segona .hide-not-mobile{
display:none;
}
@media screen and (max-width: 768px) {
/* begin of top-head*/
#top-head{
min-height: 6rem;
height:auto;
margin-bottom:2rem;
max-width: 100vw;
min-width: 0;
width: 100vw;
}
#wrap_topheader.amplegrann {
display: inline-block;
}
ul.diversos.alignleft {
float: none;
}
ul.diversos li {
margin-right: 0;
}
.languages.alignleft {
display: block;
float: none;
}
#cercar {
float: none;
margin-right: 0;
width: 100%;
}
.search-input {
width: calc(100% - 75px);
}
/* end of top-head*/
#sidebar-primary {
float: none;
}
/* begin of menu-hidden */
.toogle-sidebar-segona .show-mobile{
display:inherit;
}
.toogle,
.toogled-menu {
display: none;
}
.toogle:checked+.toogled-menu{
display: block;
/* margin-top:0;
position: relative; */
}
.toogle-show {
position: relative;
display: inline-block;
width: 1.8em;
height: 1em;
margin-right: 0.3em;
border-top: 0.3em solid #000;
border-bottom: 0.3em solid #000;
}
.toogle-show:before {
content: "";
position: absolute;
top: 0.3em;
left: 0px;
width: 100%;
border-top: 0.3em solid #000;
}
.toogle-hide::after{
content: 'x';
display: block;
top: -1rem;
left: 0rem;
height: 1.1rem;
width: 1.1rem;
font-size: 2rem;
font-weight: bold;
background-color: white;
color: black;
padding: 0.2rem;
margin-top: -1.4rem;
}
/* end of menu hidden*/
/*
* styles to fit elements into mobile
* * */
#content {
width: 80vw;
float: none;
}
#breadcrumb{
overflow:unset;
width:90vw;
margin-top:1rem;
}
#breadcrumb ul li {
font-size:0.7rem;
}
#content.unic #pagina, #content.unic .post, #content.resultats #pagina {
width: 80vw;
min-height: auto;
}
.boxentry {
width: 100%;
}
:not(li).boxentry {
width: 100%;
height: auto;
padding-bottom:4rem;
}
.boxpeu{
width:100%;
position:relative;
}
.page-template-seccions-php #main, .category #main {
margin-left:auto;
}
#footer {
height: 100%;
display: inline-block;
}
}
@media screen and (min-width: 426px) and (max-width: 768px) {
.boxentry {
max-width: 14rem;
}
:not(li).boxentry {
height: 360px;
padding-bottom:15px;
}
}

View File

@ -0,0 +1,26 @@
@charset "utf-8";
/*
Document : custom-login
Created on : date and time
Author : created by
Description: Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
html {background: #8699DD!important;}
body{border-top-style:solid;border-top-width:30px;}
body, #wpbody, .form-table .pre {color:#333333;}
body.login {border-top-color:#464646;}
h1 a{background:url("../images/logo.png") no-repeat scroll 0 0 transparent;display:block;padding-bottom:15px;text-indent:-9999px; width:226px; height:81px; margin: 0 auto}
#login {margin:8% auto;width:350px;}
form{background:none repeat scroll 0 0 #E5E5E5!important;}
.login #nav a {
color: #000 !important;
}
#nav {
font-size: 14px;
text-align: center;
text-shadow: none;
}

72
hangar/footer.php Normal file
View File

@ -0,0 +1,72 @@
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content
* after. Calls sidebar-footer.php for bottom widgets.
*
* @package Hangar
* @subpackage template
* @since Twenty Ten 1.0
*/
?>
</div><!-- #main -->
</div><!-- #wrapper -->
<div id="footer" role="contentinfo">
<div id="wrapfooter">
<div class="col logo">
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo get_template_directory_uri(). '/images/logogris.png'; ?>" width="105" height="40" alt="Hangar org" /></a>
</div>
<div class="col org">
<?php _e( 'Fundació AAVC Hangar', 'hangar' ); ?> <br />
<?php _e( 'Emilia Coranty 16', 'hangar' ); ?><br />
<?php _e( '08018 Barcelona Espanya', 'hangar' ); ?>
</div>
<div class="col tels">
CIF: G-63157655<br />
Tel.+34 93 308 4041<br />
Fax +34 93 307 1211<br />
</div>
<div class="col inf">
info(at)hangar.org<br />
<?php _e( '[:en]Office: Monday to Thursday from 10&nbsp;am to 2&nbsp;pm and from 4&nbsp;pm to 6&nbsp;pm. Friday from 10&nbsp;am to 2&nbsp;pm.[:es]Oficina: de lunes a jueves de 10 a 14&nbsp;h y de 16 a 18&nbsp;h. Viernes de 10 a 14&nbsp;h.[:ca]Oficina: dilluns a dijous de 10 a 14&nbsp;h i de 16 a 18&nbsp;h. Divendres de 10 a 14&nbsp;h.[:]' ); ?>
</div>
<div class="col legal">
<a href="<?php echo get_permalink(275); ?>"><?php _e( 'Legal advice', 'hangar' ); ?></a>
</div>
<div class="alignright credits">
<a href="http://wordpress.org/">Powered by Wordpress</a><br />
<?php _e( 'Design:', 'hangar' ); ?><a href="http://folchstudio.com/">Folch Studio</a><br />
<?php _e( 'Development:', 'hangar' ); ?> <a href="http://www.enfusion.es/">Enfusión</a>
</div>
</div><!-- #fwrapfooter -->
</div><!-- #footer -->
<script type="text/javascript">
jQuery('#logoslider').cycle({
fx: 'scrollLeft',
delay: -1000
});
jQuery('#logoslider2').cycle({
fx: 'scrollLeft',
delay: -1000
});
jQuery('#logoslider3').cycle({
fx: 'scrollLeft',
delay: -1000
});
</script>
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>
</body>
</html>

71
hangar/footer2.php Normal file
View File

@ -0,0 +1,71 @@
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content
* after. Calls sidebar-footer.php for bottom widgets.
*
* @package Hangar
* @subpackage template
* @since Twenty Ten 1.0
*/
?>
</div><!-- #main -->
</div><!-- #wrapper -->
<div id="footer" role="contentinfo">
<div id="wrapfooter">
<div class="col logo">
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo get_template_directory_uri(). '/images/logogris.png'; ?>" width="105" height="40" alt="Hangar org" /></a>
</div>
<div class="col org">
<?php _e( 'Fundació AAVC Hangar', 'hangar' ); ?> <br />
<?php _e( 'Emilia Coranty 16', 'hangar' ); ?><br />
<?php _e( '08018 Barcelona Espanya', 'hangar' ); ?>
</div>
<div class="col tels">
CIF: G-63157655<br />
Tel.+34 93 308 4041<br />
Fax +34 93 307 1211<br />
</div>
<div class="col inf">
info(at)hangar.org<br />
<?php _e( '[:en]Opening times: From Mo to Fri from 10am to 2pm and from 4pm to 7:30pm.[:es]Abierto: De Lu a Vi de 10h a 14h y de 15h a 19:30h.[:ca]Obert: De Dill a Div de 10h a 14h y de 15h a 19:30h.[:]' ); ?>
<a href="<?php echo get_permalink(275); ?>"><?php _e( 'Legal advice', 'hangar' ); ?></a>
</div>
<div class="alignright credits">
<?php _e( 'Design:', 'hangar' ); ?><a href="http://folchstudio.com/">Folch Studio</a><br />
<?php _e( 'Development:', 'hangar' ); ?> <a href="http://www.enfusion.es/">Enfusión</a>
</div>
</div><!-- #fwrapfooter -->
</div><!-- #footer -->
<script type="text/javascript">
jQuery('#logoslider').cycle({
fx: 'scrollLeft',
delay: -1000
});
jQuery('#logoslider2').cycle({
fx: 'scrollLeft',
delay: -1000
});
jQuery('#logoslider3').cycle({
fx: 'scrollLeft',
delay: -1000
});
</script>
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>
</body>
</html>

474
hangar/functions.php Normal file
View File

@ -0,0 +1,474 @@
<?php load_theme_textdomain('hangar', TEMPLATEPATH .'/languages');
/* add support for thumbnails */
if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'artists-thumb', 200, 230, true ); //200x230
add_image_size( 'obres-thumb', 136, 102, true ); //per a les galeries de les obres
}
// Path constants
define('THEMELIB', TEMPLATEPATH . '/library');
// Create widgetitzed sidebars
require_once(THEMELIB . '/widgetized-sidebars.php');
// Comments extensions
require_once(THEMELIB . '/comments-extensions.php');
// Comments extensions
require_once(THEMELIB . '/breadcrumb.php');
// Create custom posts and custom fields
require_once(THEMELIB . '/custom-posts.php');
function new_excerpt_length($length) {
return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_more($more) {
global $post;
return '<a href="'. get_permalink($post->ID) . '"> [...]</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
// custom login screen i peu de l'admin
function custom_login() {
//echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/custom-login/custom-login.css" />';
// time stamp for caching
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
// wp_enqueue_style( 'myCustomStyles', get_template_directory_uri() . '/css/styleHangar.css', array(), filemtime(get_template_directory() . '/css/styleHangar.css'), false);
echo '<link rel="stylesheet" type="text/css" href="'. get_template_directory_uri() .'/custom-login/custom-login.css" />';
}
add_action('login_head', 'custom_login');
function change_wp_login_url() {
echo bloginfo('url');
}
add_filter('login_headerurl', 'change_wp_login_url');
function change_wp_login_title() {
echo 'Powered by ' . get_option('blogname');
}
add_filter('login_headertitle', 'change_wp_login_title');
function remove_footer_admin () {
echo 'Custom text | Copyright &copy; message';
}
add_filter('admin_footer_text', 'remove_footer_admin');
// THIS GIVES US SOME OPTIONS FOR STYLING THE ADMIN AREA
function custom_controls() {
echo '<style type="text/css">
label.lateral{width: 100px;}
input.lateral{width: 150px; border-color: #ddd;}
.petit {width: 20px!important;}
label.dd{float:left; width:250px;}
input.dd{width:450px;}
</style>';
}
add_action('admin_head', 'custom_controls');
/* create calendar event when saving post with dates */
function create_event( $post_id ) {
// If this is just a revision, don't send the email.
if ( wp_is_post_revision( $post_id ) )
return;
$myPost = get_post($post_id);
if (has_category(array('news', 'activitats-dels-residents'), $post_id) &&
!$update &&
$myPost->post_modified_gmt == $myPost->post_date_gmt) {
//The URL that we want to send a PUT request to.
$uid = get_the_guid( $post_id );
$url = 'https://cloud.hangar.org/remote.php/dav/calendars/hangar/hangar_activitats/neu.ics';
$headers = array('Content-Type: text/calendar', 'charset=utf-8');
$userpwd = 'hangar:AV63xlklCuOJgYTnHz5smX4chiAaDpJo';
$description = get_the_content( $post_id );
$summary = get_the_title( $post_id );
$tstart = gmdate("Ymd\THis\Z", strtotime("-2 days"));
$tend = gmdate("Ymd\THis\Z", strtotime("-2 days"));
$tstamp = gmdate("Ymd\THis\Z");
// vcalendar
$body = 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTAMP:$tstamp
DTSTART:$tstart
DTEND:$tend
UID:$uid
DESCRIPTION:$description
LOCATION:Hangar
SUMMARY:$summary
END:VEVENT
END:VCALENDAR';
//Initiate cURL
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $userpwd);
//curl_setopt($ch, CURLOPT_PUT, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
//Execute the request.
$response = curl_exec($ch);
curl_close($ch);
// send confirmation mail
$post_title = $summary;
$post_excerpt = $description;
$post_url = get_permalink( $post_id );
$subject = 'A new EVENT post has been saved';
$message = "A new post has been created on your website:\n\n";
$message .= $post_title . ": " . $post_url . "\n\n";
$message .= $post_excerpt . "\n\n";
$message .= $uid . "\n\n";
$message .= print_r($response);
// Send email to admin.
wp_mail( 'gerald@hangar.org', $subject, $message );
}
}
add_action( 'save_post', 'create_event', 10, 3 );
//per imprimir el content sense que ens tregui l'html
function get_the_content_with_formatting ($more_link_text = '(...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]&gt;', $content);
$content = substr($content, 0,400);
return $content;
}
//per imprimir l'excerpt indicant un nombre de caràcters màxim
function the_excerpt_max_charlength($charlength) {
$excerpt = get_the_excerpt();
$charlength++;
if(strlen($excerpt)>$charlength) {
$subex = substr($excerpt,0,$charlength-5);
$exwords = explode(" ",$subex);
$excut = -(strlen($exwords[count($exwords)-1]));
if($excut<0) {
echo substr($subex,0,$excut);
} else {
echo $subex;
}
echo "[...]";
} else {
echo $excerpt;
}
}
//afegir estils a l'editor
/* Custom CSS styles on WYSIWYG - Start
======================================= */
if ( ! function_exists( 'myCustomTinyMCE' ) ) :
function myCustomTinyMCE($init) {
$init['theme_advanced_buttons2_add_before'] = 'styleselect'; // Adiciona os botões no incio da linha. (theme_advanced_buttons2_add adiciona-os no fim da linha)
$init['theme_advanced_styles'] = 'Centrar text=centertext,Text blau=textblau,Lletra petita=petita,Icona PDF=pdficon'; // Especifica os estilos a aplicar pela selectbox acima criada, e que já estão definidos no mycustomstyles.css, altere e/ou acrescente os seus.
return $init;
}
endif;
add_filter('tiny_mce_before_init', 'myCustomTinyMCE' );
add_filter( 'mce_css', 'tdav_css' );
// incluir o CSS no tema.
function mycustomStyles(){
// Se tiver dado ao seu ficheiros css um nome diferente do usado no exemplo, altere também aqui o nome do mesmo.
//wp_enqueue_style( 'myCustomStyles', get_bloginfo('template_url').'/css/styleHangar.css', '','','all' );
// time stamp for caching
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
wp_enqueue_style( 'myCustomStyles', get_template_directory_uri() . '/css/styleHangar.css', array(), filemtime(get_template_directory() . '/css/styleHangar.css'), false);
}
add_action('init', 'myCustomStyles');
/* Custom CSS styles on WYSIWYG - End
======================================= */
/**
* Tests if any of a post's assigned categories are descendants of target categories
*
* @param int|array $cats The target categories. Integer ID or array of integer IDs
* @param int|object $_post The post. Omit to test the current post in the Loop or main query
* @return bool True if at least 1 of the post's categories is a descendant of any of the target categories
* @see get_term_by() You can get a category by name or slug, then pass ID to this function
* @uses get_term_children() Passes $cats
* @uses in_category() Passes $_post (can be empty)
* @version 2.7
* @link http://codex.wordpress.org/Function_Reference/in_category#Testing_if_a_post_is_in_a_descendant_category
*/
function post_is_in_descendant_category( $cats, $_post = null )
{
foreach ( (array) $cats as $cat ) {
// get_term_children() accepts integer ID only
$descendants = get_term_children( (int) $cat, 'category');
if ( $descendants && in_category( $descendants, $_post ) )
return true;
}
return false;
}
//end function testing descendent categories
function is_page_child($post, $idp)
{
//497 = artistes residents
$prova = $post->post_parent;
if ($prova == $idp) :
return true;
else :
return false;
endif;
$idp = null;
}
//per saber si una categoria té subcategories
function has_subcategories($catt)
{
$child_cats = get_term_children($catt, 'category');
$childs = count($child_cats);
if ($childs > 0 ) :
return true;
else :
return false;
endif;
}
//contruim un panell de control a l'administració per a que vegin les que estan marcades per a sortir a la home
function menu_control_home(){
add_menu_page( "Control Home","Control Home", "add_users", "control_home", "control_home", "", 6 );
}
function control_home(){
global $wpdb;
$querystr = "
SELECT wposts.post_name,wposts.ID, users.user_login, m1.meta_value as inicio, m2.meta_value as orden
FROM $wpdb->posts wposts
INNER JOIN $wpdb->postmeta m1 ON wposts.ID = m1.post_id
INNER JOIN $wpdb->postmeta m2 ON wposts.ID = m2.post_id
INNER JOIN $wpdb->users users ON wposts.post_author = users.ID
WHERE (wposts.post_type = 'post' OR wposts.post_type = 'page')
AND m1.meta_key = 'Inici'
AND m1.meta_value = '1'
AND m2.meta_key = 'Ordre_inici'
GROUP BY ID
ORDER BY inicio DESC, CAST(orden AS SIGNED) ASC
";
echo' <div id="wpbody-content">
<div class="wrap"><h2>Control Home</h2><br/></div>';
$pageposts = $wpdb->get_results($querystr, OBJECT);
if ($pageposts):
global $post;
echo "<table class=\"wp-list-table widefat fixed posts\" cellspacing=\"0\">
<thead>
<tr>
<th scope='col' width='150' class='manage-column column-slug sortable desc'>Nombre Post</th>
<th scope='col' class='manage-column column-slug sortable desc'>Id</th>
<th scope='col' class='manage-column column-slug sortable desc'>Autor Post</th>
<th scope='col' class='manage-column column-slug sortable desc'>Inicio</th>
<th scope='col' class='manage-column column-slug sortable desc'>Orden</th>
</tr>
</thead>
<tbody id=\"the-list\">";
foreach ($pageposts as $post):
$nom = $post->post_name;
$id = $post->ID;
$autor = $post->user_login;
$inici = $post->inicio;
$ordre = $post->orden;
echo "<tr>
<td><a href='post.php?post=$id&action=edit' class=\"row-tittle\">$nom</a></td>
<td>$id</td>
<td>$autor</td>
<td>$inici</td>
<td>$ordre</td>
</tr>";
endforeach;
echo "</tbody></table></div>";
endif;
}
add_action("admin_menu","menu_control_home");
// Filtre que modifica la funcio que mostra els menús, per poder seleccionar mitjançant el camp title, quines seràn links i quines no.
// title= no_link -> no es un link
// title != no_link -> es un link
// wp_includes -> nav-menu-template.php, es on es trova la clase que s'esta modificant
class my_Walker_Nav_Menu extends Walker_Nav_Menu {
/**
* @see Walker::start_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
{
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
$output .= $indent . '<li' . $id . $value . $class_names .'>';
if(! empty( $item->attr_title ) && ($item->attr_title == 'no_link'))
{
$attributes = '';
}
else
{
$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
}
$item_output = $args->before;
$item_output .= '<a'. $attributes .'>';
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= '</a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
?>
<?php
/* Code that preserves HTML formating to the automatically generated Excerpt. */
/* Also modifies the default excerpt_length and excerpt_more filters. */
/*function custom_wp_trim_excerpt($text) {
$raw_excerpt = $text;
if ( '' == $text ) {
$text = get_the_content('');
$text = strip_shortcodes( $text );
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]&gt;', $text);
//Add the allowed HTML tags separated by a comma.
$allowed_tags = '<p>,<a>,<em>,<strong>';
$text = strip_tags($text, $allowed_tags);
//Change the excerpt word count.
$excerpt_word_count = 60;
$excerpt_length = apply_filters('excerpt_length', $excerpt_word_count);
//Change the excerpt ending.
$excerpt_end = ' <a href="'. get_permalink($post->ID) . '">' . '&raquo; Continue Reading.' . '</a>';
$excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end);
$words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
if ( count($words) > $excerpt_length ) {
array_pop($words);
$text = implode(' ', $words);
$text = $text . $excerpt_more;
} else {
$text = implode(' ', $words);
}
}*/
// https://stackoverflow.com/questions/15283948/wordpress-html-tags-strip-on-manual-excerpt
function custom_wp_trim_excerpt($text='') {
$raw_excerpt = $text;
if ( '' == $text ) {
//Retrieve the post content.
$text = get_the_content('');
//Delete all shortcode tags from the content.
$text = strip_shortcodes( $text );
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]&gt;', $text);
$allowed_tags = '<strong>,<em>,<b>,<i>,<p>,<a>'; /*** MODIFY THIS. Add the allowed HTML tags separated by a comma.***/
$twopart_tags = '<strong>,<em>,<b>,<i>,<p>,<a>'; /*** MODIFY THIS. Add the twopart HTML tags separated by a comma.***/
/* turn tag list into one big search pattern */
$search_patterns = "/" . str_replace(",","|",str_replace(">", "[^>]*>",$twopart_tags)) . '/';
$text = strip_tags($text, $allowed_tags);
$excerpt_word_count = 200; /*** MODIFY THIS. change the excerpt word count to any integer you like.***/
$excerpt_length = apply_filters('excerpt_length', $excerpt_word_count);
$excerpt_end = '[...]'; /*** MODIFY THIS. change the excerpt endind to something else.***/
$excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end);
$words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
if ( count($words) > $excerpt_length ) {
array_pop($words);
$text = implode(' ', $words);
$text = $text . $excerpt_more;
} else {
$text = implode(' ', $words);
};
/* if fragment ends in open tag, trim off */
preg_replace ("/<[^>]*$/", "", $text);
/* search for tags in excerpt */
preg_match_all ($search_patterns, $text, $matches);
/* if any tags found, check for matching pairs */
$tagstack = array ("");
$tagsfound = $matches[0];
while ( count ($tagsfound) > 0) {
$tagmatch = array_shift($tagsfound);
/* if it's a closing tag, hooray; but if it's not, then look for the closer */
if ( !strpos($tagmatch,"</") && !strpos ($tagmatch,"/>") ) {
preg_match("/\pL+/",$tagmatch, $tagwords);
$endtag = "</" . $tagwords[0] . ">";
/* if this tag was not closed, put the closing tag on the stack */
if (!in_array($endtag, $tagsfound) ) {
array_push($tagstack,$endtag);
};
};
};
/* if any unbalanced tags were found, add the closing tags */
while (count ($tagstack) > 1) {
$text = $text . array_pop($tagstack);
}
}
return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'custom_wp_trim_excerpt');
?>

78
hangar/header-plain.php Normal file
View File

@ -0,0 +1,78 @@
<!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" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'hangar' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/library/jquery.cycle.all.js"></script>
</head>
<body <?php body_class(); ?>>
<div id="top-head" class="shadow">
<div id="wrap_topheader" class="
<?php if(is_home() or is_category()) :
echo 'amplegrann';
elseif(is_page() or is_page_template('single_seccio.php')) :
echo 'ampleunicc';
elseif(is_single()):
echo 'amplemigg';
endif; ?> ">
<div class="languages alignleft">
<?php echo qtrans_generateLanguageSelectCode('text'); ?>
</div>
<ul class="diversos alignleft">
<li class="faqs"><a href="<?php echo get_permalink(155); ?>"><?php _e('faqs','hangar');?></a></li>
<li class="contact"><a href="<?php echo get_permalink(159); ?>"><?php _e('contact','hangar');?></a></li>
<li class="news"><a href="https://llistes.hangar.org/mailman/listinfo/general"><?php _e('newsletter','hangar');?></a></li>
</ul>
<div id="cercar">
<?php get_search_form(); ?>
</div>
</div>
</div> <!-- fi top-head -->

102
hangar/header.php Normal file
View File

@ -0,0 +1,102 @@
<!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" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'hangar' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/library/jquery.cycle.all.js"></script>
</head>
<body <?php body_class(); ?>>
<div id="top-head" class="shadow">
<div id="wrap_topheader" class="
<?php if(is_home() or is_category()) :
echo 'amplegrann';
elseif(is_page() or is_page_template('single_seccio.php')) :
echo 'ampleunicc';
elseif(is_single()):
echo 'amplemigg';
endif; ?> ">
<div class="languages alignleft">
<?php echo qtrans_generateLanguageSelectCode('text'); ?>
</div>
<ul class="diversos alignleft">
<li class="faqs"><a href="<?php echo get_permalink(155); ?>"><?php _e('faqs','hangar');?></a></li>
<li class="contact"><a href="<?php echo get_permalink(159); ?>"><?php _e('contact','hangar');?></a></li>
<li class="news"><a href="https://hangar.org/subscribe"><?php _e('newsletter','hangar');?></a></li>
</ul>
<div id="cercar">
<?php get_search_form(); ?>
</div>
</div>
</div> <!-- fi top-head -->
<div id="wrap" class="clearfix <?php if(is_home() or is_category()) :
echo 'amplegrann';
elseif(is_page() or is_page_template('single_seccio.php')) :
echo 'ampleunicc';
elseif(is_single()):
echo 'amplemigg';
else:
echo 'noclass';
endif; ?> ">
<div id="sidebar-primary">
<div class="logo">
<h1><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo get_template_directory_uri() . '/images/logo.gif' ?>" alt="<?php bloginfo('name') . " - " . bloginfo( 'description' ); ?>" /></a></h1>
</div>
<!--end Logo-->
<?php get_sidebar('primary'); ?>
</div>
<!--end Sidebar One-->

98
hangar/home.php Normal file
View File

@ -0,0 +1,98 @@
<?php
/**
* Home Template
*
* This template is loaded when on the home/blog page.
* Es mostren a la home els posts o pages que tinguin marcat el custom field Inici a 1 i s'ordenen pel valor del custom field Ordre, i sino per data publicació.
* @package Hangar
* @subpackage Template
*/
?>
<?php get_header(); ?>
<div id="main" class="maingran">
<div id="content" class="narrowcolumn indexall"> <!-- esborrar class narrowcolumn -->
<?php
global $wpdb; //seleccionem els posts pels camps creats Inici = 1 i ordenem els registres pel valor del camp Ordre (meta_key / meta_value)
$total = "
SELECT *
FROM $wpdb->posts wposts
INNER JOIN $wpdb->postmeta m1 ON wposts.ID = m1.post_id
INNER JOIN $wpdb->postmeta m2 ON wposts.ID = m2.post_id
WHERE (wposts.post_type = 'post' OR wposts.post_type = 'page')
AND m1.meta_key = 'Inici'
AND m1.meta_value = '1'
AND m2.meta_key = 'Ordre_inici'
AND wposts.post_status = 'publish'
GROUP BY ID
ORDER BY CAST( m2.meta_value AS SIGNED ) ASC
";
$totalposts = $wpdb->get_results($total, OBJECT);
$ppp = intval(get_query_var('posts_per_page')); //sçon 11 per la resta de pàgines índex però a la home en volem 12
$ppp = intval(16);
$wp_query->found_posts = count($totalposts);
$wp_query->max_num_pages = ceil($wp_query->found_posts / $ppp);
$on_page = intval(get_query_var('paged'));
if($on_page == 0){ $on_page = 1; }
$offset = ($on_page-1) * $ppp;
$wp_query->request = "SELECT *
FROM $wpdb->posts wposts
INNER JOIN $wpdb->postmeta m1 ON wposts.ID = m1.post_id
INNER JOIN $wpdb->postmeta m2 ON wposts.ID = m2.post_id
WHERE (wposts.post_type = 'post' OR wposts.post_type = 'page')
AND m1.meta_key = 'Inici'
AND m1.meta_value = '1'
AND m2.meta_key = 'Ordre_inici'
AND wposts.post_status = 'publish'
GROUP BY ID
ORDER BY CAST( m2.meta_value AS SIGNED ) ASC
LIMIT $ppp OFFSET $offset";
$pageposts = $wpdb->get_results($wp_query->request, OBJECT);
?>
<?php if ($pageposts): //amb els resultats trobats per la query distingim les categories de les pàgines pq s'han de pintar diferent
global $post;
echo '<ul>';
foreach ($pageposts as $post):
setup_postdata($post);
$category = get_the_category();
if ($category) :
$tipus = 'catt' ;
else:
if (is_page_child($post, 2)) :
$tipus = 'art'; //artistes
elseif (is_page_child($post, 136)) :
$tipus = 'desc'; //descàrregues
elseif (is_page_child($post, 74)) :
$tipus = 'desc'; //equip
else :
$tipus = 'pag';
endif;
endif;
include(TEMPLATEPATH . "/caixes.php");
endforeach; ?>
</ul>
<?php wp_pagenavi(); ?>
<?php else : ?>
<h2 class="center"><?php _e( 'Not found.', 'hangar' ); ?></h2>
<p class="center"><?php _e( "Sorry, but you are looking for something that isn't here.", 'hangar' ); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif;
wp_reset_postdata();
?>
</div> <!-- content -->
</div><!-- fi main -->
<?php get_footer(); ?>

BIN
hangar/images/faqs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

BIN
hangar/images/faqshover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

14
hangar/images/index2.php Normal file
View File

@ -0,0 +1,14 @@
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
HOLA
</body>
</html>

BIN
hangar/images/info.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
hangar/images/infohover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

BIN
hangar/images/logo-20.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
hangar/images/logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
hangar/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
hangar/images/logogris.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
hangar/images/lupa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

BIN
hangar/images/motiufons.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
hangar/images/motiufons.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

275
hangar/images/news.html Normal file
View File

@ -0,0 +1,275 @@
<!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" dir="ltr" lang="ca">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<title>News | Hangar</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="style.css" />
<link rel="pingback" href="http://hangar.org/testR7Lc6/xmlrpc.php" />
<meta name='robots' content='noindex,nofollow' />
<meta name='Admin Management Xtended WordPress plugin' content='2.1.9' />
<link rel="alternate" type="application/rss+xml" title="Hangar &raquo; News Canal de les categories" href="http://hangar.org/testR7Lc6/category/news/feed/" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://hangar.org/testR7Lc6/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://hangar.org/testR7Lc6/wp-includes/wlwmanifest.xml" />
<link rel='index' title='Hangar' href='http://hangar.org/testR7Lc6/' />
<meta name="generator" content="WordPress 3.1.1" />
</head>
<body class="archive category category-news category-1">
<div id="top-head" class="shadow">
<div id="wrap_topheader">
<ul class="languages alignleft">
<li>EN</li>
<li>ES</li>
<li>CA</li>
</ul>
<ul class="diversos alignleft">
<li class="faqs"><a href="#">faqs</a></li>
<li class="contact"><a href="#">contact</a></li>
<li class="news"><a href="#">newsletter</a></li>
</ul>
<div id="cercar">
</div>
</div>
</div> <!-- fi top-head -->
<div id="wrap" class="clearfix">
<div id="sidebar-primary">
<div class="logo">
<h1><a href="http://hangar.org/testR7Lc6/" title="Hangar" rel="home"><img src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/logo.png" alt="HangarCentre de proudcció i reerca d&#039;arts visuals" /></a></h1>
</div>
<!--end Logo-->
<ul class="sidebar">
<li id="nav_menu-4" class="widget-container widget_nav_menu"><div class="menu-principal-container"><ul id="menu-principal" class="menu"><li id="menu-item-38" class="menu-item menu-item-type-taxonomy menu-item-object-category current-menu-item menu-item-38"><a href="http://hangar.org/testR7Lc6/category/news/">News</a></li>
<li id="menu-item-35" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-35"><a href="http://hangar.org/testR7Lc6/hangar/">HANGAR</a>
<ul class="sub-menu">
<li id="menu-item-12" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-12"><a href="http://hangar.org/testR7Lc6/hangar/historia/">Història</a></li>
<li id="menu-item-13" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-13"><a href="http://hangar.org/testR7Lc6/hangar/pagina-exemple/">Què i com</a></li>
<li id="menu-item-34" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-34"><a href="http://hangar.org/testR7Lc6/hangar/on-i-quan/">On i quan</a></li>
</ul>
</li>
<li id="menu-item-33" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-33"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/">SERVEIS A LA PRODUCCIÓ</a>
<ul class="sub-menu">
<li id="menu-item-52" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-52"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/labs/">LABS</a>
<ul class="sub-menu">
<li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/labs/video/">Video</a></li>
<li id="menu-item-31" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-31"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/labs/imatge/">Imatge</a></li>
</ul>
</li>
<li id="menu-item-53" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-53"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/">SERVEIS A LA PRODUCCIÓ</a>
<ul class="sub-menu">
<li id="menu-item-50" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-50"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/espais-i-equips/espai-per-a-projectes/">Espai per a projectes</a></li>
<li id="menu-item-51" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-51"><a href="http://hangar.org/testR7Lc6/serveis-a-la-produccio/espais-i-equips/tallers-dartista/">Tallers d&#8217;artista</a></li>
</ul>
</li>
</ul>
</li>
</ul></div></li><li id="search-3" class="widget-container widget_search"><form role="search" method="get" id="searchform" action="http://hangar.org/testR7Lc6" >
<div><label class="screen-reader-text" for="s"></label>
<input type="text" class="search-input" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form></li> </ul>
<!--end Sidebar -->
</div>
<!--end Sidebar One-->
<!-- index categoria-->
<div id="main">
<div id="content" class="contentall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat -->
<div id="post-115" class="post-115 post type-post status-publish format-standard hentry category-activitats category-news boxentry">
<div class="entry-content">
<h2 class="alignleft box index">News</h2>
<div class="descseccio"><p>La descripció de la categoria es posaria aquí i es mostrarà a la pàgina índex de les news.</p>
</div>
<p class="textanunci">aquí va l'anunci, pendent de fer</p>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<div id="post-115" class="post-115 post type-post status-publish format-standard hentry category-activitats category-news boxentry">
<div class="entry-content">
<h3><a href="http://hangar.org/testR7Lc6/news/fkjsdhf-sadhfkjh/" title="fkjsdhf sadhfkjh">fkjsdhf sadhfkjh</a></h3>
<p class="meta box">posted on 14. abril 2011</p>
<img width="200" height="150" src="http://hangar.org/testR7Lc6/wp-content/uploads/2011/04/cara1003-200x150.jpg" class="attachment-thumbnail wp-post-image" alt="dfsdfsd" title="cara1003" /> <p class="excerptbox">wewrew try tryrytry nmaaaa</p>
<a href="http://hangar.org/testR7Lc6/news/fkjsdhf-sadhfkjh/" class="peubox" title="Permalink to fkjsdhf sadhfkjh" rel="bookmark"><img alt="enllaç" src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/fletxalink.png" /></a>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<div id="post-99" class="post-99 post type-post status-publish format-standard hentry category-news boxentry">
<div class="entry-content">
<h3><a href="http://hangar.org/testR7Lc6/news/prova/" title="prova">prova</a></h3>
<p class="meta box">posted on 14. abril 2011</p>
<img width="200" height="150" src="http://hangar.org/testR7Lc6/wp-content/uploads/2011/04/imagehome-200x150.jpg" class="attachment-thumbnail wp-post-image" alt="dfasdfsdfsadfs" title="imagehome" /> <p class="excerptbox">jhl khkjhkljhkj hjkhlkjkjhkj mhlkjh kjhkljhlkjh</p>
<a href="http://hangar.org/testR7Lc6/news/prova/" class="peubox" title="Permalink to prova" rel="bookmark"><img alt="enllaç" src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/fletxalink.png" /></a>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<div id="post-72" class="post-72 post type-post status-publish format-standard hentry category-bloc-artistes category-news tag-art tag-musica tag-taller boxentry">
<div class="entry-content">
<h3><a href="http://hangar.org/testR7Lc6/news/taller-de-construccio-modular-construeix-el-teu-propi-sintetitzador/" title="Taller de construcció modular: Construeix el teu propi sintetitzador.">Taller de construcció modular: Construeix el teu propi sintetitzador.</a></h3>
<p class="meta box">posted on 30. març 2011</p>
<img width="200" height="150" src="http://hangar.org/testR7Lc6/wp-content/uploads/2011/03/noticia3-200x150.jpg" class="attachment-thumbnail wp-post-image" alt="fgdgdfg" title="noticia3" /> <p class="excerptbox">Fase II és un cicle obert de tallers de construccioó de sintetitzadors modulars en el qual els assistents construeixen instruments musicals electrònics segons les seves necessitats.</p>
<a href="http://hangar.org/testR7Lc6/news/taller-de-construccio-modular-construeix-el-teu-propi-sintetitzador/" class="peubox" title="Permalink to Taller de construcció modular: Construeix el teu propi sintetitzador." rel="bookmark"><img alt="enllaç" src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/fletxalink.png" /></a>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<div id="post-7" class="post-7 post type-post status-publish format-standard hentry category-news tag-labs tag-musica tag-taller boxentry">
<div class="entry-content">
<h3><a href="http://hangar.org/testR7Lc6/news/entrada-3/" title="Insiders participate in open day">Insiders participate in open day</a></h3>
<p class="meta box">posted on 10. març 2011</p>
<img width="200" height="150" src="http://hangar.org/testR7Lc6/wp-content/uploads/2011/03/noticia3-200x150.jpg" class="attachment-thumbnail wp-post-image" alt="fgdgdfg" title="noticia3" /> <p class="excerptbox">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#8216;Content here, content here&#8217;, making it look like readable English. Many [...]</p>
<a href="http://hangar.org/testR7Lc6/news/entrada-3/" class="peubox" title="Permalink to Insiders participate in open day" rel="bookmark"><img alt="enllaç" src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/fletxalink.png" /></a>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<div id="post-4" class="post-4 post type-post status-publish format-standard hentry category-news tag-art tag-taller boxentry">
<div class="entry-content">
<h3><a href="http://hangar.org/testR7Lc6/news/entrada-1/" title="Media Labs in Europe ya está publicada">Media Labs in Europe ya está publicada</a></h3>
<p class="meta box">posted on 10. març 2011</p>
<img width="200" height="150" src="http://hangar.org/testR7Lc6/wp-content/uploads/2011/03/noticia3-200x150.jpg" class="attachment-thumbnail wp-post-image" alt="fgdgdfg" title="noticia3" /> <p class="excerptbox">"Media Labs in Europe" es una publicación en papel impulsada por Catherine Lenoble (PING).</p>
<a href="http://hangar.org/testR7Lc6/news/entrada-1/" class="peubox" title="Permalink to Media Labs in Europe ya está publicada" rel="bookmark"><img alt="enllaç" src="http://hangar.org/testR7Lc6/wp-content/themes/hangar/images/fletxalink.png" /></a>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
</div><!-- .content -->
</div>
<!--end Content-->
</div>
<!--end Main-->
</div><!-- #main -->
<div id="footer" role="contentinfo">
<div id="wrapfooter">
<div class="col organitzacio">
<a href="http://hangar.org/testR7Lc6/" title="Hangar" rel="home">
Hangar </a><br />
Passatge del Marquès de Santa Isabel, 40<br />
Can Ricart<br />
E-08018 Barcelona<br />
--<br />
+34 93 308 4041<br />
+34 93 307 1211<br />
info(at)hangar.org
</div>
<div class="col horaris">
<strong>Horarios</strong><br />
Oficina Lu - Vi / 9h 14h<br />
Medialab Lu - Vi / 9h 13h y 16h 20h<br />
Previa reserva<br />
medialab(at)hangar.org <br />
933 084 041 ext 27<br />
Grupos de trabajo semanal de arte digital cada jueves a las 19h30. Sin reserva previa.
</div>
<div class="col xarxes">
<strong>Redes</strong><br />
<a href="http://www.facebook.com/hangar#!/profile.php?id=100001151356404">FACEBOOK</a><br />
<a href="http://twitter.com/HangarBCN">TWITTER</a><br />
FLICKR<br />
MYSCPACE
</div>
<div class="col rss">
<strong>Sindicación</strong><br />
<a href="http://hangar.org/testR7Lc6/feed/">RSS Hangar.org</a><br />
RSS Blog<br />
RSS News
</div>
</div>
</div><!-- #footer -->
</div><!-- #wrap -->
</body>
</html>

BIN
hangar/images/news.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

BIN
hangar/images/newshover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

BIN
hangar/images/noimatge.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
hangar/images/pdficon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

BIN
hangar/images/pdficon2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
hangar/images/totslink.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

28
hangar/index.php Normal file
View File

@ -0,0 +1,28 @@
<?php
/**
* Index Template
*
* This template should not be shown. It is a placeholder.
* Specific templates for each type of content are available.
**/
?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<?php get_template_part( 'loop', 'index' ); ?>
</div>
<!--end Content-->
<?php //if(!is_home()) {
//get_sidebar('secondary');} ?>
</div>
<!--end Main-->
<?php get_footer(); ?>

BIN
hangar/languages/ca.mo Normal file

Binary file not shown.

611
hangar/languages/ca.po Normal file
View File

@ -0,0 +1,611 @@
# Translation of Twenty Ten in Catalan
# This file is distributed under the same license as the Twenty Ten package.
msgid ""
msgstr ""
"Project-Id-Version: Hangar\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-08-03 17:33+0100\n"
"PO-Revision-Date: 2011-08-03 17:38+0100\n"
"Last-Translator: Enfusion <nuria@enfusion.es>\n"
"Language-Team: Catalan\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: GlotPress/0.1\n"
"X-Poedit-Language: Catalan\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2;__ngettext_noop:1,2;_x;esc_attr__;_n\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"
"X-Poedit-SearchPath-1: ../library\n"
#: ../loop.php:5
#: ../seccions.php:41
#: ../tag.php:20
#: ../caixes.php:5
#: ../caixes.php:11
#: ../caixes.php:22
#: ../caixes.php:24
#: ../caixes.php:42
#: ../caixes.php:88
#: ../caixes.php:90
#: ../caixes.php:103
#: ../caixes.php:118
#: ../caixes.php:122
#: ../caixes.php:135
#: ../caixes.php:148
#: ../caixes.php:154
#: ../caixes.php:156
#: ../caixes.php:183
#, php-format
msgid "Permalink to %s"
msgstr "Enllaç permanent a %s"
#: ../loop.php:9
#: ../loop.php:16
#: ../tag.php:24
#: ../tag.php:31
msgid "by"
msgstr "per "
#: ../loop.php:11
#: ../tag.php:26
msgid "Continue Reading &rarr;"
msgstr "Continua llegint &rarr;"
#: ../loop.php:14
#: ../seccions.php:44
#: ../single_seccio.php:34
#: ../page.php:31
#: ../tag.php:29
msgid "Pages:"
msgstr "Pàgines:"
#: ../loop.php:20
#: ../tag.php:35
#, php-format
msgid "Categories: %2$s"
msgstr "Categories: %2$s"
#: ../loop.php:27
#: ../tag.php:42
#, php-format
msgid "Tags: %2$s"
msgstr "Etiquetes: %2$s"
#: ../loop.php:31
#: ../tag.php:46
msgid "Leave a comment"
msgstr "Envia un comentari"
#: ../loop.php:31
#: ../tag.php:46
msgid "1 comment"
msgstr "1 comentari"
#: ../loop.php:31
#: ../tag.php:46
#, php-format
msgid "% comments"
msgstr "% comentaris"
#: ../loop.php:32
#: ../tag.php:47
msgid "Edit &rarr;"
msgstr "Editar &rarr;"
#: ../loop.php:43
#: ../tag.php:59
msgid "&larr; Older posts"
msgstr "&larr; Articles anteriors"
#: ../loop.php:44
#: ../tag.php:60
msgid "Newer posts &rarr;"
msgstr "Articles posteriors &rarr;"
#: ../footer.php:26
msgid "Fundació AAVC Hangar"
msgstr "Fundació AAVC Hangar"
#: ../footer.php:27
msgid "Passatge del Marquès de Santa Isabel, 40"
msgstr "Passatge del Marquès de Santa Isabel, 40"
#: ../footer.php:28
msgid "08018 Barcelona Espanya"
msgstr "08018 Barcelona Espanya"
#: ../footer.php:36
msgid "Opening times: Mon Thu 10h to 14h 15h to 20h / Fri 10h to 14h - 15h to 19h"
msgstr "Obert: Dll Dj 10h a 14h 15h a 20h / Dv 10h a 14h - 15h a 19h"
#: ../footer.php:39
msgid "Legal advice"
msgstr "Avís legal"
#: ../footer.php:42
msgid "Design:"
msgstr "Disseny:"
#: ../footer.php:43
msgid "Development:"
msgstr "Desenvolupament:"
#: ../seccions.php:53
#: ../seccions.php:85
#: ../single_seccio.php:63
#: ../taxonomy.php:32
#: ../artistes_alfa.php:38
#: ../category-news.php:40
#: ../category.php:45
msgid "Apologies, but no results were found."
msgstr "Disculpeu, però no hem trobat cap resultat."
#: ../comments.php:2
msgid "This post is password protected. Enter the password to view any comments."
msgstr "Aquesta entrada està protegida amb contrasenya. Introduïu la contrasenya per veure'n els comentaris."
#: ../comments.php:21
msgid "One Comment"
msgstr "Un comentari"
#: ../comments.php:30
msgid "&larr; Older Comments"
msgstr "&larr; Comentaris anteriors"
#: ../comments.php:31
msgid "Newer Comments &rarr;"
msgstr "Comentaris posteriors &rarr;"
#: ../comments.php:38
msgid "Leave a Reply"
msgstr "Envia un comentari"
#: ../comments.php:39
msgid "<p class=\"comment-notes\">Required fields are marked <span class=\"required\">*</span></p>"
msgstr "<p class=\"comment-notes\">Els camps obligatoris s'han marcat amb un <span class=\"required\">*</span></p>"
#: ../comments.php:41
msgid "Comment"
msgstr "Comentari"
#: ../single_seccio.php:35
#: ../page.php:32
msgid "Edit this page &rarr;"
msgstr "Editeu aquesta pàgina &rarr;"
#: ../single_seccio.php:41
#: ../page.php:38
msgid "&larr; Previous Post"
msgstr "&larr; Article anterior"
#: ../single_seccio.php:42
#: ../page.php:39
msgid "Next Post &rarr;"
msgstr "Article següent &rarr;"
#: ../tag.php:12
#, php-format
msgid "Tag Archives: %s"
msgstr "Arxiu d'etiquetes: %s"
#: ../tag.php:24
msgid "Published on: "
msgstr "Publicat el: "
#: ../tag.php:67
msgid "No Search Result Found"
msgstr "No s'ha trobat cap resultat."
#: ../tag.php:69
msgid "Sorry, but nothing matched your search criteria. Please try again with some different keywords."
msgstr "Ho sentim, res no coincideix amb els criteris de cerca. Intenteu-ho de nou amb altres paraules claus diferents."
#: ../taxonomy.php:11
#, php-format
msgid "Artists by year %s"
msgstr "Artistes per any %s"
#: ../artistes_anys.php:41
msgid " artists"
msgstr " artistes"
#: ../single.php:19
msgid "By "
msgstr "Per "
#: ../single.php:20
#: ../single.php:22
msgid "Posted on "
msgstr "Publicat el "
#: ../single.php:37
#, php-format
msgid "About <span>%s</span>"
msgstr "Entorn a <span>%s</span>"
#: ../404.php:27
msgid "Page not found"
msgstr "Pàgina no trobada"
#: ../404.php:30
#, php-format
msgid "You tried going to %1$s, and it doesn't exist. All is not lost! You can search for what you're looking for."
msgstr "Heu intentat anar a %1$s, però no existeix. Podeu fer una cerca del que voleu trobar."
#: ../sidebar-secondary.php:13
msgid "Related items"
msgstr "Articles relacionats"
#: ../sidebar-secondary.php:22
msgid "Categories"
msgstr "Categories"
#: ../sidebar-secondary.php:25
msgid "Archives"
msgstr "Arxius"
#: ../sidebar-secondary.php:32
#: ../library/comments-extensions.php:24
msgid "Search"
msgstr "Cerca"
#: ../sidebar-secondary.php:39
msgid "Meta"
msgstr "Meta"
#: ../header.php:29
#, php-format
msgid "Page %s"
msgstr "Pàgina %s"
#: ../header.php:68
msgid "faqs"
msgstr "faqs"
#: ../header.php:69
msgid "contact"
msgstr "contacte"
#: ../header.php:70
msgid "newsletter"
msgstr "newsletter"
#: ../home.php:88
msgid "Not found."
msgstr "No s'ha trobat"
#: ../home.php:89
msgid "Sorry, but you are looking for something that isn't here."
msgstr "Disculpeu, però allò que esteu cercant no hi és en el web."
#: ../search.php:11
#, php-format
msgid "Search Results for <strong>%s</strong>"
msgstr "Resultats de la cerca per a: <strong>%s</strong>"
#: ../library/breadcrumb.php:16
msgid "Home"
msgstr "Inici"
#: ../library/breadcrumb.php:39
msgid "Search result for"
msgstr "Resultats de la cerca per a %s"
#: ../library/breadcrumb.php:42
msgid "Archive for tag"
msgstr "Arxiu per les etiquetes"
#: ../library/breadcrumb.php:45
msgid "Article posted by"
msgstr "Article publicat per"
#: ../library/breadcrumb.php:48
msgid "Part"
msgstr "Part"
#: ../library/breadcrumb.php:51
msgid "Page"
msgstr "Pàgina"
#: ../library/comments-extensions.php:46
#, php-format
msgid "%1$s at %2$s"
msgstr "%1$s a %2$s"
#: ../library/comments-extensions.php:53
msgid "Your comment is awaiting moderation."
msgstr "El teu comentari està en espera de ser moderat."
#: ../library/comments-extensions.php:71
msgid "Pingback:"
msgstr "Retroenllaç:"
#: ../library/comments-extensions.php:71
msgid "(Edit)"
msgstr "(Edita)"
#: ../library/comments-extensions.php:80
msgid "Website"
msgstr "Web"
#: ../library/comments-extensions.php:83
msgid "Email*"
msgstr "Email*"
#: ../library/comments-extensions.php:86
msgid "Name*"
msgstr "Nom*"
#: ../library/widgetized-sidebars.php:8
msgid "Primary Widget Area"
msgstr "Zona de ginys primària "
#: ../library/widgetized-sidebars.php:10
msgid "Here you can put one or two of your main widgets (like an intro text, your page navigation or some social site links) in your left sidebar. The sidebar is fixed, so the widgets content will always be visible, even when scrolling down the page."
msgstr "A la barra lateral esquerra podeu posar un o dos dels ginys principals (com una introducció en text, la vostra pàgina de navetació o algun enllaç social)."
#: ../library/widgetized-sidebars.php:19
msgid "Secondary Widget Area"
msgstr "Zona de ginys secundària "
#: ../library/widgetized-sidebars.php:21
msgid "Here you can put all the additional widgets for your right sidebar."
msgstr "A la barra lateral dreta podeu posar els ginys addicionals que volgueu."
#~ msgid "Searchk"
#~ msgstr "Cercak"
#~ msgid "This gallery contains <a %1$s>%2$s photo</a>."
#~ msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
#~ msgstr[0] "Aquesta galeria conté <a %1$s>%2$s fotografia</a>."
#~ msgstr[1] "Aquesta galeria conté <a %1$s>%2$s fotografies</a>."
#~ msgid "View Galleries"
#~ msgstr "Visualitza les galeries"
#~ msgid ""
#~ "black, blue, white, two-columns, fixed-width, custom-header, custom-"
#~ "background, threaded-comments, sticky-post, translation-ready, "
#~ "microformats, rtl-language-support, editor-style, custom-menu"
#~ msgstr ""
#~ "negre, blau, blanc, dos columnes, amplada fixa, capçalera personalitzada, "
#~ "fons personalitzat, comentaris ordenats per fils, entrada fixada, llest "
#~ "per a traduccions, microformats, suport per a escriptura de dreta a "
#~ "esquerra, amb editor d'estil, menú personalitzat"
#~ msgid ""
#~ "The 2010 theme for WordPress is stylish, customizable, simple, and "
#~ "readable -- make it yours with a custom menu, header image, and "
#~ "background. Twenty Ten supports six widgetized areas (two in the sidebar, "
#~ "four in the footer) and featured images (thumbnails for gallery posts and "
#~ "custom header images for posts and pages). It includes stylesheets for "
#~ "print and the admin Visual Editor, special styles for posts in the "
#~ "\"Asides\" and \"Gallery\" categories, and has an optional one-column "
#~ "page template that removes the sidebar."
#~ msgstr ""
#~ "El tema 2010 per al WordPress és un tema amb estil, personalitzable, "
#~ "simple, i llegible -- feu-lo vostre amb un menú, imatge de capçalera i "
#~ "fons al vostre gust. El Twenty Ten (2010) suporta sis àrees per a ginys "
#~ "(dues a la barra lateral i quatre al peu) i imatges destacades "
#~ "(miniatures per a galeries i imatges de capçalera personalitzades per a "
#~ "entrades i pàgines). Inclou fulles d'estil per a impressió i un editor "
#~ "visual, estils especials per a les entrades de la categoria \"Aparts\" i "
#~ "\"Galeria\", i té una plantilla opcional de pàgina d'una columna que "
#~ "elimina la barra lateral."
#~ msgid "<span class=\"%1$s\">Posted in</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Publicat dins de</span> %2$s"
#~ msgid ""
#~ "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
#~ "span> %3$s"
#~ msgstr ""
#~ "<span class=\"%1$s\">Publicat el</span> %2$s <span class=\"meta-sep"
#~ "\">per</span> %3$s"
#~ msgid "<span class=\"%1$s\">Tagged</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Etiquetat com a</span> %2$s"
#~ msgid ""
#~ "Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
#~ "\">permalink</a>."
#~ msgstr ""
#~ "Afegeix a les adreces d'interès l'<a href=\"%3$s\" title=\"Enllaç "
#~ "permanent a %4$s\" rel=\"bookmark\">enllaç permanent</a>."
#~ msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr ""
#~ "Mostra totes les entrades de %s <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
#~ msgstr "<span class=\"meta-nav\">&larr;</span>Comentaris anteriors"
#~ msgid "<span class=\"meta-nav\">&larr;</span> %s"
#~ msgstr "<span class=\"meta-nav\">&larr;</span> %s"
#~ msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Comentaris recents <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "Primary Navigation"
#~ msgstr "Navegació primària"
#~ msgid ""
#~ "Apologies, but no results were found for the requested archive. Perhaps "
#~ "searching will help find a related post."
#~ msgstr ""
#~ "No hi ha cap resultat per l'arxiu sol·licitat. Potser cercar us ajudarà a "
#~ "trobar una entrada relacionada."
#~ msgid "%s <span class=\"says\">says:</span>"
#~ msgstr "%s <span class=\"says\">diu:</span>"
#~ msgid "<span class=\"%1$s\">By</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Per</span> %2$s"
#~ msgid "<span class=\"%1$s\">Published</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Publicat</span> %2$s"
#~ msgid "Full size is %s pixels"
#~ msgstr "La mida sencera són %s píxels"
#~ msgid "Link to full-size image"
#~ msgstr "Enllaç a la imatge de mida sencera"
#~ msgid "Author Archives: %s"
#~ msgstr "Arxiu de l'autor: %s"
#~ msgid "Proudly powered by %s."
#~ msgstr "Gràcies al %s."
#~ msgid ""
#~ "This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s"
#~ "\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
#~ msgstr ""
#~ "Aquesta entrada s'ha publicat en %1$s i etiquetada amb %2$s. Afegiu a les "
#~ "adreces d'interès l'<a href=\"%3$s\" title=\"Enllaç permanent a: %4$s\" "
#~ "rel=\"bookmark\">enllaç permanent</a>."
#~ msgid ""
#~ "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
#~ "\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
#~ msgstr ""
#~ "Aquesta entrada ha esta publicada en %1$s. Afegeix a les adreces "
#~ "d'interès l'<a href=\"%3$s\" title=\"Enllaç permanent a: %4$s\" rel="
#~ "\"bookmark\">enllaç permanent</a>."
#~ msgid "One Response to %2$s"
#~ msgid_plural "%1$s Responses to %2$s"
#~ msgstr[0] "Una comentari en l'entrada: %2$s"
#~ msgstr[1] "%1$s comentaris a l'entrada: %2$s"
#~ msgctxt "asides category slug"
#~ msgid "asides"
#~ msgstr "aparteu"
#~ msgctxt "gallery category slug"
#~ msgid "gallery"
#~ msgstr "galeria"
#~ msgid "Second Footer Widget Area"
#~ msgstr "Zona de ginys del segon peu "
#~ msgid "First Footer Widget Area"
#~ msgstr "Zona de ginys del primer peu "
#~ msgid "Fourth Footer Widget Area"
#~ msgstr "Zona de ginys del quart peu"
#~ msgid "Third Footer Widget Area"
#~ msgstr "Zona de ginys del tercer peu"
#~ msgctxt "Previous post link"
#~ msgid "&larr;"
#~ msgstr "&larr;"
#~ msgid "Comments are closed."
#~ msgstr "Els comentaris estan tancats."
#~ msgid "Sunset"
#~ msgstr "Posta de sol"
#~ msgid "Inkwell"
#~ msgstr "Tinter"
#~ msgid "Forest Floor"
#~ msgstr "Sòl del bosc"
#~ msgid "Fern"
#~ msgstr "Falguera"
#~ msgid "Concave"
#~ msgstr "Concau"
#~ msgid "Cherry Blossoms"
#~ msgstr "Flors de cirerer"
#~ msgid "Berries"
#~ msgstr "Baies"
#~ msgid "Semantic Personal Publishing Platform"
#~ msgstr "Plataforma de publicació personal i semàntica."
#~ msgid "More Galleries"
#~ msgstr "Més galeries "
#~ msgid "View posts in the Gallery category"
#~ msgstr "Mostra les entrades en la categoria Galeria"
#~ msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Entrades més recents <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
#~ msgstr "<span class=\"meta-nav\">&larr;</span> Entrades més antigues"
#~ msgid "Skip to content"
#~ msgstr "Vés al contingut"
#~ msgid "The fourth footer widget area"
#~ msgstr "La zona de ginys del quart peu"
#~ msgid "The third footer widget area"
#~ msgstr "La zona de ginys del tercer peu"
#~ msgid "The second footer widget area"
#~ msgstr "La zona de ginys del segon peu "
#~ msgid "The first footer widget area"
#~ msgstr "La zona de ginys del primer peu "
#~ msgid "The secondary widget area"
#~ msgstr "La zona de ginys secundària "
#~ msgid "The primary widget area"
#~ msgstr "La zona de ginys primària "
#~ msgid "About %s"
#~ msgstr "Quant a %s"
#~ msgid ""
#~ "Apologies, but the page you requested could not be found. Perhaps "
#~ "searching will help."
#~ msgstr ""
#~ "Ho sentim, però la pàgina que heu sol·licitat no s'ha trobat. Tal vegada "
#~ "cercar us ajudarà."
#~ msgid "Daily Archives: <span>%s</span>"
#~ msgstr "Arxiu diari: <span>%s</span>"
#~ msgid "Yearly Archives: <span>%s</span>"
#~ msgstr "Arxiu anual: <span>%s</span>"
#~ msgid "Blog Archives"
#~ msgstr "Arxiu del Bloc"
#~ msgid "Return to %s"
#~ msgstr "Torna a %s"
#~ msgid "View all posts by %s"
#~ msgstr "Mostra totes les entrades de %s"
#~ msgid "Edit"
#~ msgstr "Edita"
#~ msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Continua llegint <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "Twenty Ten"
#~ msgstr "Twenty Ten"
#~ msgid "http://wordpress.org/"
#~ msgstr "http://wordpress.org/"
#~ msgid "the WordPress team"
#~ msgstr "L'equip del WordPress"
#~ msgid "Nothing Found"
#~ msgstr "No s'ha trobat res"

BIN
hangar/languages/es_ES.mo Normal file

Binary file not shown.

608
hangar/languages/es_ES.po Normal file
View File

@ -0,0 +1,608 @@
# Translation of Twenty Ten in Catalan
# This file is distributed under the same license as the Twenty Ten package.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 3.1 encatalà\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-08-03 17:34+0100\n"
"PO-Revision-Date: 2011-08-03 17:36+0100\n"
"Last-Translator: Enfusion <nuria@enfusion.es>\n"
"Language-Team: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: GlotPress/0.1\n"
"X-Poedit-Language: Spanish\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2;__ngettext_noop:1,2;esc_attr__;_x\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"
"X-Poedit-SearchPath-1: ../library\n"
#: ../loop.php:5
#: ../seccions.php:41
#: ../tag.php:20
#: ../caixes.php:5
#: ../caixes.php:11
#: ../caixes.php:22
#: ../caixes.php:24
#: ../caixes.php:42
#: ../caixes.php:88
#: ../caixes.php:90
#: ../caixes.php:103
#: ../caixes.php:118
#: ../caixes.php:122
#: ../caixes.php:135
#: ../caixes.php:148
#: ../caixes.php:154
#: ../caixes.php:156
#: ../caixes.php:183
#, php-format
msgid "Permalink to %s"
msgstr "Enlace permanente a %s"
#: ../loop.php:9
#: ../loop.php:16
#: ../tag.php:24
#: ../tag.php:31
msgid "by"
msgstr "por "
#: ../loop.php:11
#: ../tag.php:26
msgid "Continue Reading &rarr;"
msgstr "Continua leyendo &rarr;"
#: ../loop.php:14
#: ../seccions.php:44
#: ../single_seccio.php:34
#: ../page.php:31
#: ../tag.php:29
msgid "Pages:"
msgstr "Páginas:"
#: ../loop.php:20
#: ../tag.php:35
#, php-format
msgid "Categories: %2$s"
msgstr "Categorias: %2$s"
#: ../loop.php:27
#: ../tag.php:42
#, php-format
msgid "Tags: %2$s"
msgstr "Etiquetas: %2$s"
#: ../loop.php:31
#: ../tag.php:46
msgid "Leave a comment"
msgstr "Envia un comentario"
#: ../loop.php:31
#: ../tag.php:46
msgid "1 comment"
msgstr "1 comentario"
#: ../loop.php:31
#: ../tag.php:46
#, php-format
msgid "% comments"
msgstr "%s comentarios"
#: ../loop.php:32
#: ../tag.php:47
msgid "Edit &rarr;"
msgstr "Editar &rarr;"
#: ../loop.php:43
#: ../tag.php:59
msgid "&larr; Older posts"
msgstr "&larr; Artículos anteriores"
#: ../loop.php:44
#: ../tag.php:60
msgid "Newer posts &rarr;"
msgstr "Artículos posteriores &rarr;"
#: ../footer.php:26
msgid "Fundació AAVC Hangar"
msgstr "Fundació AAVC Hangar"
#: ../footer.php:27
msgid "Passatge del Marquès de Santa Isabel, 40"
msgstr "Passatge del Marquès de Santa Isabel, 40"
#: ../footer.php:28
msgid "08018 Barcelona Espanya"
msgstr "08018 Barcelona Espanya"
#: ../footer.php:36
msgid "Opening times: Mon Thu 10h to 14h 15h to 20h / Fri 10h to 14h - 15h to 19h"
msgstr "Abierto: Lu Ju 10h a 14h 16h a 20h / Vi 10h a 14h - 16h a 19h"
#: ../footer.php:38
msgid "Horari oficina de 9 a 20h"
msgstr "Horario oficina de 9 a 20h"
#: ../footer.php:39
msgid "Legal advice"
msgstr "Aviso legal"
#: ../footer.php:42
msgid "Design:"
msgstr "Diseño:"
#: ../footer.php:43
msgid "Development:"
msgstr "Desarrollo:"
#: ../seccions.php:53
#: ../seccions.php:85
#: ../single_seccio.php:63
#: ../taxonomy.php:32
#: ../artistes_alfa.php:38
#: ../category-news.php:40
#: ../category.php:45
msgid "Apologies, but no results were found."
msgstr "Disculpen, pero no se ha encontrado ningún resultado."
#: ../comments.php:2
msgid "This post is password protected. Enter the password to view any comments."
msgstr "Este artículo está protegido con password. Para ver los comentarios, entre con su password."
#: ../comments.php:30
msgid "&larr; Older Comments"
msgstr "&larr; Comentarios anteriors"
#: ../comments.php:31
msgid "Newer Comments &rarr;"
msgstr "Comentarios posteriores &rarr;"
#: ../comments.php:38
msgid "Leave a Reply"
msgstr "Envia un comentario"
#: ../comments.php:39
msgid "<p class=\"comment-notes\">Required fields are marked <span class=\"required\">*</span></p>"
msgstr "<p class=\"comment-notes\">Los campos obligatorios se han marcado con un <span class=\"required\">*</span></p>"
#: ../comments.php:41
msgid "Comment"
msgstr "comentario"
#: ../single_seccio.php:35
#: ../page.php:32
msgid "Edit this page &rarr;"
msgstr "Edite esta página &rarr;"
#: ../single_seccio.php:41
#: ../page.php:38
msgid "&larr; Previous Post"
msgstr "&larr; Artículo anterior"
#: ../single_seccio.php:42
#: ../page.php:39
msgid "Next Post &rarr;"
msgstr "Artículo posterior &rarr;"
#: ../tag.php:12
#, php-format
msgid "Tag Archives: %s"
msgstr "Archivo de etiquetas: %s"
#: ../tag.php:24
msgid "Published on: "
msgstr "Publicado el: "
#: ../tag.php:67
msgid "No Search Result Found"
msgstr "No se han encontraado resultados."
#: ../tag.php:69
msgid "Sorry, but nothing matched your search criteria. Please try again with some different keywords."
msgstr "Lo sentimos, pero no hay coincidencias con sus criterios de búsqueda. Por favor, vuelva a intentarlo."
#: ../taxonomy.php:11
#, php-format
msgid "Artists by year %s"
msgstr "Artistas par año %s"
#: ../artistes_anys.php:41
msgid " artists"
msgstr " artistas"
#: ../single.php:19
msgid "By "
msgstr "Por "
#: ../single.php:20
#: ../single.php:22
msgid "Posted on "
msgstr "Publicado el "
#: ../single.php:37
#, php-format
msgid "About <span>%s</span>"
msgstr "Acerca de <span>%s</span>"
#: ../404.php:27
msgid "Page not found"
msgstr "Página no encontrada."
#: ../404.php:30
#, php-format
msgid "You tried going to %1$s, and it doesn't exist. All is not lost! You can search for what you're looking for."
msgstr "Ha intentado ir a %1$s, pero no existe. Prueb a realizar una nueva búsqueda."
#: ../sidebar-secondary.php:13
msgid "Related items"
msgstr "Artículos relacionados"
#: ../sidebar-secondary.php:22
msgid "Categories"
msgstr "Categorias"
#: ../sidebar-secondary.php:25
msgid "Archives"
msgstr "Archivos"
#: ../sidebar-secondary.php:32
#: ../library/comments-extensions.php:24
msgid "Search"
msgstr "Buscar"
#: ../sidebar-secondary.php:39
msgid "Meta"
msgstr "Meta"
#: ../header.php:29
#, php-format
msgid "Page %s"
msgstr "Página %s"
#: ../header.php:68
msgid "faqs"
msgstr "faqs"
#: ../header.php:69
msgid "contact"
msgstr "contacto"
#: ../header.php:70
msgid "newsletter"
msgstr "newsletter"
#: ../home.php:88
msgid "Not found."
msgstr "No encontrado."
#: ../home.php:89
msgid "Sorry, but you are looking for something that isn't here."
msgstr "Disculpe, pero lo que está buscando no se encuentra aquí."
#: ../search.php:11
#, php-format
msgid "Search Results for <strong>%s</strong>"
msgstr "Resultados de búsqueda para <strong>%s</strong>"
#: ../library/breadcrumb.php:16
msgid "Home"
msgstr "Inicio"
#: ../library/breadcrumb.php:39
msgid "Search result for"
msgstr "Resultados de la búsqueda: %s"
#: ../library/breadcrumb.php:42
msgid "Archive for tag"
msgstr "Archivo por etiquetas"
#: ../library/breadcrumb.php:45
msgid "Article posted by"
msgstr "Artículo publicado por"
#: ../library/breadcrumb.php:48
msgid "Part"
msgstr "Parte"
#: ../library/breadcrumb.php:51
msgid "Page"
msgstr "Página"
#: ../library/comments-extensions.php:46
#, php-format
msgid "%1$s at %2$s"
msgstr "%1$s a las %2$s"
#: ../library/comments-extensions.php:53
msgid "Your comment is awaiting moderation."
msgstr "Su comentario está en espera de ser moderado."
#: ../library/comments-extensions.php:71
msgid "Pingback:"
msgstr "Retroenlace:"
#: ../library/comments-extensions.php:71
msgid "(Edit)"
msgstr "(Edita)"
#: ../library/comments-extensions.php:80
msgid "Website"
msgstr "Web"
#: ../library/comments-extensions.php:83
msgid "Email*"
msgstr "Email*"
#: ../library/comments-extensions.php:86
msgid "Name*"
msgstr "Nombre*"
#: ../library/widgetized-sidebars.php:8
msgid "Primary Widget Area"
msgstr "Zona de widgets primaria"
#: ../library/widgetized-sidebars.php:10
msgid "Here you can put one or two of your main widgets (like an intro text, your page navigation or some social site links) in your left sidebar. The sidebar is fixed, so the widgets content will always be visible, even when scrolling down the page."
msgstr "Here you can put one or two of your main widgets (like an intro text, your page navigation or some social site links) in your left sidebar. The sidebar is fixed, so the widgets content will always be visible, even when scrolling down the page."
#: ../library/widgetized-sidebars.php:19
msgid "Secondary Widget Area"
msgstr "Zona de ginys secundària "
#: ../library/widgetized-sidebars.php:21
msgid "Here you can put all the additional widgets for your right sidebar."
msgstr "A la barra lateral dreta podeu posar els ginys addicionals que volgueu."
#~ msgid "This gallery contains <a %1$s>%2$s photo</a>."
#~ msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
#~ msgstr[0] "Aquesta galeria conté <a %1$s>%2$s fotografia</a>."
#~ msgstr[1] "Aquesta galeria conté <a %1$s>%2$s fotografies</a>."
#~ msgid "View Galleries"
#~ msgstr "Visualitza les galeries"
#~ msgid ""
#~ "black, blue, white, two-columns, fixed-width, custom-header, custom-"
#~ "background, threaded-comments, sticky-post, translation-ready, "
#~ "microformats, rtl-language-support, editor-style, custom-menu"
#~ msgstr ""
#~ "negre, blau, blanc, dos columnes, amplada fixa, capçalera personalitzada, "
#~ "fons personalitzat, comentaris ordenats per fils, entrada fixada, llest "
#~ "per a traduccions, microformats, suport per a escriptura de dreta a "
#~ "esquerra, amb editor d'estil, menú personalitzat"
#~ msgid ""
#~ "The 2010 theme for WordPress is stylish, customizable, simple, and "
#~ "readable -- make it yours with a custom menu, header image, and "
#~ "background. Twenty Ten supports six widgetized areas (two in the sidebar, "
#~ "four in the footer) and featured images (thumbnails for gallery posts and "
#~ "custom header images for posts and pages). It includes stylesheets for "
#~ "print and the admin Visual Editor, special styles for posts in the "
#~ "\"Asides\" and \"Gallery\" categories, and has an optional one-column "
#~ "page template that removes the sidebar."
#~ msgstr ""
#~ "El tema 2010 per al WordPress és un tema amb estil, personalitzable, "
#~ "simple, i llegible -- feu-lo vostre amb un menú, imatge de capçalera i "
#~ "fons al vostre gust. El Twenty Ten (2010) suporta sis àrees per a ginys "
#~ "(dues a la barra lateral i quatre al peu) i imatges destacades "
#~ "(miniatures per a galeries i imatges de capçalera personalitzades per a "
#~ "entrades i pàgines). Inclou fulles d'estil per a impressió i un editor "
#~ "visual, estils especials per a les entrades de la categoria \"Aparts\" i "
#~ "\"Galeria\", i té una plantilla opcional de pàgina d'una columna que "
#~ "elimina la barra lateral."
#~ msgid "<span class=\"%1$s\">Posted in</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Publicat dins de</span> %2$s"
#~ msgid ""
#~ "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
#~ "span> %3$s"
#~ msgstr ""
#~ "<span class=\"%1$s\">Publicat el</span> %2$s <span class=\"meta-sep"
#~ "\">per</span> %3$s"
#~ msgid "<span class=\"%1$s\">Tagged</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Etiquetat com a</span> %2$s"
#~ msgid ""
#~ "Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
#~ "\">permalink</a>."
#~ msgstr ""
#~ "Afegeix a les adreces d'interès l'<a href=\"%3$s\" title=\"Enllaç "
#~ "permanent a %4$s\" rel=\"bookmark\">enllaç permanent</a>."
#~ msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr ""
#~ "Mostra totes les entrades de %s <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
#~ msgstr "<span class=\"meta-nav\">&larr;</span>Comentaris anteriors"
#~ msgid "<span class=\"meta-nav\">&larr;</span> %s"
#~ msgstr "<span class=\"meta-nav\">&larr;</span> %s"
#~ msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Comentaris recents <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "Primary Navigation"
#~ msgstr "Navegació primària"
#~ msgid ""
#~ "Apologies, but no results were found for the requested archive. Perhaps "
#~ "searching will help find a related post."
#~ msgstr ""
#~ "No hi ha cap resultat per l'arxiu sol·licitat. Potser cercar us ajudarà a "
#~ "trobar una entrada relacionada."
#~ msgid "%s <span class=\"says\">says:</span>"
#~ msgstr "%s <span class=\"says\">diu:</span>"
#~ msgid "<span class=\"%1$s\">By</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Per</span> %2$s"
#~ msgid "<span class=\"%1$s\">Published</span> %2$s"
#~ msgstr "<span class=\"%1$s\">Publicat</span> %2$s"
#~ msgid "Full size is %s pixels"
#~ msgstr "La mida sencera són %s píxels"
#~ msgid "Link to full-size image"
#~ msgstr "Enllaç a la imatge de mida sencera"
#~ msgid "Author Archives: %s"
#~ msgstr "Arxiu de l'autor: %s"
#~ msgid "Proudly powered by %s."
#~ msgstr "Gràcies al %s."
#~ msgid ""
#~ "This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s"
#~ "\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
#~ msgstr ""
#~ "Aquesta entrada s'ha publicat en %1$s i etiquetada amb %2$s. Afegiu a les "
#~ "adreces d'interès l'<a href=\"%3$s\" title=\"Enllaç permanent a: %4$s\" "
#~ "rel=\"bookmark\">enllaç permanent</a>."
#~ msgid ""
#~ "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
#~ "\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
#~ msgstr ""
#~ "Aquesta entrada ha esta publicada en %1$s. Afegeix a les adreces "
#~ "d'interès l'<a href=\"%3$s\" title=\"Enllaç permanent a: %4$s\" rel="
#~ "\"bookmark\">enllaç permanent</a>."
#~ msgid "One Response to %2$s"
#~ msgid_plural "%1$s Responses to %2$s"
#~ msgstr[0] "Una comentari en l'entrada: %2$s"
#~ msgstr[1] "%1$s comentaris a l'entrada: %2$s"
#~ msgctxt "asides category slug"
#~ msgid "asides"
#~ msgstr "aparteu"
#~ msgctxt "gallery category slug"
#~ msgid "gallery"
#~ msgstr "galeria"
#~ msgid "Second Footer Widget Area"
#~ msgstr "Zona de ginys del segon peu "
#~ msgid "First Footer Widget Area"
#~ msgstr "Zona de ginys del primer peu "
#~ msgid "Fourth Footer Widget Area"
#~ msgstr "Zona de ginys del quart peu"
#~ msgid "Third Footer Widget Area"
#~ msgstr "Zona de ginys del tercer peu"
#~ msgctxt "Previous post link"
#~ msgid "&larr;"
#~ msgstr "&larr;"
#~ msgid "Comments are closed."
#~ msgstr "Els comentaris estan tancats."
#~ msgid "Sunset"
#~ msgstr "Posta de sol"
#~ msgid "Inkwell"
#~ msgstr "Tinter"
#~ msgid "Forest Floor"
#~ msgstr "Sòl del bosc"
#~ msgid "Fern"
#~ msgstr "Falguera"
#~ msgid "Concave"
#~ msgstr "Concau"
#~ msgid "Cherry Blossoms"
#~ msgstr "Flors de cirerer"
#~ msgid "Berries"
#~ msgstr "Baies"
#~ msgid "Semantic Personal Publishing Platform"
#~ msgstr "Plataforma de publicació personal i semàntica."
#~ msgid "More Galleries"
#~ msgstr "Més galeries "
#~ msgid "View posts in the Gallery category"
#~ msgstr "Mostra les entrades en la categoria Galeria"
#~ msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Entrades més recents <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
#~ msgstr "<span class=\"meta-nav\">&larr;</span> Entrades més antigues"
#~ msgid "Skip to content"
#~ msgstr "Vés al contingut"
#~ msgid "The fourth footer widget area"
#~ msgstr "La zona de ginys del quart peu"
#~ msgid "The third footer widget area"
#~ msgstr "La zona de ginys del tercer peu"
#~ msgid "The second footer widget area"
#~ msgstr "La zona de ginys del segon peu "
#~ msgid "The first footer widget area"
#~ msgstr "La zona de ginys del primer peu "
#~ msgid "The secondary widget area"
#~ msgstr "La zona de ginys secundària "
#~ msgid "The primary widget area"
#~ msgstr "La zona de ginys primària "
#~ msgid "About %s"
#~ msgstr "Quant a %s"
#~ msgid ""
#~ "Apologies, but the page you requested could not be found. Perhaps "
#~ "searching will help."
#~ msgstr ""
#~ "Ho sentim, però la pàgina que heu sol·licitat no s'ha trobat. Tal vegada "
#~ "cercar us ajudarà."
#~ msgid "Daily Archives: <span>%s</span>"
#~ msgstr "Arxiu diari: <span>%s</span>"
#~ msgid "Yearly Archives: <span>%s</span>"
#~ msgstr "Arxiu anual: <span>%s</span>"
#~ msgid "Blog Archives"
#~ msgstr "Arxiu del Bloc"
#~ msgid "Return to %s"
#~ msgstr "Torna a %s"
#~ msgid "View all posts by %s"
#~ msgstr "Mostra totes les entrades de %s"
#~ msgid "Edit"
#~ msgstr "Edita"
#~ msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
#~ msgstr "Continua llegint <span class=\"meta-nav\">&rarr;</span>"
#~ msgid "Twenty Ten"
#~ msgstr "Twenty Ten"
#~ msgid "http://wordpress.org/"
#~ msgstr "http://wordpress.org/"
#~ msgid "the WordPress team"
#~ msgstr "L'equip del WordPress"
#~ msgid "Nothing Found"
#~ msgstr "No s'ha trobat res"

View File

@ -0,0 +1,398 @@
# Copyright (C) 2010 Twenty Ten
# This file is distributed under the same license as the Twenty Ten package.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 1.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/twentyten\n"
"POT-Creation-Date: 2011-02-22 08:27:25+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: loop-attachment.php:21
msgid "Return to %s"
msgstr ""
#: loop-attachment.php:23
msgid "<span class=\"meta-nav\">&larr;</span> %s"
msgstr ""
#: loop-attachment.php:32
msgid "<span class=\"%1$s\">By</span> %2$s"
msgstr ""
#: loop-attachment.php:36 functions.php:476
msgid "View all posts by %s"
msgstr ""
#: loop-attachment.php:43
msgid "<span class=\"%1$s\">Published</span> %2$s"
msgstr ""
#: loop-attachment.php:53
msgid "Full size is %s pixels"
msgstr ""
#: loop-attachment.php:56
msgid "Link to full-size image"
msgstr ""
#: loop-attachment.php:63 loop-attachment.php:111 loop.php:100 loop.php:123
#: loop.php:165 loop-page.php:30 loop-single.php:56
msgid "Edit"
msgstr ""
#: loop-attachment.php:104 loop.php:115 loop.php:143 functions.php:248
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: loop-attachment.php:105 loop.php:144 loop-page.php:29 loop-single.php:34
msgid "Pages:"
msgstr ""
#. #-#-#-#-# twentyten.pot (Twenty Ten 1.2) #-#-#-#-#
#. Theme URI of the plugin/theme
#: footer.php:33
msgid "http://wordpress.org/"
msgstr ""
#: footer.php:33
msgid "Semantic Personal Publishing Platform"
msgstr ""
#: footer.php:33
msgid "Proudly powered by %s."
msgstr ""
#: category.php:16
msgid "Category Archives: %s"
msgstr ""
#: sidebar.php:27
msgid "Archives"
msgstr ""
#: sidebar.php:34
msgid "Meta"
msgstr ""
#: tag.php:16
msgid "Tag Archives: %s"
msgstr ""
#: comments.php:18
msgid ""
"This post is password protected. Enter the password to view any comments."
msgstr ""
#: comments.php:35
msgid "One Response to %2$s"
msgid_plural "%1$s Responses to %2$s"
msgstr[0] ""
msgstr[1] ""
#: comments.php:41 comments.php:60
msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
msgstr ""
#: comments.php:42 comments.php:61
msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: comments.php:72
msgid "Comments are closed."
msgstr ""
#: 404.php:16 loop.php:33
msgid "Not Found"
msgstr ""
#: 404.php:18
msgid ""
"Apologies, but the page you requested could not be found. Perhaps searching "
"will help."
msgstr ""
#: loop.php:25 loop.php:178
msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr ""
#: loop.php:26 loop.php:179
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: loop.php:35
msgid ""
"Apologies, but no results were found for the requested archive. Perhaps "
"searching will help find a related post."
msgstr ""
#: loop.php:60 loop.php:95 loop.php:96
msgctxt "gallery category slug"
msgid "gallery"
msgstr ""
#: loop.php:62 loop.php:83 loop.php:131
msgid "Permalink to %s"
msgstr ""
#: loop.php:82
msgid "This gallery contains <a %1$s>%2$s photo</a>."
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
msgstr[0] ""
msgstr[1] ""
#: loop.php:93
msgid "View Galleries"
msgstr ""
#: loop.php:93 loop.php:96
msgid "More Galleries"
msgstr ""
#: loop.php:96
msgid "View posts in the Gallery category"
msgstr ""
#: loop.php:99 loop.php:122 loop.php:164
msgid "Leave a comment"
msgstr ""
#: loop.php:99 loop.php:122 loop.php:164
msgid "1 Comment"
msgstr ""
#: loop.php:99 loop.php:122 loop.php:164
msgid "% Comments"
msgstr ""
#: loop.php:106
msgctxt "asides category slug"
msgid "asides"
msgstr ""
#: loop.php:151
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
msgstr ""
#: loop.php:160
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
msgstr ""
#: functions.php:100
msgid "Primary Navigation"
msgstr ""
#: functions.php:140
msgid "Berries"
msgstr ""
#: functions.php:146
msgid "Cherry Blossoms"
msgstr ""
#: functions.php:152
msgid "Concave"
msgstr ""
#: functions.php:158
msgid "Fern"
msgstr ""
#: functions.php:164
msgid "Forest Floor"
msgstr ""
#: functions.php:170
msgid "Inkwell"
msgstr ""
#: functions.php:176
msgid "Path"
msgstr ""
#: functions.php:182
msgid "Sunset"
msgstr ""
#: functions.php:330
msgid "%s <span class=\"says\">says:</span>"
msgstr ""
#: functions.php:333
msgid "Your comment is awaiting moderation."
msgstr ""
#: functions.php:340
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:340 functions.php:357
msgid "(Edit)"
msgstr ""
#: functions.php:357
msgid "Pingback:"
msgstr ""
#: functions.php:376
msgid "Primary Widget Area"
msgstr ""
#: functions.php:378
msgid "The primary widget area"
msgstr ""
#: functions.php:387
msgid "Secondary Widget Area"
msgstr ""
#: functions.php:389
msgid "The secondary widget area"
msgstr ""
#: functions.php:398
msgid "First Footer Widget Area"
msgstr ""
#: functions.php:400
msgid "The first footer widget area"
msgstr ""
#: functions.php:409
msgid "Second Footer Widget Area"
msgstr ""
#: functions.php:411
msgid "The second footer widget area"
msgstr ""
#: functions.php:420
msgid "Third Footer Widget Area"
msgstr ""
#: functions.php:422
msgid "The third footer widget area"
msgstr ""
#: functions.php:431
msgid "Fourth Footer Widget Area"
msgstr ""
#: functions.php:433
msgid "The fourth footer widget area"
msgstr ""
#: functions.php:467
msgid ""
"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
"span> %3$s"
msgstr ""
#: functions.php:493
msgid ""
"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" "
"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
msgstr ""
#: functions.php:495
msgid ""
"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
msgstr ""
#: functions.php:497
msgid ""
"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
"\">permalink</a>."
msgstr ""
#: header.php:33
msgid "Page %s"
msgstr ""
#: header.php:83
msgid "Skip to content"
msgstr ""
#: author.php:27
msgid "Author Archives: %s"
msgstr ""
#: author.php:37 loop-single.php:43
msgid "About %s"
msgstr ""
#: search.php:16
msgid "Search Results for: %s"
msgstr ""
#: search.php:26
msgid "Nothing Found"
msgstr ""
#: search.php:28
msgid ""
"Sorry, but nothing matched your search criteria. Please try again with some "
"different keywords."
msgstr ""
#: loop-single.php:21 loop-single.php:61
msgctxt "Previous post link"
msgid "&larr;"
msgstr ""
#: loop-single.php:22 loop-single.php:62
msgctxt "Next post link"
msgid "&rarr;"
msgstr ""
#: loop-single.php:47
msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: archive.php:33
msgid "Daily Archives: <span>%s</span>"
msgstr ""
#: archive.php:35
msgid "Monthly Archives: <span>%s</span>"
msgstr ""
#: archive.php:37
msgid "Yearly Archives: <span>%s</span>"
msgstr ""
#: archive.php:39
msgid "Blog Archives"
msgstr ""
#. Theme Name of the plugin/theme
msgid "Twenty Ten"
msgstr ""
#. Description of the plugin/theme
msgid ""
"The 2010 theme for WordPress is stylish, customizable, simple, and readable "
"-- make it yours with a custom menu, header image, and background. Twenty "
"Ten supports six widgetized areas (two in the sidebar, four in the footer) "
"and featured images (thumbnails for gallery posts and custom header images "
"for posts and pages). It includes stylesheets for print and the admin Visual "
"Editor, special styles for posts in the \"Asides\" and \"Gallery\" "
"categories, and has an optional one-column page template that removes the "
"sidebar."
msgstr ""
#. Author of the plugin/theme
msgid "the WordPress team"
msgstr ""
#. Tags of the plugin/theme
msgid ""
"black, blue, white, two-columns, fixed-width, custom-header, custom-"
"background, threaded-comments, sticky-post, translation-ready, microformats, "
"rtl-language-support, editor-style, custom-menu"
msgstr ""

View File

@ -0,0 +1,57 @@
<?php
function truncate_text($text, $nbrChar, $append='...') {
if(strlen($text) > $nbrChar) {
$text = substr($text, 0, $nbrChar);
$text .= $append;
}
return $text;
}
function wp_breadcrumb() {
global $cat,$s,$post,$wp_locale;
if ( get_the_category() ) $category = get_the_category();
if ( is_tag() ) $tag = get_term($tag_ID, 'post_tag', OBJECT, 'display');
if ( is_author() ) $userdata = get_userdata($author);
?><div id="breadcrumb"><ul><li class="start"><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('name'); ?>"><?php echo __('Home'); ?></a></li><?php
if ( have_posts() ) :
// Display breadcrumb for category and sub-category archive
if ( is_category() ) {?><li><?php echo substr(get_category_parents($cat,true,'</li><li>'),0,-9); ?></li><?php }
// Display breadcrumb for calendar archive
elseif ( is_day() ) {?><li><a href="<?php echo get_year_link(get_the_time('Y')); ?>"><?php the_time('Y'); ?></a></li><li><a href="<?php echo get_month_link(get_the_time('Y'),get_the_time('m')); ?>"><?php the_time('F'); ?></a></li><li><a href="<?php echo get_day_link(get_the_time('Y'),get_the_time('m'),get_the_time('d')); ?>"><?php the_time('d'); ?></a></li><?php }
elseif ( is_month() ) {?><li><a href="<?php echo get_year_link(get_the_time('Y')); ?>"><?php the_time('Y'); ?></a></li><li><a href="<?php echo get_month_link(get_the_time('Y'),get_the_time('m')); ?>"><?php the_time('F'); ?></a></li><?php }
elseif ( is_year() ) {?><li><a href="<?php echo get_year_link(get_the_time('Y')); ?>"><?php the_time('Y'); ?></a></li><?php }
// Display breadcrumb for single post and attachments
elseif ( is_single() ) {?>
<li><?php echo substr(get_category_parents($category[0]->cat_ID,true,'</li><li>'),0,-9); ?></li>
<?php if($post->post_parent ) {?>
<li><a href="<?php echo get_permalink($post->post_parent); ?>"><?php echo get_the_title($post->post_parent); ?></a></li>
<?php } ?>
<li><?php echo truncate_text(the_title('','',false),20); ?></li>
<?php }
// Display breadcrumb for pages
elseif ( is_page() ) {if ( $post->post_parent ) {?><li><a href="<?php echo get_permalink($post->post_parent); ?>"><?php echo get_the_title($post->post_parent); ?></a></li><?php } ?><li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li><?php }
// Display breadcrumb for search result page
elseif ( is_search() ) {?><li><a href="<?php echo clean_url( get_pagenum_link() ); ?>" title="<?php echo __('Search result for') . ' ' . wp_specialchars(get_query_var('s')); ?>"><?php echo __('Search result for') . ' ' . wp_specialchars(get_query_var('s')); ?></a></li><?php }
// Display breadcrumb for tag archive
elseif ( is_tag() ) {?><li><a href="<?php echo clean_url( get_pagenum_link() ); ?>" title="<?php echo __('Archive for tag') . ' ' . $tag->name; ?>"><?php echo __('Archive for tag') . ' ' . $tag->name; ?></a></li><?php }
// Display breadcrumb for author archive
elseif ( is_author() ) {?><li><a href="<?php echo clean_url( get_pagenum_link() ); ?>" title="<?php echo __('Article posted by') . ' ' . $userdata->display_name; ?>"><?php echo __('Article posted by') . ' ' . $userdata->display_name; ?></a></li><?php }
// Display breadcrumb for page which got split
if ( get_query_var('page') ) {?><li><a href="<?php get_permalink(); ?>" title="<?php echo __('Part'); ?> <?php echo get_query_var('page'); ?>"><?php echo __('Part'); ?> <?php echo get_query_var('page'); ?></a></li><?php }
// Display breadcrumb for paged archives
if ( get_query_var('paged') ) {?><li><a href="<?php get_permalink(); ?>" title="<?php echo __('Page'); ?> <?php echo get_query_var('paged'); ?>"><?php echo __('Page'); ?> <?php echo get_query_var('paged'); ?></a></li><?php }
endif;
?></ul>
</div>
<?php
}
?>

View File

@ -0,0 +1,93 @@
<?php
/* permetre comentaris només als blocs */
add_filter( 'comments_open', 'open_comments_for_cat', 10, 2 );
function open_comments_for_cat( $open, $post_id )
{
$categories = (array (30,3,4));
if( in_category( $categories, $post_id ) ) :
return true;
elseif (post_is_in_descendant_category( $categories, $post_id ) ) :
return true;
else:
return $open;
endif;
}
if ( ! function_exists( 'ari_comment' ) ) :
/* Search form custom styling */
function ari_search_form( $form ) {
$form = '<form role="search" method="get" id="searchform" action="'.get_bloginfo('url').'" >
<div><label class="screen-reader-text" for="s">' . __('') . '</label>
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search', 'hangar') .'" />
<input type="text" class="search-input" value="' . get_search_query() . '" name="s" id="s" />
</div>
</form>';
return $form;
}
add_filter( 'get_search_form', 'ari_search_form' );
/* Template for comments and pingbacks. */
function ari_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="comment-body">
<div class="comment-meta commentmetadata"><?php printf( '<span class="fn">%s</span>', get_comment_author_link() ) ; ?> <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> -
<?php
/* translators: 1: date, 2: time */
printf( __( '%1$s at %2$s', 'hangar' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( 'Edit &rarr;', 'hangar' ), ' ' );
?>
</div><!-- .comment-meta .commentmetadata -->
<?php comment_text(); ?>
<?php if ( $comment->comment_approved == '0' ) : ?>
<p class="moderation"><?php _e( 'Your comment is awaiting moderation.', 'hangar' ); ?></p>
<?php endif; ?>
<div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div><!-- .reply -->
</div>
<!--comment Body-->
</div><!-- #comment-## -->
<?php
break;
case 'pingback' :
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'hangar' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'hangar'), ' ' ); ?></p>
<?php
break;
endswitch;
}
endif;
/* Comments Form Filters */
function ari_fields($fields) {
$fields['url'] = '<p class="comment-form-url"><label for="url">' . __( 'Website', 'hangar') . '</label>' .
'<br/><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>';
$fields['email'] = '<p class="comment-form-email"><label for="email">' . __( 'Email*', 'hangar') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
'<br/><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>';
$fields['author'] = '<p class="comment-form-author">' . '<label for="author">' . __( 'Name*', 'hangar') . '</label> ' . ( $req ? '<span class="required">*</span>' : '') .
'<br/><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>';
return $fields;
}
add_filter('comment_form_default_fields','ari_fields');
?>

View File

@ -0,0 +1,140 @@
<?php
// create the new custom fields for this custom post type
add_action("admin_init", "admin_init");
function admin_init(){
add_meta_box("dades_artistes", "Dades artista i obra", "dades_obres_autor", "page", "normal", "high");
add_meta_box("dades_activitats", "Dades activitats", "dades_cal_activitats", "post", "side", "low");
add_meta_box("incloure_home","Incloure a la home","incloure_at_home","page","side","high");
add_meta_box("incloure_home","Incloure a la home","incloure_at_home","post","side","high");
add_meta_box("equip","Dades personals","afegir_dades_personals","page","normal","high");
}
add_action( 'init', 'anys_artistes', 0 );
function anys_artistes() {
register_taxonomy('anys', array('page'), array('public' => true, 'label' => 'Anys', 'singular_label' => 'Any', 'rewrite' => true));
}
function dades_obres_autor() {
global $post;
$custom = get_post_custom($post->ID);
$autor_obra = $custom['autor_obra'][0];
$data_obra = $custom['data_obra'][0];
$autor_data_resid = $custom['autor_data_resid'][0];
$autor_tipo_resid = $custom['autor_tipo_resid'][0];
//here we construct the fields for the backend user interface
?>
<label class="dd">Cognoms, nom de l'artista:</label>
<input class="dd" name="autor_obra" value="<?php if(!empty($autor_obra)) echo $autor_obra; ?>"></input>
<br />
<label class="dd">Data obra:</label>
<input class="dd" name="data_obra" value="<?php if(!empty($data_obra)) echo $data_obra; ?>"></input>
<br />
<label class="dd">Tipo de residència:</label>
<input class="dd" id="autor_tipo_resid" name="autor_tipo_resid" value="<?php if(!empty($autor_tipo_resid)) echo $autor_tipo_resid; ?>"></input>
<br />
<label class="dd">Periode de residència:</label>
<input class="dd" id="autor_data_resid" name="autor_data_resid" value="<?php if(!empty($autor_data_resid)) echo $autor_data_resid; ?>"></input>
<?php
}
function dades_cal_activitats() {
global $post;
$custom = get_post_custom($post->ID);
$data_activitat = $custom['data_activitat'][0];
$data_activitatES = $custom['data_activitatES'][0];
$data_activitatEN = $custom['data_activitatEN'][0];
$lloc_activitat = $custom['lloc_activitat'][0];
$horari_activitat = $custom['horari_activitat'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral">Lloc activitat:</label>
<input class="lateral" name="lloc_activitat" value="<?php if(!empty($lloc_activitat)) echo $lloc_activitat; ?>"></input>
<label class="lateral">Data activitat:</label>
<input class="lateral" name="data_activitat" value="<?php if(!empty($data_activitat)) echo $data_activitat; ?>"></input>
<label class="lateral">Fecha actividad:</label>
<input class="lateral" name="data_activitatES" value="<?php if(!empty($data_activitatES)) echo $data_activitatES; ?>"></input>
<label class="lateral">Activity date:</label>
<input class="lateral" name="data_activitatEN" value="<?php if(!empty($data_activitatEN)) echo $data_activitatEN; ?>"></input>
<br/>
<label class="lateral">Horari activitat:</label>
<input class="lateral" name="horari_activitat" value="<?php if(!empty($horari_activitat)) echo $horari_activitat; ?>"></input>
<?php
}
function afegir_dades_personals() {
global $post;
$custom = get_post_custom($post->ID);
$carrec = $custom['carrec'][0];
$carrecES = $custom['carrecES'][0];
$carrecEN = $custom['carrecEN'][0];
$email = $custom['email'][0];
$telefon = $custom['telefon'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral">Càrrec:</label>
<input class="lateral" name="carrec" value="<?php if(!empty($carrec)) echo $carrec; ?>"></input>
<label class="lateral">Cargo:</label>
<input class="lateral" name="carrecES" value="<?php if(!empty($carrecES)) echo $carrecES; ?>"></input>
<label class="lateral">Job:</label>
<input class="lateral" name="carrecEN" value="<?php if(!empty($carrecEN)) echo $carrecEN; ?>"></input>
<br />
<label class="lateral">Email:</label>
<input class="lateral" name="email" value="<?php if(!empty($email)) echo $email; ?>"></input>
<label class="lateral">Telèfon:</label>
<input class="lateral" name="telefon" value="<?php if(!empty($telefon)) echo $telefon; ?>"></input>
<?php
}
function incloure_at_home() {
global $post;
$custom = get_post_custom($post->ID);
$Inici = $custom['Inici'][0];
$Ordre_inici = $custom['Ordre_inici'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral petit">Inici? </label>
<input class="lateral chk" type="checkbox" name="Inici" value="1" <?php checked( $Inici, 1 ) ;?> />
<label class="lateral petit">Ordre:</label>
<input class="lateral petit" name="Ordre_inici" value="<?php if(!empty($Ordre_inici)) echo $Ordre_inici; ?>"></input>
<?php
}
// here we save the data in database
add_action('save_post', 'save_details');
function save_details(){
global $post;
$post_id = $post->ID;
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want
// to do anything
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
return $post_id;
if ($post->post_type == 'page') :
update_post_meta($post_id, "autor_obra", $_POST['autor_obra']);
update_post_meta($post_id, "data_obra", $_POST['data_obra']);
update_post_meta($post_id, "autor_data_resid", $_POST['autor_data_resid']);
update_post_meta($post_id, "autor_tipo_resid", $_POST['autor_tipo_resid']);
update_post_meta($post_id, "Inici", $_POST['Inici']);
update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
update_post_meta($post_id, "carrec", $_POST['carrec']);
update_post_meta($post_id, "carrecES", $_POST['carrecES']);
update_post_meta($post_id, "carrecEN", $_POST['carrecEN']);
update_post_meta($post_id, "email", $_POST['email']);
update_post_meta($post_id, "telefon", $_POST['telefon']);
else :
update_post_meta($post_id, "Inici", $_POST['Inici']);
update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
update_post_meta($post_id, "data_activitat", $_POST['data_activitat']);
update_post_meta($post_id, "data_activitatES", $_POST['data_activitatES']);
update_post_meta($post_id, "data_activitatEN", $_POST['data_activitatEN']);
update_post_meta($post_id, "lloc_activitat", $_POST['lloc_activitat']);
update_post_meta($post_id, "horari_activitat", $_POST['horari_activitat']);
endif;
} //end function
?>

View File

@ -0,0 +1,116 @@
<?php
// create the new custom fields for this custom post type
add_action("admin_init", "admin_init");
function admin_init(){
add_meta_box("dades_artistes", "Dades artista i obra", "dades_obres_autor", "page", "normal", "high");
add_meta_box("dades_activitats", "Dades activitats", "dades_cal_activitats", "post", "side", "low");
add_meta_box("incloure_home","Incloure a la home","incloure_at_home","page","side","high");
add_meta_box("incloure_home","Incloure a la home","incloure_at_home","post","side","high");
add_meta_box("equip","Dades personals","afegir_dades_personals","page","normal","high");
}
add_action( 'init', 'anys_artistes', 0 );
function anys_artistes() {
register_taxonomy('anys', array('page'), array('public' => true, 'label' => 'Anys', 'singular_label' => 'Any', 'rewrite' => true));
}
function dades_obres_autor() {
global $post;
$custom = get_post_custom($post->ID);
$autor_obra = $custom['autor_obra'][0];
$data_obra = $custom['data_obra'][0];
$autor_data_resid = $custom['autor_data_resid'][0];
//here we construct the fields for the backend user interface
?>
<label class="dd">Cognoms, nom de l'artista:</label>
<input class="dd" name="autor_obra" value="<?php if(!empty($autor_obra)) echo $autor_obra; ?>"></input>
<label class="dd">Periode residència artista:</label>
<input class="dd" name="autor_data_resid" value="<?php if(!empty($autor_data_resid)) echo $autor_data_resid; ?>"></input>
<label class="dd">Data obra:</label>
<input class="dd" name="data_obra" value="<?php if(!empty($data_obra)) echo $data_obra; ?>"></input>
<br/>
<?php
}
function dades_cal_activitats() {
global $post;
$custom = get_post_custom($post->ID);
$data_activitat = $custom['data_activitat'][0];
$lloc_activitat = $custom['lloc_activitat'][0];
$horari_activitat = $custom['horari_activitat'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral">Lloc activitat:</label>
<input class="lateral" name="lloc_activitat" value="<?php if(!empty($lloc_activitat)) echo $lloc_activitat; ?>"></input>
<label class="lateral">Data activitat:</label>
<input class="lateral" name="data_activitat" value="<?php if(!empty($data_activitat)) echo $data_activitat; ?>"></input>
<br/>
<label class="lateral">Horari activitat:</label>
<input class="lateral" name="horari_activitat" value="<?php if(!empty($horari_activitat)) echo $horari_activitat; ?>"></input>
<?php
}
function afegir_dades_personals() {
global $post;
$custom = get_post_custom($post->ID);
$carrec = $custom['carrec'][0];
$email = $custom['email'][0];
$telefon = $custom['telefon'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral">Càrrec:</label>
<input class="lateral" name="carrec" value="<?php if(!empty($carrec)) echo $carrec; ?>"></input>
<label class="lateral">Email:</label>
<input class="lateral" name="email" value="<?php if(!empty($email)) echo $email; ?>"></input>
<label class="lateral">Telèfon:</label>
<input class="lateral" name="telefon" value="<?php if(!empty($telefon)) echo $telefon; ?>"></input>
<?php
}
function incloure_at_home() {
global $post;
$custom = get_post_custom($post->ID);
$Inici = $custom['Inici'][0];
$Ordre_inici = $custom['Ordre_inici'][0];
//here we construct the fields for the backend user interface
?>
<label class="lateral petit">Inici? </label>
<input class="lateral chk" type="checkbox" name="Inici" value="1" <?php checked( $Inici, 1 ) ;?> />
<label class="lateral petit">Ordre:</label>
<input class="lateral petit" name="Ordre_inici" value="<?php if(!empty($Ordre_inici)) echo $Ordre_inici; ?>"></input>
<?php
}
// here we save the data in database
add_action('save_post', 'save_details');
function save_details(){
global $post;
$post_id = $post->ID;
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want
// to do anything
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
return $post_id;
if ($post->post_type == 'page') :
update_post_meta($post_id, "autor_obra", $_POST['autor_obra']);
update_post_meta($post_id, "data_obra", $_POST['data_obra']);
update_post_meta($post_id, "autor_data_resid", $_POST['autor_data_resid']);
update_post_meta($post_id, "Inici", $_POST['Inici']);
update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
update_post_meta($post_id, "carrec", $_POST['carrec']);
update_post_meta($post_id, "email", $_POST['email']);
update_post_meta($post_id, "telefon", $_POST['telefon']);
else :
update_post_meta($post_id, "Inici", $_POST['Inici']);
update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
update_post_meta($post_id, "data_activitat", $_POST['data_activitat']);
update_post_meta($post_id, "lloc_activitat", $_POST['lloc_activitat']);
update_post_meta($post_id, "horari_activitat", $_POST['horari_activitat']);
endif;
} //end function
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,32 @@
<?php
/* Register widgetized areas, including two sidebars and four widget-ready columns in the footer. */
function ari_widgets_init() {
// Primary Widget area (left, fixed sidebar)
register_sidebar( array(
'name' => __( 'Primary Widget Area', 'hangar' ),
'id' => 'primary-widget-area',
'description' => __( 'Here you can put one or two of your main widgets (like an intro text, your page navigation or some social site links) in your left sidebar. The sidebar is fixed, so the widgets content will always be visible, even when scrolling down the page.', 'ari' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Secondary Widget area (right, additional sidebar)
register_sidebar( array(
'name' => __( 'Secondary Widget Area', 'hangar' ),
'id' => 'secondary-widget-area',
'description' => __( 'Here you can put all the additional widgets for your right sidebar.', 'hangar' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
/* Register sidebars by running ari_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'ari_widgets_init' );
?>

45
hangar/loop.php Normal file
View File

@ -0,0 +1,45 @@
<?php /* Start the Loop. */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<p class="meta"><span><?php the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/>
<?php else : ?>
<?php the_content( __( 'Continue Reading &rarr;', 'hangar' ) ); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'hangar' ), 'after' => '</div>' ) ); ?>
<p class="meta"><span><?php the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/>
<?php endif; ?>
<?php if ( count( get_the_category() ) ) : ?>
<?php printf( __( 'Categories: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<?php printf( __( 'Tags: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
|
<?php endif; ?>
<?php comments_popup_link( __( 'Leave a comment', 'hangar' ), __( '1 comment', 'hangar' ), __( '% comments', 'hangar' ) ); ?>
<?php edit_post_link( __( 'Edit &rarr;', 'hangar' ), '| ', '' ); ?></p>
</div>
<!--end Post-->
<?php comments_template( '', true ); ?>
<?php endwhile; // End the loop. ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<p class="previous"><?php next_posts_link( __( '&larr; Older posts', 'hangar' ) ); ?></p>
<p class="next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'hangar' ) ); ?></p>
<?php endif; ?>

38
hangar/page-plain.php Normal file
View File

@ -0,0 +1,38 @@
<?php
/**
* Template Name: page plain template
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header('plain');
?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="seccio unic">
<div id="pagina" class="shadow">
<h2><?php echo get_the_title();?></h2>
<?php
while ( have_posts() ) {
the_post();
the_content();
}
?>
</div><!-- .pagina -->
</div><!-- .content -->
</div><!--end Main-->
<!-- <link rel="stylesheet" type="text/css" media="all" href="http://hangar.org/webnou/wp-content/themes/hangar/style.jurado.css" /> -->
<?php get_footer(); ?>

65
hangar/page.php Normal file
View File

@ -0,0 +1,65 @@
<?php get_header(); ?>
<div id="main" class="mainunic">
<div id="content" class="unic">
<?php wp_breadcrumb();?>
<div id="pagina" class="shadow">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<!-- buscar el nom de l'artista i la data: metatgs -->
<?php $tiporesid = get_post_meta($post->ID, 'autor_tipo_resid', true);
if ($tiporesid) : ?>
<p class="curt"><?php echo __($tiporesid); ?> </p>
<?php endif;?>
<?php $dataresid = get_post_meta($post->ID, 'autor_data_resid', true);
if ($dataresid) : ?>
<p class="curt"><?php echo __($dataresid); ?> </p>
<?php endif;?>
<?php $autorobra = get_post_meta($post->ID, 'autor_obra', true);
if ($autorobra) : ?>
<p class="blue curt"><?php echo $autorobra; ?> </p>
<?php endif;?>
<?php $dataobra = get_post_meta($post->ID, 'data_obra', true);
if ($dataobra) : ?>
<p class="peullarg"><?php echo $dataobra; ?> </p>
<?php endif;?>
<?php $carrec = get_post_meta($post->ID, 'carrec', true);
if ($carrec) : ?>
<p class="peullarg"><?php echo $carrec; ?> </p>
<p class="curt"><?php echo get_post_meta($post->ID, 'telefon', true) ?> </p>
<p class="peullarg"><?php echo get_post_meta($post->ID, 'email', true) ?> </p>
<?php endif;?>
<?php the_content(); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'hangar' ), 'after' => '' ) ); ?>
<?php edit_post_link( __( 'Edit this page &rarr;', 'hangar' ), '', '' ); ?>
<?php // comments_template( '', true ); ?>
<?php endwhile; ?>
<!--<div id="navegacio" class="dins">
<p class="previous"><?php previous_post_link( '%link', '' . _x( '&larr; Previous Post', 'Previous post link', 'hangar' ) . '' ); ?></p>
<p class="next"><?php next_post_link( '%link', __('') . _x( 'Next Post &rarr;', 'Next post link', 'hangar' ) . '' ); ?></p>
</div>-->
</div>
<!--end Page-->
</div>
<!--end Content-->
<?php //get_sidebar('secondary'); ?>
</div>
<!--end Main-->
<?php get_footer(); ?>

122
hangar/phptest.php.backup Normal file
View File

@ -0,0 +1,122 @@
<?php
/*
Template Name: PHP Test Template
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<h2>Hangar Import Drupal -> Wordpress</h2>
<?php
//get post from Drupal
$USERNAME = "hangar-old";
$PASSWORD = "cONt31DVig";
$DBNAME = "hangar_old";
$wpdb_drupal = new wpdb($USERNAME, $PASSWORD, $DBNAME);
$wpdb_drupal->show_errors();
$sql = "SELECT * FROM node WHERE type='story' ORDER BY nid";
$nodes = $wpdb_drupal->get_results($sql);
//print_r($nids);
//echo count($nodes)."<br>";
$i=0;
foreach ($nodes as $node) {
//echo $nid->nid."<br>";
//get content of node
$sql2 = "SELECT * FROM node_revisions WHERE nid=".$node->nid;
$node_content = $wpdb_drupal->get_row($sql2);
//get language information
$sql3 = "SELECT * FROM localizernode WHERE nid=".$node->nid;
$node_lang = $wpdb_drupal->get_row($sql3);
if ($node->nid == $node_lang->pid){
//new base node -> create node object
$n = new stdClass;
$n->nid = $node->nid;
$n->date = date('Y-m-d H:i:s',$node->created);
$n->uid = $node->uid;
}
else {
//translated node: $node->nid == $node->pid;
$n = $langs[$node_lang->pid];
}
//get language version
switch ($node_lang->locale) {
case 'ca':
$n->title_ca = $node->title;
$n->teaser_ca = $node_content->teaser;
$n->body_ca = $node_content->body;
break;
case 'en':
$n->title_en = $node->title;
$n->teaser_en = $node_content->teaser;
$n->body_en = $node_content->body;
break;
case 'es':
$n->title_es = $node->title;
$n->teaser_es = $node_content->teaser;
$n->body_es = $node_content->body;
break;
}
//-> save in associative array
$langs[$n->nid] = $n;
//echo "new node:".$n->nid."<br>";
//echo "- [".$n->nid."] ".$n->title_ca." - created:".$n->date." - user:[".$n->uid."] <strong>[".$node_lang->locale.']</strong> '.$node_lang->pid.'<br>'.$n->teaser_ca.'<br>'; //.$n->body.'<br>';
//limit to few rows (for testing)
//$i++;
//if ($i == 500) break;
}
//print (or save) nodes
foreach ($langs as $node) {
if ($node->nid != ''){
echo "<strong>[".$node->nid."]</strong> - created:".$node->date." - user:[".$node->uid."]<br>";
echo "ca:".$node->title_ca."<br>"; //.$node->teaser_ca.'<br>';
echo "en:".$node->title_en."<br>"; //.$node->teaser_en.'<br>';
echo "es:".$node->title_es."<br>"; //.$node->teaser_es.'<br>'; //.$node->body_ca.'<br>';
$node->title = '<!--:ca-->'.$node->title_ca.'<!--:--><!--:en-->'.$node->title_en.'<!--:--><!--:es-->'.$node->title_es.'<!--:-->';
$node->teaser = '<!--:ca-->'.$node->teaser_ca.'<!--:--><!--:en-->'.$node->teaser_en.'<!--:--><!--:es-->'.$node->teaser_es.'<!--:-->';
$node->content = '<!--:ca-->'.$node->body_ca.'<!--:--><!--:en-->'.$node->body_en.'<!--:--><!--:es-->'.$node->body_es.'<!--:-->';
//replace image route
$node->teaser = str_replace("/drupal/sites/hangar.org/files", "http://hangar.org/webnou/wp-content/uploads/drupal", $node->teaser);
$node->teaser = str_replace('<img ', '<img class="attachment-thumbnail wp-post-image" width="100%" height="100%" ', $node->teaser);
$node->content = str_replace("/drupal/sites/hangar.org/files", "http://hangar.org/webnou/wp-content/uploads/drupal", $node->content);
//insert posts into wordpress
$post = array(
'comment_status' => 'closed', // 'closed' means no comments.
'ping_status' => 'closed', // 'closed' means pingbacks or trackbacks turned off
'post_author' => 11, //The user ID number of the author: 11=gerald
'post_category' => array(767), //Add some categories: 767=arxiu
'post_excerpt' => $node->teaser, //For all your post excerpt needs.
'post_date' => $node->date, //The time post was made.
'post_content' => $node->content, //The full text of the post.
'post_name' => $node->title_ca, // The name (slug) for your post
'post_status' => 'publish', //Set the status of the new post.
'post_title' => $node->title, //The title of your post.
'post_type' => 'post', //You may want to insert a regular post, page, etc.
'tags_input' => 'arxiu, drupal' //For tags.
);
//write to WP
//if ($node->nid == 1190 || $node->nid == 1293 || $node->nid == 1301)
//echo "SAVED WITH ID:".wp_insert_post($post)."<br><br>";
}
}
?>
</div>
<?php get_footer(); ?>

35
hangar/related-post.php Normal file
View File

@ -0,0 +1,35 @@
<?php $tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args=array(
'tag__in' => $tag_ids,
'post__not_in' => array($post->ID),
'showposts'=>3, // Number of related posts that will be shown.
'caller_get_posts'=>1
);
$my_query = new wp_query($args);
if( $my_query->have_posts() ) {
echo '<ul>';
while ($my_query->have_posts()) {
$my_query->the_post();
$tipus = 'catt';
include(TEMPLATEPATH . "/caixes.php");
}
}else {
echo '
<li>No hay contenidos relacionados';
}
echo '</li>
</ul>
';
}
wp_reset_query();
echo '</ul>';
?>

79
hangar/search.php Normal file
View File

@ -0,0 +1,79 @@
<?php get_header(); ?>
<div id="main">
<div id="content" class="resultats">
<div id="pagina" class="shadow">
<?php if ( have_posts() ) : ?>
<h2 class="archive"><?php echo $wp_query->found_posts; ?> <?php printf( __( 'Search Results for <strong>%s</strong>', 'hangar' ), '' . get_search_query() . '' ); ?></h2>
<?php // get_template_part( 'loop' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h3><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<p class="meta"><span><?php _e( 'Published on: ', 'hangar' ); the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/>
<?php else : ?>
<?php the_content( __( 'Continue Reading &rarr;', 'hangar' ) ); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'hangar' ), 'after' => '</div>' ) ); ?>
<p class="meta"><span><?php the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/><br/>
<?php endif; ?>
<?php if ( count( get_the_category() ) ) : ?>
<?php printf( __( 'Categories: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<?php printf( __( 'Tags: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
|
<?php endif; ?>
<!-- <?php comments_popup_link( __( 'Leave a comment', 'hangar' ), __( '1 comment', 'hangar' ), __( '% comments', 'hangar' ) ); ?>
<?php edit_post_link( __( 'Edit &rarr;', 'hangar' ), '| ', '' ); ?>--></p>
</div>
<!--end Post-->
<?php //comments_template( '', true ); ?>
<?php endwhile; // End the loop. ?>
<!--<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="navi" class="cleared">
<p class="previous"><?php next_posts_link( __( '&larr; Older posts', 'hangar' ) ); ?></p>
<p class="next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'hangar' ) ); ?></p>
</div>
<?php endif; ?>
-->
<?php else : ?>
<h2 class="archive"><strong><?php _e( 'No Search Result Found', 'hangar' ); ?></strong></h2>
<div class="post">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'hangar' ); ?></p>
</div>
<?php endif; ?>
</div>
<!--end Content-->
<?php // get_sidebar('secondary'); ?>
</div>
<!--end Main-->
<?php get_footer(); ?>

97
hangar/seccions.php Normal file
View File

@ -0,0 +1,97 @@
<?php
/**
* Template Name: Seccions
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header(); ?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="indexall tocada">
<!-- la primera caixa és la de títol i descripció de la pàgina pare i hi haurà resum del contingut de la pàgina -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry nofons"); ?>>
<div class="entry-content">
<h2 class="box index"><?php the_title(); ?></h2>
<?php if ( has_post_thumbnail() ) : // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('thumbnail'); ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else : ?>
<div class="contentcurt"><?php echo get_the_content_with_formatting(); ?></div>
<?php endif; ?>
<?php
/* echo '<div class="descseccio">';
global $more;
$more = 0;//The code must be inserted ahead of the call to the content
the_content('Continue Reading');
$more = true;
echo '</div>';*/ ?>
<!--<a href="<?php the_permalink(); ?>" class="peubox" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img alt="enllaç" src="<?php echo get_template_directory_uri() . '/images/fletxalink.png';?>" /></a>
-->
<?php // the_content( sprintf( __( 'Continue reading %1$s', 'hybrid' ), the_title( ' "', '"', false ) ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hangar' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<?php $pare = get_the_ID(); endwhile; ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
<!--ara els fills-->
<?php
$indexseccions = new WP_Query();
$indexseccions->query('posts_per_page=-1&post_type=page&orderby=menu_order&order=asc&post_parent=' . $pare );
?>
<?php if ($indexseccions->have_posts()) : ?>
<?php echo '<ul>'; $i = 0; while ($indexseccions->have_posts()) : $indexseccions->the_post(); $i++;
if ($pare == 2) : //artistes residents post=2
$tipus = 'art';
elseif ($pare == 46565) : //artistes residents estada curta post=46565
$tipus = 'art';
elseif ($pare == 46572) : //artistes amb beca post=46572
$tipus = 'art';
elseif ($pare == 136) : //desc+arregues post=136
$tipus = 'desc';
elseif ($pare == 74) : //equip post=74
$tipus = 'equip';
elseif ($pare == 40378) : //patronat post=40378
$tipus = 'equip';
else:
$tipus = 'pag';
endif;
?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; wp_reset_query(); ?>
</ul>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Main-->
<?php get_footer(); ?>

View File

@ -0,0 +1,36 @@
<?php
/**
* Columna de logo i men
*
* El logo, el men i la publicitat es troben en aquesta columna lateral esquera
*
*
*
*/
?>
<ul class="sidebar primera">
<?php
if ( function_exists('wp_nav_menu') ) : //en el caso de querer usar los menus de WP 3.0
/* wp_nav_menu(array('walker' => new my_Walker_Nav_Menu(),'menu' => 'Primer', container => false));
wp_nav_menu(array('walker' => new my_Walker_Nav_Menu(),'menu' => 'Segon', container => false));
wp_nav_menu(array('walker' => new my_Walker_Nav_Menu(),'menu' => 'Tercer', container => false));
wp_nav_menu(array('walker' => new my_Walker_Nav_Menu(),'menu' => 'Quart',container => false));
wp_nav_menu(array('walker' => new my_Walker_Nav_Menu(),'menu' => 'Canal', container => false)); */
endif;
?>
</ul>
<div >
</div>
<nav class="toogle-sidebar-segona">
<legend class="hide">menu</legend>
<input id="hide" class="hide-not-mobile toogle" name="toogle" type="radio">
<label for="show" class="toogle-show"><span class="hide">open</span></label>
<input id="show" class="hide-not-mobile toogle" name="toogle" type="radio">
<ul class="sidebar segona toogled-menu">
<label for="hide" class="toogle-hide"><span class="hide">close</span></label>
<?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
<?php endif; // end primary widget area ?>
</ul>
<!--end Sidebar -->
</nav>

View File

@ -0,0 +1,21 @@
<?php
/**
* The right, additional Sidebar containing the secondary widget areas (some default hard-coded widgets are included).
*/
?>
<div id="sidebar-secondary">
<?php if (!is_page(array(10,28,21))): ?>
<p id="sidebarr"><?php _e( 'Related items', 'hangar' );?></p> <!-- igual format i alçada que el breadcrumb -->
<?php include (TEMPLATEPATH . '/related-post.php'); ?>
<?php endif; // end is is page ?>
</div>
<!--end Sidebar Secondary-->

86
hangar/single.php Normal file
View File

@ -0,0 +1,86 @@
<?php get_header(); ?>
<div id="main">
<div id="content" class="unic">
<?php wp_breadcrumb();?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('shadow'); ?>>
<h2><?php the_title(); ?></h2>
<?php
// mirem si són blocs i mostres autor i data, però en el bloc d'hangar només data, no volen l'autor
if ( in_category( array('3', '4')) || post_is_in_descendant_category( array( '3', '4') ) ) : ?>
<p class="meta alignleft"><span><?php _e('By ','hangar') . the_author(); ?></span></p>
<p class="meta alignright"><span><?php _e('Posted on ','hangar') . the_time('d F Y'); ?></span></p>
<?php elseif ( in_category( array(30)) || post_is_in_descendant_category( array(30) ) ) : ?>
<p class="meta alignright"><span><?php _e('Posted on ','hangar') . the_time('d F Y'); ?></span></p>
<?php endif;
?>
<div class="clear"></div>
<?php the_content(); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'hangar' ), 'after' => '</div>' ) ); ?>
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
<div id="author-info" class="clearfix">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'ari_author_bio_avatar_size', 50 ) ); ?>
</div>
<div id="author-description">
<h2><?php printf( __( 'About <span>%s</span>', 'hangar' ), get_the_author() ); ?></h2>
<p><?php the_author_meta( 'description' ); ?></p>
</div>
</div><!-- end Author Info -->
<?php endif; ?>
<div class="peupost">
<?php if ( count( get_the_category() ) ) : ?>
<p class="peupostp alignleft"><?php printf( __( 'Categories: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<?php printf( __( 'Tags: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</p>
<?php endif; ?>
<?php // comments_popup_link( __( 'Leave a comment', 'hangar' ), __( '1 comment', 'hangar' ), __( '% comments', 'hangar' ) ); ?>
<p><?php edit_post_link( __( 'Edit &rarr;', 'hangar' ), '| ', '' ); ?></p>
</div>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<!--end Post-->
<div id="navegacio">
<p class="previous"><?php previous_post_link( '%link', '' . _x( '&larr; Previous Post', 'Previous post link', 'hangar' ) . '' ); ?></p>
<p class="next"><?php next_post_link( '%link', __('') . _x( 'Next Post &rarr;', 'Next post link', 'hangar' ) . '' ); ?></p>
</div>
</div>
<!--end Content-->
<?php //get_sidebar('secondary'); ?>
</div>
<!--end Main-->
<?php get_footer(); ?>

71
hangar/single_seccio.php Normal file
View File

@ -0,0 +1,71 @@
<?php
/**
* Template Name: Detall i index obres
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header(); ?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="unic mix">
<?php wp_breadcrumb();?>
<div id="pagina" class="shadow">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php if ( is_front_page() ) { ?>
<h2><?php the_title(); ?></h2>
<?php } else { ?>
<h2><?php the_title(); ?></h2>
<?php } ?>
<p class="resid">Periode de residència:<br/>
<?php echo get_post_meta($post->ID, 'autor_data_resid', true); ?>
</p>
<?php the_content(); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'hangar' ), 'after' => '' ) ); ?>
<?php edit_post_link( __( 'Edit this page &rarr;', 'hangar' ), '', '' ); ?>
<?php // comments_template( '', true ); ?>
<?php $pare = get_the_ID(); endwhile; ?>
<!--<div id="navegacio" class="dins">
<p class="previous"><?php previous_post_link( '%link', '' . _x( '&larr; Previous Post', 'Previous post link', 'hangar' ) . '' ); ?></p>
<p class="next"><?php next_post_link( '%link', __('') . _x( 'Next Post &rarr;', 'Next post link', 'hangar' ) . '' ); ?></p>
</div> -->
</div>
<!--end Page-->
<!--ara els fills-->
<?php
$indexseccions = new WP_Query();
$indexseccions->query('posts_per_page=-1&post_type=page&orderby=menu_order&order=asc&post_parent=' . $pare );
?>
<?php if ($indexseccions->have_posts()) : ?>
<?php echo '<ul>'; $i = 0; while ($indexseccions->have_posts()) : $indexseccions->the_post(); $i++;
$tipus = 'obra';
?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; wp_reset_query(); ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Main-->
<?php get_footer(); ?>

1290
hangar/style.css Normal file

File diff suppressed because it is too large Load Diff

83
hangar/tag.php Normal file
View File

@ -0,0 +1,83 @@
<?php get_header(); ?>
<div id="main">
<div id="content" class="resultats">
<div id="pagina" class="shadow">
<?php if ( have_posts() ) : ?>
<h2 class="archive"><?php
printf( __( 'Tag Archives: %s', 'hangar' ), '' . single_tag_title( '', false ) . '' );
?></h2>
<?php // get_template_part( 'loop' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h3><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<p class="meta"><span><?php _e( 'Published on: ', 'hangar' ); the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/>
<?php else : ?>
<?php the_content( __( 'Continue Reading &rarr;', 'hangar' ) ); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'hangar' ), 'after' => '</div>' ) ); ?>
<p class="meta"><span><?php the_time('d. F Y') ?> <?php _e( 'by', 'hangar' ); ?> <?php the_author() ?></span><br/><br/>
<?php endif; ?>
<?php if ( count( get_the_category() ) ) : ?>
<?php printf( __( 'Categories: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<?php printf( __( 'Tags: %2$s', 'hangar' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
|
<?php endif; ?>
<!-- <?php comments_popup_link( __( 'Leave a comment', 'hangar' ), __( '1 comment', 'hangar' ), __( '% comments', 'hangar' ) ); ?>
<?php edit_post_link( __( 'Edit &rarr;', 'hangar' ), '| ', '' ); ?>--></p>
</div>
<!--end Post-->
<?php //comments_template( '', true ); ?>
<?php endwhile; // End the loop. ?>
<?php wp_pagenavi(); /* kriesi_pagination();*/?>
<!--<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="navi" class="cleared">
<p class="previous"><?php next_posts_link( __( '&larr; Older posts', 'hangar' ) ); ?></p>
<p class="next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'hangar' ) ); ?></p>
</div>
<?php endif; ?>
-->
<?php else : ?>
<h2 class="archive"><strong><?php _e( 'No Search Result Found', 'hangar' ); ?></strong></h2>
<div class="post">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'hangar' ); ?></p>ppoiopiopio
</div>
<?php endif; ?>
</div>
<!--end Content-->
<?php // get_sidebar('secondary'); ?>
</div>
<!--end Main-->
<?php get_footer(); ?>

40
hangar/taxonomy.php Normal file
View File

@ -0,0 +1,40 @@
<?php
get_header();
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
?>
<div id="main">
<div id="content" class="seccio unic">
<div id="pagina" class="shadow">
<h2><?php printf( __( 'Artists by year %s', 'hangar' ), '<span>' . $term->name . '</span>' ); ?></h2>
<?php
/* if ( ! have_posts() ) : while ( have_posts() ) : the_post();
$the_query ='post_parent=497&post_type=page&meta_key=autor_obra&orderby=meta_value&order=ASC';
$query_object = new WP_Query($the_query);*/?>
<ul id="artistes" class="alfa">
<?php if (have_posts() ) : while(have_posts() ) : the_post(); ?>
<li>
<a href="<?php echo get_permalink();?>"><?php echo get_post_meta($post->ID, 'autor_obra', true);?></a>
</li>
<?php endwhile;
else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .pagina -->
</div><!-- .content -->
</div><!--end Main-->
<?php get_footer(); ?>