Updates
This commit is contained in:
parent
05c8670de0
commit
194fc42be3
|
@ -35,6 +35,14 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
a[href^="tel"]{
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: inherit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Rulers
|
||||
|
|
|
@ -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']); ?>
|
||||
© <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -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,21 +55,22 @@ function barebones_remove_comments_rss( $for_comments )
|
|||
add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' );
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* jQuery the right way
|
||||
*/
|
||||
|
||||
function barebones_scripts()
|
||||
{
|
||||
/*
|
||||
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
||||
*/
|
||||
// wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' );
|
||||
// wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' );
|
||||
wp_deregister_script( 'jquery' );
|
||||
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js', false, '2.1.4', true );
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/script.min.js', ['jquery'], null, true );
|
||||
/*
|
||||
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
||||
*/
|
||||
// wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' );
|
||||
// wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' );
|
||||
wp_deregister_script( 'jquery' );
|
||||
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js', false, '2.1.4', true );
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/script.min.js', ['jquery'], null, true );
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'barebones_scripts' );
|
||||
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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' ) ); ?>
|
||||
|
|
Loading…
Reference in New Issue