diff --git a/changelog.txt b/changelog.txt index 339d1b4..e2abdeb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,13 @@ Changelog ----------------------------------- version:1.14 - Modified - + Changes For WordPress4.5 + Support Custom Logo + Added + Template sidebar-1.php + Remove + enough_dinamic_sidebar() + enough_the_footer() + enough_get_header() ---------------------------------------------- Changelog ----------------------------------- version:1.13 diff --git a/functions.php b/functions.php index 450af47..f9bec99 100644 --- a/functions.php +++ b/functions.php @@ -18,7 +18,7 @@ /** * enough Gallery Presentation * value false shows WordPress Standard Gallery Style. - * + * */ if( ! isset( $enough_extend_galleries ) ) { @@ -36,7 +36,7 @@ $enough_show_insert_point = false; if ( function_exists( 'the_custom_logo' ) ) { -/* for WordPress 4.5 */ +/* for WordPress 4.5 */ add_image_size( 'raindrops-logo', 1200, 120 ); add_theme_support( 'custom-logo', array( 'size' => 'raindrops-logo' ) ); } @@ -148,7 +148,7 @@ ), ); function enough_post_content_width_validate( $input ) { - + if( is_numeric( $input ) && $input > 49 && $input < 101 ) { return $input; } @@ -159,7 +159,7 @@ function enough_enable_post_formats_validate( $input ) { $formats = array( 'aside','chat','gallery','link','image','quote','status','video','audio'); foreach( $formats as $format ){ - + if( in_array( $format , $input ) ) { return $input; } @@ -438,9 +438,9 @@ function enough_theme_setup() { add_filter( 'embed_oembed_html', 'enough_oembed_filter', 99, 4 ); add_action( 'wp_enqueue_scripts', 'enough_load_small_device_helper' ); - + add_theme_support( 'title-tag' ); - + if ( ! function_exists( '_wp_render_title_tag' ) ) { /** * WordPress4.1 Backwards compatibility @@ -484,7 +484,7 @@ function enough_render_title() { add_theme_support( 'custom-header', $args_custom_header ); /** * Add for WordPress 4.1 - * + * * @since 1.260 */ register_default_headers( array( @@ -592,11 +592,11 @@ function enough_embed_meta() { background-size:cover; } $header_style \n"; - + $enough_content_width = enough_theme_option( 'enough_post_content_width' ); - + if( isset( $enough_content_width ) ) { - $style .= "\n".'.enough-1col-post article{width:'. $enough_content_width. '%;margin:auto;float:none;}'."\n"; + $style .= "\n".'.enough-1col-post article{width:'. $enough_content_width. '%;margin:auto;float:none;}'."\n"; } $style .= ''; @@ -885,7 +885,7 @@ function enough_posted_in( $diaplay = true ) { ?>
  • ID ); @@ -894,22 +894,22 @@ function enough_posted_in( $diaplay = true ) { $dummy_div_count = 0; $i = 1; foreach ( $categories as $category ) { - + $initial = mb_substr( $category->name ,0 ,1 ); - + if( mb_strtolower( $initial_compare ) == mb_strtolower( $initial ) ) { $initial_class = 'initial-category initial-'. $initial; }else{ $initial_class = 'initial-category first initial-'. $initial; - + } - - $category_name = ''.$initial.''; + + $category_name = ''.$initial.''; $category_name .= mb_substr( $category->name,1 ); - - - printf( $html, get_category_link( $category->term_id ), sprintf( __( "View all posts in %s", 'enough' ), $category->name ), $category_name + + + printf( $html, get_category_link( $category->term_id ), sprintf( __( "View all posts in %s", 'enough' ), $category->name ), $category_name , 'category-'.$category->term_id. ' '. $initial_class ); $initial_compare = $initial; $i++; @@ -931,8 +931,8 @@ function enough_posted_in( $diaplay = true ) { ?>