<?php

global $wpdb;

/**
 * Template Name: Vista Ayuda
 * Description: Vista Ayuda
 **/

get_header("home");

switch ( $_COOKIE['LANG'] ) {
    case 'en':
        $lang = 'en_US';
    break;

    case 'eu':
        $lang = 'eu_ES';
    break;

    default:
        $lang = 'es_ES';
    break;
}

?>
<style>
.entry-img {
    width: 300px;
}
.entry-contenidos {
    width: 460px;
    float: left;
}
.entry-titulo {
    width: 200px;
    float: left;
    margin-left: 38px;
}

.entry-bloque{
    width: 100%;
    height: 10px;
    clear: both;
}
.view-page-title{
    margin-left: 238px;
}
</style>

<div id="intro-container">
    <div id="header">
        <h1 id="logo">
            <a href="<?php echo site_url()?>" title="<?php _e( 'Home', 'buddypress' ) ?>">
                <img src="<?php echo get_stylesheet_directory_uri() ?>/_inc/images/Home/logo_KronikoenSarea.png" alt="Logo" />
            </a>
        </h1>
        
        <div class="iron-slogan">
            <?php echo iron_slogan_home($_COOKIE['LANG']); ?>
        </div>
        
        <div id="iron-social">
            
            <a href="https://twitter.com/kronikoensarea" title="Twitter">
                <img src="<?php echo get_stylesheet_directory_uri() ?>/_inc/images/Home/twitter_off.png" alt="Twitter" />
            </a>

            <a class="facebook" href="https://facebook.com/kronikoensarea" title="Facebook">
                <img src="<?php echo get_stylesheet_directory_uri() ?>/_inc/images/Home/facebook_off.png" alt="Facebook" />
            </a>
            <a class="facebook" href="http://www.flickr.com/photos/kronikoensarea" title="Flickr">
                <img src="<?php echo get_stylesheet_directory_uri() ?>/_inc/images/Home/flickr.png" alt="Flickr" />
            </a>
        </div>
    </div>
    
    <div class="iron-lang">
        <a href="<?php echo site_url(); ?>?lang=es">Castellano</a>
        &nbsp;|&nbsp;
        <a href="<?php echo site_url(); ?>?lang=eu">Euskera</a>
    </div>

    <iframe src="https://www.facebook.com/plugins/like.php?locale=<?php echo $lang ?>&href=<?php echo get_permalink() ?>"scrolling="no" frameborder="0" style="border:none; width:266px; height:28px; float: right; margin: 15px 25px 0 0;">
    </iframe>
    
    <div id="content" style="width: 100%; margin: 0;">
        <h2 class="view-page-title"><?php echo the_title(); ?></h2>
        <div class="padder">
            <div class="page" id="blog-page">
                <div class="post" id="post-<?php the_ID(); ?>">
                    <div class="entry">
                        <?php
                            the_post(); 
                            
                            the_content();
                        ?>
                    </div>
                </div> <!-- .post -->
            </div> <!-- .page -->
        </div><!-- .padder -->
    </div><!-- #content -->
</div>

<?php get_footer('home'); ?>