-
Notifications
You must be signed in to change notification settings - Fork 0
Foredoomed/wordpress
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
************************* *******Blog backup******* ************************* ************************** Custom changes as below: ************************** =========================================================== *********php files******** =========================================================== -------------------------- ------1.functions.php----- -------------------------- /** * Prevent wp from decoding. */ remove_filter('the_content', 'wptexturize'); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. */ function my_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'my_page_menu_args' ); ---------------------------------------------------------------- functions.php: the_content('阅读全文'); ---------------------------------------------------------------- function mytheme_comment($comment, $args, $depth) { static $comment_number; $comment_number++; $GLOBALS['comment'] = $comment; ?> <?php $i = 0; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <span class="comment-counter"><a href="#comment-<?php comment_ID() ?>" title="Permalink to this comment" rel="nofollow">#<?php echo $comment_number; ?></a></span> <?php echo get_avatar($comment,$size='32'); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> </div> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.') ?></em> <br /> <?php endif; ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> <?php comment_text() ?> <?php $i++; ?> </div> <?php } ************************************************************* --------------------------- -------2.page.php---------- --------------------------- <?php if (!is_page('programmer-competency-matrix') ) { get_sidebar(); } ?> ************************************************************* ============================================================= *********style.css******** ============================================================= 1.all the font/font-family ---> arial, helvetica, sans-serif; ------------------------------------------------------------- 2.body ---> color:#333; ------------------------------------------------------------- 3..widget {font-size:1.3em;} ------------------------------------------------------------- 4..comment-author { 1. font-weight: bold; 2. font-size: 1.5em; 3. line-height: 1.1; } delete => font-weight:bold; ------------------------------------------------------------- 5..comment-meta {font-size:1.1em; font-style:italic; color:#777;} delete => font-style:italic; -------------------------------------------------------------- 6.modify: #pp-subscribe a {padding:5px 5px 5px 50px; font-weight:bold; font-size:14px; line-height:33px; display:block;} delete: #pp-feed -------------------------------------------------------------- 7..entry-title a:hover, .entry-byline a:hover, .navigation a:hover { color: black;[delete] } [modify] .entry-content a { font-family: arial, helvetica, sans-serif; text-decoration: none; border-bottom: 1px dotted; } -------------------------------------------------------------- 8..comment-author cite {font-style:normal;color: #0070C5; } -------------------------------------------------------------- 9..comment-counter{font-size:1em; float:right;} ************************************************************** ============================================================== **********wp-syntex******** ============================================================== 1.geshi.php: if ($escaped == "true") $code = htmlspecialchars_decode($code); ======> if ($escaped != "false") $code = htmlspecialchars_decode($code); ---------------------------------------------------------------- 2.wp-syntex.css: background-color: #EEEEEE; .wp_syntax pre { margin: 0; width: auto; float: none; clear: none; overflow: visible; font-size: 12px; line-height: 1.333; white-space: pre; } ------------------------------------------------------------------- 3.java.php: 'KEYWORDS' => array( 1 => 'color: #7F0055; font-weight: bold;', 2 => 'color: #7F0055; font-weight: bold;', 3 => 'color: #000000;', 4 => 'color: #7F0055; font-weight: bold;' ), 'METHODS'=>array{ 1=>'color:#000000;', 2=>'color:#000000;' } 'BRACKETS'=>array{ 0=>'color:#000000;' } 'ESCAPE_CHAR'=>array{ 0=>'color:#7F0055;font-weight:bold;' } ---------------------------------------------------------------------- ************************************************************** ============================================================== **********subscribe.php******** ============================================================== *******delete********: <a href="<?php if ($pp_feed_address) {echo $pp_feed_address;} else {bloginfo('rss2_url');} ?>" title="Subscribe to this Feed via RSS">Subscribe <span class="email-narrow">to this blog</span></a> -------------------------------------------------------------------------------- *******add*******: <li> <a href="http://feeds.feedburner.com/zhixingheyi" title="Subscribe to my feed" rel="alternate" type="application/rss+xml"><img src="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" alt="Subscribe in a reader" style="border:0;vertical-align:middle"/></a><a href="http://feeds.feedburner.com/zhixingheyi" title="Subscribe to my feed" rel="alternate" type="application/rss+xml">Subscribe in a reader</a> </li> <li> <a target="_blank" href="https://twitter.com/nauxuil" title="Follow me on Twitter"> <img src="twitter_32x32.png" alt="Follow me on Twitter" style="border:0;vertical-align:middle"/></a><a target="_blank" href="https://twitter.com/nauxuil" title="Follow me on Twitter">Follow me on Twitter</a> </li> ************************************************************** ============================================================== **********comments.php******** ============================================================== <?php wp_list_comments(array('style' => 'ol','type'=>'comment','callback'=>'mytheme_comment')); ?> **************************************************************
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published