Skip to content

Commit

Permalink
modified: changelog.txt
Browse files Browse the repository at this point in the history
	modified:   functions.php
  • Loading branch information
tenman committed Mar 31, 2016
1 parent 274bf79 commit 38f7c33
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 65 deletions.
10 changes: 8 additions & 2 deletions 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
Expand Down
126 changes: 63 additions & 63 deletions functions.php
Expand Up @@ -18,7 +18,7 @@
/**
* enough Gallery Presentation
* value false shows WordPress Standard Gallery Style.
*
*
*/
if( ! isset( $enough_extend_galleries ) ) {

Expand All @@ -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' ) );
}
Expand Down Expand Up @@ -148,7 +148,7 @@
),
);
function enough_post_content_width_validate( $input ) {

if( is_numeric( $input ) && $input > 49 && $input < 101 ) {
return $input;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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 .= '</style>';

Expand Down Expand Up @@ -885,7 +885,7 @@ function enough_posted_in( $diaplay = true ) {
?>
<li class="toggle-category toggle-title"><span class="nav-text"><?php _e( 'Categories:', 'enough' ); ?></span></li>
<li class="toggle-category"> <?php


$categories = get_the_category( $post->ID );

Expand All @@ -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 = '<span>'.$initial.'</span>';

$category_name = '<span>'.$initial.'</span>';
$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++;
Expand All @@ -931,8 +931,8 @@ function enough_posted_in( $diaplay = true ) {
?>
<ul>
<li class="toggle-tag toggle-title"><span class="nav-text"><?php _e( 'Tags:', 'enough' ); ?></span></li>
<li class="toggle-tag"><?php
<li class="toggle-tag"><?php


$categories = get_the_terms( $post->ID, 'post_tag' ); ;

Expand All @@ -941,22 +941,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 = '<span>'.$initial.'</span>';

$category_name = '<span>'.$initial.'</span>';
$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++;
Expand Down Expand Up @@ -1032,7 +1032,7 @@ function enough_the_content( $more = '', $diaplay = true ) {
);

the_content( $more );
} elseif ( ! is_singular() and $diaplay == true && 1 == 2) {
} elseif ( is_search() && $diaplay == true ) {

the_excerpt();
} elseif ( $diaplay == true ) {
Expand Down Expand Up @@ -1071,7 +1071,7 @@ function enough_chat_filter( $contents ) {
<div class="enough-chat-text enough-chat-author-text-%1$s"><p>%3$s</div>';
$regs = array();
foreach ( $new_contents as $new ) {

$new = str_replace( '</p>', '', $new );

preg_match( '|([^\:]+)(\:)(.+)|si', $new, $regs );
Expand Down Expand Up @@ -1336,7 +1336,7 @@ function enough_load_small_device_helper() {
$enough_debug = 0;
}
wp_enqueue_script( 'enough_helper_script', get_template_directory_uri() . '/enough-helper.js', array( 'jquery' ) ,$enough_version, true);

wp_localize_script( 'enough_helper_script', 'enough_script_vars', array(
'enough_is_front' => $enough_is_front,
'is_ie' => $is_IE,
Expand All @@ -1347,7 +1347,7 @@ function enough_load_small_device_helper() {
'enough_title_length' => round( strlen( get_bloginfo( 'name' ) ) ),
'enough_description_length' => round( strlen( get_bloginfo( 'description' ) ), 0 ),
'enough_header_image_uri' => get_header_image(),
'enough_image_exists' => get_header_image(),
'enough_image_exists' => get_header_image(),
'enough_options' => enough_theme_option( 'defaults' ),
'uploads' => wp_upload_dir(),

Expand Down Expand Up @@ -1840,29 +1840,29 @@ function enough_detect_header_image_size( $xy = 'width' ) {
if ( !function_exists( 'enough_not_found' ) ) {

function enough_not_found() {

if ( locate_template( array( '404.php' ), true, true ) == '' ) {

?><article <?php post_class(); ?> role="main"><?php

if ( is_search() ) {

$fail_search_html = '<div class="fail-search message-box"><h2 class="center h2">%1$s</h2>%2$s</div>';
$fail_search_html = sprintf( $fail_search_html ,

$fail_search_html = sprintf( $fail_search_html ,
__( "Nothing was found though it was regrettable. Please change the key word if it is good, and retrieve it.", "enough" ),
get_search_form(false)
);
echo apply_filters( 'enough_fail_search_html', $fail_search_html, $fail_search_html);

} elseif ( is_404() ) {

$html_404 = '<div class="not-found message-box"><h2 class="center h2">%1$s</h2>%2$s</div>';
$fail_search_html = sprintf( $html_404 ,
$fail_search_html = sprintf( $html_404 ,
__( "Nothing was found though it was regrettable. Please change the key word if it is good, and retrieve it.", "enough" ),
get_search_form(false)
);
echo apply_filters( 'enough_fail_search_html', $fail_search_html, $html_404 );
echo apply_filters( 'enough_fail_search_html', $fail_search_html, $html_404 );
}
?></article><?php
}
Expand Down Expand Up @@ -1954,11 +1954,11 @@ function enough_loop_title() {

rewind_posts();
}



if ( !empty( $page_title ) ) {

$page_title = apply_filters( 'enough_archive_name' ,'', $page_title );

printf( '<h2 class="archives-title-text">%s <span>%s</span></h2>', $page_title, $page_title_c
Expand Down Expand Up @@ -2830,7 +2830,7 @@ function enough_customize_register( $wp_customize ) {
'capability' => 'edit_theme_options',
'sanitize_callback' => 'enough_enable_post_formats_validate'
) );
*/

$wp_customize->add_setting( 'enough_theme_settings[enough_post_one_column_bottom_sidebar]', array(
Expand All @@ -2852,8 +2852,8 @@ function enough_customize_register( $wp_customize ) {
'capability' => 'edit_theme_options',
'sanitize_callback' => 'enough_post_content_width_validate'
) );
/*

/*
$wp_customize->add_control(
new enough_Customize_Control_Multiple_Select(
$wp_customize, 'enough_enable_post_formats', array(
Expand Down Expand Up @@ -3482,9 +3482,9 @@ function enough_gallery_atts( $out, $pairs, $atts ) {
}

function enough_gallerys_css() {

global $enough_extend_galleries;

$clear_float = ".gallery,
.gallery-columns-1 .gallery-item:nth-child(2),\n
.gallery-columns-2 .gallery-item:nth-child(3),\n
Expand All @@ -3496,15 +3496,15 @@ function enough_gallerys_css() {
.gallery-columns-8 .gallery-item:nth-child(9),\n
.gallery-columns-9 .gallery-item:nth-child(10),\n
.gallery-columns-10 .gallery-item:nth-child(11){clear:both;}";

if ( $enough_extend_galleries !== true ){

return apply_filters( "enough_gallerys_css", $clear_float, $enough_extend_galleries );
}
$doc_type = 'html5';

$doc_type = 'html5';



if( $doc_type == 'xhtml' ){
$display_property = 'float:left;';
Expand All @@ -3528,9 +3528,9 @@ function enough_gallerys_css() {
.gallery-columns-8 .gallery-item{ width: 12.5% }\n
.gallery-columns-9 .gallery-item{ width: 11.1% }\n
.gallery-columns-10 .gallery-item{ width: 9.9% }\n";

$enough_gallerys .= $clear_float;

/* caption text presentation */
$enough_gallerys .= ".gallery:after{content:'';clear:both;display:block;}.gallery-item{position:relative;}
.gallery figcaption{
Expand All @@ -3548,9 +3548,9 @@ function enough_gallerys_css() {
color:#fff;
opacity:0;
transition:opacity .7s;
border-radius: 10% 0 10% 0;
-moz-border-radius:10% 0 10% 0;
-webkit-border-radius: 10% 0 10% 0;
border-radius: 10% 0 10% 0;
-moz-border-radius:10% 0 10% 0;
-webkit-border-radius: 10% 0 10% 0;
border: 1px solid #fff;
visibility:hidden;
transition:visibility .7s, opacity .7s;
Expand All @@ -3573,7 +3573,7 @@ function enough_gallerys_css() {
-webkit-transition:visibility .7s,opacity .7s;
overflow:hidden;
margin:4px;
}";
return apply_filters( "enough_gallerys_css", $enough_gallerys );
}
Expand Down

0 comments on commit 38f7c33

Please sign in to comment.