Skip to content

Commit

Permalink
Update to Bootstrap v4.1.3 in package-lock.json
Browse files Browse the repository at this point in the history
See #16
  • Loading branch information
salcode committed Oct 22, 2018
1 parent b29b672 commit 169a01c
Show file tree
Hide file tree
Showing 10 changed files with 1,055 additions and 3 deletions.
10 changes: 10 additions & 0 deletions includes/image-display-archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Move Featured Image on archive pages from
* content to header.
*
* @package bootstrap4genesis
*/

remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 );
28 changes: 28 additions & 0 deletions includes/image-display-single.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Display Featured Image on single posts (pages, and custom post types).
*
* @package bootstrap4genesis
*/
add_action( 'genesis_entry_header', 'bs4g_single_featured_image', 5 );

/**
* Output Featured Image on single post (pages, and custom post types).
*/
function bs4g_single_featured_image() {
if ( ! is_singular() ) {
return;
}

if ( ! has_post_thumbnail() ) {
return;
}

the_post_thumbnail(
'post-thumbnail',
array(
'class' => 'img-fluid attachment-post-thumbnail size-post-thumbnail',
)
);

}
11 changes: 11 additions & 0 deletions includes/image-sizes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Image Sizes.
*
* @package bootstrap4genesis
*/

/**
* Set Featured Image size.
*/
set_post_thumbnail_size( 1170, 630, true );
8 changes: 8 additions & 0 deletions includes/mv-sidebar-secondary-inside-content-sidebar-wrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
/**
* Move sidebar-secondary inside content-sidebar-wrap.
*
* @package bootstrap4genesis
*/
remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt' );
add_action( 'genesis_after_content', 'genesis_get_sidebar_alt' );
11 changes: 11 additions & 0 deletions includes/nav-move-inside-navbar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Move Nav inside Navbar.
*
* Move Primary nav from default position,
* into navbar (.site-header).
* @package bootstrap4genesis
*/

remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_header', 'genesis_do_nav' );
13 changes: 13 additions & 0 deletions includes/remove-superfish-javascript.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* Remove unused Superfish JavaScript.
*
* @package bootstrap4genesis
*/

add_action( 'wp_enqueue_scripts', 'bs4g_remove_unused_js', 100 );

function bs4g_remove_unused_js() {
wp_dequeue_script( 'superfish' );
wp_dequeue_script( 'superfish-args' );
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 169a01c

Please sign in to comment.