init blog

This commit is contained in:
dengtongyu committed 2018-05-08 11:22:54 +08:00
1 parent 5acc46db8e
commit 843783ce9a
1820 files changed
+539344

No files matched your search

View File
Whitespace-only changes.
+14
View File
@@ -0,0 +1,14 @@
hr{margin:20px auto;}
#wpcontent{padding:0;}
.wrap{position: relative;font-family:'microsoft yahei';width: 450px;margin: 20px auto;}
.wrap > h2{margin-bottom:30px;}
.bs-docs-header{position:relative;padding:30px 15px;background-color:#6f5499;background-image:-webkit-gradient(linear,left top,left bottom,from(#6dba8c),to(#f95b5b));background-image:-webkit-linear-gradient(top,#6dba8c 0,#f95b5b 100%);background-image:-o-linear-gradient(top,#6dba8c 0,##f95b5b 100%);background-image:linear-gradient(to bottom,#6dba8c 0,#f95b5b 100%);background-repeat:repeat-x;color:#fff;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.1);font-family:'microsoft yahei';filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#6DBA8C',endColorstr='#F95B5B',GradientType=0);}
.bs-docs-header img{width:100px;height:100px;border-radius:100%;}
.bs-docs-header h2{color:#fff;}
.choice{padding:10px 0;overflow:hidden;}
.choice .span1{float:left;}
.choice .span2{float:left;margin-top:10px;}
.choice input[type=text],.choice textarea{width:300px;margin-left:70px;padding:8px 4px;}
.choice_radio{margin-left:150px;}
.submit{margin-top:20px;margin-right:10px;padding:0;float:left;}
.submit input,.submit input:hover,.submit input:active{padding:6px 10px;border:none;border-radius:0;background:#299982;color:#fff;text-shadow:none;}
+82
View File
@@ -0,0 +1,82 @@
<?php
add_action('admin_menu','theme_setting');
function theme_setting(){
add_theme_page(__('主题设置'),__('主题设置'),'edit_themes',basename(__FILE__),'setting');
add_action('admin_init', 'register_theme_setting');
}
function register_theme_setting(){
register_setting('settings_group','f_options');
}
function setting(){
if ( isset($_REQUEST['settings-updated']) )
echo '<div id="message" class="updated"><p><strong>主题设置已保存!</strong></p></div>';
if ( 'reset' == isset($_REQUEST['reset']) ){
delete_option('f_options');
echo '<div id="message" class="updated"><p><strong>主题设置已重置!</strong></p></div>';
}
$options=get_option('f_options');
?>
<link rel="stylesheet" href="<?php bloginfo('template_url') ?>/admin/admin.css"/>
<div class="bs-docs-header"><img src="<?php if($options["logo2"]){echo $options["logo2"];}else{echo get_bloginfo('template_directory').'/images/logo.jpg';} ?>"><h2>Forget主题设置</h2></div>
<div class="wrap">
<h2>forget主题设置</h2>
<?php
if(isset($_REQUEST['save'])){
echo '<div id="message" class="updated fade"><p><strong> settings saved.</strong></p></div>';
}
if( 'reset' == isset($_REQUEST['reset']) ) {
delete_option('f_options');
echo '<div id="message" class="updated fade"><p><strong> settings reset.</strong></p></div>';
}
?>
<form method="post" action="options.php">
<?php settings_fields('settings_group'); ?>
<?php $options=get_option('f_options'); ?>
<div class="choice">
<div><span class="span2">网站描述:</span><textarea type="textarea" name="f_options[description]" placeholder="请用简洁干练的语言对你的网站进行描述"><?php echo $options['description']; ?></textarea></div>
</div>
<div class="choice">
<div><span class="span2">关键词语:</span><textarea type="textarea" name="f_options[keywords]" placeholder="多个关键词请用英文逗号隔开"><?php echo $options['keywords']; ?></textarea></div>
</div>
<div class="choice">
<div><span class="span2">网站图标:</span><input type="text" name="f_options[tubiao]" value="<?php echo $options['tubiao']; ?>" /></div>
</div>
<div class="choice">
<div><span class="span2">头像链接:</span><input type="text" name="f_options[logo2]" value="<?php echo $options['logo2']; ?>" /></div>
</div>
<div class="choice">
<div><span class="span2">头部大图:</span><input type="text" name="f_options[datu]" value="<?php echo $options['datu']; ?>" /></div>
<div><span class="span2">头部名称:</span><input type="text" name="f_options[logo3]" value="<?php echo $options['logo3']; ?>" /></div>
<div><span class="span2">头部描述:</span><input type="text" name="f_options[logo4]" value="<?php echo $options['logo4']; ?>" /></div>
</div>
<div class="choice">
<div><span class="span2">座右铭称:</span><input type="text" name="f_options[motto]" value="<?php echo $options['motto']; ?>" /></div>
<div><span class="span2">座右铭述:</span><input type="text" name="f_options[motto-tell]" value="<?php echo $options['motto-tell']; ?>" /></div>
</div>
<div class="choice">
<div><span class="span2">网站公告:</span><textarea type="textarea" id="f_options[announcement]" name="f_options[announcement]"><?php echo $options['announcement']; ?></textarea></div>
</div>
<hr>
<div class="choice">
<div><span class="span2">页脚版权:</span><textarea type="textarea" id="f_options[footer]" name="f_options[footer]"><?php echo $options['footer']; ?></textarea></div>
</div>
<div class="submit">
<input type="submit" name="Submit" value="保存设置"/>
</div>
</form>
<form method="post">
<div class="submit">
<input type="submit" name="reset" value="重置"/>
<input type="hidden" name="reset" value="reset" />
</div>
</form>
<div style="padding:10px 0;color:rgba(0,0,0,0.4);">
<p>感谢使用正版,发现问题可以到我<a href="http://azfashao.com">博客</a>留言或给我邮件azfashao@qq.com</p>
</div>
<div class="clear"></div>
</div>
<?php } ?>
+1
View File
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,160 @@
/**
* WordPress jQuery-Ajax-Comments v1.3 by Willin Kan.
* URI: http://kan.willin.org/?p=1271
*/
var i = 0, got = -1, len = document.getElementsByTagName('script').length;
while ( i <= len && got == -1){
var js_url = document.getElementsByTagName('script')[i].src,
got = js_url.indexOf('comments-ajax.js'); i++ ;
}
var edit_mode = '1', // 再編輯模式 ( '1'=開; '0'=不開 )
ajax_php_url = js_url.replace('-ajax.js','-ajax.php'),
wp_url = js_url.substr(0, js_url.indexOf('wp-content')),
pic_sb = wp_url + 'wp-admin/images/loading.gif', // 提交 icon
pic_no = wp_url + 'wp-admin/images/no.png', // 錯誤 icon
pic_ys = wp_url + 'wp-admin/images/yes.png', // 成功 icon
txt1 = '<div id="loading"><img src="' + pic_sb + '" style="vertical-align:middle;" alt=""/> 正在提交, 請稍候...</div>',
txt2 = '<div id="error">#</div>',
txt3 = '"><img src="' + pic_ys + '" style="vertical-align:middle;" alt=""/> 留言成功',
edt1 = ', 刷新页面之前可以<a rel="nofollow" class="comment-reply-link" href="#edit" onclick=\'return addComment.moveForm("',
edt2 = ')\'>重新编辑</a>',
cancel_edit = '取消编辑',
edit, num = 1, comm_array=[]; comm_array.push('');
jQuery(document).ready(function($) {
$comments = $('#comments-title'); // 評論數的 ID
$cancel = $('#cancel-comment-reply-link'); cancel_text = $cancel.text();
$submit = $('#commentform #submit'); $submit.attr('disabled', false);
$('#submit').after( txt1 + txt2 ); $('#loading').hide(); $('#error').hide();
$body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
/** submit */
$('#commentform').submit(function() {
$('#loading').show();
$submit.attr('disabled', true).fadeTo('slow', 0.5);
if ( edit ) $('#comment').after('<input type="text" name="edit_id" id="edit_id" value="' + edit + '" style="display:none;" />');
/** Ajax */
$.ajax({
url: ajax_php_url,
data: $(this).serialize(),
type: $(this).attr('method'),
error: function(request) {
$('#loading').hide();
$('#error').show().html('<img src="' + pic_no + '" style="vertical-align:middle;" alt=""/> ' + request.responseText);
setTimeout(function() {$submit.attr('disabled', false).fadeTo('slow', 1); $('#error').hide();}, 1500);
},
success: function(data) {
$('#loading').hide();
comm_array.push($('#comment').val());
$('textarea').each(function() {this.value = ''});
var t = addComment, cancel = t.I('cancel-comment-reply-link'), temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId), post = t.I('comment_post_ID').value, parent = t.I('comment_parent').value;
// comments
if ( ! edit && $comments.length ) {
n = parseInt($comments.text().match(/\d+/));
$comments.text($comments.text().replace( n, n + 1 ));
}
// show comment
new_htm = '"id="new_comm_' + num + '"></';
new_htm = ( parent == '0' ) ? ('\n<ol style="clear:both;" class="commentlist' + new_htm + 'ol>') : ('\n<ul class="children' + new_htm + 'ul>');
ok_htm = '\n <div class="ajaxtipsdiv"><span class="ajaxtips" id="success_' + num + txt3;
if ( edit_mode == '1' ) {
div_ = (document.body.innerHTML.indexOf('div-comment-') == -1) ? '' : ((document.body.innerHTML.indexOf('li-comment-') == -1) ? 'div-' : '');
ok_htm = ok_htm.concat(edt1, div_, 'comment-', parent, '", "', parent, '", "respond", "', post, '", ', num, edt2);
}
ok_htm += '</span><span></span></div>\n';
$('#respond').before(new_htm);
$('#new_comm_' + num).hide().append(data);//插入新提交评论
$('#new_comm_' + num + ' li').append(ok_htm);
$('#new_comm_' + num).fadeIn(400);//新提交成功评论渐现
$body.animate( { scrollTop: $('#new_comm_' + num).offset().top - 200}, 900);
countdown(); num++ ; edit = ''; $('*').remove('#edit_id');
cancel.style.display = 'none';//“取消回复”消失
cancel.onclick = null;
t.I('comment_parent').value = '0';
if ( temp && respond ) {
temp.parentNode.insertBefore(respond, temp);
temp.parentNode.removeChild(temp)
}
}
}); // end Ajax
return false;
}); // end submit
/** comment-reply.dev.js */
addComment = {
moveForm : function(commId, parentId, respondId, postId, num) {
var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
if ( edit ) exit_prev_edit();
num ? (
t.I('comment').value = comm_array[num],
edit = t.I('new_comm_' + num).innerHTML.match(/(comment-)(\d+)/)[2],
$new_sucs = $('#success_' + num ), $new_sucs.hide(),
$new_comm = $('#new_comm_' + num ), $new_comm.hide(),
$cancel.text(cancel_edit)
) : $cancel.text(cancel_text);
t.respondId = respondId;
postId = postId || false;
if ( !t.I('wp-temp-form-div') ) {
div = document.createElement('div');
div.id = 'wp-temp-form-div';
div.style.display = 'none';
respond.parentNode.insertBefore(div, respond)
}
!comm ? (
temp = t.I('wp-temp-form-div'),
t.I('comment_parent').value = '0',
temp.parentNode.insertBefore(respond, temp),
temp.parentNode.removeChild(temp)
) : comm.parentNode.insertBefore(respond, comm.nextSibling);
$body.animate( { scrollTop: $('#respond').offset().top - 180 }, 400);
if ( post && postId ) post.value = postId;
parent.value = parentId;
cancel.style.display = '';
cancel.onclick = function() {
if ( edit ) exit_prev_edit();
var t = addComment, temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId);
t.I('comment_parent').value = '0';
if ( temp && respond ) {
temp.parentNode.insertBefore(respond, temp);
temp.parentNode.removeChild(temp);
}
this.style.display = 'none';
this.onclick = null;
return false;
};
try { t.I('comment').focus(); }
catch(e) {}
return false;
},
I : function(e) {
return document.getElementById(e);
}
}; // end addComment
function exit_prev_edit() {
$new_comm.show(); $new_sucs.show();
$('textarea').each(function() {this.value = ''});
edit = '';
}
var wait = 10, submit_val = $submit.val();
function countdown() {
if ( wait > 0 ) {
$submit.val(wait); wait--; setTimeout(countdown, 1000);
} else {
$submit.val(submit_val).attr('disabled', false).fadeTo('slow', 1);
wait = 10;
}
}
});// end jQ
@@ -0,0 +1,162 @@
<?php
/**
* WordPress 內置嵌套評論專用 Ajax comments >> WordPress-jQuery-Ajax-Comments v1.3 by Willin Kan.
*
* 說明: 這個文件是由 WP 3.0 根目錄的 wp-comment-post.php 修改的, 修改的地方有注解. 當 WP 升級, 請注意可能有所不同.
*/
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
header('Allow: POST');
header('HTTP/1.1 405 Method Not Allowed');
header('Content-Type: text/plain');
exit;
}
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/../../../../wp-load.php' ); // 此 comments-ajax.php 位於主題資料夾,所以位置已不同
nocache_headers();
$comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : 0;
$post = get_post($comment_post_ID);
if ( empty($post->comment_status) ) {
do_action('comment_id_not_found', $comment_post_ID);
err(__('Invalid comment status.')); // 將 exit 改為錯誤提示
}
// get_post_status() will get the parent status for attachments.
$status = get_post_status($post);
$status_obj = get_post_status_object($status);
if ( !comments_open($comment_post_ID) ) {
do_action('comment_closed', $comment_post_ID);
err(__('Sorry, comments are closed for this item.')); // 將 wp_die 改為錯誤提示
} elseif ( 'trash' == $status ) {
do_action('comment_on_trash', $comment_post_ID);
err(__('Invalid comment status.')); // 將 exit 改為錯誤提示
} elseif ( !$status_obj->public && !$status_obj->private ) {
do_action('comment_on_draft', $comment_post_ID);
err(__('Invalid comment status.')); // 將 exit 改為錯誤提示
} elseif ( post_password_required($comment_post_ID) ) {
do_action('comment_on_password_protected', $comment_post_ID);
err(__('Password Protected')); // 將 exit 改為錯誤提示
} else {
do_action('pre_comment_on_post', $comment_post_ID);
}
$comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null;
$comment_author_email = ( isset($_POST['email']) ) ? trim($_POST['email']) : null;
$comment_author_url = ( isset($_POST['url']) ) ? trim($_POST['url']) : null;
$comment_content = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null;
$edit_id = ( isset($_POST['edit_id']) ) ? $_POST['edit_id'] : null; // 提取 edit_id
// If the user is logged in
$user = wp_get_current_user();
if ( $user->ID ) {
if ( empty( $user->display_name ) )
$user->display_name=$user->user_login;
$comment_author = $wpdb->escape($user->display_name);
$comment_author_email = $wpdb->escape($user->user_email);
$comment_author_url = $wpdb->escape($user->user_url);
if ( current_user_can('unfiltered_html') ) {
if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) {
kses_remove_filters(); // start with a clean slate
kses_init_filters(); // set up the filters
}
}
} else {
if ( get_option('comment_registration') || 'private' == $status )
err(__('对不起,你必须登录后才能发表评论.')); // 將 wp_die 改為錯誤提示
}
$comment_type = '';
if ( get_option('require_name_email') && !$user->ID ) {
if ( 6 > strlen($comment_author_email) || '' == $comment_author )
err( __('错误: 请填写昵称和邮箱! (name, email).') ); // 將 wp_die 改為錯誤提示
elseif ( !is_email($comment_author_email))
err( __('错误:请输入有效的电子邮件地址.') ); // 將 wp_die 改為錯誤提示
}
if ( '' == $comment_content )
err( __('错误:请输入评论.') ); // 將 wp_die 改為錯誤提示
// 增加: 錯誤提示功能
function err($ErrMsg) {
header('HTTP/1.1 405 Method Not Allowed');
echo $ErrMsg;
exit;
}
// 增加: 檢查重覆評論功能
$dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND ( comment_author = '$comment_author' ";
if ( $comment_author_email ) $dupe .= "OR comment_author_email = '$comment_author_email' ";
$dupe .= ") AND comment_content = '$comment_content' LIMIT 1";
if ( $wpdb->get_var($dupe) ) {
err(__('Duplicate comment detected; it looks as though you&#8217;ve already said that!'));
}
// 增加: 檢查評論太快功能
if ( $lasttime = $wpdb->get_var( $wpdb->prepare("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author = %s ORDER BY comment_date DESC LIMIT 1", $comment_author) ) ) {
$time_lastcomment = mysql2date('U', $lasttime, false);
$time_newcomment = mysql2date('U', current_time('mysql', 1), false);
$flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment);
if ( $flood_die ) {
err(__('You are posting comments too quickly. Slow down.'));
}
}
$comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0;
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID');
// 增加: 檢查評論是否正被編輯, 更新或新建評論
if ( $edit_id ){
$comment_id = $commentdata['comment_ID'] = $edit_id;
wp_update_comment( $commentdata );
} else {
$comment_id = wp_new_comment( $commentdata );
}
$comment = get_comment($comment_id);
if ( !$user->ID ) {
$comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);
setcookie('comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
}
//$location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id; //取消原有的刷新重定向
//$location = apply_filters('comment_post_redirect', $location, $comment);
//wp_redirect($location);
$comment_depth = 1; //为评论的 class 属性准备的
$tmp_c = $comment;
while($tmp_c->comment_parent != 0){
$comment_depth++;
$tmp_c = get_comment($tmp_c->comment_parent);
}
//以下是評論式樣, 不含 "回覆". 要用你模板的式樣 copy 覆蓋.
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID ?>">
<div id="comment-<?php comment_ID(); ?>" class="comment_body">
<div class="author"><?php echo get_avatar($comment,$size='30'); ?></div>
<div class="comment_data">
<span class="name"><?php printf(__('%s'), get_comment_author_link()) ?></span>
<?php if($comment->comment_approved=='0'): ?>
<em><span class="moderation"><?php _e('Your comment is awaiting moderation.') ?></span></em>
<?php endif; ?>
<div class="text1">
<?php comment_text() ?>
</div>
</div>
</div>
+30
View File
@@ -0,0 +1,30 @@
<?php get_header(); ?>
<div class="mainContent">
<div class="jsc-sidebar" id="jsi-nav">
<?php get_sidebar(); ?>
</div>
<div class=" jsc-sidebar-content jsc-sidebar-pulled">
<div class="m-header">
<a class="m-menu jsc-sidebar-trigger"></a>
<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>
<a href="<?php echo wp_login_url(); ?>" class="m-admin"></a>
</div>
<div class="blogitem">
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'modules/excerpt', get_post_format() );
}
}
?>
<div class="pages"><?php pagenavi(); ?></div>
</div>
</div>
</div>
<?php get_footer(); ?>
+78
View File
@@ -0,0 +1,78 @@
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.'); ?></p>
<!-- #comments -->
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php if (comments_open()): ?>
<div id="respond">
<div class="cancel_comment_reply">
<?php cancel_comment_reply_link('取消回复'); ?>
</div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<div class="f-publish" id="real-avatar">
<span>
<?php if(isset($_COOKIE['comment_author_email_'.COOKIEHASH])) : ?>
<?php echo get_avatar($comment_author_email, 50);?>
<?php else :?>
<?php global $user_email;?><?php echo get_avatar($user_email, 50); ?>
<?php endif;?>
</span>
<textarea name="comment" id="comment" tabindex="4" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};" placeholder="你想说点什么~"></textarea>
</div>
<div>
<input name="submit" type="submit" id="submit" tabindex="5" value="发布" />
<?php comment_id_fields(); ?>
</div>
<?php if($user_ID): ?>
<div class="welcome">已登录 : <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>&nbsp;,&nbsp;<a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">注销?</a></div>
<?php else: ?>
<?php if(isset($_COOKIE['comment_author_email_'.COOKIEHASH]) && isset($_COOKIE['comment_author_'.COOKIEHASH])) : ?>
<div class="welcome">
<?php printf(__('hello, <a>%1s</a>, 欢迎回来~'), $comment_author); ?>
</div>
<?php else:?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/realgravatar.js"></script>
<?php endif; ?>
<div class="comment-show" style="display:none;">
<ul>
<li class="form-inline">
<label>名称(必填):</label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" <?php if($req) echo "aria-required='true'"; ?> />
</li>
<li class="form-inline">
<label>邮箱(必填):</label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" <?php if($req) echo "aria-required='true'"; ?> />
</li>
<li class="form-inline">
<label>网站(选填):</label>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" />
</li>
</ul>
</div>
<?php endif; ?>
<?php do_action('comment_form',$post->ID); ?>
</form>
</div>
<?php endif; ?>
<?php if(have_comments()):?>
<p id="prompt">已经有<?php comments_number('', '1 人', '% 人' );?>抢在你前面了~</p>
<?php else : ?>
<p id="prompt">还没有人抢沙发呢~</p>
<?php endif; ?>
<ul class="commentlist">
<?php wp_list_comments("type=comment&callback=commentlist"); ?>
</ul>
<div class="commentnavi">
<span id="cp_post_id" style="display:none;">
<?php echo $post->ID; ?>
</span>
<?php paginate_comments_links('');?>
</div>
</div>
+22
View File
@@ -0,0 +1,22 @@
<div id="back-to-top" class="red" data-scroll="body">
<svg id="point-up" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
<path d="M23.588 17.637c-0.359-0.643-0.34-1.056-2.507-3.057 0.012-7.232-4.851-12.247-5.152-12.55 0-0.010 0-0.015 0-0.015s-0.003 0.003-0.007 0.007l-0.007-0.007c0 0 0 0.005 0 0.015-0.299 0.305-5.141 5.342-5.097 12.575-2.158 2.010-2.138 2.423-2.493 3.068-0.65 1.178-0.481 5.888 0.132 6.957 0.613 1.069 1.629 0.293 1.977-0.004 0.348-0.298 1.885-2.264 2.263-2.176 0 0 0.465-0.090 0.989 0.414 0.518 0.498 1.462 0.966 2.27 1.033 0 0.001 0 0.002-0 0.003 0.005-0.001 0.010-0.001 0.015-0.002 0.005 0 0.010 0.001 0.015 0.001 0-0.001-0-0.002 0-0.003 0.808-0.070 1.749-0.543 2.265-1.043 0.522-0.507 0.988-0.419 0.988-0.419 0.378-0.090 1.923 1.869 2.272 2.165 0.35 0.296 1.369 1.067 1.977-0.005 0.608-1.072 0.756-5.783 0.101-6.958v0 0zM15.95 14.86c-1.349 0.003-2.445-1.112-2.448-2.492-0.003-1.38 1.088-2.5 2.437-2.503 1.349-0.003 2.445 1.112 2.448 2.492 0.003 1.379-1.088 2.5-2.437 2.503v0 0zM17.76 24.876c-0.615 0.474-1.236 0.633-1.801 0.626-0.566 0.009-1.187-0.147-1.804-0.617-0.553-0.403-1.047-0.348-1.308 0.003-0.261 0.351-0.169 2.481 0.152 2.939 0.321 0.458 0.697-0.298 1.249-0.327 0.552-0.028 1.011 1.103 1.221 1.75 0.107 0.331 0.274 0.633 0.5 0.654 0.226-0.023 0.392-0.326 0.497-0.657 0.207-0.648 0.661-1.781 1.213-1.756 0.553 0.026 0.932 0.78 1.251 0.321 0.319-0.459 0.401-2.59 0.139-2.94-0.262-0.35-0.757-0.403-1.308 0.003v0 0z" fill="#CCCCCC" />
</svg>
</div>
<?php $options=get_option('f_options'); ?>
<footer id="m-footer">
<div class="Copyright">
<p><?php if($options["footer"]): ?><?php echo $options['footer']; ?><?php else :?>©2015 <?php bloginfo('name');?>.All Rights Reserved.Theme by <a href="http://azfashao.com/">发烧</a><?php endif; ?></p>
</div>
</footer>
<div id="jquery_jplayer" class="jp-jplayer"></div>
<?php wp_footer(); ?>
<!--[if lt IE 9]>
<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/ajax/comments-ajax.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/function.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/index.js"></script>
</body>
</html>
+335
View File
@@ -0,0 +1,335 @@
<?php
include('admin/forget.php');
include("modules/function.php");
$dname = 'forget';
add_action( 'after_setup_theme', 'f_setup' );
function f_setup(){
//去除头部冗余代码
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'wp_generator' );
//评论回复邮件通知
add_action('comment_post','comment_mail_notify');
add_filter('wp_mail_from', 'f_res_from_email');
add_filter('wp_mail_from_name', 'f_res_from_name');
//缩略图设置
add_theme_support('post-thumbnails');
//定义菜单
if (function_exists('register_nav_menus')){
register_nav_menus( array(
'nav' => __('网站导航'),
'pagemenu' => __('页面导航')
));
}
}
/* short code [] 短代码 1边栏,2评论,3摘要 */
add_filter('widget_text','do_shortcode');
add_filter('comment_text','do_shortcode');
add_filter('the_excerpt','do_shortcode');
if (function_exists('register_sidebar')){
register_sidebar(array(
'name' => '全站侧栏',
'id' => 'widget_sitesidebar',
'before_widget' => '<section class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget_tit">',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => '首页侧栏',
'id' => 'widget_sidebar',
'before_widget' => '<section class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget_tit">',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => '分类/标签/搜索页侧栏',
'id' => 'widget_othersidebar',
'before_widget' => '<section class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget_tit">',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => '文章页侧栏',
'id' => 'widget_postsidebar',
'before_widget' => '<section class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget_tit">',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => '页面侧栏',
'id' => 'widget_pagesidebar',
'before_widget' => '<section class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget_tit">',
'after_title' => '</h2>'
));
}
//修改默认发信地址
function f_res_from_email($email) {
$wp_from_email = get_option('admin_email');
return $wp_from_email;
}
function f_res_from_name($email){
$wp_from_name = get_option('blogname');
return $wp_from_name;
}
//邮件回复
function comment_mail_notify($comment_id) {
$admin_notify = '1';
$admin_email = get_bloginfo ('admin_email');
$comment = get_comment($comment_id);
$comment_author_email = trim($comment->comment_author_email);
$parent_id = $comment->comment_parent ? $comment->comment_parent : '';
global $wpdb;
if ($wpdb->query("Describe {$wpdb->comments} comment_mail_notify") == '')
$wpdb->query("ALTER TABLE {$wpdb->comments} ADD COLUMN comment_mail_notify TINYINT NOT NULL DEFAULT 0;");
if (($comment_author_email != $admin_email && isset($_POST['comment_mail_notify'])) || ($comment_author_email == $admin_email && $admin_notify == '1'))
$wpdb->query("UPDATE {$wpdb->comments} SET comment_mail_notify='1' WHERE comment_ID='$comment_id'");
$notify = $parent_id ? '1' : '0';
$spam_confirmed = $comment->comment_approved;
if ($parent_id != '' && $spam_confirmed != 'spam' && $notify == '1') {
$wp_email = 'no-reply@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']));
$to = trim(get_comment($parent_id)->comment_author_email);
$subject = '你在' . get_option("blogname") . '被关注啦~';
$message = '
<div id="mailtou">
<style type="text/css">
#mailtou{width:502px;height:auto;margin-bottom:50px;margin-left:auto;margin-right:auto;font-size:13px;line-height:14px;}
#mailtou a{color:#299982;text-decoration:none;outline:none;}
#mailtou .mail_head{width:502px;margin-top:10px;}
#mailtou .mail_logo{font-size:16px;color:#373737;text-align:center;}
#mailtou .mail_title{font-size:15px;color:#f0f7eb;padding:9px;margin-top:20px;overflow:hidden;background:#299982;padding-left:30px;padding-right:40px;}
#mailtou .mail_main{width:420px;margin-top:30px;padding:0 40px 20px;border-left:1px dashed #299982;border-right:1px dashed #299982;color:rgba(0,0,0,0.7);background:#f9f9f9;overflow:hidden;}
.one a{display:none}
</style>
<div class="mail_head">
<div class="mail_logo">'.get_bloginfo("name").'</div>
<div class="mail_title">你在&#8968; '. get_the_title($comment->comment_post_ID) .' &#8971;的评论有了回复:</div>
</div>
<div class="mail_main">
<div class="one origin" style="border:1px solid #EEE;overflow:auto;padding:10px;margin:1em 0;"><span style="color:#299982;">'. trim(get_comment($parent_id)->comment_author) .'</span>:'. trim(get_comment($parent_id)->comment_content) .'</div>
<div class="one reply" style="border:1px solid #EEE;overflow:auto;padding:10px;margin:1em 0 1em 60px;"><span style="color:#299982;">'. trim($comment->comment_author) .'</span>:'. trim($comment->comment_content) .'</div>
<p style="margin-bottom:10px">点击<a href="' . htmlspecialchars(get_comment_link($parent_id)) . '">查看完整内容</a></p>
<p style="margin-bottom:10px">(此邮件由系统发出,无需回复.)</p>
</div>
</div>';
$from = "From: \"" . get_option('blogname') . "\" <$wp_email>";
$headers = "$from\nContent-Type: text/html; charset=" . get_option('blog_charset') . "\n";
wp_mail( $to, $subject, $message, $headers );
}
}
add_action('comment_post', 'comment_mail_notify');
//分页
if ( !function_exists('pagenavi') ) {
function pagenavi( $p = 2 ) { // 取当前页前后各 2 页
if ( is_singular() ) return; // 文章与插页不用
global $wp_query, $paged;
$max_page = $wp_query->max_num_pages;
if ( $max_page == 1 ) return; // 只有一页不用
if ( empty( $paged ) ) $paged = 1;
echo '<span class="page-numbers page-count">' . $paged . '/' . $max_page . ' </span> '; // 显示页数
if ( $paged > $p + 1 ) p_link( 1, '最前页', '«');
if ( $paged > 1 ) p_link( $paged - 1, '上一页', '‹' );/* 如果当前页大于1就显示上一页链接 */
if ( $paged > $p + 2 ) echo '... ';
for( $i = $paged - $p; $i <= $paged + $p; $i++ ) { // 中间页
if ( $i > 0 && $i <= $max_page ) $i == $paged ? print "<span class='page-numbers current'>{$i}</span> " : p_link( $i );
}
if ( $paged < $max_page - $p - 1 ) echo '<span class="page-numbers">...</span>';
if ( $paged < $max_page ) p_link( $paged + 1,'下一页', '›' );/* 如果当前页不是最后一页显示下一页链接 */
if ( $paged < $max_page - $p ) p_link( $max_page, '最后页', '»' );
}
function p_link( $i, $title = '', $linktype = '' ) {
if ( $title == '' ) $title = "第 {$i} 页";
if ( $linktype == '' ) { $linktext = $i; } else { $linktext = $linktype; }
echo "<a class='page-numbers' href='", esc_html( get_pagenum_link( $i ) ), "' title='{$title}'>{$linktext}</a> ";
}
}
//时间显示方式'xx以前'
function timeago( $ptime ) {
$ptime = strtotime($ptime);
$etime = time() - $ptime;
if ($etime < 1) return '刚刚';
$interval = array (
12 * 30 * 24 * 60 * 60 => '年前 ('.date('Y-m-d', $ptime).')',
30 * 24 * 60 * 60 => '个月前 ('.date('m-d', $ptime).')',
7 * 24 * 60 * 60 => '周前 ('.date('m-d', $ptime).')',
24 * 60 * 60 => '天前',
60 * 60 => '小时前',
60 => '分钟前',
1 => '秒前'
);
foreach ($interval as $secs => $str) {
$d = $etime / $secs;
if ($d >= 1) {
$r = round($d);
return $r . $str;
}
};
}
add_action('wp_ajax_nopriv_bigfa_like', 'bigfa_like');
add_action('wp_ajax_bigfa_like', 'bigfa_like');
function bigfa_like(){
global $wpdb,$post;
$id = $_POST["um_id"];
$action = $_POST["um_action"];
if ( $action == 'ding'){
$bigfa_raters = get_post_meta($id,'bigfa_ding',true);
$expire = time() + 99999999;
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false; // make cookies work with localhost
setcookie('bigfa_ding_'.$id,$id,$expire,'/',$domain,false);
if (!$bigfa_raters || !is_numeric($bigfa_raters)) {
update_post_meta($id, 'bigfa_ding', 1);
}
else {
update_post_meta($id, 'bigfa_ding', ($bigfa_raters + 1));
}
echo get_post_meta($id,'bigfa_ding',true);
}
die;
}
//禁用Googlefont
class Disable_Google_Fonts {
public function __construct() {
add_filter( 'gettext_with_context', array( $this, 'disable_open_sans' ), 888, 4 );
}
public function disable_open_sans( $translations, $text, $context, $domain ) {
if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
$translations = 'off';
}
return $translations;
}
}
$disable_google_fonts = new Disable_Google_Fonts;
//密码保护提示
function password_hint($c)
{
global $post, $user_ID, $user_identity;
if (empty($post->post_password)) {
return $c;
}
if (isset($_COOKIE['wp-postpass_' . COOKIEHASH]) && stripslashes($_COOKIE['wp-postpass_' . COOKIEHASH]) == $post->post_password) {
return $c;
}
if ($hint = get_post_meta($post->ID, 'password_hint', true)) {
$url = get_option('siteurl') . '/wp-pass.php';
if ($hint) {
$hint = '密码提示:' . $hint;
} else {
$hint = '请输入您的密码';
}
if ($user_ID) {
$hint .= sprintf('欢迎进入,您的密码是:', $user_identity, $post->post_password);
}
$out = "<form method=\"post\" action=\"{$url}\">\r\n<p>这篇文章是受保护的文章,请输入密码继续阅读:</p>\r\n<div>\r\n<label>{$hint}<br/>\r\n<input type=\"password\" name=\"post_password\"/></label>\r\n<input type=\"submit\" value=\"输入密码\" name=\"Submit\"/>\r\n</div>\r\n</form>";
return $out;
} else {
return $c;
}
}
add_filter('the_content', 'password_hint');
//冒充评论检验
function CheckEmailAndName(){
global $wpdb;
$comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null;
$comment_author_email = ( isset($_POST['email']) ) ? trim($_POST['email']) : null;
if(!$comment_author || !$comment_author_email){
return;
}
$result_set = $wpdb->get_results("SELECT display_name, user_email FROM $wpdb->users WHERE display_name = '" . $comment_author . "' OR user_email = '" . $comment_author_email . "'");
if ($result_set) {
if ($result_set[0]->display_name == $comment_author){
err(__('警告: 您不能使用博主的昵称!'));
}else{
err(__('警告: 您不能使用博主的邮箱!'));
}
fail($errorMessage);
}
}
//评论列表
function commentlist($comment,$args,$depth){
$GLOBALS['comment']=$comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID ?>">
<div id="comment-<?php comment_ID(); ?>" class="comment_body">
<div class="author"><?php echo get_avatar($comment,'36'); ?></div>
<div class="comment_data">
<span class="name"><?php printf(__('%s'), get_comment_author_link()) ?></span>
<span class="time"><?php echo timeago( $comment->comment_date_gmt ); ?></span>
<div class="reply">
<?php comment_reply_link(array_merge($args,array('reply_text' =>'回复','depth' =>$depth,'max_depth'=>$args['max_depth']))) ?>
</div>
<?php if($comment->comment_approved=='0'): ?>
<em><span class="moderation"><?php _e('Your comment is awaiting moderation.') ?></span></em>
<?php endif; ?>
<div class="comment_text">
<?php comment_text() ?>
</div>
</div>
</div>
<?php
}
function AjaxCommentsPage(){
if( isset($_GET['action'])&& $_GET['action'] == 'AjaxCommentsPage' ){
global $post,$wp_query, $wp_rewrite;
$postid = isset($_GET['post']) ? $_GET['post'] : null;
$pageid = isset($_GET['page']) ? $_GET['page'] : null;
if(!$postid || !$pageid){
fail(__('Error post id or comment page id.'));
}
// get comments
$comments = get_comments('post_id='.$postid);
$post = get_post($postid);
if(!$comments){
fail(__('Error! can\'t find the comments'));
}
//if( 'desc' != get_option('comment_order') ){
// $comments = array_reverse($comments);
//}
$comments = array_reverse($comments);//?有点不明白
// set as singular (is_single || is_page || is_attachment)
$wp_query->is_singular = true;
// base url of page links
$baseLink = '';
if ($wp_rewrite->using_permalinks()) {
$baseLink = '&base=' . user_trailingslashit(get_permalink($postid) . 'comment-page-%#%', 'commentpaged');
}
// response 注意修改callback为你自己的,没有就去掉callback
wp_list_comments('callback=commentlist&type=comment&page=' . $pageid . '&per_page=' . get_option('comments_per_page'), $comments);
echo '<!--winysky-AJAX-COMMENT-PAGE-->';
echo '<span id="cp_post_id" style="display:none;">
'.$post->ID.'
</span>';
paginate_comments_links('current=' . $pageid . $baseLink);
die;
}
}
add_action('init', 'AjaxCommentsPage');
?>
+101
View File
@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>
<?php if ( is_home() ) {bloginfo('name');}
elseif ( is_category() ) {single_cat_title(); echo " 丨 "; bloginfo('name');}
elseif (is_single() || is_page() ) {single_post_title(); echo " 丨 "; bloginfo('name');}
elseif (is_search() ) {echo "搜索结果"; echo " 丨 "; bloginfo('name');}
elseif (is_404() ) {echo '页面未找到!';}
else {wp_title('',true);} ?>
</title>
<?php
$options = get_option('f_options');
global $post;
if (is_home()){
$keywords = $options['keywords'];
$description = $options['description'];
}elseif (is_single()){
$keywords = get_post_meta($post->ID, "keywords", true);
if($keywords == ""){
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag){
$keywords = $keywords.$tag->name.",";
}
$keywords = rtrim($keywords, ', ');
}
$description = get_post_meta($post->ID, "description", true);
if($description == ""){
if($post->post_excerpt){
$description = $post->post_excerpt;
}else{
$description = mb_strimwidth(strip_tags($post->post_content),0,200,'');
}
}
}elseif (is_page()){
$keywords = get_post_meta($post->ID, "keywords", true);
$description = get_post_meta($post->ID, "description", true);
}elseif (is_category()){
$keywords = single_cat_title('', false);
$description = category_description();
}elseif (is_tag()){
$keywords = single_tag_title('', false);
$description = tag_description();
}
$keywords = trim(strip_tags($keywords));
$description = trim(strip_tags($description));
?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<meta name="description" content="<?php echo $description; ?>" />
<script type='text/javascript' src='<?php bloginfo("template_url"); ?>/js/jquery.min.js'></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo("template_url"); ?>/style.css" />
<?php
if($options['tubiao']){
echo '<link rel="shortcut icon" href="'.$options['tubiao'].'" type="image/x-icon" />';
}else{
echo '<link rel="shortcut icon" href="'.get_bloginfo("template_url").'/images/favicon.ico" type="image/x-icon" />';
}
?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - 所有文章" href="<?php echo get_bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - 所有评论" href="<?php bloginfo('comments_rss2_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<header class="l-header" <?php if($options['datu']){ echo 'style="background-image:url('.$options['datu'].')"'; }else{ echo'style="background-image:url('.get_bloginfo("template_url").'/images/header.jpg);"';} ?>>
<div class="hdbg"></div>
<div class="hdbg2"></div>
<div class="m-about">
<div id="logo">
<?php if ($options["logo2"]): ?>
<a href="<?php bloginfo('url'); ?>"><img src="<?php echo $options["logo2"]; ?>"></a>
<?php else :?>
<a href="<?php bloginfo('url'); ?>" ><img src="<?php bloginfo("template_url"); ?>/images/logo.jpg"></a>
<?php endif ;?>
</div>
<h1 class="tit"><a href="<?php bloginfo('url'); ?>"><?php if($options['logo3']): ?><?php echo $options['logo3']; ?><?php else :?><?php bloginfo('name'); ?><?php endif; ?></a></h1>
<div class="about"><?php if($options['logo4']): ?><?php echo $options['logo4']; ?><?php else :?><?php bloginfo('description'); ?><?php endif; ?></div>
</div>
</header>
<div id="m-nav" class="m-nav">
<div class="m-nav-all">
<div class="m-logo-url">
<img src="<?php if($options['logourl']){echo $options["logourl"];}else{echo''.get_bloginfo('template_directory').'/images/logo.jpg';} ?>">
<h3><?php bloginfo('name');?></h3>
</div>
<ul class="nav">
<?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('theme_location' => 'nav', 'echo' => false)) )); ?>
</ul>
</div>
</div>
<?php get_search_form(); ?>
<div id="m-header" class="m-header">
<div id="showLeftPush" class="left m-header-button"></div>
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name');?></a></h1>
<div id="search-trigger" style="font-size: 18px;" class="right m-header-search"></div>
</div>
+26
View File
@@ -0,0 +1,26 @@
<?php get_header(); ?>
<div id="m-container" class="mainContent">
<?php get_sidebar(); ?>
<div class="blogitem">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="content">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
<h2 class="title"><a class="slow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="edit"><?php edit_post_link();?></span></h2>
<ul class="text">
<p class="attachment">
<a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a>
</p>
<?php the_content(); ?>
<p class="previous-image"><?php previous_image_link( false, __( '« 上一张', 'forget' ) ); ?></p>
<p class="next-image"><?php next_image_link( false, __( '下一张 »', 'forget' ) ); ?></p>
</ul>
<div class="textfoot">
</div>
</article>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
</div>
<?php comments_template('', true); ?>
</div>
<?php get_footer(); ?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

+17
View File
@@ -0,0 +1,17 @@
<?php get_header(); ?>
<div id="m-container" class="mainContent">
<?php get_sidebar(); ?>
<div class="blogitem">
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'modules/excerpt', get_post_format() );
}
}
?>
<div class="pages"><?php pagenavi(); ?></div>
</div>
</div>
<?php get_footer(); ?>
+4
View File
@@ -0,0 +1,4 @@
/*simplePlayer*/
(function($){$.fn.player=function(settings){var config={progressbarWidth:"200px",progressbarHeight:"3px",progressbarColor:"#22ccff",progressbarBGColor:"#eeeeee",defaultVolume:0.8};if(settings){$.extend(config,settings)}var playControl='<span class="simpleplayer-play-control"></span>';var stopControl='<span class="simpleplayer-stop-control"></span>';this.each(function(){$(this).before('<div class="simple-player-container">');$(this).after("</div>");$(this).parent().find(".simple-player-container").prepend('<div><ul><li style="position:absolute; top: 12px;left: 12px;z-index: 999;"><i style="text-decoration: none;" class="start-button" href="javascript:void(0)">'+playControl+'</i></li><li class="progressbar-wrapper" style="background-color: '+config.progressbarBGColor+"; cursor: pointer; width:"+config.progressbarWidth+';"><span style="display: block; background-color: '+config.progressbarBGColor+'; width: 100%; "><span class="progressbar" style="display: block;float: left; background-color: '+config.progressbarColor+"; height: "+config.progressbarHeight+'; width: 0%; "></span></span></li></ul></div>');var simplePlayer=$(this).get(0);var button=$(this).parent().find(".start-button");var progressbarWrapper=$(this).parent().find(".progressbar-wrapper");var progressbar=$(this).parent().find(".progressbar");simplePlayer.volume=config.defaultVolume;$("#radio4wp .playing,#radio4wp #playlist li").on('click',function(){simplePlayer.pause();$('.simpleplayer-stop-control').addClass('simpleplayer-play-control').removeClass('simpleplayer-stop-control');$("#lrcicon-play").removeClass("lrcicon-playing");$("#lrcicon-play").addClass("lrcicon-play")});button.click(function(){if(simplePlayer.paused){$.each($("audio"),function(){this.pause();$(this).parent().find(".simpleplayer-stop-control").addClass("simpleplayer-play-control").removeClass("simpleplayer-stop-control")});simplePlayer.play();$("#pic").addClass("rotate");$("#lrcicon-play").removeClass("lrcicon-play");$("#lrcicon-play").addClass("lrcicon-playing");$(this).find(".simpleplayer-play-control").addClass("simpleplayer-stop-control").removeClass("simpleplayer-play-control")}else{simplePlayer.pause();$("#pic").removeClass("rotate");$("#lrcicon-play").removeClass("lrcicon-playing");$("#lrcicon-play").addClass("lrcicon-play");$(this).find(".simpleplayer-stop-control").addClass("simpleplayer-play-control").removeClass("simpleplayer-stop-control")}});progressbarWrapper.click(function(e){if(simplePlayer.duration!=0){left=$(this).offset().left;offset=e.pageX-left;percent=offset/progressbarWrapper.width();duration_seek=percent*simplePlayer.duration;simplePlayer.currentTime=duration_seek}});$(simplePlayer).bind("ended",function(evt){$("#pic").removeClass("rotate");$("#rcicon-play").removeClass("rcicon-playing");$("#lrcicon-play").addClass("lrcicon-play");button.find(".simpleplayer-stop-control").addClass("simpleplayer-play-control").removeClass("simpleplayer-stop-control");progressbar.css("width","0%")});$(simplePlayer).bind("timeupdate",function(e){duration=this.duration;time=this.currentTime;fraction=time/duration;percent=fraction*100;if(percent){progressbar.css("width",percent+"%")}});if(simplePlayer.duration>0){$(this).parent().css("display","block")}if($(this).attr("autoplay")=="autoplay"){button.click()}});return this}})(jQuery);
/*!slide*/
(function(d){function a(g){return new RegExp("(^|\\s+)"+g+"(\\s+|$)")}var c,e,f;if("classList" in document.documentElement){c=function(g,h){return g.classList.contains(h)};e=function(g,h){g.classList.add(h)};f=function(g,h){g.classList.remove(h)}}else{c=function(g,h){return a(h).test(g.className)};e=function(g,h){if(!c(g,h)){g.className=g.className+" "+h}};f=function(g,h){g.className=g.className.replace(a(h)," ")}}function b(h,i){var g=c(h,i)?f:e;g(h,i)}d.classie={hasClass:c,addClass:e,removeClass:f,toggleClass:b,has:c,add:e,remove:f,toggle:b}})(window);
+160
View File
@@ -0,0 +1,160 @@
$(document).ready(function () {
//显示名字邮件
$("#comment").click(function(){
$(".comment-show").show(500);
});
//ajax评论翻页
ajacpload();
function ajacpload(){
$('.commentnavi a').click(function(){
var wpurl=$(this).attr("href").split(/(\?|&)action=AjaxCommentsPage.*$/)[0];
var commentPage = 1;
if (/comment-page-/i.test(wpurl)) {
commentPage = wpurl.split(/comment-page-/i)[1].split(/(\/|#|&).*$/)[0];
} else if (/cpage=/i.test(wpurl)) {
commentPage = wpurl.split(/cpage=/)[1].split(/(\/|#|&).*$/)[0];
};
//alert(commentPage);//获取页数
var postId =$('#cp_post_id').text();
//alert(postId);//获取postid
var url = wpurl.split(/#.*$/)[0];
url += /\?/i.test(wpurl) ? '&' : '?';
url += 'action=AjaxCommentsPage&post=' + postId + '&page=' + commentPage;
//alert(url);//看看传入参数是否正确
var loading='<div class="commnav_loding">正在努力读取中......</div>';
$.ajax({
url:url,
type: 'GET',
beforeSend: function() {
jQuery('.commentlist').empty().html(loading);
},
error: function(request) {
alert(request.responseText);
},
success:function(data){
var responses=data.split('<!--winysky-AJAX-COMMENT-PAGE-->');
$('.commentlist').empty().html(responses[0]).hide().fadeIn('slow');
$('.commentnavi').empty().html(responses[1]);
ajacpload();//自身重载一次
$('.commentlist img').lazyload({effect : "fadeIn"});
$body.animate( { scrollTop: $('#comments').offset().top - 200}, 1000);
}//返回评论列表顶部
});
return false;
});
}
//+1
$.fn.postLike = function() {
if ($(this).hasClass('done')) {
return false;
} else {
$(this).addClass('done');
var id = $(this).data("id"),
action = $(this).data('action'),
rateHolder = $(this).children('.count');
var ajax_data = {
action: "bigfa_like",
um_id: id,
um_action: action
};
$.post("/wp-admin/admin-ajax.php", ajax_data,
function(data) {
$(rateHolder).html(data);
});
return false;
}
};
$(document).on("click", ".favorite",function() {
$(this).postLike();
});
var settings = {
progressbarWidth: '100%',
progressbarHeight: '4px',
progressbarColor: '#f2626f',
progressbarBGColor: '#ffffff',
defaultVolume: 0.8
};
$(".playerd").player(settings);
fssilde();
})
// 滚屏
$(document).ready(function($) {
// 利用 data-scroll 属性,滚动到任意 dom 元素
$.scrollto = function(scrolldom, scrolltime) {
$(scrolldom).click( function(){
var scrolltodom = $(this).attr("data-scroll");
$(this).addClass("active").siblings().removeClass("active");
$('html, body').animate({
scrollTop: $(scrolltodom).offset().top
}, scrolltime);
return false;
});
};
// 判断位置控制 返回顶部的显隐
$(window).scroll(function() {
if ($(window).scrollTop() > 500) {
$("#back-to-top").fadeIn(600);
} else {
$("#back-to-top").fadeOut(600);
}
});
// 启用
$.scrollto("#back-to-top", 600);
});
function fssilde(){
var mheader = document.getElementById( 'm-header' ),
menuLeft = document.getElementById( 'm-nav' ),
mcontainer = document.getElementById( 'm-container' ),
mfooter = document.getElementById( 'm-footer' ),
showLeftPush = document.getElementById( 'showLeftPush' );
showLeftPush.onclick = function() {
classie.toggle( mheader, 'm-header-open' );
classie.toggle( menuLeft, 'm-nav-open' );
classie.toggle( mcontainer, 'm-container-open' );
classie.toggle( mfooter, 'm-footer-open' );
disableOther( 'showLeftPush' );
};
function disableOther( button ) {
if( button !== 'showLeftPush' ) {
classie.toggle( showLeftPush, 'disabled' );
}
if( $('.m-container-open').length ){
$(".mainContent").click(function() {
$( '#m-header' ).removeClass('m-header-open');
$( '#m-nav' ).removeClass('m-nav-open');
$( '#m-container' ).removeClass('m-container-open');
$( '#m-footer' ).removeClass('m-footer-open');
});
}
}
var eventClick = 'click';
var closeEnable = false;
$('#search-trigger').bind(eventClick, function(event) {
$('#search-form').addClass('active');
closeEnable = false;
setTimeout(function() {
closeEnable = true;
}, 500);
});
$('#search-input-s').bind('blur', function(event) {
if ( closeEnable ) {
$('#search-form').removeClass('active');
}
});
$('#search-form-close').bind(eventClick, function(event) {
event.preventDefault();
if (closeEnable) {
$('#search-form').removeClass('active');
$('#search-input-s').blur();
closeEnable = false;
}
});
}
+2
View File
@@ -0,0 +1,2 @@
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bX(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bV.length;while(e--){b=bV[e]+c;if(b in a)return b}return d}function bY(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function bZ(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bY(c)&&(e[f]=p._data(c,"olddisplay",cb(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b$(a,b,c){var d=bO.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function b_(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bU[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bU[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bU[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bU[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bU[e]+"Width"))||0));return f}function ca(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bP.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+b_(a,b,c||(f?"border":"content"),e)+"px"}function cb(a){if(bR[a])return bR[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bR[a]=c,c}function ch(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||cd.test(a)?d(a,e):ch(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ch(a+"["+e+"]",b[e],c,d);else d(a,b)}function cy(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cz(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cu;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cz(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cz(a,c,d,e,"*",g)),h}function cA(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((fLine truncated
@@ -0,0 +1,7 @@
jQuery(document).ready(function() {
//real-avatar
jQuery('#email').blur(function(){jQuery('#real-avatar .avatar').attr('src','http://www.gravatar.com/avatar.php?gravatar_id=' + hex_md5(jQuery('#email').val())) + '&size=40&d=identicon&r=G&default=http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=40';jQuery('#Get_Gravatar').fadeOut().html('看看右边头像对不对?').fadeIn('slow');});
});
var hexcase=0;var b64pad="";function hex_md5(s){return rstr2hex(rstr_md5(str2rstr_utf8(s)));}function b64_md5(s){return rstr2b64(rstr_md5(str2rstr_utf8(s)));}function any_md5(s,e){return rstr2any(rstr_md5(str2rstr_utf8(s)),e);}function hex_hmac_md5(k,d){return rstr2hex(rstr_hmac_md5(str2rstr_utf8(k),str2rstr_utf8(d)));}function b64_hmac_md5(k,d){return rstr2b64(rstr_hmac_md5(str2rstr_utf8(k),str2rstr_utf8(d)));}function any_hmac_md5(k,d,e){return rstr2any(rstr_hmac_md5(str2rstr_utf8(k),str2rstr_utf8(d)),e);}function md5_vm_test(){return hex_md5("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72";}function rstr_md5(s){return binl2rstr(binl_md5(rstr2binl(s),s.length*8));}function rstr_hmac_md5(key,data){var bkey=rstr2binl(key);if(bkey.length>16)bkey=binl_md5(bkey,key.length*8);var ipad=Array(16),opad=Array(16);for(var i=0;i<16;i++){ipad[i]=bkey[i]^0x36363636;opad[i]=bkey[i]^0x5C5C5C5C;}var hash=binl_md5(ipad.concat(rstr2binl(data)),512+data.length*8);return binl2rstr(binl_md5(opad.concat(hash),512+128));}function rstr2hex(input){try{hexcase}catch(e){hexcase=0;}var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var output="";var x;for(var i=0;i<input.length;i++){x=input.charCodeAt(i);output+=hex_tab.charAt((x>>>4)&0x0F)+hex_tab.charAt(x&0x0F);}return output;}function rstr2b64(input){try{b64pad}catch(e){b64pad='';}var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var output="";var len=input.length;for(var i=0;i<len;i+=3){var triplet=(input.charCodeAt(i)<<16)|(i+1<len?input.charCodeAt(i+1)<<8:0)|(i+2<len?input.charCodeAt(i+2):0);for(var j=0;j<4;j++){if(i*8+j*6>input.length*8)output+=b64pad;else output+=tab.charAt((triplet>>>6*(3-j))&0x3F);}}return output;}function rstr2any(input,encoding){var divisor=encoding.length;var i,j,q,x,quotient;var dividend=Array(Math.ceil(input.length/2));for(i=0;i<dividend.length;i++){dividend[i]=(input.charCodeAt(i*2)<<8)|input.charCodeAt(i*2+1);}var full_length=Math.ceil(input.length*8/(Math.log(encoding.length)/Math.log(2)));var remainders=Array(full_length);for(j=0;j<full_length;j++){quotient=Array();x=0;for(i=0;i<dividend.length;i++){x=(x<<16)+dividend[i];q=Math.floor(x/divisor);x-=q*divisor;if(quotient.length>0||q>0)quotient[quotient.length]=q;}remainders[j]=x;dividend=quotient;}var output="";for(i=remainders.length-1;i>=0;i--)output+=encoding.charAt(remainders[i]);return output;}function str2rstr_utf8(input){var output="";var i=-1;var x,y;while(++i<input.length){x=input.charCodeAt(i);y=i+1<input.length?input.charCodeAt(i+1):0;if(0xD800<=x&&x<=0xDBFF&&0xDC00<=y&&y<=0xDFFF){x=0x10000+((x&0x03FF)<<10)+(y&0x03FF);i++;}if(x<=0x7F)output+=String.fromCharCode(x);else if(x<=0x7FF)output+=String.fromCharCode(0xC0|((x>>>6)&0x1F),0x80|(x&0x3F));else if(x<=0xFFFF)output+=String.fromCharCode(0xE0|((x>>>12)&0x0F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));else if(x<=0x1FFFFF)output+=String.fromCharCode(0xF0|((x>>>18)&0x07),0x80|((x>>>12)&0x3F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}return output;}function str2rstr_utf16le(input){var output="";for(var i=0;i<input.length;i++)output+=String.fromCharCode(input.charCodeAt(i)&0xFF,(input.charCodeAt(i)>>>8)&0xFF);return output;}function str2rstr_utf16be(input){var output="";for(var i=0;i<input.length;i++)output+=String.fromCharCode((input.charCodeAt(i)>>>8)&0xFF,input.charCodeAt(i)&0xFF);return output;}function rstr2binl(input){var output=Array(input.length>>2);for(var i=0;i<output.length;i++)output[i]=0;for(var i=0;i<input.length*8;i+=8)output[i>>5]|=(input.charCodeAt(i/8)&0xFF)<<(i%32);return output;}function binl2rstr(input){var output="";for(var i=0;i<input.length*32;i+=8)output+=String.fromCharCode((input[i>>5]>>>(i%32))&0xFF);return output;}function binl_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20Line truncated
@@ -0,0 +1,92 @@
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2 class="title"><a class="slow" href="<?php the_permalink() ?>" title="详细阅读 <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php preg_match_all( '/\<img.+?src="(.+?)".*?\/>/',$post->post_content,$matches ,PREG_SET_ORDER); ?>
<?php if ( has_post_thumbnail() ) : //特色图片?>
<div class="text indextext">
<a href="<?php the_permalink(); ?>" class="thumbnail">
<?php if ( has_post_thumbnail() ) : //特色图片?>
<?php the_post_thumbnail(); ?>
<?php else: //无特色图片?>
<?php if ( $matches[0][1] ) ://文章内有图片 ?>
<img src="<?php echo $matches [0][1];?>" />
<?php else : //文章内没有图片?>
<?php endif;//文章内有图片结束 ?>
<?php endif;//特色图片结束 ?>
</a>
<p>
<span><time datetime="<?php the_time('Y/m/d') ?>"><?php the_time('Y/m/d') ?></time></span> |
<span>围观:<?php echo guimeng_get_post_views(get_the_ID()); ?>人</span> |
<span href="<?php the_permalink() ?>#comment">评论<?php comments_number('', '1人', '%人' );?></span>
</p>
<p>
<?php
if (has_excerpt()) {
the_excerpt();
} else {
if (!post_password_required()) {
echo f_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100, '...');
} else {
echo '密码保护文章,暂无摘要!';
}
}
?>
</p>
</div>
<?php elseif ( $matches[0][1] ) ://文章内有图片 ?>
<div class="text indextext">
<a href="<?php the_permalink(); ?>" class="thumbnail">
<?php if ( has_post_thumbnail() ) : //特色图片?>
<?php the_post_thumbnail(); ?>
<?php else: //无特色图片?>
<?php if ( $matches[0][1] ) ://文章内有图片 ?>
<img src="<?php echo $matches [0][1];?>" />
<?php else : //文章内没有图片?>
<?php endif;//文章内有图片结束 ?>
<?php endif;//特色图片结束 ?>
</a>
<p>
<span><time datetime="<?php the_time('Y/m/d') ?>"><?php the_time('Y/m/d') ?></time></span> |
<span>围观:<?php echo guimeng_get_post_views(get_the_ID()); ?>人</span> |
<span href="<?php the_permalink() ?>#comment">评论<?php comments_number('', '1人', '%人' );?></span>
</p>
<p>
<?php
if (has_excerpt()) {
the_excerpt();
} else {
if (!post_password_required()) {
echo f_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100, '...');
} else {
echo '密码保护文章,暂无摘要!';
}
}
?>
</p>
</div>
<?php else: //无特色图片?>
<div class="text">
<p>
<span><time datetime="<?php the_time('Y/m/d') ?>"><?php the_time('Y/m/d') ?></time></span> |
<span>围观:<?php echo guimeng_get_post_views(get_the_ID()); ?>人</span> |
<span href="<?php the_permalink() ?>#comment">评论<?php comments_number('', '1人', '%人' );?></span>
</p>
<p>
<?php
if (has_excerpt()) {
the_excerpt();
} else {
if (!post_password_required()) {
echo f_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100, '...');
} else {
echo '密码保护文章,暂无摘要!';
}
}
?>
</p>
</div>
<?php endif;//特色图片结束 ?>
</article>
@@ -0,0 +1,159 @@
<?php
/**
* post views
*
* 浏览量统计
*
* @since gm_record 1.0.0
*
* @return views.
*/
function guimeng_set_post_views($postID) {
$the_ID = "arc".$postID;
if(isset($_SESSION[$the_ID]) || $_SESSION[$the_ID] == 1)
return;
$_SESSION[$the_ID] = 1;
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
$count = 0;
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '1');
}else{
//administrator的浏览量不统计
if(!current_user_can("administrator")){
$count++;
update_post_meta($postID, $count_key, $count);
}
}
}
function guimeng_get_post_views($postID){
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
return "0";
}
return $count;
}
//评论可见
function reply($content){
if (preg_match_all('/<!--reply start-->([\s\S]*?)<!--reply end-->/i', $content, $hide_words)){
$stats = 'hide';
global $current_user;
get_currentuserinfo();
if ($current_user->ID) {
$email = $current_user->user_email;
} else if (isset($_COOKIE['comment_author_email_'.COOKIEHASH])) {
$email = $_COOKIE['comment_author_email_'.COOKIEHASH];
}
$ereg = "^[_\.a-z0-9]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,5}$";
if (eregi($ereg, $email)) {
global $wpdb;
global $id;
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_author_email = '".$email."' and comment_post_id='".$id."'and comment_approved = '1'");
if ($comments) {
$stats = 'show';
}
}
$admin_email = ""; //博主Email,博主直接查看
if ($email == $admin_email) {
$stats = 'show';
}
$hide_notice = '<div style="text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;">温馨提示:此处内容需要<a href="'. get_permalink().'#respond" title="评论本文">评论本文</a>后,<a href="javascript:window.location.reload();" title="刷新">刷新本页</a>才能查看。</div>';
if( $stats == 'show' ){
$content = str_replace($hide_words[0], $hide_words[1], $content);
}else{
$content = str_replace($hide_words[0], $hide_notice, $content);
}
}
return $content;
}
add_filter('the_content', 'reply');
//音乐播放器
function mp3player3($atts, $content=null){
extract(shortcode_atts(array("name"=>''),$atts));
return '<div class="lrcplay"><div class="statusinfo"><span id="lrcicon-play" class="lrcicon-play"></span>'.$name.'</div><audio id="'.$id.'" src="'.$content.'" name="playerd" class="playerd"></audio></div>';
}
add_shortcode('mp3','mp3player3'); //mp3可以改成你想设置的其他短代码,只要不冲突即可
function appthemes_add_quicktags() {
?>
<script type="text/javascript">
//快捷输入一个hr横线,点一下即可 QTags.addButton( 'h3', 'h3', '\n<h3>', '</h3>\n' ); //快捷输入h3标签 QTags.addButton( '[php]', '[php]', '\n[php]', '[/php]\n' ); //快捷输入[php]标签
QTags.addButton('音乐播放器','音乐播放器','[mp3][/mp3]','','');
QTags.addButton('回复可见','回复可见','<!--reply start--><!--reply end-->','','');
</script>
<?php
}
add_action('admin_print_footer_scripts', 'appthemes_add_quicktags' );
?>
<?php
if ( !function_exists('wp_new_user_notification') ) {
function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
$user = new WP_User($user_id);
//获取用户名和邮箱
$user_login = stripslashes($user->user_login);
$user_email = stripslashes($user->user_email);
//获取管理员邮箱和博客名称
$admin_email = stripslashes(get_option('admin_email'));
$blog_name = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
//自定义管理员邮件
$headers = 'From: '.$blog_name.' <'.$admin_email.'>';
$headers .= 'MIME-Version: 1.0';
$headers .= 'Content-type: text/html; charset=uft-8';
$headers .= 'Content-Transfer-Encoding: 8bit';
$message = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div>';
$message .= '<p>'.sprintf(__('你的网站[%s] 有新用户注册:'), $blog_name ) . '</p>';
$message .= '<p>'.sprintf(__('Username: %s'), $user_login) . '</p>';
$message .= '<p>'.sprintf(__('E-mail: %s'), $user_email) . '</p></div></body></html>';
@wp_mail($admin_email, sprintf(__('[%s] New User Registration'), $blog_name), $message, $headers);
//判断新用户密码是否为空
if ( empty($plaintext_pass) )
return;
//自定义新用户欢迎邮件
$headers = 'From: '.$blog_name.' <'.$admin_email.'>';
$headers .= 'MIME-Version: 1.0';
$headers .= 'Content-type: text/html; charset=uft-8';
$headers .= 'Content-Transfer-Encoding: 8bit';
$message = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div>';
$message .= '<p>'.__('亲爱的:') .$user_login. '</p>';
$message .= '<p>恭喜您今天正式成为教室的一员,我们已经展开热情的怀抱欢迎你。</p>';
$message .= '<p>您的账号信息如下:</p>';
$message .= '<p>'.sprintf(__('Username: %s'), $user_login) . '</p>';
$message .= '<p>'.sprintf(__('Password: %s'), $plaintext_pass) . '</p>';
$message .= '<p>请妥善保存好自己的账户信息,如果您忘记密码,可以通过登录窗口的密码找回功能找回密码。</p>';
$message .= '</div></body></html>';
@wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blog_name), $message , $headers);
}
//让邮件支持html
add_filter( 'wp_mail_content_type', 'wpdx_set_html_content_type' );
function wpdx_set_html_content_type() {
return 'text/html';
}
}
//官方Gravatar头像调用
function mytheme_get_avatar($avatar) {
$avatar = str_replace(array("www.gravatar.com","0.gravatar.com","1.gravatar.com","2.gravatar.com"),"secure.gravatar.com",$avatar);
return $avatar;
}
add_filter( 'get_avatar', 'mytheme_get_avatar', 10, 3 );
function f_strimwidth($str ,$start , $width ,$trimmarker ){
$output = preg_replace('/^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$start.'}((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$width.'}).*/s','\1',$str);
return $output.$trimmarker;
}
?>
@@ -0,0 +1,22 @@
<?php guimeng_set_post_views(get_the_ID()); ?>
<div class="content">
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2 class="title"><a class="slow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="edit"><?php edit_post_link();?></span></h2>
<ul class="text">
<?php the_content(); ?>
<?php if(is_single){ ?><p class="zhuanzai">转载请注明:<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a> &raquo; <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></p><?php } ?>
<div class="post-like">
<a href="javascript:;" data-action="ding" data-id="<?php the_ID(); ?>" class="favorite<?php if(isset($_COOKIE['bigfa_ding_'.$post->ID])) echo ' done';?>">喜欢 <span class="count">
<?php if( get_post_meta($post->ID,'bigfa_ding',true) ){
echo get_post_meta($post->ID,'bigfa_ding',true);
} else {
echo '0';
}?></span>
</a>
</div>
</ul>
<div class="textfoot">
<span><?php the_tags('标签:', ', ', ''); ?></span><span>分类:<?php the_category(', ');?></span>
</div>
</article>
</div>
+21
View File
@@ -0,0 +1,21 @@
<?php get_header(); ?>
<div id="m-container" class="mainContent">
<?php get_sidebar(); ?>
<div class="blogitem">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="content">
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2 class="title"><a class="slow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="edit"><?php edit_post_link();?></span></h2>
<ul class="text">
<?php the_content(); ?>
</ul>
</article>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
<?php comments_template('', true); ?>
</div>
</div>
<?php get_footer(); ?>
+27
View File
@@ -0,0 +1,27 @@
<?php
/*
* Template Name: 无侧边栏模版
*/
get_header();
?>
<div class="mainContent">
<div class="blogitem" style="margin-left: 0;float: none;">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="content">
<article <?php post_class(); ?> style="margin-left: 0px;" id="post-<?php the_ID(); ?>">
<h2 class="title"><a class="slow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="edit"><?php edit_post_link();?></span></h2>
<ul class="text">
<?php the_content(); ?>
</ul>
</article>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
<?php comments_template('', true); ?>
</div>
</div>
<?php get_footer(); ?>
@@ -0,0 +1,26 @@
<?php
/*
* Template Name: 无侧边栏和评论
*/
get_header();
?>
<div class="mainContent">
<div class="blogitem" style="margin-left: 0;float: none;">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="content">
<article <?php post_class(); ?> style="margin-left: 0px;" id="post-<?php the_ID(); ?>">
<h2 class="title"><a class="slow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="edit"><?php edit_post_link();?></span></h2>
<ul class="text">
<?php the_content(); ?>
</ul>
</article>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

+18
View File
@@ -0,0 +1,18 @@
<?php get_header(); ?>
<div id="m-container" class="mainContent">
<div class="jsc-sidebar" id="jsi-nav">
<?php get_sidebar(); ?>
</div>
<div class="blogitem">
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'modules/excerpt', get_post_format() );
}
}
?>
<div class="pages"><?php pagenavi(); ?></div>
</div>
</div>
<?php get_footer(); ?>
+7
View File
@@ -0,0 +1,7 @@
<form role="search" method="get" id="search-form" action="<?php echo home_url( '/' ); ?>">
<div class="search-form">
<span id="search-form-close">&times;</span>
<input placeholder="Search for" type="text" value="" name="s" id="search-input-s" />
<input type="submit" class="webFont" id="searchsubmit" value="L" />
</div>
</form>
+116
View File
@@ -0,0 +1,116 @@
<?php $options=get_option('f_options'); ?>
<aside class="sidebar">
<div class="cbl-logo">
<h3></h3>
<a class="btn btn-primary-empty pull-left" href="<?php bloginfo('url'); ?>/wp-admin"><i class=""></i> 帐号登陆</a>
<a class="btn btn-danger-empty pull-right" href="<?php bloginfo('url'); ?>/wp-login.php?action=register"><i class=""></i> 帐号注册</a>
</div>
<div class="m-sidebar">
<section class="topspaceinfo">
<h1><?php echo $options['motto']; ?></h1>
<p><?php echo $options['motto-tell']; ?></p>
</section>
<div class="userinfo">
<p class="q-fans">
公告:<?php echo $options['announcement']; ?>
</p>
</div>
<section class="widget widget_ui_posts"><h2 class="widget_tit">最新发布</h2>
<ul class="nopic">
<?php
$limit = 6;
$args = array(
'order' => DESC,
'cat' => $cat,
'orderby' => $orderby,
'showposts' => $limit,
'caller_get_posts' => 1
);
query_posts($args);
while (have_posts()) : the_post();
?>
<?php preg_match_all( '/\<img.+?src="(.+?)".*?\/>/',$post->post_content,$matches ,PREG_SET_ORDER); ?>
<li>
<a href="<?php the_permalink(); ?>" class="thumbnail">
<?php if ( has_post_thumbnail() ) : //特色图片?>
<?php the_post_thumbnail(); ?>
<?php else: //无特色图片?>
<?php if ( $matches[0][1] ) ://文章内有图片 ?>
<img src="<?php echo $matches [0][1];?>" />
<?php else : //文章内没有图片?>
<img src="<?php bloginfo("template_url"); ?>/images/thumbnail.png" />
<?php endif;//文章内有图片结束 ?>
<?php endif;//特色图片结束 ?>
</a>
<h4>
<a>
<?php the_title(); ?>
</a>
</h4>
</li>
<?php endwhile; wp_reset_query();?>
</ul>
</section>
<section class="widget f_comment"><h2 class="widget_tit">近期评论</h2>
<?php
function widget() {
global $wpdb, $comments, $comment;
$output = '';
if (empty($instance['number']) || !$number = absint($instance['number']))
$number = 8;
//获取评论,过滤掉管理员自己
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE user_id !=1 and comment_approved = '1' and comment_type not in ('pingback','trackback') ORDER BY comment_date_gmt DESC LIMIT $number");
$output .= $before_widget;
if ($title)
$output .= $before_title . $title . $after_title;
$output .= '<div class="all-comments">';
if ($comments) {
// Prime cache for associated posts. (Prime post term cache if we need it for permalinks.)
$post_ids = array_unique(wp_list_pluck($comments, 'comment_post_ID'));
_prime_post_caches($post_ids, strpos(get_option('permalink_structure'), '%category%'), false);
foreach ((array) $comments as $comment) {
if ($comment->comment_author_email != $my_email) {
//头像
$avatar = get_avatar($comment, 50);
//作者名称
$author = get_comment_author();
//评论内容
$content = apply_filters('get_comment_text', $comment->comment_content);
$content = mb_strimwidth(strip_tags($content), 0, '65', '...', 'UTF-8');
$content = convert_smilies($content);
//评论的文章
$post = '<a href="' . esc_url(get_comment_link($comment->comment_ID)) . '">' . $avatar . $author .'<span class="muted">'.timeago( $comment->comment_date_gmt ).':<br>' . $content . '</span></a>';
//这里就是输出的html,可以根据需要自行修改
$output .= $post;
}
}
}
$output .= '</div>';
$output .= $after_widget;
echo $output;
}
widget();
?>
</section>
<?php
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_sitesidebar')) : endif;
if (is_single()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_postsidebar')) : endif;
}
else if (is_page()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_pagesidebar')) : endif;
}
else if (is_home()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_sidebar')) : endif;
}
else {
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_othersidebar')) : endif;
}
?>
</div>
</aside>
+16
View File
@@ -0,0 +1,16 @@
<?php get_header(); ?>
<div id="m-container" class="mainContent">
<?php get_sidebar(); ?>
<div class="blogitem">
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'modules/template', get_post_format() );
}
}
?>
<?php comments_template('', true); ?>
</div>
</div>
<?php get_footer(); ?>
+346
View File
@@ -0,0 +1,346 @@
/*
Theme Name: Forget
Theme URI: http://azfashao.com/hztlfg/
Author: 爱在发烧
Author URI: http://azfashao.com/
Description:记忆可以忘记,你无法忘记。
Version: 3.0
*/
@charset utf-8;
* {margin:0;padding:0;}
body{font-family: Hiragino Sans GB,微软雅黑,黑体,Arial,sans-serif;font-size: 13px;color:#3F3E3C;line-height:1.5;background-color: #eeeded;}
hr{margin:20px auto;border: 1px dashed #E7E7E7;}
a {
-webkit-transition: all .1s ease-in-out 0.1s;
-o-transition: all .1s ease-in-out 0.1s;
-moz-transition: all .1s ease-in-out 0.1s;
transition: all .1s ease-in-out 0.1s;
color: #337AB7;
text-decoration: none;
}
img{border:0;max-width: 100%;vertical-align:middle;}
code{background:#ECEBEB;display:block;padding:10px;border-left:4px solid #7F9BC0;border-radius:3px;word-wrap:break-word;}
p{display:block;}ul{list-style:none;}a{color:#777;text-decoration:none;}sup{color:#7F9BC0;}
blockquote{overflow:hidden;border:0;padding:8px 12px;margin:5px 0 15px;background-color:#F1F1F1;border-left:4px solid #7AD03A;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);}
.l-header{max-width: 1100px;margin: 10px auto 0;background-attachment:fixed;-webkit-background-size:100% 100%;-moz-background-size:100% 100%;-o-background-size:100% 100%;z-index:10;position:relative;zoom:1;}
.hdbg,.hdbg2{position:absolute;bottom:0;left:0;width:100%;height:100%;background:-webkit-linear-gradient(top,#000,rgba(0,0,0,0) 85%);}
.hdbg2{background:#424242;opacity:.8;filter:alpha(opacity=80);}
.m-about{width:850px;margin:0 auto;padding:70px 0 0;text-align:center;position:relative;zoom:1;}
.m-header{display:none;}
.pull-right{float:right}
.pull-left{float:left}
/*logo player*/
#pic{position: absolute;width:180px;height:180px;border-radius:50%;}
#pic img{width:180px;height:180px;border-radius:50%;}
#logo{width:180px;margin:auto;margin-top:12px;color:#fff;position:relative;}
#logo .progressbar-wrapper{display:none!important;}
#logo .simple-player-container{width:0px!important;position: absolute;left: 41.5px;top: 41.5px;padding: 0!important;}
#logo .simple-player-container > div > ul > li{padding: 0!important;}
#logo .simpleplayer-stop-control{background: url(images/logoplayer2.png) no-repeat;margin: 25px;top: 50%;left: 50%;width:45px;height:45px;cursor:pointer;position:absolute;}
#logo .simpleplayer-play-control{background:none;margin: 25px;top: 50%;left: 50%;width:45px;height:45px;cursor:pointer;position:absolute;}
#logo .simpleplayer-play-control:hover{background:url(images/logoplayer.png) no-repeat;}
.playerd{width:180px;height:180px;border-radius:100px;}
.rotate{animation:pic 15s linear infinite;-webkit-animation:pic 15s linear infinite;-moz-animation:pic 15s linear infinite;-ms-animation:pic 15s linear infinite;-o-animation:pic 15s linear infinite;}@-webkit-keyframes pic{from{-webkit-transform:rotate(0deg);}to{-webkit-transform:rotate(360deg);}}@-moz-keyframes pic{from{-moz-transform:rotate(0deg);}to{-moz-transform:rotate(360deg);}}@-ms-keyframes pic{from{-ms-transform:rotate(0deg);}to{-ms-transform:rotate(360deg);}}@-o-keyframes pic{from{-o-transform:rotate(0deg);}to{-o-transform:rotate(360deg);}}@keyframes pic{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg);}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg);}}
#logo{width:180px;height:180px;margin:0 auto 15px;}
#logo img{border-radius:100px;width:180px;height:180px;}
.tit{padding:0 0 10px;font-weight:normal;}
.tit a{color:#fff;font-size:45px;letter-spacing:2px;opacity:.8;filter:alpha(opacity=80);font-family:微软雅黑;}
.about{color:#fff;padding:0 0 15px;font-size:14px;opacity:.8;filter:alpha(opacity=80);zoom:1;}
.nav{margin-left:0;margin-bottom:20px;list-style:none}
.nav > li > a{display:block}
.nav > li > a:hover,.nav > li > a:focus{text-decoration:none;background-color:##7F9BC0;}
.m-nav-all{display:block;margin:0 auto;max-width:1100px;}
.m-logo-url{float:left;display:none;height:52px;}
.m-logo-url img{width:50%;border-radius:100%;}
.m-logo-url h3{margin:10px 0;color:#fff;font-weight:normal;}
.m-nav{max-width: 1100px;height:52px;background-color:#7F9BC0;position:relative;margin: 0 auto 10px;}
.m-nav:after{clear:both}
.m-nav .nav{position:relative;max-width: 1100px;pxdisplay:block;margin: 0 auto;font-size:14px}
.m-nav .nav.pull-right{float:right;margin-right:0}
.m-nav .nav > li{position:relative;float:left;margin-right:1px}
.m-nav .nav li a{padding:15.5px 20px;color:#eeeeee}
.m-nav .nav .dropdown-toggle .caret{margin-top:8px}
.m-nav .nav li a:focus,.m-nav .nav li a:hover{background-color:#FFF;color:##7F9BC0;}
.m-nav .nav .active a,.m-nav .nav .active a:hover,.m-nav .nav .active a:focus{color:#7F9BC0;background-color:#ffffff;}
.m-nav .nav li.current-menu-item a,.m-nav .nav li.current-menu-parent a,.m-nav .nav li.current_page_item a,.m-nav .nav li.current-post-ancestor a{color:#fff;position:relative;z-index:2}
.m-nav .nav li:hover > ul{display:block}
.m-nav .nav > li > ul{padding-bottom:10px;text-align:left;position:absolute;top:52px;left:0;min-width:140px;z-index:10;display:none;font-size:12px}
.m-nav .nav > li > ul > li > ul{padding-bottom:10px;text-align:left;position:absolute;top:0;left:100%;min-width:140px;z-index:10;display:none;font-size:12px}
.m-nav .nav > li > ul > li{float:none;margin:0;position:relative}
.m-nav .nav ul a{float:none;display:block;*min-width:100px;padding:5px 20px 4px;color:#eeeeee}
.m-nav .nav ul a:hover,.m-nav .nav li li.current-menu-item a{color:#ffffff}
.m-nav .nav li li a:hover,.m-nav .nav li li.current-menu-item a{background-color:#7F9BC0}
.m-nav .nav li:hover a,.m-nav .nav li.current-menu-item a,.m-nav .nav li.current-menu-parent a,.m-nav .nav li.current_page_item a,.m-nav .nav li.current-post-ancestor a,.m-nav .nav li ul{background-color:#ffffff;color:#7F9BC0;}
.mainContent{max-width:1100px;min-width:320px;margin:10px auto;position:relative;overflow:hidden;}
.topspaceinfo{background:#7F9BC0;color:#fff;padding:40px 20px;}
.topspaceinfo h1{font-size:16px;line-height:40px;}
.userinfo{font-size:14px;line-height:28px;color:#666;padding:20px 30px 30px;background-color: #fff;}
.userinfo a{color:#666;}
.q-fans{padding:0 10px;color:#7F9BC0;}
.widget{clear:both;margin-bottom:10px;background-color:#fff}
.widget h3{position:relative;margin:0;line-height:20px;padding:6px 15px;font-size:15px;background-color:#F7F7F7;height: 20px;border-bottom: 1px solid #eaeaea;font-weight: normal;}
.widget h3 .btn{position:absolute;top:5px;right:10px;font-weight:normal;padding: 2px 7px 1px}
.widget-notip{line-height:20px;color:#666;border-top-color:#f00}
.widget ul{*zoom:1}
.widget ul:before,.widget ul:after{display:table;content:"";line-height:0}
.widget ul:after{clear:both}
.widget-notip h3{margin-bottom:13px}
.widget_views li,.widget_rss li,.widget_recent_entries li,.d_hotpost_txt li,.recentcomments{border-bottom:solid 1px #eee;padding:8px 15px;font-size: 14px;}
.widget_links ul{padding:10px 15px 5px;color: #999;}
.widget_links li{width:50%;float:left;padding:0;border-bottom:none;margin-bottom: 8px;line-height: 20px;height: 20px;}
.widget_links li a{}
.recentcomments{color:#888;}
.widget_pages ul{padding:10px 15px 5px;overflow:hidden}
.widget_pages li{float:left;width:50%;margin-bottom: 5px;}
.widget_meta .widget_tit{margin:0 0 10px}
.widget_meta ul{line-height:24px}
.widget_meta ul a{color:#999}
.widget_meta ul a:hover{color:#333;text-decoration:underline}
.widget_archive ul{padding: 10px 15px 5px;overflow: hidden;color: #999;}
.widget_archive li{width: 50%;float: left;margin-bottom: 5px;}
.widget_archive select,.widget_categories select{margin-top:10px;width:91%;margin-left: 15px;height:32px;line-height:32px;padding:2px}
.widget_calendar{overflow:hidden}
#calendar_wrap{margin: 0 15px 10px;}
.widget_calendar table{width:100%;text-align:center;}
.widget_calendar table caption{padding:10px 0 5px;font-size:15px;}
.widget_calendar table #prev a,.widget_calendar table #next a{display:block;padding:0 10px}
.widget_calendar table #prev{text-align:left}
.widget_calendar table #next{text-align:right}
.widget_calendar table tbody td,.widget_calendar table tfoot td,.widget_calendar table thead th{padding:5px 3px;border:1px solid #eee;}
.widget_calendar table thead th{background-color:#fbfbfb}
.widget_calendar table tbody td a{display:block;margin:0 3px;background-color:#7F9BC0;color:#fff}
.widget_calendar table tbody td a:hover{background-color: #7F9BC0;}
.widget_categories{}
.widget_categories ul{overflow:hidden;padding:10px 0 5px;color:#bbb}
.widget_categories li{float:left;width:50%;margin-bottom: 5px;}
.widget_categories li a{margin-left:15px}
.widget_categories li ul{padding:0 0 0 15px}
.widget_categories li li{float:none;width:auto}
.widget_nav_menu ul{padding:10px 15px 5px;color: #999;}
.widget_nav_menu ul li{margin-bottom: 8px;}
.widget_rss ul{color: #999;}
.widget_meta ul{padding:0 15px 10px}
.widget_meta ul li{margin-bottom: 5px;}
.btn{ background:#FFF; cursor:pointer; border:1px solid #DDD; display:inline-block; line-height:30px; padding:0 55px; color:#666; border-radius:3px; vertical-align: middle;}
.btn:hover, .btn:focus{ color:#333; border-color:#CCC; text-decoration: none; box-shadow:0 2px 8px rgba(0, 0, 0, .05) inset;}
.btn-primary-empty{border-color:#7F9BC0; color:#7F9BC0;}
.btn-danger-empty{border-color:#7F9BC0; color:#7F9BC0;}
aside{margin-left:-360px;width:360px;position:relative;float:right;}
aside section{display:block;overflow:hidden;}
aside section h2{background:#7F9BC0;color:#FFF;padding-left:20px;height:30px;line-height:30px;font-size:15px;}
.cbl-logo{background-color:#fff;padding:10px;overflow: hidden;}
.newpic ul,.taglist ul{overflow:hidden;padding:20px 10px;background-color: #fff;}
.newpic div{display:inline;width:48px;height:48px;padding:0px !important;}
.newpic div img{float:left;width:48px;height:48px;}
.taglist ul li a{display:inline-block;float:left;margin-right:5px;color:#454545;padding:2px 5px;}
.taglist ul li a:hover{background:#7F9BC0;color:#fff;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}
.blogitem{margin-right: 370px;}
article{background: #fff;margin-bottom: 10px;padding: 20px;overflow: hidden;}
.title{font-size:20px;line-height:28px;display:inline-block;width:100%;font-weight: normal;margin: 0 0 10px;}
.title a{color:#454545;}
.edit {margin-left: 20px;color:#949494;font-size: 14px;}
.edit a{color:#949494;}
.text{font-size:14px;word-wrap: break-word;}
.text p{line-height:24px;margin-bottom:10px;}
.text p img{display:block;max-width:100%;margin:auto;height:auto;}
.text .thumbnail{float: left;width: 25%;height:120px;overflow: hidden;}
.text .thumbnail img{height:auto;}
.textimg{text-align:center;}
.textimg img{max-width:500px;width:expression(document.body.clientWidth>500?"500px":"auto");}
.indextext p{margin-left: 25%;padding-left:15px;}
.textfoot span{margin-left:10px;}
.previous-image {float: left;}
.previous-image a{padding: 5px;background: #7F9BC0;border-radius: 3px;color:#fff;}
.next-image{float: right;}
.next-image a{padding: 5px;background: #7F9BC0;border-radius: 3px;color:#fff;}
.zhuanzai{margin-top:40px;}
.pages{text-align:right;padding:20px;}
.pages span{background:#EEE;color:#000;border:0;margin:0 0 0 5px;padding:5px 8px;}
.pages .current{background:#7F9BC0;color:#fff}
.pages a{background:#EEE;color:#454545;border:0;margin:0 0 0 5px;padding:5px 8px;}
.pages a:hover{background:#CCC;}
footer{border-top:9px solid #7F9BC0;background:#ffffff;margin: 10px auto 0;max-width: 1100px;height: 100%;margin-top: 60px;}
.visitor{width:800px;clear:both;border-top:1px solid #32302e;padding-top:40px;overflow:hidden;margin:40px auto 0;}
.visitor h2{color:#fff;font-size:14px;font-weight:400;}
.visitor ul li img{width:78px;height:78px;display:block;border:#FFF 2px solid;}
.visitor ul li a{float:left;margin-right:10px;}
.Copyright{text-align:center;color:#666;margin:20px 0;}
.Copyright ul a{color:#286c5b;display:inline;padding:0 10px;}
.Copyright ul a:nth-child(-n+3){border-right:#32302e 1px solid;}
.newpic div img:hover,.visitor ul li a:hover{opacity:.5;}
.visitor ul{padding:20px 0}
.fname a,.Copyright ul a:hover{color:#fff;}
.download{text-align:center;}
/* 翻屏 */
#back-to-top{display:none;cursor:pointer;position:fixed;right:50px;bottom:80px;width:48px;height:48px;z-index:999;border-radius:50%;background:rgba(255,255,255,0.6);box-shadow:0px 1px 8px 1.5px rgba(0,0,0,0.35),0px 20px 70px 8px rgba(0,0,0,0.25);-moz-box-shadow:0px 1px 8px 1.5px rgba(0,0,0,0.35),0px 20px 70px 8px rgba(0,0,0,0.25);}#back-to-top:hover{background:#FFF;}#back-to-top #point-up{margin:8px;}#back-to-top #point-up path{transition:.5s;-o-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s;}#back-to-top.red:hover #point-up path{fill:#7F9BC0;}
/*侧边栏*/
.f_comment .all-comments a{display:list-item;padding:6px 0;overflow:hidden;position:relative;color:#7F9BC0;margin-top:5px;transition:.2s color ease,.2s padding-left ease,.2s background-color ease;-o-transition:.2s color ease,.2s padding-left ease,.2s background-color ease;-moz-transition:.2s color ease,.2s padding-left ease,.2s background-color ease;-webkit-transition:.2s color ease,.2s padding-left ease,.2s background-color ease;}
.f_comment .all-comments a:hover img{transform:rotate(360deg);-o-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);}
.f_comment .all-comments a:hover{padding-left:20px;background-color:rgba(0,0,0,0.02);color:#7F9BC0;cursor:pointer}
.f_comment .all-comments a:hover .muted{color:#555;}
.f_comment img{float:left;width:50px;margin:3px 5px 0 0;transition:500ms;-o-transition:500ms;-moz-transition:500ms;-webkit-transition:500ms;}
.f_comment .wp-smiley{display:none;}
.muted small{color:#888;}
.muted{color:#888;margin-left:10px;}
/*teamnewslist*/
.teamnewslist{list-style:none;margin-left: 36px;padding-left: 14px;border-left: 2px solid #eee;font-size: 16px;color: #666;margin-top: 20px;padding-top: 5px;}
.teamnewslist b{font-size: 13px;font-weight: normal;color: #999;display: block;position: relative;}
.teamnewslist b::after{position: absolute;top: 2px;left: -23px;content: '';width: 12px;height: 12px;border-radius: 50%;background-color: #fff;border: 2px solid #ccc;box-shadow: 2px 2px 0 rgba(255,255,255,1), -2px -2px 0 rgba(255,255,255,1)}
.teamnewslist li{margin-bottom: 30px;}
.teamnewslist li:hover{color: #555;}
.teamnewslist li:hover b::after{border-color: #FF5E52;}
.teamnewslist li:hover b{color: #FF5E52;}
#search-form #s{width: 180px;display:inline-block;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555;background-color:#fff;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-ms-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s;}
.so-input{cursor:pointer;-webkit-appearance:button;display:inline-block;padding:5px 10px 5px;margin-bottom:0;font-size:13px;line-height:18px;color:#fff;text-align:center;border-radius: 4px;border:0;background-color: #7F9BC0;}
.widget_ui_posts .thumbnail {float: left;margin-left: -95px;width: 85px;height: 55px;overflow: hidden;}
.widget_ui_posts .thumbnail img{height: auto!important;}
.widget_ui_posts li {padding: 20px 0 0 95px;overflow: hidden;position: relative;display: block;}
.widget_ui_posts h3 {margin: 0;}
.widget_ui_posts h3 a{color: #444;}
section ul{padding: 20px;}
section div{padding: 20px;}
/* 友链 */
img.ylink{float:left;width:40px;border-radius:100px;}
li.l-name{display:-webkit-inline-box;}
.l-all{width:auto;}
.l-name a{display:block;overflow:hidden;padding:10px;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;}
/*html5mp3*/
.lrcplay{width:350px;height:64px;position:relative;margin:10px auto 0;background-color: #7F9BC0;font-size:12px;font-family:monospace;}
.statusinfo{margin: 20px 0 0 60px;width:190px;float:left;color:#ffffff;}
.statusinfo .lrcicon-play{background:url(images/playing.png);width:10px;height:10px;display:inline-block;margin:0 10px 0 0;}
.statusinfo .lrcicon-playing{background:url(images/playing.gif);width:10px;height:10px;display:inline-block;margin:0 10px 0 0;}
.simple-player-container {}
.simple-player-container > div > ul {margin: 0;padding-left: 0;}
.simpleplayer-play-control {font: normal normal normal 36px/1 FontAwesome;cursor: pointer;display: block;width: 36px;height: 36px;right: 10px;color:#fff;opacity: 0.7;}
.simpleplayer-play-control{background: url(images/play.png);}
.simpleplayer-stop-control {font: normal normal normal 36px/1 FontAwesome;cursor: pointer;display: block;width: 36px;height: 36px;right: 15px;color:#fff;opacity: 0.7;}
.simpleplayer-stop-control{background: url(images/pause.png);}
.simple-player-container .progressbar-wrapper{height: 4px;position: absolute;bottom: 0;}
/*comments*/
#comments{background:#fff;}
#comments #prompt{padding:0 50px;color:#7F9BC0;}
.face{position:relative;top:-12px;float:left;margin-right:10px;width:42px;height:42px;}
.face1{background:url(images/face1.png) center center no-repeat;}
.face2{background:url(images/face2.png) center center no-repeat;}
.comment_amount{margin-top:20px;margin-bottom:50px;}
.comment_amount a{font-size:16px;line-height:22px;}
.comment-show{padding:60px 0 0;text-align:center;}
.comment-show li{margin-bottom:10px;}
.commentlist{margin:20px 0;padding:0 40px 20px 40px;list-style:none;font-size:13px;line-height:20px;}
.commentlist p{margin:0;color:#888;}
.commentlist li{margin:20px 0;}
.commentlist .comment_body{padding:10px;border-bottom:1px dashed #E7E7E7;}
.commentlist a{color:#7F9BC0;}
.comment_body .author{float:left;margin-top:3px;padding-right:4px;}
.comment_body .author .avatar{width:36px;height:36px;box-shadow:1px 1px 2px rgba(0,0,0,.3);}
.comment_body:hover .author .avatar{transition:500ms;-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);}
.comment_body .author .avatar{-webkit-transition:500ms;-moz-transition:500ms;-o-transition:500ms;transition:500ms;}
.comment_body .comment_data{margin-left:44px;}
.comment_body .name{color:#7F9BC0;}
.comment_body .text{color:#474747;}
.comment_body .time{color:#9f9f9f;}
.comment_body .reply{float:right;margin-right:4px;}
.commentlist li ul li .comment_body{margin-left:40px;}
#respond{position:relative;overflow:hidden;padding:20px 40px;font-size:13px;}
#respond div{margin:6px 0;color:#7F9BC0;}
#respond .welcome{margin:10px 0 0 60px;color:#888;}
#respond .f-publish{padding:20px 0 0 60px;}
#respond .f-publish span{position:relative;top:25px;float:left;margin-left:-210px;width:180px;text-align:right;font-size:13px;}
#respond .f-publish span img{border-radius:100px;}
#respond label{position:relative;top:5px;}
#respond input{overflow:hidden;padding:2px;width:150px;height:18px;outline:0;border:0;border-bottom:1px dashed #7F9BC0;background:0 0;color:#4f4f4f;font-size:13px;font-family:"微软雅黑";}
#respond textarea{overflow:hidden;margin-top:10px;padding:2px;width:98%;height:70px;outline:0;border:1px dashed #7F9BC0;background:#fff;color:#4f4f4f;font-size:13px;font-family:"微软雅黑";line-height:22px;resize:none;}
#respond input#submit{float:right;margin-right:14px;width:66px;height:26px;outline:0;border:0;border-radius:0;background:#7F9BC0;color:#fff;font-size:13px;font-family:"微软雅黑";cursor:pointer;}
#respond input#submit:hover{background:#8dc666;}
#error,#loading{position:relative;right:20px;float:right;}
#error img,#loading img{margin-bottom:4px;}
#smilies a{margin:0 1px;}
.commentnavi{margin-bottom:20px;padding:20px 40px;}
.commentnavi .page-numbers{margin:0;padding-right:4px;}
.commentnavi .current{color:#7F9BC0;}
.commnav_loding{padding-left:20px;background:url(images/loading-2.gif) left center no-repeat;}
/*点赞*/
.post-like{text-align:center;padding:10px}
.post-like a{ background-color:#7F9BC0;border-radius: 3px;color: #FFFFFF;font-size: 13px;padding: 5px 10px;text-decoration: none;outline:none}
.post-like a.done, .post-like a:hover{background-color:#eee;color:#21759B;}
.post-like a.done{cursor:not-allowed}
.pln{color:#000}
.slow{-webkit-transition:All 1s ease;-moz-transition:All 1s ease;-o-transition:All 1s ease;transition:All 1s ease;-ms-transition:All 1s ease}
.hidden{display:none;}
.m-sidebar {margin-bottom: 20px;}
.m-header{position:relative;left:0;z-index:4;display:none;margin:0;padding:0;width:100%;height:48px;background:#299982;color:#fff;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;}
.m-header-button{position:absolute;top:15px;left:15px;width:20px;height:20px;background-image:url(images/content-header.png);background-size:40px;background-repeat:no-repeat;cursor:pointer;}
.m-header-search{position:absolute;top:17px;right:17px;width:20px;height:20px;background-image:url(images/content-header.png);background-position:-20px 0;background-size:40px;background-repeat:no-repeat;cursor:pointer;}
.m-header h1{margin:0;text-align:center;font-weight:bold;font-size:14px;font-family:'Open Sans','Helvetica Neue',sans-serif;}
.m-header h1 a{margin:0;padding:12px 25px;height:48px;color:#fff;font-size:14px;line-height:53px;}
.m-nav-all{display:block;margin:0 auto;max-width:1100px;}
.m-logo-url{float:left;display:none;height:52px;}
.m-logo-url img{width:30%;border-radius:100%;}
.m-logo-url h3{margin:10px 0;color:#fff;font-weight:normal;}
#search-form{position:absolute;top:0;z-index:999;overflow:hidden;margin:0;padding:0;width:100%;height:51px;opacity:.5;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;}
#search-input-s{padding:0 23px 10px;}
#search-form.active{opacity:1;}
#search-form{-webkit-transition:all .5s;-moz-transition:all .5s;transition:all .5s;}
#search-form{-webkit-transform:translate(0,-53px);-moz-transform:translate(0,-53px);-o-transform:translate(0,-53px);transform:translate(0,-53px);-ms-transform:translate(0,-53px);}
#search-form.active{-webkit-transform:translate(0,-3px);-moz-transform:translate(0,-3px);-o-transform:translate(0,-3px);transform:translate(0,-3px);-ms-transform:translate(0,-3px);}
#search-form{top:-53px;}
#search-form.active{top:0;}
#search-form input[type="text"]{position:absolute;top:0;left:0;z-index:44;margin-right:0;width:100%;height:51px;background:#34393d;color:#fff;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;}
#search-form-close{position:absolute;top:0;right:0;z-index:45;width:55px;height:51px;color:#a9a9a9;text-align:center;line-height:58px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;}
#search-form-close.hover{color:#3dabda;}
#search-form input[type="button"]{position:absolute;top:9999px;right:9999px;z-index:-9999;width:0;height:0;text-indent:-9999px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;}
@media screen and (max-width:1100px){
header{display: none;}
.mainContent {width: 100%;margin: 0;}
.m-menu{float: left;background:url(images/m-menu.png);width:20px;height:20px;cursor: pointer;}
.m-admin{float: right;margin-right: 20px;background:url(images/m-admin.png);width:20px;height:20px;cursor: pointer;}
aside {width: 100%;float: none;background:#505050;}
.m-sidebar{display: none;}
.current-menu-item,.current_page_item{background:#7F9BC0;}
.blogitem {width: 100%;float: none;margin-left: 0;}
article {margin: 0;}
#comments {width: 100%;background: #fff;float: none;position: relative;}
.commentnavi{margin: 0;}
.comment-show {padding: 20px 0 0 0;margin-top:20px !important;}
.comment-show p {display: none;}
.comment-show ul {border: 0;padding-left: 10px;}
footer{display: none;}
.Copyright{margin: 0;}
.jp-audio {width: 100%;}
.seek-bar {width: 50% !important;}
.play {width: 10%;}
}
@media screen and (max-width:1100px){
body{background:#fff;overflow-x: hidden;}
header,aside{display:none;}
.m-header{display:block;}
.m-header-open{left:30% !important;}
.m-logo-url{float:none;display:block;margin:20px auto;text-align:center;height:100%;}
#m-nav{position:fixed;top:0;left:-30%;display:block;width:30%;height:100%;background:#505050;opacity:0;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;}
#m-nav .nav{float:none;margin-left:20px;}
#m-nav .nav>li{float:none;border-top:#666 1px solid;}
.m-nav .nav li a{padding:10px;}
.m-nav .nav > li > ul ,.m-nav .nav > li > ul > li > ul {background:0;position:static;display:block;}
.m-nav .nav li:hover > ul {background:#404040!important;}
.m-nav .nav > li > ul a{margin-left:40px;}
.m-nav-open{left:0 !important;opacity:1 !important;}
.mainContent {left:0;margin:0;background:#fff;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;}
.m-container-open,.m-footer-open{left:30% !important;}
#content,#pagination{margin:0;}
#pagination a{margin:auto;width:50%;}
footer{position:relative;left:0;display: block;background:0;border:0;overflow:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;}
}
@media screen and (min-width:750px) and (max-width:1100px){
.m-header-open,.m-container-open,.m-footer-open{left:30% !important;}
#m-nav{left:-30%;width:30%;}
}
@media screen and (max-width:750px){
.m-header-open,.m-container-open,.m-footer-open{left:50% !important;}
#m-nav{left:-50%;width:50%;}
}