anorgatarrak-wordpress-theme/index.php

78 lines
2.6 KiB
PHP

<?php get_header(); ?>
<!-- Primary navbar -->
<nav class="an-navbar navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<?php //dynamic_sidebar( 'sidebar-anorgatarrak-1' ); ?>
<div class="visible-xs-block"> <an-language></an-language> </div>
<a class="navbar-brand anorgatarrak" href="/">Añorgatarrak</a>
<!--<ul class="nav navbar-nav">
<li><a href="#">ES</a></li>
<li><a href="#">EU</a></li>
</ul>-->
</div>
<?php wp_nav_menu(
array(
'theme_location' => 'header-menu-anorgatarrak',
'container' => 'div',
//'container_class' => 'header-menu-anorgatarrak',
'container_class' => 'an-navbar-collapse',
'container_id' => 'an-navbar-collapse',
'menu_class' => 'nav navbar-nav navbar-right',
) );
?>
</div>
</nav>
<!-- Content -->
<!-- Home -->
<div ng-show="loading" style="overflow:hidden;width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,0.8);z-index:300;">
<h1 style="position:absolute;top:50%;left:50%;"></h1>
</div>
<header>
<div class="container-fluid main">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#!/">Inicio</a></li>
<li class="breadcrumb-item"><a href="#!/catalog">Entrevistas</a></li>
<li class="breadcrumb-item active">Entrevista a Kontxi y María Dolores Elizegi</li>
</ol>
<div class="hidden-xs" style="float:right;margin-right:30px;position:absolute;z-index:100;right:30px;">
<an-language></an-language>
</div>
<div ng-view style="padding-bottom:0px;"></div>
<!-- Progressbar content -->
<div class="progress" style="">
<div class="progress-bar an-progress-bar" role="progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
</div>
</header>
<!-- front-page -->
<div class="container" style="padding:30px 0;" ng-hide>
<div class="row">
<?php
$args = array (
'sort_column' => 'menu_order',
'number' => 3,
);
$pages = get_pages($args);
foreach ($pages as $page) :
?>
<?php //print_r($page); ?>
<div class="col-md-4">
<a href="<?php echo get_permalink($page->ID);?>">
<div class="row" style="margin:0px 2px 20px; background-size:cover;height:200px;background-image:url('<?php echo get_the_post_thumbnail_url($page->ID); ?>');">
<div class="col-md-12" style="background-color:rgba(0,0,0,0.8);">
<h2><?php echo $page->post_title; ?></h2>
</div>
</div>
</a>
<?php echo $page->post_excerpt; ?>
</div>
<?php endforeach; ?>
</div> <!-- row -->
</div><!-- container -->
<?php //endif; ?>
<?php get_footer(); ?>