Translation 201910311725
This commit is contained in:
		
							parent
							
								
									f39ed3d821
								
							
						
					
					
						commit
						ff23013144
					
				
							
								
								
									
										9
									
								
								404.php
								
								
								
								
							
							
						
						
									
										9
									
								
								404.php
								
								
								
								
							| 
						 | 
					@ -14,7 +14,7 @@
 | 
				
			||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
					<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
 | 
					<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
 | 
				
			||||||
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
 | 
					bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
 | 
				
			||||||
if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( '第 %s 页'), max( $paged, $page ) );?>
 | 
					if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( 'page %s'), max( $paged, $page ) );/*第 %s 页*/?>
 | 
				
			||||||
</title>
 | 
					</title>
 | 
				
			||||||
<link type="text/css" media="all" href="https://cdn.jsdelivr.net/gh/moezx/cdn@3.2.2/css/lib.css" rel="stylesheet" />
 | 
					<link type="text/css" media="all" href="https://cdn.jsdelivr.net/gh/moezx/cdn@3.2.2/css/lib.css" rel="stylesheet" />
 | 
				
			||||||
<?php wp_head(); ?>
 | 
					<?php wp_head(); ?>
 | 
				
			||||||
| 
						 | 
					@ -43,12 +43,11 @@ if (!no_report) httpGet(report_url);
 | 
				
			||||||
<div class="anim-icon" id="404" style="height: 66%;"></div>
 | 
					<div class="anim-icon" id="404" style="height: 66%;"></div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
<div class="err-button back">
 | 
					<div class="err-button back">
 | 
				
			||||||
<a id="golast" href=javascript:history.go(-1);>返回上一页</a>
 | 
					<a id="golast" href=javascript:history.go(-1);><?php _e('return to previous page','sakura');/*返回上一页*/?></a>
 | 
				
			||||||
<a id="gohome" href="<?php bloginfo('url');?>">返回主页</a>  
 | 
					<a id="gohome" href="<?php bloginfo('url');?>"><?php _e('return to home page','sakura');/*返回主页*/?></a>  
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
<div style="display:block; width:284px;margin: auto;">
 | 
					<div style="display:block; width:284px;margin: auto;">
 | 
				
			||||||
<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;">别急,试试站内搜索?</p>
 | 
					<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?','sakura');/*别急,试试站内搜索?*/?></p>
 | 
				
			||||||
<p style="margin-bottom: 1em;text-align: center;font-size: 15px;">Don't worry, search in site?</p>
 | 
					 | 
				
			||||||
<form class="s-search" method="get" action="/" role="search">
 | 
					<form class="s-search" method="get" action="/" role="search">
 | 
				
			||||||
    <i class="iconfont icon-search" style="bottom: 8px;left: 12px;"></i>
 | 
					    <i class="iconfont icon-search" style="bottom: 8px;left: 12px;"></i>
 | 
				
			||||||
    <input class="text-input" style="padding: 8px 20px 8px 46px;" type="search" name="s" placeholder="<?php _e('Search...', 'akina') ?>" required>	
 | 
					    <input class="text-input" style="padding: 8px 20px 8px 46px;" type="search" name="s" placeholder="<?php _e('Search...', 'akina') ?>" required>	
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1269,7 +1269,7 @@ function memory_archives_list() {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if ($mon != $mon_tmp) {
 | 
					            if ($mon != $mon_tmp) {
 | 
				
			||||||
                $mon = $mon_tmp;
 | 
					                $mon = $mon_tmp;
 | 
				
			||||||
                $output .= '<li class="al_li"><span class="al_mon">'.$mon. __("","sakura"). /*月*/' (<span id="post-num"></span>'.__("article(s)","sakura") /*篇文章*/.')</span><ul class="al_post_list">'; //输出月份
 | 
					                $output .= '<li class="al_li"><span class="al_mon">'.$mon. __("","sakura"). /*月*/' (<span id="post-num"></span>'._n(" article"," articles","sakura") /*篇文章*/.')</span><ul class="al_post_list">'; //输出月份
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            $output .= '<li>'.'<a href="'. get_permalink() .'"><span style="color:#0bf;">'.get_the_time('d'.__("","sakura")) /*日*/.'</span>'. get_the_title() .' <span>('.get_post_views(get_the_ID()).' <span class="fa fa-fire" aria-hidden="true"></span> / '. get_comments_number('0', '1', '%') .' <span class="fa fa-commenting" aria-hidden="true"></span>)</span></a></li>'; //输出文章日期和标题
 | 
					            $output .= '<li>'.'<a href="'. get_permalink() .'"><span style="color:#0bf;">'.get_the_time('d'.__("","sakura")) /*日*/.'</span>'. get_the_title() .' <span>('.get_post_views(get_the_ID()).' <span class="fa fa-fire" aria-hidden="true"></span> / '. get_comments_number('0', '1', '%') .' <span class="fa fa-commenting" aria-hidden="true"></span>)</span></a></li>'; //输出文章日期和标题
 | 
				
			||||||
        endwhile;
 | 
					        endwhile;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,10 +42,10 @@ function z_add_texonomy_field() {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	echo '<div class="form-field">
 | 
						echo '<div class="form-field">
 | 
				
			||||||
		<label for="taxonomy_image">' . __('分类/标签图像', 'categories-images') . '</label>
 | 
							<label for="taxonomy_image">' . __('category/tag image', 'sakura') /*分类/标签图像*/. '</label>
 | 
				
			||||||
		<input type="text" name="taxonomy_image" id="taxonomy_image" value="" />
 | 
							<input type="text" name="taxonomy_image" id="taxonomy_image" value="" />
 | 
				
			||||||
		<br/>
 | 
							<br/>
 | 
				
			||||||
		<button class="z_upload_image_button button">' . __('添加图像', 'categories-images') . '</button>
 | 
							<button class="z_upload_image_button button">' . __('add image', 'sakura') /*添加图像*/. '</button>
 | 
				
			||||||
	</div>'.z_script();
 | 
						</div>'.z_script();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,10 +63,10 @@ function z_edit_texonomy_field($taxonomy) {
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		$image_url = z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE );
 | 
							$image_url = z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE );
 | 
				
			||||||
	echo '<tr class="form-field">
 | 
						echo '<tr class="form-field">
 | 
				
			||||||
		<th scope="row" valign="top"><label for="taxonomy_image">' . __('分类/标签图像', 'categories-images') . '</label></th>
 | 
							<th scope="row" valign="top"><label for="taxonomy_image">' .__('category/tag image', 'sakura') /*分类/标签图像*/. '</label></th>
 | 
				
			||||||
		<td><img class="taxonomy-image" src="' . z_taxonomy_image_url( $taxonomy->term_id, 'medium', TRUE ) . '"/><br/><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.$image_url.'" /><br />
 | 
							<td><img class="taxonomy-image" src="' . z_taxonomy_image_url( $taxonomy->term_id, 'medium', TRUE ) . '"/><br/><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.$image_url.'" /><br />
 | 
				
			||||||
		<button class="z_upload_image_button button">' . __('添加图像', 'categories-images') . '</button>
 | 
							<button class="z_upload_image_button button">' . __('add image', 'sakura') /*添加图像*/. '</button>
 | 
				
			||||||
		<button class="z_remove_image_button button">' . __('删除图像', 'categories-images') . '</button>
 | 
							<button class="z_remove_image_button button">' . __('remove image', 'sakura') /*删除图像*/. '</button>
 | 
				
			||||||
		</td>
 | 
							</td>
 | 
				
			||||||
	</tr>'.z_script();
 | 
						</tr>'.z_script();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -194,8 +194,8 @@ function z_quick_edit_custom_box($column_name, $screen, $name) {
 | 
				
			||||||
				<span class="title"><img src="" alt="暂无"/></span>
 | 
									<span class="title"><img src="" alt="暂无"/></span>
 | 
				
			||||||
				<span class="input-text-wrap"><input type="text" name="taxonomy_image" value="" class="tax_list" /></span>
 | 
									<span class="input-text-wrap"><input type="text" name="taxonomy_image" value="" class="tax_list" /></span>
 | 
				
			||||||
				<span class="input-text-wrap">
 | 
									<span class="input-text-wrap">
 | 
				
			||||||
					<button class="z_upload_image_button button">' . __('添加图像', 'categories-images') . '</button>
 | 
										<button class="z_upload_image_button button">' . __('add image', 'sakura') /*添加图像*/. '</button>
 | 
				
			||||||
					<button class="z_remove_image_button button">' . __('删除图像', 'categories-images') . '</button>
 | 
										<button class="z_remove_image_button button">' . __('remove image', 'sakura') /*删除图像*/. '</button>
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
			</label>
 | 
								</label>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
| 
						 | 
					@ -208,7 +208,7 @@ function z_quick_edit_custom_box($column_name, $screen, $name) {
 | 
				
			||||||
function z_taxonomy_columns( $columns ) {
 | 
					function z_taxonomy_columns( $columns ) {
 | 
				
			||||||
	$new_columns = array();
 | 
						$new_columns = array();
 | 
				
			||||||
	$new_columns['cb'] = $columns['cb'];
 | 
						$new_columns['cb'] = $columns['cb'];
 | 
				
			||||||
	$new_columns['thumb'] = __('图像', 'categories-images');
 | 
						$new_columns['thumb'] = __('image', 'sakura')/*图像*/;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	unset( $columns['cb'] );
 | 
						unset( $columns['cb'] );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -220,7 +220,7 @@ function z_taxonomy_columns( $columns ) {
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function z_taxonomy_column( $columns, $column, $id ) {
 | 
					function z_taxonomy_column( $columns, $column, $id ) {
 | 
				
			||||||
	if ( $column == 'thumb' )
 | 
						if ( $column == 'thumb' )
 | 
				
			||||||
		$columns = '<span><img src="' . z_taxonomy_image_url($id, 'thumbnail', TRUE) . '" alt="' . __('暂无', 'categories-images') . '" class="wp-post-image" /></span>';
 | 
							$columns = '<span><img src="' . z_taxonomy_image_url($id, 'thumbnail', TRUE) . '" alt="' . __('no image', 'sakura') /*暂无*/. '" class="wp-post-image" /></span>';
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	return $columns;
 | 
						return $columns;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,12 +25,12 @@ function akina_posted_on() {
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$posted_on = sprintf(
 | 
						$posted_on = sprintf(
 | 
				
			||||||
		esc_html_x( 'Posted on %s', 'post date', 'akina' ),
 | 
							_x( 'Posted on %s', 'post date', 'sakura' ),
 | 
				
			||||||
		'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
 | 
							'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$byline = sprintf(
 | 
						$byline = sprintf(
 | 
				
			||||||
		esc_html_x( 'by %s', 'post author', 'akina' ),
 | 
							_x( 'by %s', 'post author', 'sakura' ),
 | 
				
			||||||
		'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
 | 
							'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,29 +47,29 @@ function akina_entry_footer() {
 | 
				
			||||||
	// Hide category and tag text for pages.
 | 
						// Hide category and tag text for pages.
 | 
				
			||||||
	if ( 'post' === get_post_type() ) {
 | 
						if ( 'post' === get_post_type() ) {
 | 
				
			||||||
		/* translators: used between list items, there is a space after the comma */
 | 
							/* translators: used between list items, there is a space after the comma */
 | 
				
			||||||
		$categories_list = get_the_category_list( esc_html__( ', ', 'akina' ) );
 | 
							$categories_list = get_the_category_list( __( ', ', 'sakura' ) );
 | 
				
			||||||
		if ( $categories_list && akina_categorized_blog() ) {
 | 
							if ( $categories_list && akina_categorized_blog() ) {
 | 
				
			||||||
			printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'akina' ) . '</span>', $categories_list ); // WPCS: XSS OK.
 | 
								printf( '<span class="cat-links">' . __( 'Posted in %1$s', 'sakura' ) . '</span>', $categories_list ); // WPCS: XSS OK.
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* translators: used between list items, there is a space after the comma */
 | 
							/* translators: used between list items, there is a space after the comma */
 | 
				
			||||||
		$tags_list = get_the_tag_list( '', esc_html__( ', ', 'akina' ) );
 | 
							$tags_list = get_the_tag_list( '', __( ', ', 'sakura' ) );
 | 
				
			||||||
		if ( $tags_list ) {
 | 
							if ( $tags_list ) {
 | 
				
			||||||
			printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'akina' ) . '</span>', $tags_list ); // WPCS: XSS OK.
 | 
								printf( '<span class="tags-links">' . __( 'Tagged %1$s', 'sakura' ) . '</span>', $tags_list ); // WPCS: XSS OK.
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
 | 
						if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
 | 
				
			||||||
		echo '<span class="comments-link">';
 | 
							echo '<span class="comments-link">';
 | 
				
			||||||
		/* translators: %s: post title */
 | 
							/* translators: %s: post title */
 | 
				
			||||||
		comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'akina' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) );
 | 
							comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'sakura' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) );
 | 
				
			||||||
		echo '</span>';
 | 
							echo '</span>';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	edit_post_link(
 | 
						edit_post_link(
 | 
				
			||||||
		sprintf(
 | 
							sprintf(
 | 
				
			||||||
			/* translators: %s: Name of current post */
 | 
								/* translators: %s: Name of current post */
 | 
				
			||||||
			esc_html__( 'Edit %s', 'akina' ),
 | 
								__( 'Edit %s', 'sakura' ),
 | 
				
			||||||
			the_title( '<span class="screen-reader-text">"', '"</span>', false )
 | 
								the_title( '<span class="screen-reader-text">"', '"</span>', false )
 | 
				
			||||||
		),
 | 
							),
 | 
				
			||||||
		'<span class="edit-link">',
 | 
							'<span class="edit-link">',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,10 +61,10 @@ function get_random_bg_url(){
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function poi_time_since( $older_date, $comment_date = false, $text = false ) {
 | 
					function poi_time_since( $older_date, $comment_date = false, $text = false ) {
 | 
				
			||||||
  $chunks = array(
 | 
					  $chunks = array(
 | 
				
			||||||
    array( 24 * 60 * 60, __( ' 天前', 'akina' ) ),
 | 
					    array( 24 * 60 * 60, __( ' days ago', 'sakura' ) ),/*天前*/
 | 
				
			||||||
    array( 60 * 60 , __( ' 小时前', 'akina' ) ),
 | 
					    array( 60 * 60 , __( ' hours ago', 'sakura' ) ),/*小时前*/
 | 
				
			||||||
    array( 60 , __( ' 分钟前', 'akina' ) ),
 | 
					    array( 60 , __( ' minutes ago', 'sakura' ) ),/*分钟前*/
 | 
				
			||||||
    array( 1, __( ' 秒前', 'akina' ) )
 | 
					    array( 1, __( ' seconds ago', 'sakura' ) )/*秒前*/
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $newer_date = time() - (akina_option('time_zone_fix')*60*60);
 | 
					  $newer_date = time() - (akina_option('time_zone_fix')*60*60);
 | 
				
			||||||
| 
						 | 
					@ -72,7 +72,7 @@ function poi_time_since( $older_date, $comment_date = false, $text = false ) {
 | 
				
			||||||
  if($text){
 | 
					  if($text){
 | 
				
			||||||
    $output = '';
 | 
					    $output = '';
 | 
				
			||||||
  }else{
 | 
					  }else{
 | 
				
			||||||
    $output = '发布于 ';
 | 
					    $output = __('Posted on ','sakura')/*发布于*/;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if ( $since < 30 * 24 * 60 * 60 ) {
 | 
					  if ( $since < 30 * 24 * 60 * 60 ) {
 | 
				
			||||||
| 
						 | 
					@ -128,7 +128,7 @@ add_filter( 'comment_text' , 'comment_add_at', 20, 2);
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Ajax评论
 | 
					 * Ajax评论
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { wp_die('请升级到4.4以上版本'); }
 | 
					if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { wp_die(__('Please upgrade wordpress to version 4.4+','sakura')); }/*请升级到4.4以上版本*/
 | 
				
			||||||
// 提示
 | 
					// 提示
 | 
				
			||||||
if(!function_exists('siren_ajax_comment_err')) {
 | 
					if(!function_exists('siren_ajax_comment_err')) {
 | 
				
			||||||
    function siren_ajax_comment_err($t) {
 | 
					    function siren_ajax_comment_err($t) {
 | 
				
			||||||
| 
						 | 
					@ -184,7 +184,7 @@ if(!function_exists('siren_ajax_comment_callback')) {
 | 
				
			||||||
                <div class="commentinfo">
 | 
					                <div class="commentinfo">
 | 
				
			||||||
                  <section class="commeta">
 | 
					                  <section class="commeta">
 | 
				
			||||||
                    <div class="left">
 | 
					                    <div class="left">
 | 
				
			||||||
                      <h4 class="author"><a href="<?php comment_author_url(); ?>"><?php echo get_avatar( $comment->comment_author_email, '80', '', get_comment_author() ); ?><?php comment_author(); ?> <span class="isauthor" title="<?php esc_attr_e('Author', 'akina'); ?>"></span></a></h4>
 | 
					                      <h4 class="author"><a href="<?php comment_author_url(); ?>"><?php echo get_avatar( $comment->comment_author_email, '80', '', get_comment_author() ); ?><?php comment_author(); ?> <span class="isauthor" title="<?php esc_attr_e('Author', 'sakura'); ?>"></span></a></h4>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="right">
 | 
					                    <div class="right">
 | 
				
			||||||
                      <div class="info"><time datetime="<?php comment_date('Y-m-d'); ?>"><?php echo poi_time_since(strtotime($comment->comment_date), true );//comment_date(get_option('date_format')); ?></time></div>
 | 
					                      <div class="info"><time datetime="<?php comment_date('Y-m-d'); ?>"><?php echo poi_time_since(strtotime($comment->comment_date), true );//comment_date(get_option('date_format')); ?></time></div>
 | 
				
			||||||
| 
						 | 
					@ -230,16 +230,16 @@ function Exuser_center(){ ?>
 | 
				
			||||||
    function gopage(url,type){ 
 | 
					    function gopage(url,type){ 
 | 
				
			||||||
        URL = url; 
 | 
					        URL = url; 
 | 
				
			||||||
        if(type == 1){
 | 
					        if(type == 1){
 | 
				
			||||||
          TYPE = '管理后台';
 | 
					          TYPE = <?php _e('dashboard','sakura')/*管理后台*/?>;
 | 
				
			||||||
        }else{
 | 
					        }else{
 | 
				
			||||||
          TYPE = '主页';
 | 
					          TYPE = <?php _e('home','sakura')/*主页*/?>;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        for(var i=secs;i>=0;i--){ 
 | 
					        for(var i=secs;i>=0;i--){ 
 | 
				
			||||||
            window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000); 
 | 
					            window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000); 
 | 
				
			||||||
        } 
 | 
					        } 
 | 
				
			||||||
    } 
 | 
					    } 
 | 
				
			||||||
    function doUpdate(num){ 
 | 
					    function doUpdate(num){ 
 | 
				
			||||||
        document.getElementById('login-showtime').innerHTML = '空降成功,'+num+'秒后自动转到'+TYPE; 
 | 
					        document.getElementById('login-showtime').innerHTML = '<?php _e("Login successful, ","sakura")/*空降成功*/?>'+num+'<?php _e("seconds later automatically transfer to","sakura")/*秒后自动转到*/?>'+TYPE; 
 | 
				
			||||||
        if(num == 0) { window.location=URL; } 
 | 
					        if(num == 0) { window.location=URL; } 
 | 
				
			||||||
    } 
 | 
					    } 
 | 
				
			||||||
  </script>    
 | 
					  </script>    
 | 
				
			||||||
| 
						 | 
					@ -262,16 +262,16 @@ function login_ok(){
 | 
				
			||||||
  global $current_user;
 | 
					  global $current_user;
 | 
				
			||||||
  get_currentuserinfo();
 | 
					  get_currentuserinfo();
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
  <p class="ex-login-avatar"><a href="http://cn.gravatar.com/" title="更换头像" target="_blank" rel="nofollow"><?php echo get_avatar( $current_user->user_email, '110' ); ?></a></p>
 | 
					  <p class="ex-login-avatar"><a href="http://cn.gravatar.com/" title="<?php _e('Change avatar','sakura')/*更换头像*/?>" target="_blank" rel="nofollow"><?php echo get_avatar( $current_user->user_email, '110' ); ?></a></p>
 | 
				
			||||||
  <p class="ex-login-username">你好,<strong><?php echo $current_user->display_name; ?></strong></p>
 | 
					  <p class="ex-login-username"><?php _e('Hello, ','sakura')/*你好,*/?><strong><?php echo $current_user->display_name; ?></strong></p>
 | 
				
			||||||
  <?php if($current_user->user_email){echo '<p>'.$current_user->user_email.'</p>';} ?>
 | 
					  <?php if($current_user->user_email){echo '<p>'.$current_user->user_email.'</p>';} ?>
 | 
				
			||||||
  <p id="login-showtime"></p>
 | 
					  <p id="login-showtime"></p>
 | 
				
			||||||
  <p class="ex-logout">
 | 
					  <p class="ex-logout">
 | 
				
			||||||
    <a href="<?php bloginfo('url'); ?>" title="首页">首页</a>
 | 
					    <a href="<?php bloginfo('url'); ?>" title="<?php _e('Home','sakura')/*首页*/?>"><?php _e('Home','sakura')/*首页*/?></a>
 | 
				
			||||||
    <?php if(current_user_can('level_10')){  ?>
 | 
					    <?php if(current_user_can('level_10')){  ?>
 | 
				
			||||||
    <a href="<?php bloginfo('url'); ?>/wp-admin/" title="后台" target="_top">后台</a> 
 | 
					    <a href="<?php bloginfo('url'); ?>/wp-admin/" title="<?php _e('Manage','sakura')/*后台*/?>" target="_top"><?php _e('Manage','sakura')/*后台*/?></a> 
 | 
				
			||||||
    <?php } ?>
 | 
					    <?php } ?>
 | 
				
			||||||
    <a href="<?php echo wp_logout_url(get_bloginfo('url')); ?>" title="登出" target="_top">登出?</a>
 | 
					    <a href="<?php echo wp_logout_url(get_bloginfo('url')); ?>" title="<?php _e('Logout','sakura')/*登出*/?>" target="_top"><?php _e('Sign out? ','sakura')/*登出?*/?></a>
 | 
				
			||||||
  </p>
 | 
					  </p>
 | 
				
			||||||
<?php 
 | 
					<?php 
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -296,7 +296,7 @@ function the_headPattern(){
 | 
				
			||||||
        $edit_this_post_link = '';
 | 
					        $edit_this_post_link = '';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    $t .= the_title( '<h1 class="entry-title">', '</h1>', false);
 | 
					    $t .= the_title( '<h1 class="entry-title">', '</h1>', false);
 | 
				
			||||||
    $t .= '<p class="entry-census"><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'"><img src="'. get_avatar_url( get_the_author_meta('ID'), 64 )/*$ava*/ .'"></a></span><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'">'. get_the_author() .'</a></span><span class="bull">·</span>'. poi_time_since(get_post_time('U', true),false,true) .'<span class="bull">·</span>'. get_post_views(get_the_ID()) .' 次阅读'.$edit_this_post_link.'</p>';
 | 
					    $t .= '<p class="entry-census"><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'"><img src="'. get_avatar_url( get_the_author_meta('ID'), 64 )/*$ava*/ .'"></a></span><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'">'. get_the_author() .'</a></span><span class="bull">·</span>'. poi_time_since(get_post_time('U', true),false,true) .'<span class="bull">·</span>'. get_post_views(get_the_ID()) .' '._n("View","Views",get_post_views(get_the_ID()),"sakura")/*次阅读*/.$edit_this_post_link.'</p>';
 | 
				
			||||||
    endwhile; endif;
 | 
					    endwhile; endif;
 | 
				
			||||||
  }elseif(is_page()){
 | 
					  }elseif(is_page()){
 | 
				
			||||||
    $full_image_url = $full_image_url[0];
 | 
					    $full_image_url = $full_image_url[0];
 | 
				
			||||||
| 
						 | 
					@ -308,7 +308,7 @@ function the_headPattern(){
 | 
				
			||||||
    $t .= ' <span class="cat-des">'.$des.'</span>';
 | 
					    $t .= ' <span class="cat-des">'.$des.'</span>';
 | 
				
			||||||
  }elseif(is_search()){
 | 
					  }elseif(is_search()){
 | 
				
			||||||
    $full_image_url = get_random_bg_url();
 | 
					    $full_image_url = get_random_bg_url();
 | 
				
			||||||
    $t .= '<h1 class="entry-title search-title"> 关于“ '.get_search_query().' ”的搜索结果</h1>';
 | 
					    $t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if(akina_option('patternimg')) $full_image_url = false;
 | 
					  if(akina_option('patternimg')) $full_image_url = false;
 | 
				
			||||||
  if(!is_home() && $full_image_url) : ?>
 | 
					  if(!is_home() && $full_image_url) : ?>
 | 
				
			||||||
| 
						 | 
					@ -366,7 +366,7 @@ function the_video_headPattern_hls(){
 | 
				
			||||||
  }elseif(is_search()){
 | 
					  }elseif(is_search()){
 | 
				
			||||||
    $full_image_url = get_random_bg_url();
 | 
					    $full_image_url = get_random_bg_url();
 | 
				
			||||||
    $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
 | 
					    $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
 | 
				
			||||||
    $t .= '<h1 class="entry-title search-title"> 关于“ '.get_search_query().' ”的搜索结果</h1>';
 | 
					    $t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  $thubm_image_url = $thubm_image_url . "#lazyload-blur";
 | 
					  $thubm_image_url = $thubm_image_url . "#lazyload-blur";
 | 
				
			||||||
	$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);
 | 
						$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);
 | 
				
			||||||
| 
						 | 
					@ -414,12 +414,12 @@ function the_video_headPattern_normal(){
 | 
				
			||||||
    $ava = akina_option('focus_logo', '') ? akina_option('focus_logo', '') : get_avatar_url(get_the_author_meta('user_email'));
 | 
					    $ava = akina_option('focus_logo', '') ? akina_option('focus_logo', '') : get_avatar_url(get_the_author_meta('user_email'));
 | 
				
			||||||
    global $user_ID; 
 | 
					    global $user_ID; 
 | 
				
			||||||
    if($user_ID && current_user_can('level_10')) {
 | 
					    if($user_ID && current_user_can('level_10')) {
 | 
				
			||||||
        $edit_this_post_link = '<span class="bull">·</span><a href="'.get_edit_post_link().'">EDIT</a>';
 | 
					        $edit_this_post_link = '<span class="bull">·</span><a href="'.get_edit_post_link().'">'._e("EDIT","sakura").'</a>';
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        $edit_this_post_link = '';
 | 
					        $edit_this_post_link = '';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    $t .= the_title( '<h1 class="entry-title">', '<button id="coverVideo-btn" class=".constant-width-to-height-ratio" onclick="coverVideo()"><i class="fa fa-pause" aria-hidden="true"></i></button></h1>', false);
 | 
					    $t .= the_title( '<h1 class="entry-title">', '<button id="coverVideo-btn" class=".constant-width-to-height-ratio" onclick="coverVideo()"><i class="fa fa-pause" aria-hidden="true"></i></button></h1>', false);
 | 
				
			||||||
    $t .= '<p class="entry-census"><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'"><img src="'. get_avatar_url( get_the_author_meta('ID'), 64 )/*$ava*/ .'"></a></span><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'">'. get_the_author() .'</a></span><span class="bull">·</span>'. poi_time_since(get_post_time('U', true),false,true) .'<span class="bull">·</span>'. get_post_views(get_the_ID()) .' 次阅读'.$edit_this_post_link.'</p>';
 | 
					    $t .= '<p class="entry-census"><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'"><img src="'. get_avatar_url( get_the_author_meta('ID'), 64 )/*$ava*/ .'"></a></span><span><a href="'. esc_url(get_author_posts_url(get_the_author_meta('ID'),get_the_author_meta( 'user_nicename' ))) .'">'. get_the_author() .'</a></span><span class="bull">·</span>'. poi_time_since(get_post_time('U', true),false,true) .'<span class="bull">·</span>'. get_post_views(get_the_ID()) .' '._n("View","Views",get_post_views(get_the_ID()),"sakura")/*次阅读*/.$edit_this_post_link.'</p>';
 | 
				
			||||||
    endwhile; endif;
 | 
					    endwhile; endif;
 | 
				
			||||||
  }elseif(is_page()){
 | 
					  }elseif(is_page()){
 | 
				
			||||||
    $full_image_url = $full_image_url[0];
 | 
					    $full_image_url = $full_image_url[0];
 | 
				
			||||||
| 
						 | 
					@ -434,7 +434,7 @@ function the_video_headPattern_normal(){
 | 
				
			||||||
  }elseif(is_search()){
 | 
					  }elseif(is_search()){
 | 
				
			||||||
    $full_image_url = get_random_bg_url();
 | 
					    $full_image_url = get_random_bg_url();
 | 
				
			||||||
    $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
 | 
					    $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
 | 
				
			||||||
    $t .= '<h1 class="entry-title search-title"> 关于“ '.get_search_query().' ”的搜索结果</h1>';
 | 
					    $t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  $thubm_image_url = $thubm_image_url . "#lazyload-blur";
 | 
					  $thubm_image_url = $thubm_image_url . "#lazyload-blur";
 | 
				
			||||||
	$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);
 | 
						$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);
 | 
				
			||||||
| 
						 | 
					@ -476,11 +476,11 @@ function header_user_menu(){
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div class="user-menu-option">
 | 
					        <div class="user-menu-option">
 | 
				
			||||||
          <?php if (current_user_can('level_10')) { ?>
 | 
					          <?php if (current_user_can('level_10')) { ?>
 | 
				
			||||||
            <a href="<?php bloginfo('url'); ?>/wp-admin/" target="_blank">管理中心</a>
 | 
					            <a href="<?php bloginfo('url'); ?>/wp-admin/" target="_blank"><?php _e('Dashboard','sakura')/*管理中心*/?></a>
 | 
				
			||||||
            <a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php" target="_blank">撰写文章</a>
 | 
					            <a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php" target="_blank"><?php _e('New post','sakura')/*撰写文章*/?></a>
 | 
				
			||||||
          <?php } ?>
 | 
					          <?php } ?>
 | 
				
			||||||
          <a href="<?php bloginfo('url'); ?>/wp-admin/profile.php" target="_blank">个人资料</a>
 | 
					          <a href="<?php bloginfo('url'); ?>/wp-admin/profile.php" target="_blank"><?php _e('Profile','sakura')/*个人资料*/?></a>
 | 
				
			||||||
          <a href="<?php echo wp_logout_url(get_bloginfo('url')); ?>" target="_top">退出登录</a>
 | 
					          <a href="<?php echo wp_logout_url(get_bloginfo('url')); ?>" target="_top"><?php _e('Sign out','sakura')/*退出登录*/?></a>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
| 
						 | 
					@ -723,7 +723,7 @@ function siren_private_message_hook($comment_content , $comment){
 | 
				
			||||||
    $current_commenter = wp_get_current_commenter();
 | 
					    $current_commenter = wp_get_current_commenter();
 | 
				
			||||||
    if ( $is_private ) $comment_content = '#私密# ' . $comment_content;
 | 
					    if ( $is_private ) $comment_content = '#私密# ' . $comment_content;
 | 
				
			||||||
    if ( $current_commenter['comment_author_email'] == $email || $parent_email == $current_commenter['comment_author_email'] || current_user_can('delete_user') ) return $comment_content;
 | 
					    if ( $current_commenter['comment_author_email'] == $email || $parent_email == $current_commenter['comment_author_email'] || current_user_can('delete_user') ) return $comment_content;
 | 
				
			||||||
    if ( $is_private ) return '<i class="fa fa-lock" aria-hidden="true"></i> 该评论为私密评论';
 | 
					    if ( $is_private ) return '<i class="fa fa-lock" aria-hidden="true"></i> '.__("The comment is private","sakura")/*该评论为私密评论*/;
 | 
				
			||||||
    return $comment_content;
 | 
					    return $comment_content;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
add_filter('get_comment_text','siren_private_message_hook',10,2);
 | 
					add_filter('get_comment_text','siren_private_message_hook',10,2);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
<?php if (!is_home()&&(comments_open()) ){ ?>
 | 
					<?php if (!is_home()&&(comments_open()) ){ ?>
 | 
				
			||||||
	<section class="duoshuowrapper comments">
 | 
						<section class="duoshuowrapper comments">
 | 
				
			||||||
		<div class="commentwrap comments-hidden">
 | 
							<div class="commentwrap comments-hidden">
 | 
				
			||||||
			<div class="notification"><i class="iconfont icon-comment"></i><?php esc_html_e('查看评论', 'akina'); ?></div>
 | 
								<div class="notification"><i class="iconfont icon-comment"></i><?php _e('View comments', 'sakura'); /*查看评论*/?></div>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="comments-main">
 | 
							<div class="comments-main">
 | 
				
			||||||
			<div class="commentwrap">
 | 
								<div class="commentwrap">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,7 +27,7 @@
 | 
				
			||||||
	  </div>
 | 
						  </div>
 | 
				
			||||||
	<div class="works-meta">
 | 
						<div class="works-meta">
 | 
				
			||||||
       <div class="works-comnum">  
 | 
					       <div class="works-comnum">  
 | 
				
			||||||
        <span><i class="iconfont icon-mark"></i> <?php comments_popup_link('暂无', '1 ', '% '); ?></span>
 | 
					        <span><i class="iconfont icon-mark"></i> <?php comments_popup_link(__('NOTHING','sakura'), '1 ', '% '); /*暂无*/?></span>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="works-views"> 
 | 
							<div class="works-views"> 
 | 
				
			||||||
		<span><i class="iconfont icon-attention"></i> <?php echo get_post_views(get_the_ID()); ?> </span>
 | 
							<span><i class="iconfont icon-attention"></i> <?php echo get_post_views(get_the_ID()); ?> </span>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,10 +32,10 @@
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
	<div class="info-meta">
 | 
						<div class="info-meta">
 | 
				
			||||||
       <div class="comnum">  
 | 
					       <div class="comnum">  
 | 
				
			||||||
        <span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 条评论', '% 条评论'); ?></span>
 | 
					        <span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 '.__("comment"."sakura")/*条评论*/, '% '.__("comment"."sakura")/*条评论*/); ?></span>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="views"> 
 | 
							<div class="views"> 
 | 
				
			||||||
		<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()); ?> 热度</span>
 | 
							<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()).' '._n('Hit','Hits',get_post_views(get_the_ID()),'sakura')/*热度*/?></span>
 | 
				
			||||||
		 </div>   
 | 
							 </div>   
 | 
				
			||||||
        </div>		
 | 
					        </div>		
 | 
				
			||||||
	</footer><!-- .entry-footer -->
 | 
						</footer><!-- .entry-footer -->
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,18 +11,18 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<section class="no-results not-found">
 | 
					<section class="no-results not-found">
 | 
				
			||||||
	<header class="page-header">
 | 
						<header class="page-header">
 | 
				
			||||||
		<h1 class="page-title"><?php esc_html_e( '没有找到任何东西!', 'akina' ); ?></h1>
 | 
							<h1 class="page-title"><?php _e( 'There is noyhing here!', 'sakura' ); /*没有找到任何东西*/?></h1>
 | 
				
			||||||
	</header><!-- .page-header -->
 | 
						</header><!-- .page-header -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<div class="page-content">
 | 
						<div class="page-content">
 | 
				
			||||||
		<?php
 | 
							<?php
 | 
				
			||||||
		if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 | 
							if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<p><?php printf( wp_kses( __( '准备好发布你的第一篇文章了么? <a href="%1$s">点击这里开始</a>.', 'akina' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
 | 
								<p><?php printf( wp_kses( __( 'Ready to post your first article? <a href="%1$s">Click here to start</a>.', 'sakura' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); /*准备好发布你的第一篇文章了么? <a href="%1$s">点击这里开始</a>.*/?></p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<?php elseif ( is_search() ) : ?>
 | 
							<?php elseif ( is_search() ) : ?>
 | 
				
			||||||
           <div class="sorry">
 | 
					           <div class="sorry">
 | 
				
			||||||
			<p><?php esc_html_e( '没有找到你想要的,看看其他的吧。', 'akina' ); ?></p>
 | 
								<p><?php _e( 'Didn\'t find what you want, look at the other ones.', 'sakura' ); /*没有找到你想要的,看看其他的吧。*/?></p>
 | 
				
			||||||
			<div class="sorry-inner">
 | 
								<div class="sorry-inner">
 | 
				
			||||||
			<ul class="search-no-reasults">
 | 
								<ul class="search-no-reasults">
 | 
				
			||||||
				<?php 
 | 
									<?php 
 | 
				
			||||||
| 
						 | 
					@ -40,7 +40,7 @@
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			<?php else : ?>
 | 
								<?php else : ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<p><?php esc_html_e( '我们似乎没有找到你想要的东西. 或许你可以搜索一下试试.', 'akina' ); ?></p>
 | 
								<p><?php _e( 'We didn\'t seem to find what you want. Maybe you can search for it.', 'sakura' ); /*我们似乎没有找到你想要的东西. 或许你可以搜索一下试试.*/?></p>
 | 
				
			||||||
			<?php
 | 
								<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		endif; ?>
 | 
							endif; ?>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,7 @@
 | 
				
			||||||
			the_content();
 | 
								the_content();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			wp_link_pages( array(
 | 
								wp_link_pages( array(
 | 
				
			||||||
				'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'akina' ),
 | 
									'before' => '<div class="page-links">' . __( 'Pages:', 'sakura' ),
 | 
				
			||||||
				'after'  => '</div>',
 | 
									'after'  => '</div>',
 | 
				
			||||||
			) );
 | 
								) );
 | 
				
			||||||
		?>
 | 
							?>
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@
 | 
				
			||||||
			edit_post_link(
 | 
								edit_post_link(
 | 
				
			||||||
				sprintf(
 | 
									sprintf(
 | 
				
			||||||
					/* translators: %s: Name of current post */
 | 
										/* translators: %s: Name of current post */
 | 
				
			||||||
					esc_html__( 'Edit %s', 'akina' ),
 | 
										__( 'Edit %s', 'sakura' ),
 | 
				
			||||||
					the_title( '<span class="screen-reader-text">"', '"</span>', false )
 | 
										the_title( '<span class="screen-reader-text">"', '"</span>', false )
 | 
				
			||||||
				),
 | 
									),
 | 
				
			||||||
				'<span class="edit-link">',
 | 
									'<span class="edit-link">',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,7 @@
 | 
				
			||||||
	<?php if(akina_option('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
 | 
						<?php if(akina_option('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
 | 
				
			||||||
	<header class="entry-header">
 | 
						<header class="entry-header">
 | 
				
			||||||
		<h1 class="entry-title"><?php the_title(); ?></h1>
 | 
							<h1 class="entry-title"><?php the_title(); ?></h1>
 | 
				
			||||||
		<p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date_gmt)); ?>  <?php echo get_post_views(get_the_ID()); ?> 次阅读</p>
 | 
							<p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date_gmt)); ?>  <?php echo get_post_views(get_the_ID()).' ';  _n('View','Views',get_post_views(get_the_ID()),'sakura')/*次阅读*/?> </p>
 | 
				
			||||||
		<hr>
 | 
							<hr>
 | 
				
			||||||
	</header><!-- .entry-header -->
 | 
						</header><!-- .entry-header -->
 | 
				
			||||||
	<?php } ?>
 | 
						<?php } ?>
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,7 @@
 | 
				
			||||||
	</div><!-- .entry-content -->
 | 
						</div><!-- .entry-content -->
 | 
				
			||||||
	<?php the_reward(); ?>
 | 
						<?php the_reward(); ?>
 | 
				
			||||||
	<footer class="post-footer">
 | 
						<footer class="post-footer">
 | 
				
			||||||
	<div class="post-lincenses"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"  target="_blank" rel="nofollow"><i class="fa fa-creative-commons" aria-hidden="true"></i> 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议</a></div>
 | 
						<div class="post-lincenses"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"  target="_blank" rel="nofollow"><i class="fa fa-creative-commons" aria-hidden="true"></i> <?php _e('Attribution-NonCommercial-ShareAlike 4.0 International','sakura'); /*知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议*/?></a></div>
 | 
				
			||||||
	<div class="post-tags">
 | 
						<div class="post-tags">
 | 
				
			||||||
		<?php if ( has_tag() ) { echo '<i class="iconfont icon-tags"></i> '; the_tags('', ' ', ' ');}?>
 | 
							<?php if ( has_tag() ) { echo '<i class="iconfont icon-tags"></i> '; the_tags('', ' ', ' ');}?>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,10 +28,10 @@
 | 
				
			||||||
	<footer class="entry-footer">
 | 
						<footer class="entry-footer">
 | 
				
			||||||
	<div class="info-meta">
 | 
						<div class="info-meta">
 | 
				
			||||||
       <div class="comnum">  
 | 
					       <div class="comnum">  
 | 
				
			||||||
        <span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 条评论', '% 条评论'); ?></span>
 | 
					        <span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 '.__("comment"."sakura")/*条评论*/, '% '.__("comment"."sakura")/*条评论*/); ?></span>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="views"> 
 | 
							<div class="views"> 
 | 
				
			||||||
		<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()); ?> 热度</span>
 | 
							<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()).' '._n('Hit','Hits',get_post_views(get_the_ID()),'sakura')/*热度*/?></span>
 | 
				
			||||||
		 </div>   
 | 
							 </div>   
 | 
				
			||||||
        </div>		
 | 
					        </div>		
 | 
				
			||||||
	</footer><!-- .entry-footer -->
 | 
						</footer><!-- .entry-footer -->
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,8 @@ $the_cat = get_the_category();
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
				<a href="<?php the_permalink(); ?>" class="post-title"><h3><?php the_title();?></h3></a>
 | 
									<a href="<?php the_permalink(); ?>" class="post-title"><h3><?php the_title();?></h3></a>
 | 
				
			||||||
				<div class="post-meta">
 | 
									<div class="post-meta">
 | 
				
			||||||
					<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()); ?> 热度</span>
 | 
										<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()).' '._n('Hit','Hits',get_post_views(get_the_ID()),'sakura')/*热度*/?></span>
 | 
				
			||||||
					<span class="comments-number"><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 条评论', '% 条评论'); ?></span>
 | 
										<span class="comments-number"><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 '.__("comment"."sakura")/*条评论*/, '% '.__("comment"."sakura")/*条评论*/); ?></span>
 | 
				
			||||||
					<span><i class="iconfont icon-file"></i><a href="<?php echo esc_url(get_category_link($the_cat[0]->cat_ID)); ?>"><?php echo $the_cat[0]->cat_name; ?></a>
 | 
										<span><i class="iconfont icon-file"></i><a href="<?php echo esc_url(get_category_link($the_cat[0]->cat_ID)); ?>"><?php echo $the_cat[0]->cat_name; ?></a>
 | 
				
			||||||
					</span>
 | 
										</span>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,7 @@
 | 
				
			||||||
  	<?php the_post_thumbnail('full'); ?>
 | 
					  	<?php the_post_thumbnail('full'); ?>
 | 
				
			||||||
  	<header class="entry-header">
 | 
					  	<header class="entry-header">
 | 
				
			||||||
		<h1 class="entry-title"><?php the_title(); ?></h1>
 | 
							<h1 class="entry-title"><?php the_title(); ?></h1>
 | 
				
			||||||
		<p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date_gmt)); ?>  <?php echo get_post_views(get_the_ID()); ?> 次阅读</p>
 | 
							<p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date_gmt)); ?>  <?php echo get_post_views(get_the_ID()).' '._n('View','Views',get_post_views(get_the_ID()),'sakura')/*次阅读*/?></p>
 | 
				
			||||||
		<hr>
 | 
							<hr>
 | 
				
			||||||
	</header>
 | 
						</header>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,40 +11,40 @@ if( !empty($_POST['register_reg']) ) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check the username
 | 
						// Check the username
 | 
				
			||||||
	if ( $sanitized_user_login == '' ) {
 | 
						if ( $sanitized_user_login == '' ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:请输入用户名。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Please enter username.","sakura")./*请输入用户名。*/'<br />';
 | 
				
			||||||
	} elseif ( ! validate_username( $sanitized_user_login ) ) {
 | 
						} elseif ( ! validate_username( $sanitized_user_login ) ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:此用户名包含无效字符,请输入有效的用户名。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Invalid characters, please enter a valid username.","sakura")./*此用户名包含无效字符,请输入有效的用户名。*/'<br />';
 | 
				
			||||||
	  $sanitized_user_login = '';
 | 
						  $sanitized_user_login = '';
 | 
				
			||||||
	} elseif ( username_exists( $sanitized_user_login ) ) {
 | 
						} elseif ( username_exists( $sanitized_user_login ) ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:该用户名已被注册。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("This username has been registered.","sakura")./*该用户名已被注册。*/'<br />';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check the e-mail address
 | 
						// Check the e-mail address
 | 
				
			||||||
	if ( $user_email == '' ) {
 | 
						if ( $user_email == '' ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:请填写电子邮件地址。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Please enter email address.","sakura")./*请填写电子邮件地址。*/'<br />';
 | 
				
			||||||
	} elseif ( ! is_email( $user_email ) ) {
 | 
						} elseif ( ! is_email( $user_email ) ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:电子邮件地址不正确。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Invalid email address","sakura")./*电子邮件地址不正确。*/'<br />';
 | 
				
			||||||
	  $user_email = '';
 | 
						  $user_email = '';
 | 
				
			||||||
	} elseif ( email_exists( $user_email ) ) {
 | 
						} elseif ( email_exists( $user_email ) ) {
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:该电子邮件地址已经被注册。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("This email address has been registered.","sakura")./*该电子邮件地址已经被注册。*/'<br />';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check the password
 | 
						// Check the password
 | 
				
			||||||
	if(strlen($_POST['user_pass']) < 6){
 | 
						if(strlen($_POST['user_pass']) < 6){
 | 
				
			||||||
	  $error .= '<strong>错误</strong>:密码长度至少6位。<br />';
 | 
						  $error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Password length is at least 6 digits","sakura")./*密码长度至少6位。*/'<br />';
 | 
				
			||||||
	}elseif($_POST['user_pass'] != $_POST['user_pass2']){
 | 
						}elseif($_POST['user_pass'] != $_POST['user_pass2']){
 | 
				
			||||||
		$error .= '<strong>错误</strong>:两次输入的密码不一致。<br />';
 | 
							$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Inconsistent password entered twice","sakura")./*两次输入的密码不一致。*/'<br />';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// verification
 | 
						// verification
 | 
				
			||||||
	if(akina_option('login_validate') && strlen($_POST['verification']) > 0 ){
 | 
						if(akina_option('login_validate') && strlen($_POST['verification']) > 0 ){
 | 
				
			||||||
		$error .= '<strong>错误</strong>:请拖动滑块验证身份<br />';
 | 
							$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Please drag the slider to verify identity","sakura")./*请拖动滑块验证身份*/'<br />';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if($error == '') {
 | 
						if($error == '') {
 | 
				
			||||||
		$user_id = wp_create_user( $sanitized_user_login, $_POST['user_pass'], $user_email );
 | 
							$user_id = wp_create_user( $sanitized_user_login, $_POST['user_pass'], $user_email );
 | 
				
			||||||
		if ( !$user_id ) {
 | 
							if ( !$user_id ) {
 | 
				
			||||||
			$error .= sprintf( '<strong>错误</strong>:无法完成注册请求... 请联系<a href=\"mailto:%s\">管理员</a>!<br />', get_option( 'admin_email' ) );
 | 
								$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>:'.__("Unable to complete registration request...Please contact","sakura")./*无法完成注册请求... 请联系*/'<a href=\"mailto:'. get_option( 'admin_email' ) .'\">'.__("administrator","sakura")./*管理员*/'</a>!<br />';
 | 
				
			||||||
		}else if (!is_user_logged_in()) {
 | 
							}else if (!is_user_logged_in()) {
 | 
				
			||||||
			$user = get_userdatabylogin($sanitized_user_login);
 | 
								$user = get_userdatabylogin($sanitized_user_login);
 | 
				
			||||||
			$user_id = $user->ID;
 | 
								$user_id = $user->ID;
 | 
				
			||||||
| 
						 | 
					@ -73,14 +73,14 @@ if( !empty($_POST['register_reg']) ) {
 | 
				
			||||||
					<div id="verification-slider">
 | 
										<div id="verification-slider">
 | 
				
			||||||
						<div id="slider">
 | 
											<div id="slider">
 | 
				
			||||||
							<div id="slider_bg"></div>
 | 
												<div id="slider_bg"></div>
 | 
				
			||||||
							<span id="label">»</span><span id="labelTip">拖动滑块验证</span>
 | 
												<span id="label">»</span><span id="labelTip"><?php _e("Drag the slider to verify","sakura")/*拖动滑块验证*/?></span>
 | 
				
			||||||
						</div>
 | 
											</div>
 | 
				
			||||||
						<input type="hidden" name="verification" value="verification" />
 | 
											<input type="hidden" name="verification" value="verification" />
 | 
				
			||||||
					</div>
 | 
										</div>
 | 
				
			||||||
					<?php endif; ?>
 | 
										<?php endif; ?>
 | 
				
			||||||
					<input type="hidden" name="register_reg" value="ok" />
 | 
										<input type="hidden" name="register_reg" value="ok" />
 | 
				
			||||||
					<?php if(!empty($error)) { echo '<p class="user-error">'.$error.'</p>'; } ?>
 | 
										<?php if(!empty($error)) { echo '<p class="user-error">'.$error.'</p>'; } ?>
 | 
				
			||||||
					<input class="button register-button" name="submit" type="submit" value="注 册">
 | 
										<input class="button register-button" name="submit" type="submit" value="<?php _e("Sign up","sakura")/*注 册*/?>">
 | 
				
			||||||
				</form>
 | 
									</form>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		<?php }else{ 
 | 
							<?php }else{ 
 | 
				
			||||||
| 
						 | 
					@ -89,7 +89,7 @@ if( !empty($_POST['register_reg']) ) {
 | 
				
			||||||
		<script>//window.location.href='<?php echo $loadurl; ?>';</script>
 | 
							<script>//window.location.href='<?php echo $loadurl; ?>';</script>
 | 
				
			||||||
		<?php } ?>
 | 
							<?php } ?>
 | 
				
			||||||
		<?php else : ?>
 | 
							<?php else : ?>
 | 
				
			||||||
			<div class="register-close"><p>暂未开放注册。</p></div>
 | 
								<div class="register-close"><p><?php _e("Registration is not open yet","sakura")/*暂未开放注册。*/?></p></div>
 | 
				
			||||||
		<?php endif; ?>
 | 
							<?php endif; ?>
 | 
				
			||||||
		</main><!-- #main -->
 | 
							</main><!-- #main -->
 | 
				
			||||||
	</div><!-- #primary -->
 | 
						</div><!-- #primary -->
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue