This commit is contained in:
Pedro Reis 2015-10-19 11:54:53 +01:00
parent 05c8670de0
commit 194fc42be3
4 changed files with 29 additions and 18 deletions

View File

@ -35,6 +35,14 @@ a {
}
}
a[href^="tel"]{
color: inherit;
text-decoration: none;
font-family: inherit;
font-size: inherit;
font-style: inherit;
}
/**
* Rulers

View File

@ -1,6 +1,6 @@
<footer class="footer" role="contentinfo">
<div class="container">
<?php wp_nav_menu(['theme_location' => 'footer' ]); ?>
<?php wp_nav_menu(['theme_location' => 'footer']); ?>
&copy; <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?>
</div>
</footer>

View File

@ -4,7 +4,8 @@
* Custom functions / External files
*/
require get_template_directory() . '/functions/example.php';
require_once 'functions/example.php';
/**
@ -18,14 +19,15 @@ if ( function_exists( 'add_theme_support' ) )
add_image_size( 'custom-size', 700, 200, true );
// Add Support for post formats
add_theme_support( 'post-formats', ['post'] );
add_post_type_support( 'page', 'excerpt' );
// add_theme_support( 'post-formats', ['post'] );
// add_post_type_support( 'page', 'excerpt' );
// Localisation Support
load_theme_textdomain( 'barebones', get_template_directory() . '/languages' );
}
/**
* Remove junk
*/
@ -53,6 +55,7 @@ function barebones_remove_comments_rss( $for_comments )
add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' );
/**
* jQuery the right way
*/
@ -175,7 +178,7 @@ add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
* Get image URL for whatever size.
*/
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [])
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [] )
{
$image = wp_get_attachment_image_src( $id, $size, $attrs );

View File

@ -7,10 +7,10 @@
<article <?php post_class(); ?>>
<header role="heading">
<h3 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
<header class="post__header" role="heading">
<h3 class="post__header__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post__header__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
<p class="post__header__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
<?php the_content( __( 'Read More' ) ); ?>