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 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_Ten
* @since ... | zyblog | trunk/zyblog/wp-content/themes/twentyten/page.php | PHP | asf20 | 751 |
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title... | zyblog | trunk/zyblog/wp-content/themes/twentyten/header.php | PHP | asf20 | 4,410 |
<?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/twentyten/archive.php | PHP | asf20 | 1,799 |
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s'... | zyblog | trunk/zyblog/wp-content/themes/twentyten/search.php | PHP | asf20 | 1,190 |
<?php
/**
* The Footer widget areas.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 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 ( ! is_... | zyblog | trunk/zyblog/wp-content/themes/twentyten/sidebar-footer.php | PHP | asf20 | 1,742 |
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
<div id="primary" class="widget-area" role="complementary">
<ul class="xoxo">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* th... | zyblog | trunk/zyblog/wp-content/themes/twentyten/sidebar.php | PHP | asf20 | 1,503 |
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<div id="post-0" class="post error404 not-found">
<h1 class="entry-title"><?php _e( 'Not Found... | zyblog | trunk/zyblog/wp-content/themes/twentyten/404.php | PHP | asf20 | 841 |
<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<h1 class="page-title"><?php
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>'... | zyblog | trunk/zyblog/wp-content/themes/twentyten/category.php | PHP | asf20 | 928 |
<?php
/**
* The loop that displays a page.
*
* 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-page.php.
*
* @pa... | zyblog | trunk/zyblog/wp-content/themes/twentyten/loop-page.php | PHP | asf20 | 1,158 |
/*
Theme Name: Twenty Ten
Theme URI: http://wordpress.org/extend/themes/twentyten
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) ... | zyblog | trunk/zyblog/wp-content/themes/twentyten/style.css | CSS | asf20 | 23,340 |
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php
/* Run the loop to output the post.
* If you want to overload this in a child theme then... | zyblog | trunk/zyblog/wp-content/themes/twentyten/single.php | PHP | asf20 | 555 |
<?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 twentyten_comment which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Ten
* ... | zyblog | trunk/zyblog/wp-content/themes/twentyten/comments.php | PHP | asf20 | 3,022 |
<?php
/**
* The loop that displays a single post.
*
* 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-single.php.
... | zyblog | trunk/zyblog/wp-content/themes/twentyten/loop-single.php | PHP | asf20 | 2,996 |
<?php
/**
* The loop that displays an attachment.
*
* 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-attachment.p... | zyblog | trunk/zyblog/wp-content/themes/twentyten/loop-attachment.php | PHP | asf20 | 5,133 |
/*
Theme Name: Twenty Ten
*/
/*
RTL Basics
*/
body {
direction:rtl;
unicode-bidi:embed;
}
/*
LAYOUT: Two-Column (Right)
DESCRIPTION: Two-column fixed layout with one sidebar right of content
*/
#container {
float: right;
margin: 0 0 0 -240px;
}
#content {
margin: 0 20px 36px 280px;
}
#primary,
#secondary {
... | zyblog | trunk/zyblog/wp-content/themes/twentyten/rtl.css | CSS | asf20 | 4,387 |
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content
* after. Calls sidebar-footer.php for bottom widgets.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
</div><!-- #main -->
<div id="footer" role="contentinfo">
<div... | zyblog | trunk/zyblog/wp-content/themes/twentyten/footer.php | PHP | asf20 | 1,365 |
<?php
/**
* The template for displaying Tag Archive pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<h1 class="page-title"><?php
printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_... | zyblog | trunk/zyblog/wp-content/themes/twentyten/tag.php | PHP | asf20 | 703 |
<?php
/**
* The template for displaying attachments.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container" class="single-attachment">
<div id="content" role="main">
<?php
/* Run the loop to output the attachment.
* If you want to overload... | zyblog | trunk/zyblog/wp-content/themes/twentyten/attachment.php | PHP | asf20 | 566 |
/*
Theme Name: Twenty Ten
Description: Used to style the TinyMCE editor.
*/
html .mceContentBody {
max-width: 640px;
}
* {
color: #444;
font-family: Georgia, "Bitstream Charter", serif;
line-height: 1.5;
}
p,
dl,
td,
th,
ul,
ol,
blockquote {
font-size: 16px;
}
tr th,
thead th,
label,
tr th,
thead th {
font-family... | zyblog | trunk/zyblog/wp-content/themes/twentyten/editor-style.css | CSS | asf20 | 3,748 |
<?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/twentyten/index.php | PHP | asf20 | 883 |
<?php
// Silence is golden.
?> | zyblog | trunk/zyblog/wp-content/themes/index.php | PHP | asf20 | 30 |
<?php
// Silence is golden.
| zyblog | trunk/zyblog/wp-content/index.php | PHP | asf20 | 28 |
<?php
/**
* XML-RPC protocol support for WordPress
*
* @package WordPress
*/
/**
* Whether this is a XMLRPC Request
*
* @var bool
*/
define('XMLRPC_REQUEST', true);
// Some browser-embedded clients send cookies. We don't want them.
$_COOKIE = array();
// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set... | zyblog | trunk/zyblog/xmlrpc.php | PHP | asf20 | 2,719 |
<?php
/**
* WordPress User Page
*
* Handles authentication, registering, resetting passwords, forgot password,
* and other user handling.
*
* @package WordPress
*/
/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );
// Redirect to https login ... | zyblog | trunk/zyblog/wp-login.php | PHP | asf20 | 29,310 |
<?php
/**
* Handles Comment Post to WordPress and prevents duplicate comment posting.
*
* @package WordPress
*/
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. */
... | zyblog | trunk/zyblog/wp-comments-post.php | PHP | asf20 | 3,522 |
<?php
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' );
add_action( 'wp_head', 'wp_no_robots' );
require( './wp-blog-header.php' );
if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) =... | zyblog | trunk/zyblog/wp-signup.php | PHP | asf20 | 18,219 |
<?php
/**
* WordPress 基础配置文件。
*
* 本文件包含以下配置选项:MySQL 设置、数据库表名前缀、密钥、
* WordPress 语言设定以及 ABSPATH。如需更多信息,请访问
* {@link http://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php
* 编辑 wp-config.php} Codex 页面。MySQL 设置具体信息请咨询您的空间提供商。
*
* 这个文件用在于安装程序自动生成 wp-config.php 配置文件,
* 您可以手动复制这个文件,并重命名为“wp-conf... | zyblog | trunk/zyblog/wp-config-sample.php | PHP | asf20 | 3,025 |
<?php
/**
* Edit user administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));
$user_id = (int) $user_id;
$current_user = wp_get_current... | zyblog | trunk/zyblog/wp-admin/user-edit.php | PHP | asf20 | 18,836 |
<?php
/**
* WordPress Administration for Navigation Menus
* Interface functions
*
* @version 2.0.0
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
// Load all the nav menu interface functions
require_once( ABSPATH . 'wp-admin... | zyblog | trunk/zyblog/wp-admin/nav-menus.php | PHP | asf20 | 27,739 |
<?php
/**
* Users administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! current_user_can( 'list_users' ) )
wp_die( __( 'Cheatin’ uh?' ) );
$wp_list_table = _get_list_table('WP_Users_List_Table');
$pagen... | zyblog | trunk/zyblog/wp-admin/users.php | PHP | asf20 | 15,548 |
<?php
/**
* Edit Tags Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! $taxnow )
wp_die( __( 'Invalid taxonomy' ) );
$tax = get_taxonomy( $taxnow );
if ( ! $tax )
wp_die( __( 'Invalid taxonomy' ) );
if... | zyblog | trunk/zyblog/wp-admin/edit-tags.php | PHP | asf20 | 15,616 |
<?php
/**
* Accepts file uploads from swfupload or other asynchronous upload methods.
*
* @package WordPress
* @subpackage Administration
*/
define('WP_ADMIN', true);
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');
if ( ! ( isset( $_REQUEST['action'] ) && ... | zyblog | trunk/zyblog/wp-admin/async-upload.php | PHP | asf20 | 3,749 |
<?php
/**
* Install plugin administration panel.
*
* @package WordPress
* @subpackage Administration
*/
// TODO route this pages via a specific iframe handler instead of the do_action below
if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
define( 'IFRAME_REQ... | zyblog | trunk/zyblog/wp-admin/plugin-install.php | PHP | asf20 | 3,509 |
<?php
/**
* User Profile Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/**
* This is a profile page.
*
* @since 2.5.0
* @var bool
*/
define('IS_PROFILE_PAGE', true);
/** Load User Editing Page */
require_once('./user-edit.php');
| zyblog | trunk/zyblog/wp-admin/profile.php | PHP | asf20 | 273 |
<?php
/**
* Multisite sites administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
require_once( './admin.php' );
wp_redirect( network_admin_url('sites.php') );
exit;
| zyblog | trunk/zyblog/wp-admin/ms-sites.php | PHP | asf20 | 207 |
<?php
/**
* Multisite users administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
require_once( './admin.php' );
wp_redirect( network_admin_url('users.php') );
exit;
| zyblog | trunk/zyblog/wp-admin/ms-users.php | PHP | asf20 | 207 |
<?php
/**
* WordPress Administration Template Header
*
* @package WordPress
* @subpackage Administration
*/
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if ( ! defined( 'WP_ADMIN' ) )
require_once( './admin.php' );
// In case admin-header.php is included in a ... | zyblog | trunk/zyblog/wp-admin/admin-header.php | PHP | asf20 | 4,486 |
<?php
/**
* Media Library administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( !current_user_can('upload_files') )
wp_die( __( 'You do not have permission to upload files.' ) );
$wp_list_table = _get_list_tabl... | zyblog | trunk/zyblog/wp-admin/upload.php | PHP | asf20 | 9,550 |
<?php
/**
* Displays Administration Menu.
*
* @package WordPress
* @subpackage Administration
*/
/**
* The current page.
*
* @global string $self
* @name $self
* @var string
*/
$self = preg_replace('|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF']);
$self = preg_replace('|^.*/wp-admin/|i', '', $self);
$s... | zyblog | trunk/zyblog/wp-admin/menu-header.php | PHP | asf20 | 6,961 |
<?php
/**
* My Sites dashboard.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
require_once( './admin.php' );
if ( !is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! current_user_can('read') )
wp_die( __( 'You do not have sufficient permissions to view this page.'... | zyblog | trunk/zyblog/wp-admin/my-sites.php | PHP | asf20 | 3,805 |
<?php
/**
* Manage link administration actions.
*
* This page is accessed by the link management pages and handles the forms and
* AJAX processes for link actions.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once ('admin.php');
wp_reset_vars(ar... | zyblog | trunk/zyblog/wp-admin/link.php | PHP | asf20 | 2,741 |
<?php
/**
* Multisite administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
require_once( './admin.php' );
wp_redirect( network_admin_url() );
exit;
| zyblog | trunk/zyblog/wp-admin/ms-admin.php | PHP | asf20 | 190 |
<?php
/**
* Edit user administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
require_once( './admin.php' );
require( '../user-edit.php' ); | zyblog | trunk/zyblog/wp-admin/user/user-edit.php | PHP | asf20 | 183 |
<?php
/**
* User Profile Administration Screen.
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
require_once( './admin.php' );
require( '../profile.php' ); | zyblog | trunk/zyblog/wp-admin/user/profile.php | PHP | asf20 | 185 |
<?php
/**
* WordPress User Administration Bootstrap
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
define('WP_USER_ADMIN', true);
require_once( dirname(dirname(__FILE__)) . '/admin.php');
if ( ! is_multisite() ) {
wp_redirect( admin_url() );
exit;
}
$redirect_user_admin_request = ( ( ... | zyblog | trunk/zyblog/wp-admin/user/admin.php | PHP | asf20 | 651 |
<?php
/**
* User Dashboard Credits administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../credits.php' ); | zyblog | trunk/zyblog/wp-admin/user/credits.php | PHP | asf20 | 241 |
<?php
/**
* User Dashboard About administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../about.php' ); | zyblog | trunk/zyblog/wp-admin/user/about.php | PHP | asf20 | 237 |
<?php
/**
* User Dashboard Freedoms administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../freedoms.php' ); | zyblog | trunk/zyblog/wp-admin/user/freedoms.php | PHP | asf20 | 243 |
<?php
/**
* Build User Administration Menu.
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
$menu[2] = array(__('Dashboard'), 'exist', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'div');
$menu[4] = array( '', 'exist', 'separator1', '', 'wp-menu-separat... | zyblog | trunk/zyblog/wp-admin/user/menu.php | PHP | asf20 | 671 |
<?php
/**
* User Dashboard Administration Screen
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
require_once( './admin.php' );
require( '../index.php' );
| zyblog | trunk/zyblog/wp-admin/user/index.php | PHP | asf20 | 185 |
<?php
/**
* Update Core administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
wp_enqueue_style( 'plugin-install' );
wp_enqueue_script( 'plugin-install' );
add_thickbox();
if ( is_multisite() && ! is_network_admin() ) {... | zyblog | trunk/zyblog/wp-admin/update-core.php | PHP | asf20 | 22,882 |
<?php
/**
* WordPress Administration Bootstrap
*
* @package WordPress
* @subpackage Administration
*/
/**
* In WordPress Administration Screens
*
* @since 2.3.2
*/
if ( ! defined('WP_ADMIN') )
define('WP_ADMIN', true);
if ( ! defined('WP_NETWORK_ADMIN') )
define('WP_NETWORK_ADMIN', false);
if ( ! defined(... | zyblog | trunk/zyblog/wp-admin/admin.php | PHP | asf20 | 6,611 |
<?php
/**
* Administration Functions
*
* This file is deprecated, use 'wp-admin/includes/admin.php' instead.
*
* @deprecated 2.5
* @package WordPress
* @subpackage Administration
*/
_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/admin.php' );
/** WordPress Administration API: Includes all Adm... | zyblog | trunk/zyblog/wp-admin/admin-functions.php | PHP | asf20 | 401 |
<?php
/**
* WordPress Administration Template Footer
*
* @package WordPress
* @subpackage Administration
*/
// don't load directly
if ( !defined('ABSPATH') )
die('-1');
?>
<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wp... | zyblog | trunk/zyblog/wp-admin/admin-footer.php | PHP | asf20 | 1,222 |
<?php
/**
* Edit plugin editor administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'plugin-editor.php' ) );
exit();
}
if ( !current_us... | zyblog | trunk/zyblog/wp-admin/plugin-editor.php | PHP | asf20 | 11,067 |
<?php
/**
* New User Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( is_multisite() ) {
if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) )
wp_die( __( 'Cheatin’ uh?... | zyblog | trunk/zyblog/wp-admin/user-new.php | PHP | asf20 | 16,627 |
<?php
/**
* Media settings administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
... | zyblog | trunk/zyblog/wp-admin/options-media.php | PHP | asf20 | 5,820 |
<?php
/**
* New Post Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
if ( !isset($_GET['post_type']) )
$post_type = 'post';
elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) )... | zyblog | trunk/zyblog/wp-admin/post-new.php | PHP | asf20 | 1,709 |
<?php
/**
* Disable error reporting
*
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
*/
error_reporting(0);
/** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' );
/**
* @ignore
*/
function __() {}
/... | zyblog | trunk/zyblog/wp-admin/load-scripts.php | PHP | asf20 | 2,841 |
<?php
/**
* Network installation administration panel.
*
* A multi-step process allowing the user to enable a network of WordPress sites.
*
* @since 3.0.0
*
* @package WordPress
* @subpackage Administration
*/
define( 'WP_INSTALLING_NETWORK', true );
/** WordPress Administration Bootstrap */
require_once( '.... | zyblog | trunk/zyblog/wp-admin/network.php | PHP | asf20 | 25,706 |
<?php
/**
* WordPress Export Administration Screen
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once ('admin.php');
if ( !current_user_can('export') )
wp_die(__('You do not have sufficient permissions to export the content of this site.'));
/** Load WordPress e... | zyblog | trunk/zyblog/wp-admin/export.php | PHP | asf20 | 7,799 |
<?php
/**
* Disable error reporting
*
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
*/
error_reporting(0);
/** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' );
/**
* @ignore
*/
function __() {}
/... | zyblog | trunk/zyblog/wp-admin/load-styles.php | PHP | asf20 | 3,126 |
<?php
/**
* WordPress Upgrade Functions. Old file, must not be used. Include
* wp-admin/includes/upgrade.php instead.
*
* @deprecated 2.5
* @package WordPress
* @subpackage Administration
*/
_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/upgrade.php' );
require_once(ABSPATH . 'wp-admin/includes... | zyblog | trunk/zyblog/wp-admin/upgrade-functions.php | PHP | asf20 | 336 |
jQuery(document).ready( function($) {
postboxes.add_postbox_toggles('comment');
var stamp = $('#timestamp').html();
$('.edit-timestamp').click(function () {
if ($('#timestampdiv').is(":hidden")) {
$('#timestampdiv').slideDown("normal");
$('.edit-timestamp').hide();
}
return false;
});
$('.cancel-tim... | zyblog | trunk/zyblog/wp-admin/js/comment.js | JavaScript | asf20 | 1,471 |
/* Plugin Browser Thickbox related JS*/
var tb_position;
jQuery(document).ready(function($) {
tb_position = function() {
var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width, adminbar_height = 0;
if ( $('body.admin-bar').length )
adminbar_height =... | zyblog | trunk/zyblog/wp-admin/js/plugin-install.js | JavaScript | asf20 | 1,865 |
(function($) {
inlineEditTax = {
init : function() {
var t = this, row = $('#inline-edit');
t.type = $('#the-list').attr('data-wp-lists').substr(5);
t.what = '#'+t.type+'-';
$('.editinline').live('click', function(){
inlineEditTax.edit(this);
return false;
});
// prepare the edit row
row.keyup... | zyblog | trunk/zyblog/wp-admin/js/inline-edit-tax.js | JavaScript | asf20 | 2,973 |
jQuery(document).ready( function($) {
var before, addBefore, addAfter, delBefore;
before = function() {
var nonce = $('#newmeta [name="_ajax_nonce"]').val(), postId = $('#post_ID').val();
if ( !nonce || !postId ) { return false; }
return [nonce,postId];
}
addBefore = function( s ) {
var b = before();
if... | zyblog | trunk/zyblog/wp-admin/js/custom-fields.js | JavaScript | asf20 | 1,008 |
jQuery(document).ready(function($) {
$('.delete-tag').live('click', function(e){
var t = $(this), tr = t.parents('tr'), r = true, data;
if ( 'undefined' != showNotice )
r = showNotice.warn();
if ( r ) {
data = t.attr('href').replace(/[^?]*\?/, '').replace(/action=delete/, 'action=delete-tag');
$.post(a... | zyblog | trunk/zyblog/wp-admin/js/tags.js | JavaScript | asf20 | 2,493 |
var tagBox, commentsBox, editPermalink, makeSlugeditClickable, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint;
// return an array with any duplicate, whitespace or values removed
function array_unique_noempty(a) {
var out = [];
jQuery.each( a, function(key, val) {
val = jQuery.trim(val);
if... | zyblog | trunk/zyblog/wp-admin/js/post.js | JavaScript | asf20 | 22,642 |
(function($){
function check_pass_strength() {
var pass1 = $('#pass1').val(), user = $('#user_login').val(), pass2 = $('#pass2').val(), strength;
$('#pass-strength-result').removeClass('short bad good strong');
if ( ! pass1 ) {
$('#pass-strength-result').html( pwsL10n.empty );
return;
}
strength = p... | zyblog | trunk/zyblog/wp-admin/js/user-profile.js | JavaScript | asf20 | 2,246 |
var showNotice, adminMenu, columns, validateForm, screenMeta;
(function($){
// Removed in 3.3.
// (perhaps) needed for back-compat
adminMenu = {
init : function() {},
fold : function() {},
restoreMenuState : function() {},
toggle : function() {},
favorites : function() {}
};
// show/hide/save table columns
column... | zyblog | trunk/zyblog/wp-admin/js/common.js | JavaScript | asf20 | 11,768 |
(function( exports, $ ){
var api = wp.customize;
/*
* @param options
* - previewer - The Previewer instance to sync with.
* - transport - The transport to use for previewing. Supports 'refresh' and 'postMessage'.
*/
api.Setting = api.Value.extend({
initialize: function( id, value, options ) {
var eleme... | zyblog | trunk/zyblog/wp-admin/js/customize-controls.js | JavaScript | asf20 | 26,611 |
/*!
* Farbtastic: jQuery color picker plug-in v1.3u
*
* Licensed under the GPL license:
* http://www.gnu.org/licenses/gpl.html
*/
(function($) {
$.fn.farbtastic = function (options) {
$.farbtastic(this, options);
return this;
};
$.farbtastic = function (container, callback) {
var container = $(container)... | zyblog | trunk/zyblog/wp-admin/js/farbtastic.js | JavaScript | asf20 | 7,689 |
// send html to the post editor
var wpActiveEditor;
function send_to_editor(h) {
var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined';
if ( !wpActiveEditor ) {
if ( mce && tinymce.activeEditor ) {
ed = tinymce.activeEditor;
wpActiveEditor = ed.id;
} else if ( !qt ) {
return ... | zyblog | trunk/zyblog/wp-admin/js/media-upload.js | JavaScript | asf20 | 2,675 |
(function($,undefined) {
wpWordCount = {
settings : {
strip : /<[a-zA-Z\/][^<>]*>/g, // strip HTML tags
clean : /[0-9.(),;:!?%#$¿'"_+=\\/-]+/g, // regexp to remove punctuation, etc.
w : /\S\s+/g, // word-counting regexp
c : /\S/g // char-counting regexp for asian languages
},
block : 0,
wc : fun... | zyblog | trunk/zyblog/wp-admin/js/word-count.js | JavaScript | asf20 | 978 |
(function($) {
var id = 'undefined' !== typeof current_site_id ? '&site_id=' + current_site_id : '';
$(document).ready( function() {
$( '.wp-suggest-user' ).autocomplete({
source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
delay: 500,
minLength: 2,
position: ( 'undefined' ... | zyblog | trunk/zyblog/wp-admin/js/user-suggest.js | JavaScript | asf20 | 566 |
jQuery(function($){
$( 'body' ).bind( 'click.wp-gallery', function(e){
var target = $( e.target ), id, img_size;
if ( target.hasClass( 'wp-set-header' ) ) {
( window.dialogArguments || opener || parent || top ).location.href = target.data( 'location' );
e.preventDefault();
} else if ( target.hasClass( 'wp... | zyblog | trunk/zyblog/wp-admin/js/media-gallery.js | JavaScript | asf20 | 748 |
/**
* PubSub
*
* A lightweight publish/subscribe implementation.
* Private use only!
*/
var PubSub, fullscreen, wptitlehint;
PubSub = function() {
this.topics = {};
};
PubSub.prototype.subscribe = function( topic, callback ) {
if ( ! this.topics[ topic ] )
this.topics[ topic ] = [];
this.topics[ topic ].pu... | zyblog | trunk/zyblog/wp-admin/js/wp-fullscreen.js | JavaScript | asf20 | 17,275 |
(function($) {
inlineEditPost = {
init : function(){
var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');
t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post';
t.what = '#post-';
// prepare the edit rows
qeRow.keyup(function(e){
if (e.which == 27)
return inlineEditPost.rev... | zyblog | trunk/zyblog/wp-admin/js/inline-edit-post.js | JavaScript | asf20 | 9,034 |
var thickDims, tbWidth, tbHeight;
jQuery(document).ready(function($) {
thickDims = function() {
var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h;
w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 90;
h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 60;
if ( tbWindow.s... | zyblog | trunk/zyblog/wp-admin/js/theme-preview.js | JavaScript | asf20 | 1,775 |
var findPosts;
(function($){
findPosts = {
open : function(af_name, af_val) {
var st = document.documentElement.scrollTop || $(document).scrollTop(),
overlay = $( '.ui-find-overlay' );
if ( overlay.length == 0 ) {
$( 'body' ).append( '<div class="ui-find-overlay"></div>' );
findPosts.overlay();
... | zyblog | trunk/zyblog/wp-admin/js/media.js | JavaScript | asf20 | 2,977 |
var postboxes;
(function($) {
postboxes = {
add_postbox_toggles : function(page, args) {
var self = this;
self.init(page, args);
$('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() {
var p = $(this).parent('.postbox'), id = p.attr('id');
if ( 'dashboard_browser_nag' == id )
... | zyblog | trunk/zyblog/wp-admin/js/postbox.js | JavaScript | asf20 | 4,784 |
jQuery(document).ready( function($) {
$('#link_rel').prop('readonly', true);
$('#linkxfndiv input').bind('click keyup', function() {
var isMe = $('#me').is(':checked'), inputs = '';
$('input.valinp').each( function() {
if (isMe) {
$(this).prop('disabled', true).parent().addClass('disabled');
} else {
... | zyblog | trunk/zyblog/wp-admin/js/xfn.js | JavaScript | asf20 | 575 |
(function($) {
$(document).ready(function() {
var bgImage = $("#custom-background-image"),
frame;
$('#background-color').wpColorPicker({
change: function( event, ui ) {
bgImage.css('background-color', ui.color.toString());
},
clear: function() {
bgImage.css('background-color', '');
}
});
... | zyblog | trunk/zyblog/wp-admin/js/custom-background.js | JavaScript | asf20 | 1,850 |
var theList, theExtraList, toggleWithKeyboard = false;
(function($) {
var getCount, updateCount, updatePending, dashboardTotals;
setCommentsList = function() {
var totalInput, perPageInput, pageInput, lastConfidentTime = 0, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList;
totalInput = $('input[... | zyblog | trunk/zyblog/wp-admin/js/edit-comments.js | JavaScript | asf20 | 17,503 |
var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad;
jQuery(document).ready( function($) {
/* Dashboard Welcome Panel */
var welcomePanel = $('#welcome-panel'),
welcomePanelHide = $('#wp_welcome_panel-hide'),
updateWelcomePanel = function( visible ) {
$.post( ajaxurl, {
action: 'update-welcome-panel',
... | zyblog | trunk/zyblog/wp-admin/js/dashboard.js | JavaScript | asf20 | 3,366 |
<?php
// The JS here is purposefully obfuscated to preserve mystery and romance.
// If you want to see behind the curtain, visit http://core.trac.wordpress.org/ticket/15262
if ( !defined( 'ABSPATH' ) )
exit;
/** @ignore */
function dvortr( $str ) {
return strtr(
$str,
'\',.pyfgcrl/=\\aoeuidhtns-;qjkxbmwvz"<>PY... | zyblog | trunk/zyblog/wp-admin/js/revisions-js.php | PHP | asf20 | 3,162 |
/**
* WordPress Administration Navigation Menu
* Interface JS functions
*
* @version 2.0.0
*
* @package WordPress
* @subpackage Administration
*/
var wpNavMenu;
(function($) {
var api = wpNavMenu = {
options : {
menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead.
... | zyblog | trunk/zyblog/wp-admin/js/nav-menu.js | JavaScript | asf20 | 29,806 |
/**
* Theme Browsing
*
* Controls visibility of theme details on manage and install themes pages.
*/
jQuery( function($) {
$('#availablethemes').on( 'click', '.theme-detail', function (event) {
var theme = $(this).closest('.available-theme'),
details = theme.find('.themedetaildiv');
if ( ! details.length... | zyblog | trunk/zyblog/wp-admin/js/theme.js | JavaScript | asf20 | 6,153 |
// Password strength meter
function passwordStrength(password1, username, password2) {
var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, mismatch = 5, symbolSize = 0, natLog, score;
// password 1 != password 2
if ( (password1 != password2) && password2.length > 0)
return mismatch
//password < 4
if ... | zyblog | trunk/zyblog/wp-admin/js/password-strength-meter.js | JavaScript | asf20 | 872 |
( function( $, undef ){
// html stuff
var _before = '<a tabindex="0" class="wp-color-result" />',
_after = '<div class="wp-picker-holder" />',
_wrap = '<div class="wp-picker-container" />',
_button = '<input type="button" class="button button-small hidden" />';
// jQuery UI Widget constructor
var ColorPicke... | zyblog | trunk/zyblog/wp-admin/js/color-picker.js | JavaScript | asf20 | 4,208 |
jQuery(document).ready( function($) {
var newCat, noSyncChecks = false, syncChecks, catAddAfter;
$('#link_name').focus();
// postboxes
postboxes.add_postbox_toggles('link');
// category tabs
$('#category-tabs a').click(function(){
var t = $(this).attr('href');
$(this).parent().addClass('tabs').siblings('li... | zyblog | trunk/zyblog/wp-admin/js/link.js | JavaScript | asf20 | 2,166 |
jQuery(document).ready(function($) {
var options = false, addAfter, delBefore, delAfter;
if ( document.forms['addcat'].category_parent )
options = document.forms['addcat'].category_parent.options;
addAfter = function( r, settings ) {
var name, id;
name = $("<span>" + $('name', r).text() + "</span>").text();
... | zyblog | trunk/zyblog/wp-admin/js/categories.js | JavaScript | asf20 | 948 |
jQuery(document).ready(function($) {
var gallerySortable, gallerySortableInit, w, desc = false;
gallerySortableInit = function() {
gallerySortable = $('#media-items').sortable( {
items: 'div.media-item',
placeholder: 'sorthelper',
axis: 'y',
distance: 2,
handle: 'div.filename',
stop: function(e, ... | zyblog | trunk/zyblog/wp-admin/js/gallery.js | JavaScript | asf20 | 5,225 |
var wpWidgets;
(function($) {
wpWidgets = {
init : function() {
var rem, sidebars = $('div.widgets-sortables'), isRTL = !! ( 'undefined' != typeof isRtl && isRtl ),
margin = ( isRtl ? 'marginRight' : 'marginLeft' ), the_id;
$('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(... | zyblog | trunk/zyblog/wp-admin/js/widgets.js | JavaScript | asf20 | 8,195 |
(function($) {
var frame;
$( function() {
// Fetch available headers and apply jQuery.masonry
// once the images have loaded.
var $headers = $('.available-headers');
$headers.imagesLoaded( function() {
$headers.masonry({
itemSelector: '.default-header',
isRTL: !! ( 'undefined' != typeof isRtl && ... | zyblog | trunk/zyblog/wp-admin/js/custom-header.js | JavaScript | asf20 | 1,483 |
var switchEditors = {
switchto: function(el) {
var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4);
this.go(id, mode);
},
go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'; 'html' is used for the "Text" editor tab.
id = id || 'content';
mode = mode || 't... | zyblog | trunk/zyblog/wp-admin/js/editor.js | JavaScript | asf20 | 8,168 |
var imageEdit;
(function($) {
imageEdit = {
iasapi : {},
hold : {},
postid : '',
intval : function(f) {
return f | 0;
},
setDisabled : function(el, s) {
if ( s ) {
el.removeClass('disabled');
$('input', el).removeAttr('disabled');
} else {
el.addClass('disabled');
$('input', el).prop('disable... | zyblog | trunk/zyblog/wp-admin/js/image-edit.js | JavaScript | asf20 | 14,390 |
function WPSetAsThumbnail(id, nonce){
var $link = jQuery('a#wp-post-thumbnail-' + id);
$link.text( setPostThumbnailL10n.saving );
jQuery.post(ajaxurl, {
action:"set-post-thumbnail", post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie)
}, function(str){
var win = w... | zyblog | trunk/zyblog/wp-admin/js/set-post-thumbnail.js | JavaScript | asf20 | 679 |
<?php
/**
* Media management action handler.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
wp_reset_vars(array('action'));
switch( $action ) :
case 'editattachment' :
... | zyblog | trunk/zyblog/wp-admin/media.php | PHP | asf20 | 5,207 |