} } } if ($i < 4) { $type .= '<a class="item-top item-' . $i . '" target="_blank" href="' . $c_url . '"><h4>【' . $tt . '】<small>评论:' . $count->cnt . '</small></h4>' . str_replace(' src=', ' data-src=', get_avatar($count->comment_author_email, $size = '36', AVATAR_DEFAULT)) . '<strong>' . $count->comment_author . '</strong>' . $c_url . '</a>'; } else { $type .= '<a target="_blank" href="' . $c_url . '" title="【' . $tt . '】评论:' . $count->cnt . '">' . str_replace(' src=', ' data-src=', get_avatar($count->comment_author_email, $size = '36', AVATAR_DEFAULT)) . $count->comment_author . '</a>'; } } echo $type; } ?> <div class="container container-page"> <?php _moloader('mo_pagemenu', false); ?> <div class="content"> <?php while (have_posts()) { the_post(); ?> <header class="article-header"> <h1 class="article-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h1> </header>
echo '<a class="cat" href="' . get_category_link($category[0]->term_id) . '">' . $category[0]->cat_name . '<i></i></a> '; } } echo '<h2><a' . _post_target_blank() . ' href="' . get_permalink() . '" title="' . get_the_title() . _get_delimiter() . get_bloginfo('name') . '">' . get_the_title() . '</a></h2>'; echo '</header>'; echo '<p class="meta">'; if ($p_meta && $p_meta['date']) { echo '<time><i class="fa fa-clock-o"></i>' . get_the_time('Y-m-d') . '</time>'; } if ($p_meta && $p_meta['author']) { $author = get_the_author(); if (_hui('author_link')) { $author = '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . $author . '</a>'; } echo '<span class="author"><i class="fa fa-user"></i>' . $author . '</span>'; } if ($p_meta && $p_meta['view']) { echo '<span class="pv"><i class="fa fa-eye"></i>' . _get_post_views() . '</span>'; } if (comments_open() && $p_meta && $p_meta['comm']) { echo '<a class="pc" href="' . get_comments_link() . '"><i class="fa fa-comments-o"></i>评论(' . get_comments_number('0', '1', '%') . ')</a>'; } echo '</p>'; echo '<p class="note">' . _get_excerpt() . '</p>'; if (_hui('post_link_excerpt_s')) { _moloader('mo_post_link'); } echo '</article>'; } _moloader('mo_paging'); wp_reset_query();
?> <div class="action-share bdsharebuttonbox"> <?php _moloader('mo_share'); ?> </div> <div class="article-tags"><?php the_tags('标签:', '', ''); ?> </div> <?php _the_ads($name = 'ads_post_02', $class = 'asb-post asb-post-02'); ?> <?php if (_wedn_option('post_related_s')) { _moloader('mo_posts_related', false); mo_posts_related(_wedn_option('related_title'), _wedn_option('post_related_n')); } ?> <?php _the_ads($name = 'ads_post_03', $class = 'asb-post asb-post-03'); ?> <?php comments_template('', true); ?> </div> </div> <?php get_sidebar(); ?> </section>
<?php if (_wedn_option('layout') == '1') { return; } ?> <aside class="sidebar"> <?php _moloader('mo_notice', false); if (function_exists('dynamic_sidebar')) { dynamic_sidebar('gheader'); if (is_home()) { dynamic_sidebar('home'); } elseif (is_category()) { dynamic_sidebar('cat'); } else { if (is_tag()) { dynamic_sidebar('tag'); } else { if (is_search()) { dynamic_sidebar('search'); } else { if (is_single()) { dynamic_sidebar('single'); } } } } dynamic_sidebar('gfooter'); } ?>
<?php } ?> <?php } ?> </div> </form> <?php } ?> </div> <?php if (have_comments()) { ?> <div id="postcomments"> <ol class="commentlist"> <?php _moloader('mo_comments_list', false); wp_list_comments('type=comment&callback=mo_comments_list'); ?> </ol> <div class="pagenav"> <?php paginate_comments_links('prev_next=0'); ?> </div> </div> <?php }
$roll = _wedn_option('sideroll_index'); } else { if ((is_category() || is_tag() || is_search()) && _wedn_option('sideroll_list_s')) { $roll = _wedn_option('sideroll_list'); } else { if (is_single() && _wedn_option('sideroll_post_s')) { $roll = _wedn_option('sideroll_post'); } } } if ($roll) { $roll = json_encode(explode(' ', $roll)); } else { $roll = []; } _moloader('mo_get_user_rp'); ?> <script> window.jsui={ www: '<?php echo home_url(); ?> ', uri: '<?php echo get_stylesheet_directory_uri(); ?> ', ver: '<?php echo THEME_VERSION; ?> ',
<?php $link_cat_ids = array(); foreach (_hui('navpage_cats') as $key => $value) { if ($value) { $link_cat_ids[] = $key; } } $link_cat_ids = implode(',', $link_cat_ids); ?> <div class="pageheader"> <div class="container"> <div class="share bdsharebuttonbox"> <?php _moloader('mo_share', false); mo_share('renren'); ?> </div> <h1><?php the_title(); ?> </h1> <div class="note"><?php echo _hui('navpage_desc') ? _hui('navpage_desc') : '这里显示的是网址导航的一句话描述...'; ?> </div> </div> </div> <section class="container" id="navs">
<?php /** * Template name: Reset password * Description: A reset password page */ get_header(); ?> <?php _moloader('mo_get_user_rp', false); $http_post = 'POST' == $_SERVER['REQUEST_METHOD']; $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'lostpassword'; if (isset($_REQUEST['key'])) { $action = 'resetpass'; } if (!in_array($action, array('lostpassword', 'resetpass', 'success'), true)) { $action = 'lostpassword'; } switch ($action) { case 'lostpassword': $errors = new WP_Error(); if ($http_post) { $errors = retrieve_password(); } if (isset($_REQUEST['error'])) { if ('invalidkey' == $_REQUEST['error']) { $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.')); } elseif ('expiredkey' == $_REQUEST['error']) { $errors->add('expiredkey', __('Sorry, that key has expired. Please try again.')); }
function _post_copyright($content) { _moloader('mo_is_minicat', false); if (!is_page() && !mo_is_minicat()) { if (_hui('ads_post_footer_s')) { $content .= '<p class="asb-post-footer"><b>AD:</b><strong>【' . _hui('ads_post_footer_pretitle') . '】</strong><a' . (_hui('ads_post_footer_link_blank') ? ' target="_blank"' : '') . ' href="' . _hui('ads_post_footer_link') . '">' . _hui('ads_post_footer_title') . '</a></p>'; } if (_hui('post_copyright_s')) { $content .= '<p class="post-copyright">' . _hui('post_copyright') . '<a href="' . get_bloginfo('url') . '">' . get_bloginfo('name') . '</a> » <a href="' . get_permalink() . '">' . get_the_title() . '</a></p>'; } } return $content; }
<div class="content"> <?php if ($paged == 1 && _hui('focusslide_s')) { _moloader('mo_slider', false); mo_slider('focusslide'); } ?> <?php $pagedtext = ''; if ($paged > 1) { $pagedtext = ' <small>第' . $paged . '页</small>'; } ?> <?php if (_hui('minicat_home_s')) { _moloader('mo_minicat'); } ?> <?php _the_ads($name = 'ads_index_01', $class = 'asb-index asb-index-01'); ?> <div class="title"> <h3> <?php echo _hui('index_list_title') ? _hui('index_list_title') : '最新发布'; ?> <?php echo $pagedtext; ?> </h3> <?php
<?php /** * For site notice and user welcome */ if (is_home() && (_hui('site_notice_s') || _hui('user_on_notice_s'))) { $s_notice = _hui('site_notice_s'); $s_user = _hui('user_page_s') && _hui('user_on_notice_s'); _moloader('mo_get_user_page', false); ?> <div class="widget widget-tops"> <ul class="widget-nav"> <?php if ($s_notice) { ?> <li<?php echo $s_notice ? ' class="active"' : ''; ?> ><?php echo _hui('site_notice_title') ? _hui('site_notice_title') : '网站公告'; ?> </li><?php } ?> <?php if ($s_user) { ?> <li<?php echo $s_user && !$s_notice ? ' class="active"' : ''; ?> >会员中心</li><?php