notes

Links sobre les galeries de nextgen

 

http://www.nextgen-gallery.com/nextgen-gallery-templates/
http://www.nextgen-gallery.com/help/shortcodes/

http://www.ostraining.com/blog/wordpress/nextgen/

 

per insertar una galeria

 

per insertar una galeria amb caption

 

Per posar un slideshare

 

 

Per crear un widget a la capçalera
copiar aquesta funció al arxiu de funcions
add_action(‘widgets_init’,’header_widgets_init’);

function header_widgets_init(){
$args = array(
‘name’          => ‘Header Widget Zone’,
‘id’            => ‘header-widget’,
‘description’   => »,
‘before_widget’ => ‘<div>’,
‘after_widget’  => ‘</div>’,
‘before_title’  => ‘<h2>’,
‘after_title’   => ‘</h2>’ );
register_sidebar($args);
}

 

 http://www.jose-aguilar.com/blog/crear-zona-de-widgets-para-anadir-plugins/

 

 

<!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 profile=»http://gmpg.org/xfn/11″>
<meta http-equiv=»Content-Type» content=»<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>» />
<title><?php arras_document_title() ?></title>
<?php arras_document_description() ?>

<?php if ( is_search() || is_author() ) : ?>
<meta name=»robots» content=»noindex, nofollow» />
<?php endif ?>

<link rel=»pingback» href=»<?php bloginfo(‘pingback_url’); ?>» />

<?php if ( !file_exists(ABSPATH . ‘favicon.ico’) ) : ?>
<link rel=»shortcut icon» href=»<?php echo get_template_directory_uri() ?>/images/favicon.ico» />
<?php else: ?>
<link rel=»shortcut icon» href=»<?php echo home_url() ?>/favicon.ico» />
<?php endif; ?>

<meta name=»viewport» content=»width=1000″ />

<?php
wp_enqueue_script( ‘superfish’, get_template_directory_uri() . ‘/js/superfish/superfish.js’, array( ‘jquery’ ), ‘2011-12-01’ );
wp_enqueue_script( ‘hoverIntent’, get_template_directory_uri() . ‘/js/superfish/hoverIntent.js’, array( ‘jquery’ ), ‘2011-12-01’ );

if ( is_singular() ) {
wp_enqueue_script(‘comment-reply’);
wp_enqueue_script(‘jquery-validate’, get_template_directory_uri() . ‘/js/jquery.validate.min.js’, array( ‘jquery’ ), null, false);
}

?>

<?php wp_head(); ?>
</head>

<body <?php arras_body_class() ?>>
<script type=»text/javascript»>
//<![CDATA[
(function(){
var c = document.body.className;
c = c.replace(/no-js/, ‘js’);
document.body.className = c;
})();
//]]>
</script>
<?php arras_body() ?>

<div id=»top-menu» class=»clearfix»>
<?php arras_above_top_menu() ?>
<?php
if ( function_exists(‘wp_nav_menu’) ) {
wp_nav_menu( array(
‘sort_column’ => ‘menu_order’,
‘menu_class’ => ‘sf-menu menu clearfix’,
‘theme_location’ => ‘top-menu’,
‘container_id’ => ‘top-menu-content’,
‘fallback_cb’ => »
) );
}
?>
<?php arras_below_top_menu() ?>
</div><!– #top-menu –>

<div id=»header»>
<div id=»branding» class=»clearfix»>
<div class=»logo»>
<?php if ( is_home() || is_front_page() ) : ?>
<h1 class=»blog-name»><a href=»<?php echo home_url(); ?>»><?php bloginfo(‘name’); ?></a></h1>
<h2 class=»blog-description»><?php bloginfo(‘description’); ?></h2>
<?php else: ?>
<span class=»blog-name»><a href=»<?php echo home_url(); ?>»><?php bloginfo(‘name’); ?></a></span>
<span class=»blog-description»><?php bloginfo(‘description’); ?></span>
<?php endif ?>

<?php if (function_exists (horizontal_scrolling_announcement)) horizontal_scrolling_announcement(); ?>

</div>

<div id=»contenedor»>
<div id=»contenidos»>
<div id=»secundario»>
<?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
<a href=»<?php echo esc_url( home_url( ‘/’ ) ); ?>»><img src=»<?php echo esc_url( $header_image ); ?>» class=»header-image» width=»<?php echo get_custom_header()->width; ?>» height=»<?php echo get_custom_header()->height; ?>» alt=»» /></a>
<?php endif; ?>
</div>
<div id=»principal»>
</div>
<div id=»lateral»>
<?php if (!dynamic_sidebar(‘header-widget’)) {} ?>
</div>
</div>
</div>

<div id=»searchbar»><?php get_search_form() ?></div>
</div><!– #branding –>
</div><!– #header –>

<?php arras_above_nav() ?>
<div id=»nav»>
<div id=»nav-content» class=»clearfix»>
<?php
if ( function_exists(‘wp_nav_menu’) ) {
wp_nav_menu( array(
‘sort_column’ => ‘menu_order’,
‘menu_class’ => ‘sf-menu menu clearfix’,
‘theme_location’ => ‘main-menu’,
‘fallback_cb’ => ‘arras_nav_fallback_cb’
) );
}
arras_beside_nav();
?>
</div><!– #nav-content –>
</div><!– #nav –>
<?php arras_below_nav() ?>

<div id=»wrapper»>

<?php arras_above_main() ?>

<div id=»main» class=»clearfix»>
<div id=»container» class=»clearfix»>

 

 

 

http://redajo.com/blog/nextgen-gallery-el-mejor-plugin-de-wordpress-para-hacer-galerias-de-imagenes/

 

 

Copyright Tate Cabré. Tots els drets reservats.mobil669.481.486 fixe 93 125 50 99emailtate@tatecabre.com