code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/**
* The template for displaying a "No posts found" message.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/content-none.php | PHP | asf20 | 593 |
<?php
/**
* The template for displaying posts in the Quote post format
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/content-quote.php | PHP | asf20 | 1,113 |
/*
Theme Name: Twenty Twelve
Description: Used to style the TinyMCE editor.
*/
html {
font-size: 87.5%;
}
html .mceContentBody {
max-width: 625px;
}
body {
color: #444;
font-family: "Open Sans", Helvetica, Arial, sans-serif;
font-size: 14px;
font-size: 1rem;
line-height: 1;
text-rendering: optimizeLegibility;
... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/editor-style.css | CSS | asf20 | 5,464 |
<?php
/**
* The template for displaying posts in the Aside post format
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="aside">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?p... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/content-aside.php | PHP | asf20 | 1,390 |
<?php
/**
* The template for displaying image attachments.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( ... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/image.php | PHP | asf20 | 4,079 |
<?php
/**
* The template used for displaying page content in page.php
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/content-page.php | PHP | asf20 | 731 |
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php... | zyblog | trunk/zyblog/wp-content/themes/twentytwelve/index.php | PHP | asf20 | 2,060 |
<?php
/**
* The template for displaying posts in the Link Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header c... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-link.php | PHP | asf20 | 2,110 |
<?php
/**
* The template for displaying content in the single.php template
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-single.php | PHP | asf20 | 3,144 |
<?php
/**
* The template for displaying posts in the Gallery Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-gallery.php | PHP | asf20 | 3,991 |
/*
Theme Name: Twenty Eleven
*/
/*
Used to style the TinyMCE editor.
*/
html .mceContentBody {
direction: rtl;
unicode-bidi: embed;
float: right;
width: 584px;
}
* {
font-family: Arial, Tahoma, sans-serif;
}
ul, ol {
margin: 0 2.5em 1.625em 0;
}
blockquote {
font-style: normal;
}
table {
text-align: right;
} | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/editor-style-rtl.css | CSS | asf20 | 317 |
<?php
/**
* Twenty Eleven functions and definitions
*
* Sets up the theme and provides some helper functions. Some helper functions
* are used in the theme as custom template tags. Others are attached to action and
* filter hooks in WordPress to change core functionality.
*
* The first function, twentyeleven_set... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/functions.php | PHP | asf20 | 30,472 |
<?php
/**
* The template for displaying Author Archive pages.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php
/* Queue the first post, that way we know
... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/author.php | PHP | asf20 | 2,920 |
<?php
/**
* The template for displaying search forms in Twenty Eleven
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleve... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/searchform.php | PHP | asf20 | 593 |
<?php
/**
* Template Name: Showcase Template
* Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts
*
* The showcase template in Twenty Eleven consists of a featured posts section using sticky posts,
* another recent posts area (with the latest post shown in full and the rest as a list)... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/showcase.php | PHP | asf20 | 7,411 |
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @sin... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/page.php | PHP | asf20 | 692 |
(function($) {
$(document).ready( function() {
$('.feature-slider a').click(function(e) {
$('.featured-posts section.featured-post').css({
opacity: 0,
visibility: 'hidden'
});
$(this.hash).css({
opacity: 1,
visibility: 'visible'
... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/js/showcase.js | JavaScript | asf20 | 473 |
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/header.php | PHP | asf20 | 5,589 |
<?php
/**
* The default template for displaying content
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( is_sticky() ) : ?>
<hgroup>
<h2 class="entry-title"><a ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content.php | PHP | asf20 | 3,952 |
<?php
/**
* The template for displaying posts in the Image Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-image.php | PHP | asf20 | 3,455 |
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Tw... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/archive.php | PHP | asf20 | 2,426 |
<?php
/**
* The template for displaying posts in the Status Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Twenty_Eleven
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-status.php | PHP | asf20 | 2,226 |
#wpcontent select option {
padding-right: 5px;
}
.image-radio-option td {
padding-top: 15px;
}
.image-radio-option label {
display: block;
float: left;
margin: 0 30px 20px 2px;
position: relative;
}
.image-radio-option input {
margin: 0 0 10px;
}
.image-radio-option span {
display: block;
width: 136px;
}
.imag... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/inc/theme-options.css | CSS | asf20 | 615 |
( function( $ ){
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '#site-title a' ).html( to );
} );
} );
wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '#site-description' ).html( to );
} );
} );
} )( jQuery ); | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/inc/theme-customizer.js | JavaScript | asf20 | 296 |
<?php
/**
* Twenty Eleven Theme Options
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
/**
* Properly enqueue styles and scripts for our theme options page.
*
* This function is attached to the admin_enqueue_scripts action hook.
*
* @since Twenty Eleven 1.0
*
*/
function ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/inc/theme-options.php | PHP | asf20 | 19,398 |
var farbtastic;
(function($){
var pickColor = function(a) {
farbtastic.setColor(a);
$('#link-color').val(a);
$('#link-color-example').css('background-color', a);
};
$(document).ready( function() {
$('#default-color').wrapInner('<a href="#" />');
farbtastic = $.farbtastic('#colorPickerDiv', pickColor);
... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/inc/theme-options.js | JavaScript | asf20 | 1,240 |
<?php
/**
* Makes a custom Widget for displaying Aside, Link, Status, and Quote Posts available with Twenty Eleven
*
* Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
class Twenty_Eleven_Ephemera_Widget extend... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/inc/widgets.php | PHP | asf20 | 6,069 |
<?php
/**
* The template for displaying content featured in the showcase.php page template
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
global $feature_class;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
<header class="entry-header">
<h2 ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-featured.php | PHP | asf20 | 1,906 |
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-tit... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/search.php | PHP | asf20 | 1,639 |
<?php
/**
* The Footer widget areas.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<?php
/* The footer widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
if ( ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/sidebar-footer.php | PHP | asf20 | 1,233 |
<?php
/**
* The Sidebar containing the main widget area.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
$options = twentyeleven_get_theme_options();
$current_layout = $options['theme_layout'];
if ( 'content' != $current_layout ) :
?>
<div id="secondary" class="widget-area" ro... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/sidebar.php | PHP | asf20 | 956 |
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<article id="post-0" class="post error404 not-found">
<header class="entry-header">
<... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/404.php | PHP | asf20 | 1,601 |
<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-t... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/category.php | PHP | asf20 | 1,928 |
/*
Theme Name: Twenty Eleven
Theme URI: http://wordpress.org/extend/themes/twentyeleven
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further w... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/style.css | CSS | asf20 | 54,966 |
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<nav id="nav-single">
<h3 class="assis... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/single.php | PHP | asf20 | 948 |
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyeleven_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_El... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/comments.php | PHP | asf20 | 3,124 |
/*
A dark color scheme for Twenty Eleven
*/
/* =Global
----------------------------------------------- */
body {
background: #1d1d1d;
color: #bbb;
}
#page {
background: #0f0f0f;
}
/* Headings */
hr {
background-color: #333;
}
/* Text elements */
blockquote cite {
color: #999;
}
pre {
background: #0b0b0b;
}
c... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/colors/dark.css | CSS | asf20 | 13,248 |
<?php
/**
* Template Name: Sidebar Template
* Description: A Page Template that adds a sidebar to pages
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/sidebar-page.php | PHP | asf20 | 563 |
/*
Theme Name: Twenty Eleven
Adding support for language written in a Right To Left (RTL) direction is easy -
it's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
http://codex.wordpress.org/Right_to_Left_Language_Support
*/
/... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/rtl.css | CSS | asf20 | 10,976 |
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content after
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
</div><!-- #main -->
<footer id="colophon" role="contentinfo">
<?php
/* A sidebar in the footer? Y... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/footer.php | PHP | asf20 | 898 |
<?php
/**
* The template used to display Tag Archive pages
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/tag.php | PHP | asf20 | 1,888 |
<?php
/**
* The template for displaying page content in the showcase.php page template
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'intro' ); ?>>
<header class="entry-header">
<h2 class="entry-title"><?php the_titl... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-intro.php | PHP | asf20 | 743 |
<?php
/**
* The default template for displaying content
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<hgroup>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" ti... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-quote.php | PHP | asf20 | 3,191 |
/*
Theme Name: Twenty Eleven
Description: Used to style the TinyMCE editor.
*/
html .mceContentBody {
max-width: 584px;
}
* {
color: inherit;
font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: inherit;
font-weight: inherit;
line-height: 1.625;
}
body {
color: #333;
font: 15px "Helvetica Neu... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/editor-style.css | CSS | asf20 | 5,032 |
<?php
/**
* The template for displaying posts in the Aside Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header ... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-aside.php | PHP | asf20 | 2,112 |
<?php
/**
* The template for displaying image attachments.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary" class="image-attachment">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<nav id="nav-single"... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/image.php | PHP | asf20 | 4,143 |
<?php
/**
* The template used for displaying page content in page.php
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/content-page.php | PHP | asf20 | 777 |
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file e... | zyblog | trunk/zyblog/wp-content/themes/twentyeleven/index.php | PHP | asf20 | 1,491 |
<?php
/*
Template Name: Link
*/
?>
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="查看评论" id="ct"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<script type="text/javascript">
jQ... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/link.php | PHP | asf20 | 1,154 |
<?php echo get_avatar( $comment, 40 ); ?> | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/comment_gravatar.php | PHP | asf20 | 41 |
<?php
include("includes/theme_options.php");
if (function_exists('register_sidebar'))
{
register_sidebar(array(
'name' => '小工具1',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3>',
'after_title' => '</h3>',
'after_widget' => '',
));
}
{
... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/functions.php | PHP | asf20 | 29,308 |
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="查看评论" id="ct"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="left">
<div class="article">
<h2><?php the_title(); ?></h... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/page.php | PHP | asf20 | 595 |
jQuery(document).ready(function(){
jQuery('.article h2 a').click(function(){
jQuery(this).text('页面载入中……');
window.location = jQuery(this).attr('href');
});
});
// 滚屏
jQuery(document).ready(function(){
jQuery('#roll_top').click(function(){jQuery('html,body').animate({scrollTop: '0px'}, 800);});
jQuery('#ct... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/js/metrobeta.js | JavaScript | asf20 | 4,857 |
<!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 profile="http://gmpg.org/xfn/11">
<?php include('includes/seo.php'); ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/header.php | PHP | asf20 | 5,013 |
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<ul <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<li>
<div class="post_dat... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/archive.php | PHP | asf20 | 2,564 |
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<ul <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<li>
<div class="post_dat... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/search.php | PHP | asf20 | 2,712 |
<div id="sidebar">
<div class="sidebar-roll">
<div class="sidebar-img2">
<a href="http://www.itkes.com/?feed=rss2" rel="bookmark" target="_blank" title="订阅到RSS"><img width="40" height="40" src="<?php echo get_bloginfo('template_directory').'/images/rss.png' ?>" alt="订阅到RSS" title="订阅到RSS" /></a>
<a href="http://ww... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/sidebar.php | PHP | asf20 | 4,742 |
<?php get_header(); ?>
<div id="content">
<div class="main">
<div class="left">
<div class="articles">
<h3>抱歉,您打开的页面未能找到。<br />您可以使用本站的搜索框搜索您想要的内容,如有不便深感抱歉!</h3>
<h3>系统将在 <span id="secondsDisplay">3</span> 秒钟之后带你返回首页。<h3>
</div>
</div>
</div>
<script type="text/javascript">
var i = 3;
var intervalid;
int... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/404.php | PHP | asf20 | 813 |
/*
Theme Name: HelloMetro
Theme URL: http://www.itkes.com
Description:IT客栈 HelloMetro版主题,是仿Windows Metro UI风格,简洁大方,功能支持首页和分类归档页面文章缩略图显示,两种尺寸,首先前三篇自动大图展示。支持彩色标签云,支持随机文章。主题预览<a href="http://www.itkes.com">IT客栈</a>。
Author: 孤霞飞
Author URI: http://www.itkes.com
Tags: IT客栈 HelloMetro
Version: Beta
*/
* {... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/style.css | CSS | asf20 | 44,238 |
<?php get_header(); ?>
<span id="btn_page_prev"><?php previous_post_link( '%link', '<span id="fanye">‹</span>' ); ?></span>
<span id="btn_page_next"><?php next_post_link( '%link', '<span id="fanye">›</span>' ); ?></span>
<div id="content">
<div class="main">
<?php if (have_posts()) : while (have_posts()) : t... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/single.php | PHP | asf20 | 4,671 |
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match th... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/comments.php | PHP | asf20 | 5,618 |
/*
Theme Name: Weisay Simple
Theme URL: http://www.weisay.com/blog/wordpress-theme-weisay-simple.html
Description: 简约而不简单的主题,获得此主题使用帮助<a href="http://www.weisay.com/blog/wordpress-theme-weisay-simple.html">weisay.com</a>。
Author: Weisay
Author URI: http://www.weisay.com
Tags: weisay,weisaysimple,Simple,威言威语
Ver... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/css/t-orange.css | CSS | asf20 | 14,504 |
/*
Theme Name: Weisay Simple
Theme URL: http://www.weisay.com/blog/wordpress-theme-weisay-simple.html
Description: 简约而不简单的主题,获得此主题使用帮助<a href="http://www.weisay.com/blog/wordpress-theme-weisay-simple.html">weisay.com</a>。
Author: Weisay
Author URI: http://www.weisay.com
Tags: weisay,weisaysimple,Simple,威言威语
Ver... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/css/t-purple.css | CSS | asf20 | 14,544 |
/*
Theme Name: Weisay Simple
Theme URL: http://www.weisay.com/blog/wordpress-theme-weisay-simple.html
Description: 简约而不简单的主题,获得此主题使用帮助<a href="http://www.weisay.com/blog/wordpress-theme-weisay-simple.html">weisay.com</a>。
Author: Weisay
Author URI: http://www.weisay.com
Tags: weisay,weisaysimple,Simple,威言威语
Ver... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/css/t-green.css | CSS | asf20 | 14,542 |
/*
Theme Name: Weisay Simple
Theme URL: http://www.weisay.com/blog/wordpress-theme-weisay-simple.html
Description: 简约而不简单的主题,获得此主题使用帮助<a href="http://www.weisay.com/blog/wordpress-theme-weisay-simple.html">weisay.com</a>。
Author: Weisay
Author URI: http://www.weisay.com
Tags: weisay,weisaysimple,Simple,威言威语
Ver... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/css/t-red.css | CSS | asf20 | 14,543 |
/*
Theme Name: Weisay Simple
Theme URL: http://www.weisay.com/blog/wordpress-theme-weisay-simple.html
Description: 简约而不简单的主题,获得此主题使用帮助<a href="http://www.weisay.com/blog/wordpress-theme-weisay-simple.html">weisay.com</a>。
Author: Weisay
Author URI: http://www.weisay.com
Tags: weisay,weisaysimple,Simple,威言威语
Ver... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/css/t-pink.css | CSS | asf20 | 14,543 |
/**
* 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++ ;
... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/comments-ajax.js | JavaScript | asf20 | 6,098 |
<?php
/**
* WordPress 內置嵌套評論專用 Ajax comments >> WordPress-jQuery-Ajax-Comments v1.29 by Willin Kan.
*
* 說明: 這個文件是由 WP 2.92 根目錄的 wp-comment-post.php 修改的, 修改的地方有注解. 當 WP 升級, 請注意可能有所不同.
*/
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
header('Allow: POST');
header('HTTP/1.1 405 Method Not Allowed');
header('Conten... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/comments-ajax.php | PHP | asf20 | 7,002 |
<div class="v_comment"><ul>
<?php
$query="SELECT COUNT(comment_ID) AS cnt, comment_author, comment_author_url, comment_author_email FROM (SELECT * FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->posts.ID=$wpdb->comments.comment_post_ID) WHERE comment_date > date_sub( NOW(), INTERVAL 1 MONTH ) AND u... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/gbook2.php | PHP | asf20 | 950 |
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="footer">
<div id="footer-body">
<a id="footer-logo" rel="nofollow" href="http://www.itkes.com/"></a>
<div id="footer-content">
Copyright <?php echo comicpress_copyright(); ?> <?php bloginfo('name'); ?> |
<a href="http://www.itkes.com/sitemap... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/footer.php | PHP | asf20 | 2,164 |
<?php/*Template Name: avatar*/?>
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="查看评论" id="ct"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="left">
<div class="artic... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/getavatar.php | PHP | asf20 | 810 |
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready(function() {
function setsplicon(c, d) {
if (c.html()=='+' || d=='+') {
c.html('-');
... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/archives.php | PHP | asf20 | 2,261 |
<h3>最新评论</h3>
<div class="r_comment">
<ul>
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url,comment_author_email, SUBSTRING(comment_content,1,16) AS com_excerpt FROM $wpdb->... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/r_comment2.php | PHP | asf20 | 1,049 |
<div class="thumbnail_box">
<div class="thumbnail">
<?php if ( get_post_meta($post->ID, 'thumbnail', true) ) : ?>
<?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>"... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/articlepic.php | PHP | asf20 | 738 |
<script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/lazyload.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery(".article img, .articles img").not("#respond_box img").lazyload({
placeholder:"<?php bloginfo('template_url'); ?>/images/image-pending... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/lazyload.php | PHP | asf20 | 387 |
<div class="page_menu">
<ul id="menu-pages-menu" class="navi">
<li class="page_item page-item-0"><a href="<?php echo get_settings('Home'); ?>/" title="首页">首页</a></li>
<?php wp_list_pages('depth=2&title_li='); ?>
</ul></div> | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/pages_url.php | PHP | asf20 | 231 |
<?php
$t1=$post->post_date;
$t2=date("Y-m-d H:i:s");
$diff=(strtotime($t2)-strtotime($t1))/7200;
if($diff<24){echo '<img src="'.get_bloginfo('template_directory').'/images/new.png" alt="较新的文章" title="较新的文章" />';}
?> | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/new.php | PHP | asf20 | 251 |
<!--<h3><span>最新日志</span><span class="selected">热评日志</span><span>随机日志</span></h3>
<div id="tab-content">
<ul class="hide"><?php $myposts = get_posts('numberposts=10&offset=0');foreach($myposts as $post) :?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="详细阅读 <?php the_title_attribute(); ?>"><?php... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/r_tab.php | PHP | asf20 | 1,749 |
<div class="random">
<h2>随便看看</h2>
<div class="random_c">
<ol type="A">
<?php
query_posts(array('orderby' => 'rand', 'showposts' => 8, 'caller_get_posts' => 4));
if (have_posts()) :
while (have_posts()) : the_post();?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="P... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/random.php | PHP | asf20 | 472 |
<div class="thumbnail_box">
<div class="thumbnail">
<?php if ( get_post_meta($post->ID, 'thumbnail', true) ) : ?>
<?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/thumbnail.php | PHP | asf20 | 659 |
<h3>最活跃的读者</h3>
<ul>
<?php
$query="SELECT COUNT(comment_ID) AS cnt, comment_author, comment_author_url, comment_author_email FROM (SELECT * FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->posts.ID=$wpdb->comments.comment_post_ID) WHERE comment_date > date_sub( NOW(), INTERVAL 1 MONTH ) AND user_id='... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/top_comment2.php | PHP | asf20 | 953 |
<?php if (get_option('swt_type') == 'Display') { ?>
<h3>最新评论</h3>
<div class="r_comment">
<ul>
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url,comment_author_email, SUBSTRING(comme... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/r_comment.php | PHP | asf20 | 1,271 |
<?php if ( is_home() ) { ?><title><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?></title><?php } ?>
<?php if ( is_search() ) { ?><title>搜索结果 | <?php bloginfo('name'); ?></title><?php } ?>
<?php if ( is_single() ) { ?><title><?php echo trim(wp_title('',0)); ?> | <?php bloginfo('name'); ?></title><?php } ?... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/seo.php | PHP | asf20 | 2,089 |
<div id="blogname"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>
<div id="blogtitle"><?php bloginfo('description'); ?></div></div> | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/logo.php | PHP | asf20 | 164 |
<h3>标签云集</h3>
<?php wp_tag_cloud('smallest=12&largest=16&unit=px&number=65&orderby=count&order=RAND');?> | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/r_tags.php | PHP | asf20 | 113 |
<?php
$backup = $post;
$tags = wp_get_post_tags($post->ID);
$tagIDs = array();
if ($tags) {
echo '<ul class="related-post">';
$tagcount = count($tags);
for ($i = 0; $i < $tagcount; $i++) {
$tagIDs[$i] = $tags[$i]->term_id;
}
$args=array(
'tag__in' => $tagIDs,
'post__not_in' => array($post->ID),... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/related.php | PHP | asf20 | 1,256 |
<h3>博客统计</h3>
<ul>
<li>日志总数:<?php $count_posts = wp_count_posts(); echo $published_posts = $count_posts->publish;?> 篇</li>
<li>评论总数:<?php echo $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments where comment_author!='".(get_option('swt_user'))."'");?> 篇</li>
<li>标签数量:<?php echo $count_tags = wp_count_terms('post_t... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/r_statistics.php | PHP | asf20 | 978 |
.rm_wrap{
width:740px;
}
.rm_section{
border: 1px solid #ddd;
height:100%;
border-bottom:0;
background:#fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.rm_opts label{
font-size:12px;
font-weight:700;
width:200px;
display:block;
float:left;
}
.rm_input {
padding:20px 10... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/options/options.css | CSS | asf20 | 1,837 |
jQuery(document).ready(function(){
jQuery('.rm_options').slideUp();
jQuery('.rm_section h3').click(function(){
if(jQuery(this).parent().next('.rm_options').css('display')=='none')
{ jQuery(this).removeClass('inactive');
jQuery(this).addClass('active');
jQuery(this).children('img').removeCl... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/options/rm_script.js | JavaScript | asf20 | 698 |
<?php
$themename = "Weisay Simple";
$shortname = "swt";
$categories = get_categories('hide_empty=0&orderby=name');
$wp_cats = array();
foreach ($categories as $category_list ) {
$wp_cats[$category_list->cat_ID] = $category_list->cat_name;
}
//Stylesheets Reader
$alt_stylesheet_path = TEMPLATEPATH . '/css/';
$a... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/theme_options.php | PHP | asf20 | 15,089 |
<?php if (get_option('swt_smiley') == 'Display') { ?>
<script type="text/javascript">
/* <![CDATA[ */
function grin(tag) {
var myField;
tag = ' ' + tag + ' ';
if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {
myField = document.getElementById(... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/smiley.php | PHP | asf20 | 3,993 |
<?php if (get_option('swt_type') == 'Display') { ?>
<h3>最活跃的读者</h3>
<ul>
<?php
$counts = $wpdb->get_results("SELECT COUNT(comment_ID) AS cnt, comment_author, comment_author_url, comment_author_email FROM (SELECT * FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->posts.ID=$wpdb->comments.comment_post_ID) WHE... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/includes/top_comment.php | PHP | asf20 | 1,139 |
<?php
/**
* WordPress 內置嵌套評論專用 Ajax comments >> WordPress-jQuery-Ajax-Comments v1.29 by Willin Kan.
*
* 說明: 這個文件是由 WP 2.92 根目錄的 wp-comment-post.php 修改的, 修改的地方有注解. 當 WP 升級, 請注意可能有所不同.
*/
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
header('Allow: POST');
header('HTTP/1.1 405 Method Not Allowed');
header('Conten... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/comments-ajax2.php | PHP | asf20 | 7,003 |
<?php get_header(); ?>
<div id="content">
<div class="main">
<?php $count = 1; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<ul <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<li>
<?php if(($count == 1||$count == 2||$count == 3)) : ?>
<div class="post_date">
<span clas... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/index.php | PHP | asf20 | 4,625 |
<?php
/*
Template Name: Guestbook
*/
?>
<?php get_header(); ?>
<div id="roll"><div title="回到顶部" id="roll_top"></div><div title="查看评论" id="ct"></div><div title="转到底部" id="fall"></div></div>
<div id="content">
<div class="main"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="left">
<div class... | zyblog | trunk/zyblog/wp-content/themes/HelloMetro/gbook.php | PHP | asf20 | 2,247 |
<?php
/**
* Template Name: One column, no sidebar
*
* A custom page template without sidebar.
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id... | zyblog | trunk/zyblog/wp-content/themes/twentyten/onecolumn-page.php | PHP | asf20 | 700 |
/*
Theme Name: Twenty Ten
*/
/*
Used to style the TinyMCE editor.
*/
html .mceContentBody{
direction: rtl;
unicode-bidi: embed;
float: right;
width: 640px;
}
* {
font-family: Arial, Tahoma, sans-serif;
}
/* Text elements */
ul, ol {
margin: 0 -18px 18px 0;
}
dd {
margin-right: 0;
}
blockquote {
font-style: norm... | zyblog | trunk/zyblog/wp-content/themes/twentyten/editor-style-rtl.css | CSS | asf20 | 380 |
<?php
/**
* TwentyTen functions and definitions
*
* Sets up the theme and provides some helper functions. Some helper functions
* are used in the theme as custom template tags. Others are attached to action and
* filter hooks in WordPress to change core functionality.
*
* The first function, twentyten_setup(), s... | zyblog | trunk/zyblog/wp-content/themes/twentyten/functions.php | PHP | asf20 | 28,403 |
<?php
/**
* The template for displaying Author Archive pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php
/* Queue the first post, that way we know who
* the author is when we try to get their name... | zyblog | trunk/zyblog/wp-content/themes/twentyten/author.php | PHP | asf20 | 1,950 |
<?php
/**
* The loop that displays posts.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop.php or
* loop-templ... | zyblog | trunk/zyblog/wp-content/themes/twentyten/loop.php | PHP | asf20 | 9,032 |