'.get_bloginfo( 'name' ).''; } endif; if ( ! function_exists( 'simple_days_tag_line' ) ) : /** * Displays the tag line in the header area */ function simple_days_tag_line() { echo '
'.get_bloginfo('description').'
'; } endif; if ( ! function_exists( 'simple_days_sub_menu' ) ) : /** * Displays the sub menu in the header area */ function simple_days_sub_menu() { ?> '; } endif; if ( ! function_exists( 'is_active_nav_menu' ) ) : function is_active_nav_menu($location){ if(has_nav_menu($location)){ $locations = get_nav_menu_locations(); $menu = wp_get_nav_menu_items($locations[$location]); if(!empty($menu)){ return true; } }else if($location != 'sub'){ $menu = get_pages(); if(!empty($menu)){ return true; } } return false; } endif; if ( ! function_exists( 'simple_days_get_logo' ) ) : function simple_days_get_logo() { if ( class_exists('YAHMAN_ADDONS_AMP') ){ $amp_logo_url = yahman_addons_amp_logo(); $amp_logo_id = attachment_url_to_postid( $amp_logo_url ); if ( $amp_logo_id != 0){ $logo = wp_get_attachment_image_src( $amp_logo_id, 'full' ); }else if ( has_custom_logo() ){ $logo = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ); }else{ $logo[0] = YAHMAN_ADDONS_URI .'assets/images/amp-logo.png'; $logo[1] = '600'; $logo[1] = '60'; } }else{ if ( has_custom_logo() ){ $logo = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ); }else{ $logo[0] = SIMPLE_DAYS_THEME_URI .'assets/images/logo.png'; $logo[1] = '1280'; $logo[1] = '960'; } } return $logo; } endif; if ( ! function_exists( 'simple_days_menu_box' ) ) : function simple_days_menu_box() { echo ''; echo ''; } endif; if ( ! function_exists( 'simple_days_primary_menu' ) ) : function simple_days_primary_menu() {?> '; $icon_image = get_theme_mod( 'simple_days_header_icon',''); if( '' !== $icon_image){ $icon_image_width = get_theme_mod( 'simple_days_icon_image_width',32); $icon_image_height = get_theme_mod( 'simple_days_icon_image_height',32); echo ''. esc_attr( get_bloginfo( 'name', 'display' ) ) .''; echo ''; } if ( has_custom_logo() ) { $image = simple_days_get_logo(); echo ''; }else{ simple_days_site_title_text(); } echo ''; if($mod == "bottom" || $mod == "right") simple_days_tag_line(); } endif; if ( ! function_exists( 'simple_days_get_thumbnail' ) ) : function simple_days_get_thumbnail($post_id , $size , $post_data) { /* * @param string $post_id Post ID. * @param string $size thumbnail, middle ,large etc. * @param string $post_data $post. */ $thumbnail = array(); if(has_post_thumbnail($post_id)) { $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post_id) , $size ); $thumbnail['has_image'] = true; return $thumbnail; }elseif(isset($post_data->post_content)){ $thumbnail[1] = 640; $thumbnail[2] = 480; preg_match_all("/]+src=[\"'](s?https?:\/\/[\-_\.!~\*'()a-z0-9;\/\?:@&=\+\$,%#]+\.(jpg|jpeg|png|gif))[\"'][^>]+>/i", $post_data->post_content, $thumurl); if(isset($thumurl [1] [0])){ $thumbnail[0] = $thumurl[1][0]; $thumbnail['has_image'] = true; return $thumbnail; } $thumbnail[0] = get_theme_mod( 'simple_days_no_img' , SIMPLE_DAYS_THEME_URI .'assets/images/no_image.png'); $thumbnail['has_image'] = false; return $thumbnail; }else{ $thumbnail[0] = get_theme_mod( 'simple_days_ogp_logo_img', SIMPLE_DAYS_THEME_URI .'assets/images/ogp.jpg'); $thumbnail['has_image'] = true; return $thumbnail; } } endif; if ( ! function_exists( 'simple_days_document_title_separator' ) ) : function simple_days_document_title_separator( $separator ) { return esc_html( ' '.get_theme_mod( 'simple_days_title_separator','|').' ' ); } endif; add_filter( 'document_title_separator', 'simple_days_document_title_separator' ); if ( ! function_exists( 'simple_days_widgets_init' ) ) : function simple_days_widgets_init() { get_template_part( 'inc/widgets' ); } endif; add_action( 'widgets_init', 'simple_days_widgets_init' ); if ( ! function_exists( 'simple_days_remove_hentry' ) ) : function simple_days_remove_hentry( $hentry ) { return array_diff($hentry, array('hentry')); } endif; add_filter('post_class', 'simple_days_remove_hentry'); if ( ! function_exists( 'simple_days_credit_area' ) ) : function simple_days_credit_area() { $reverse = get_theme_mod( 'simple_days_footer_credit_reverse',false); $column = get_theme_mod( 'simple_days_footer_credit_column',false); if($reverse){ $left_side = 'simple_days_copyright_site'; $right_side = 'simple_days_copyright_info'; }else{ $left_side = 'simple_days_copyright_info'; $right_side = 'simple_days_copyright_site'; } if($column){ $vertical = 'f_col'; $credit['left'] = ''; $credit['right'] = ''; }else{ $vertical = 'f_col100'; $credit['left'] = ' jc_fs011'; $credit['right'] = ' jc_fe011'; } ?>
'; } if ( function_exists( 'the_privacy_policy_link' ) && get_privacy_policy_url() && !get_theme_mod( 'simple_days_footer_privacy_policy',false) ) { echo ''; the_privacy_policy_link( '
', '
' ); echo ''; if(!get_theme_mod( 'simple_days_sitemap_footer',false) || get_theme_mod( 'simple_days_sitemap_page_post_name','') == '')echo '
'; }else{ echo '
'; } $local_url = ""; if( get_locale() === 'ja' )$local_url = "_ja"; ?> >Theme by Simple Days ' : ''); ?> '.esc_html($description).''; $blog_name = get_bloginfo('name'); $url = get_theme_mod( 'simple_days_footer_logo_img' , ''); if($url != ''){ $size = getimagesize($url); $width = $size[0]; $height = $size[1]; ?> comment_type ) : case 'pingback': case 'trackback': ?>
  • ', '' ); ?>

  • >
    comment_author_email, 100 ); ?>
    comment_approved == '0') : ?>
    array_search($key2, $order)); }); } return $fields; } add_filter( 'comment_form_fields', 'simple_days_move_comment_field_to_bottom' ); if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. * * Added for backwards compatibility to support pre 5.2.0 WordPress versions. */ function wp_body_open() { /** * Triggered after the opening tag. */ do_action( 'wp_body_open' ); } endif;