removing empty spaces

This commit is contained in:
koenemann 2017-01-27 14:26:46 +01:00
parent 6bd57dd4ca
commit c01f07b4ae
5 changed files with 8 additions and 14 deletions

View File

@ -1,22 +1,19 @@
<?php <?php
/** /**
* Understrap modify editor * Understrap modify editor
* *
* @package understrap * @package understrap
*/ */
/** /**
* Registers an editor stylesheet for the theme. * Registers an editor stylesheet for the theme.
*/ */
function wpdocs_theme_add_editor_styles() { function wpdocs_theme_add_editor_styles() {
add_editor_style( 'css/custom-editor-style.css' ); add_editor_style( 'css/custom-editor-style.css' );
} }
add_action( 'admin_init', 'wpdocs_theme_add_editor_styles' ); add_action( 'admin_init', 'wpdocs_theme_add_editor_styles' );
// Add TinyMCE style formats.
// Add TinyMCE style formats
add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' ); add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' );
function understrap_tiny_mce_style_formats( $styles ) { function understrap_tiny_mce_style_formats( $styles ) {

View File

@ -10,7 +10,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
* Load theme's JavaScript sources. * Load theme's JavaScript sources.
*/ */
function understrap_scripts() { function understrap_scripts() {
// Get the theme data // Get the theme data.
$the_theme = wp_get_theme(); $the_theme = wp_get_theme();
wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ) ); wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ) );
wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery' );

View File

@ -44,7 +44,7 @@ if ( ! function_exists( 'adjust_body_class' ) ) {
function adjust_body_class( $classes ) { function adjust_body_class( $classes ) {
foreach ( $classes as $key => $value ) { foreach ( $classes as $key => $value ) {
if ( 'tag' == $value) { if ( 'tag' == $value ) {
unset( $classes[ $key ] ); unset( $classes[ $key ] );
} }
} }
@ -69,7 +69,7 @@ if ( ! function_exists( 'change_logo_class' ) ) {
$html = str_replace( 'class="custom-logo"', 'class="img-responsive"', $html ); $html = str_replace( 'class="custom-logo"', 'class="img-responsive"', $html );
$html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html ); $html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html );
$html = str_replace('alt=""', 'title="Home" alt="logo"' , $html ); $html = str_replace( 'alt=""', 'title="Home" alt="logo"' , $html );
return $html; return $html;
} }

View File

@ -5,8 +5,6 @@
* @package understrap * @package understrap
*/ */
// Comments form.
/** /**
* Custom Pagination with numbers * Custom Pagination with numbers
* Credits to http://www.wpbeginner.com/wp-themes/how-to-add-numeric-pagination-in-your-wordpress-theme/ * Credits to http://www.wpbeginner.com/wp-themes/how-to-add-numeric-pagination-in-your-wordpress-theme/
@ -86,7 +84,7 @@ function understrap_pagination() {
$class = $paged == $max ? ' class="active "' : ' class="page-item"'; $class = $paged == $max ? ' class="active "' : ' class="page-item"';
printf( '<li %s><a class="page-link" href="%s" aria-label="Next"><span aria-hidden="true"><i class="fa fa-step-forward" aria-hidden="true"></i></span><span class="sr-only">%s</span></a></li>' . "\n", printf( '<li %s><a class="page-link" href="%s" aria-label="Next"><span aria-hidden="true"><i class="fa fa-step-forward" aria-hidden="true"></i></span><span class="sr-only">%s</span></a></li>' . "\n",
$class . '', esc_url( get_pagenum_link( esc_html( $max ) ) ), esc_html($max ) ); $class . '', esc_url( get_pagenum_link( esc_html( $max ) ) ), esc_html( $max ) );
} }
echo '</ul></nav>' . "\n"; echo '</ul></nav>' . "\n";

View File

@ -7,7 +7,6 @@
* @package understrap * @package understrap
*/ */
if ( ! function_exists( 'understrap_posted_on' ) ) : if ( ! function_exists( 'understrap_posted_on' ) ) :
/** /**
* Prints HTML with meta information for the current post-date/time and author. * Prints HTML with meta information for the current post-date/time and author.