removing empty spaces
This commit is contained in:
parent
6bd57dd4ca
commit
c01f07b4ae
|
@ -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 ) {
|
||||||
|
|
|
@ -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' );
|
||||||
|
|
|
@ -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 ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,10 +66,10 @@ if ( ! function_exists( 'change_logo_class' ) ) {
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function change_logo_class( $html ) {
|
function change_logo_class( $html ) {
|
||||||
|
|
||||||
$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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,10 +84,10 @@ 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";
|
||||||
}
|
}
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Reference in New Issue