Asier Gogortza Theme for Wordpress 4.7

Based on no-header
This commit is contained in:
Luca 2016-12-19 22:57:15 +01:00
commit 888d8403f3
9 changed files with 315 additions and 0 deletions

6
css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

39
footer.php Normal file
View File

@ -0,0 +1,39 @@
<div class="afooter">
<div class="container">
<div class="sidebar-box">
<!--widgets-->
<div class="row">
<div class="sidebar-footer1 span2">
<?php dynamic_sidebar( 'sidebar-footer1' ); ?>
</div>
<div class="sidebar-footer2 span2">
<?php dynamic_sidebar( 'sidebar-footer2' ); ?>
</div>
</div>
</div>
</div>
</div>
<div class="afooter2">
<div class="footer">
<div class="row">
<div class="sidebar-footer3 span2">
<?php dynamic_sidebar( 'sidebar-footer3' ); ?>
</div>
</div>
<div class="mlogo">
<div class="sidebar-user2 span2">Asier Gogortza. All right reserved
</div>
</div>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>

53
frontpage.php Normal file
View File

@ -0,0 +1,53 @@
<?php
/**
* Template Name: Frontpage grid posts
*
*/
?>
<?php get_header(); ?>
<!-- header -->
<div class="row">
<div class="col-md-4">
<div class="sidebar-right1 span2">
<div class="head">
<?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h4 class="site-description"><?php bloginfo( 'description' ); ?></h4>
</div>
<?php dynamic_sidebar( 'sidebar-left' ); ?>
</div>
</div>
<div class="col-md-8">
<div class=row">
<?php
$args = array( 'posts_per_page' => -1, 'category' => 10 );
$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post );?>
<?php if (has_post_thumbnail()): ?>
<div class="col-md-12" style="padding:0;">
<a href="<?php the_permalink(); ?>"><div class="img-grid-link" style="background-size:cover; width:100%; height:200px; background-image:url('<?php the_post_thumbnail_url('medium'); ?>')"></div></a>
</div>
<?php endif; ?>
<?php endforeach; wp_reset_postdata();?>
</div> <!--endrow-->
<!--content-->
<div class="row">
<div class="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post-main">
<div class="post">
<?php the_content(); ?>
<?php wp_link_pages( $args ); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>

22
functions.php Normal file
View File

@ -0,0 +1,22 @@
<?php
function asierg_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'asierg-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
function asierg_add_bootstrap() {
wp_enqueue_style('bootstrap-css', get_stylesheet_directory_uri().'/css/bootstrap.min.css');
wp_enqueue_style( 'style-css', get_stylesheet_directory_uri() . '/style.css' );
wp_enqueue_script( 'bootstrap-js', get_stylesheet_directory_uri() . '/js/bootstrap.min.js', array(), '3.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'asierg_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'asierg_add_bootstrap' );
?>

38
index.php Normal file
View File

@ -0,0 +1,38 @@
<?php
/**
* Template Name: Frontpage grid posts
*
*/
?>
<?php get_header(); ?>
<!-- header -->
<div class="row">
<div class="col-md-4">
<div class="sidebar-right1 span2">
<div class="head">
<?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h4 class="site-description"><?php bloginfo( 'description' ); ?></h4>
</div>
<?php dynamic_sidebar( 'sidebar-left' ); ?>
</div>
</div>
<div class="col-md-8">
<div class=row">
<?php
$args = array( 'posts_per_page' => -1, 'category' => 10 );
$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post );?>
<?php if (has_post_thumbnail()): ?>
<div class="col-md-12" style="padding:0; margin-bottom:20px;">
<a href="<?php the_permalink(); ?>"><div class="img-grid-link" style="background-size:cover; width:100%; height:200px; background-image:url('<?php the_post_thumbnail_url('medium'); ?>')"></div></a>
</div>
<?php endif; ?>
<?php endforeach; wp_reset_postdata();?>
</div> <!--endrow-->
<!--content-->
</div> <!--endcolmd8-->
</div><!--endrow-->
<?php get_footer(); ?>

7
js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

41
page.php Normal file
View File

@ -0,0 +1,41 @@
<?php
/**
* Template Name: Frontpage grid posts
*
*/
?>
<?php get_header(); ?>
<!-- header -->
<div class="row">
<div class="col-md-4">
<div class="sidebar-right1 span2">
<div class="head">
<?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h4 class="site-description"><?php bloginfo( 'description' ); ?></h4>
</div>
<?php dynamic_sidebar( 'sidebar-left' ); ?>
</div>
</div>
<div class="col-md-8">
<!--content-->
<div class="row">
<div class="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post-main">
<div class="post">
<?php the_content(); ?>
<?php wp_link_pages( $args ); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>

35
single.php Normal file
View File

@ -0,0 +1,35 @@
<?php get_header(); ?>
<div class="row">
<div class="col-md-4">
<div class="sidebar-right1 span2">
<div class="head">
<?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h4 class="site-description"><?php bloginfo( 'description' ); ?></h4>
</div>
<?php dynamic_sidebar( 'sidebar-left' ); ?>
</div>
</div>
<div class="col-md-8">
<div class="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post-main">
<h1><?php the_title(); ?></h1>
<div class="post">
<?php the_content(); ?>
<?php wp_link_pages( $args ); ?>
<span class="nav-previous hidden"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'noheader' ) . '</span> %title' ); ?></span>
<span class="nav-next hidden"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'noheader' ) . '</span>' ); ?></span>
<?php //comments_template(); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>

74
style.css Normal file
View File

@ -0,0 +1,74 @@
/*
Theme Name: Asier Gogortza
Description: Asier Gogortza Wordpress theme
Author: Luca Rullo
Template: no-header
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, two-columns, left-sidebar, responsive-layout, accessibility-ready
Text Domain: asierg
*/
body {
font-family:roboto,Helvetica,Arial,sans-serif;
}
a { text-decoration:none;}
/* footer */
.afooter,
.afooter2 {
border:0;
}
/*sidebar-right1*/
.sidebar-right1 .site-title {
font-family: old-standard, serif;
}
.sidebar-user2 {
font-size:0.7em;
}
.sidebar-right1 .head {
padding-bottom:20px;
margin-bottom:20px;
border-bottom:1px dashed #000;
}
.sidebar-right1 a:hover,
.sidebar-right1 .head h1 a:hover { color:#333;}
h2 {font-weight:800 !important;}
input { border: 1px solid #ccc; }
textarea { border: 1px solid #ccc; }
.sidebar-right1 .widgettitle { border:0; font-size:1.2em; }
.sidebar-righ1 .menu > li a:hover,
.sidebar-right1 .widget_nav_menu a:hover,
.sidebar-right1 .widget_meta a:hover {
color:#333;
margin:0;
transition:none;
-ms-transition:none;
-o-transition:none;
-moz-transition:none;
-webkit-transition:none;
}
.sidebar-right1 .widget_nav_menu li { padding:0; }
/*post content*/
#gallery-1 img {
border:0 !important;
}
.gallery .gallery-item img, .gallery .gallery-item img.thumbnail { padding:0 !important;}
dt {padding:0 !important;}