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 /** * Deprecated. Use rss.php instead. * * @package WordPress */ _deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' ); require_once (ABSPATH . WPINC . '/rss.php');
zyblog
trunk/zyblog/wp-includes/rss-functions.php
PHP
asf20
188
<?php /** * WordPress Link Template Functions * * @package WordPress * @subpackage Template */ /** * Display the permalink for the current post. * * @since 1.2.0 * @uses apply_filters() Calls 'the_permalink' filter on the permalink string. */ function the_permalink() { echo apply_filters('the_permalink', ge...
zyblog
trunk/zyblog/wp-includes/link-template.php
PHP
asf20
73,622
<?php if ( ! class_exists( 'SimplePie' ) ) : // Load classes we will need. require ABSPATH . WPINC . '/SimplePie/Misc.php'; require ABSPATH . WPINC . '/SimplePie/Cache.php'; require ABSPATH . WPINC . '/SimplePie/File.php'; require ABSPATH . WPINC . '/SimplePie/Sanitize.php'; require ABSPATH . WPINC . '/SimplePie/Regis...
zyblog
trunk/zyblog/wp-includes/class-simplepie.php
PHP
asf20
90,453
<?php /** * Customize Control Class * * @package WordPress * @subpackage Customize * @since 3.4.0 */ class WP_Customize_Control { /** * @access public * @var WP_Customize_Manager */ public $manager; /** * @access public * @var string */ public $id; /** * All settings tied to the control. * ...
zyblog
trunk/zyblog/wp-includes/class-wp-customize-control.php
PHP
asf20
19,516
<?php /** * These functions are needed to load WordPress. * * @internal This file must be parsable by PHP4. * * @package WordPress */ /** * Turn register globals off. * * @access private * @since 2.1.0 * @return null Will return null if register_globals PHP directive was disabled */ function wp_unregister_...
zyblog
trunk/zyblog/wp-includes/load.php
PHP
asf20
23,563
<?php /** * Atom Feed Template for displaying Atom Posts feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <feed xmlns="http://www.w3.org...
zyblog
trunk/zyblog/wp-includes/feed-atom.php
PHP
asf20
2,535
<?php /** * IXR - The Incutio XML-RPC Library * * Copyright (c) 2010, Incutio Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the ab...
zyblog
trunk/zyblog/wp-includes/class-IXR.php
PHP
asf20
31,675
<?php /** * Date and Time Locale object * * @package WordPress * @subpackage i18n */ /** * Class that loads the calendar locale. * * @since 2.1.0 */ class WP_Locale { /** * Stores the translated strings for the full weekday names. * * @since 2.1.0 * @var array * @access private */ var $weekday; ...
zyblog
trunk/zyblog/wp-includes/locale.php
PHP
asf20
11,687
<?php /** * Option API * * @package WordPress */ /** * Retrieve option value based on name of option. * * If the option does not exist or does not have a value, then the return value * will be false. This is useful to check whether you need to install an option * and is commonly used during installation of pl...
zyblog
trunk/zyblog/wp-includes/option.php
PHP
asf20
33,452
<?php /** * Comment template functions * * These functions are meant to live inside of the WordPress loop. * * @package WordPress * @subpackage Template */ /** * Retrieve the author of the current comment. * * If the comment has an empty comment_author field, then 'Anonymous' person is * assumed. * * @sin...
zyblog
trunk/zyblog/wp-includes/comment-template.php
PHP
asf20
54,753
<?php /** * The WordPress Toolbar * * @since 3.1.0 * * @package WordPress * @subpackage Toolbar */ class WP_Admin_Bar { private $nodes = array(); private $bound = false; public $user; public function __get( $name ) { switch ( $name ) { case 'proto' : return is_ssl() ? 'https://' : 'http://'; br...
zyblog
trunk/zyblog/wp-includes/class-wp-admin-bar.php
PHP
asf20
14,531
<?php /** * Deprecated functions from WordPress MU and the multisite feature. You shouldn't * use these functions and look for the alternatives instead. The functions will be * removed in a later version. * * @package WordPress * @subpackage Deprecated * @since 3.0.0 */ /* * Deprecated functions come here to ...
zyblog
trunk/zyblog/wp-includes/ms-deprecated.php
PHP
asf20
7,087
<?php /** * Default Widgets * * @package WordPress * @subpackage Widgets */ /** * Pages widget class * * @since 2.8.0 */ class WP_Widget_Pages extends WP_Widget { function __construct() { $widget_ops = array('classname' => 'widget_pages', 'description' => __( 'Your site&#8217;s WordPress Pages') ); pare...
zyblog
trunk/zyblog/wp-includes/default-widgets.php
PHP
asf20
45,514
<?php /** * Canonical API to handle WordPress Redirecting * * Based on "Permalink Redirect" from Scott Yang and "Enforce www. Preference" * by Mark Jaquith * * @package WordPress * @since 2.3.0 */ /** * Redirects incoming links to the proper URL based on the site url. * * Search engines consider www.somedom...
zyblog
trunk/zyblog/wp-includes/canonical.php
PHP
asf20
23,030
<?php /** * Customize Setting Class. * * @package WordPress * @subpackage Customize * @since 3.4.0 */ class WP_Customize_Setting { public $manager; public $id; public $type = 'theme_mod'; public $capability = 'edit_theme_options'; public $theme_supports = ''; public $default = ''; ...
zyblog
trunk/zyblog/wp-includes/class-wp-customize-setting.php
PHP
asf20
11,393
<?php /** * Theme, template, and stylesheet functions. * * @package WordPress * @subpackage Theme */ /** * Returns an array of WP_Theme objects based on the arguments. * * Despite advances over get_themes(), this function is quite expensive, and grows * linearly with additional themes. Stick to wp_get_theme()...
zyblog
trunk/zyblog/wp-includes/theme.php
PHP
asf20
52,918
<?php /** * Deprecated pluggable functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be removed in a * later version. * * Deprecated warnings are also thrown if one of these functions is being defined by a plugin. * * @package Word...
zyblog
trunk/zyblog/wp-includes/pluggable-deprecated.php
PHP
asf20
5,805
<?php /** * WordPress Feed API * * Many of the functions used in here belong in The Loop, or The Loop for the * Feeds. * * @package WordPress * @subpackage Feed */ /** * RSS container for the bloginfo function. * * You can retrieve anything that you can using the get_bloginfo() function. * Everything will ...
zyblog
trunk/zyblog/wp-includes/feed.php
PHP
asf20
15,247
<?php /** * WordPress Diff bastard child of old MediaWiki Diff Formatter. * * Basically all that remains is the table structure and some method names. * * @package WordPress * @subpackage Diff */ if ( !class_exists( 'Text_Diff' ) ) { /** Text_Diff class */ require( dirname(__FILE__).'/Text/Diff.php' ); /** T...
zyblog
trunk/zyblog/wp-includes/wp-diff.php
PHP
asf20
12,495
<?php /** * Simple and uniform HTTP request API. * * Will eventually replace and standardize the WordPress HTTP requests made. * * @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal * * @package WordPress * @subpackage HTTP * @since 2.7.0 */ /** * Returns the initialized WP_Http Object * * @sin...
zyblog
trunk/zyblog/wp-includes/http.php
PHP
asf20
8,679
<?php /** * Class for a set of entries for translation and their associated headers * * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage translations */ require_once dirname(__FILE__) . '/entry.php'; if ( !class_exists( 'Translations' ) ): class Translations { ...
zyblog
trunk/zyblog/wp-includes/pomo/translations.php
PHP
asf20
7,532
<?php /** * Contains Translation_Entry class * * @version $Id: entry.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage entry */ if ( !class_exists( 'Translation_Entry' ) ): /** * Translation_Entry class encapsulates a translatable string */ class Translation_Entry { /** * Whether the ...
zyblog
trunk/zyblog/wp-includes/pomo/entry.php
PHP
asf20
2,578
<?php /** * Class for working with MO files * * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage mo */ require_once dirname(__FILE__) . '/translations.php'; require_once dirname(__FILE__) . '/streams.php'; if ( !class_exists( 'MO' ) ): class MO extends Gettext_Translation...
zyblog
trunk/zyblog/wp-includes/pomo/mo.php
PHP
asf20
7,419
<?php /** * Classes, which help reading streams of data from files. * Based on the classes from Danilo Segan <danilo@kvota.net> * * @version $Id: streams.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage streams */ if ( !class_exists( 'POMO_Reader' ) ): class POMO_Reader { var $endian = ...
zyblog
trunk/zyblog/wp-includes/pomo/streams.php
PHP
asf20
4,531
<?php /** * Class for working with PO files * * @version $Id: po.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage po */ require_once dirname(__FILE__) . '/translations.php'; define('PO_MAX_LINE_LEN', 79); ini_set('auto_detect_line_endings', 1); /** * Routines for working with PO files ...
zyblog
trunk/zyblog/wp-includes/pomo/po.php
PHP
asf20
11,485
<?php /** * WordPress API for creating bbcode like tags or what WordPress calls * "shortcodes." The tag and attribute parsing or regular expression code is * based on the Textpattern tag parser. * * A few examples are below: * * [shortcode /] * [shortcode foo="bar" baz="bing" /] * [shortcode foo="bar"]content[...
zyblog
trunk/zyblog/wp-includes/shortcodes.php
PHP
asf20
9,992
<?php /** * WP_Theme Class * * @package WordPress * @subpackage Theme */ final class WP_Theme implements ArrayAccess { /** * Headers for style.css files. * * @static * @access private * @var array */ private static $file_headers = array( 'Name' => 'Theme Name', 'ThemeURI' => 'Theme UR...
zyblog
trunk/zyblog/wp-includes/class-wp-theme.php
PHP
asf20
38,214
<?php /** * Taxonomy API * * @package WordPress * @subpackage Taxonomy * @since 2.3.0 */ // // Taxonomy Registration // /** * Creates the initial taxonomies. * * This function fires twice: in wp-settings.php before plugins are loaded (for * backwards compatibility reasons), and again on the 'init' action. W...
zyblog
trunk/zyblog/wp-includes/taxonomy.php
PHP
asf20
109,612
<?php /** * WordPress Roles and Capabilities. * * @package WordPress * @subpackage User */ /** * WordPress User Roles. * * The role option is simple, the structure is organized by role name that store * the name in value of the 'name' key. The capabilities are stored as an array * in the value of the 'capabi...
zyblog
trunk/zyblog/wp-includes/capabilities.php
PHP
asf20
36,773
<?php /** * Main WordPress API * * @package WordPress */ require( ABSPATH . WPINC . '/option.php' ); /** * Converts given date string into a different format. * * $format should be either a PHP date format string, e.g. 'U' for a Unix * timestamp, or 'G' for a Unix timestamp assuming that $date is GMT. * * I...
zyblog
trunk/zyblog/wp-includes/functions.php
PHP
asf20
118,582
<?php /** * Loads the correct template based on the visitor's url * @package WordPress */ if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) do_action('template_redirect'); // Halt template load for HEAD requests. Performance bump. See #14348 if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http...
zyblog
trunk/zyblog/wp-includes/template-loader.php
PHP
asf20
2,060
<?php /** * Deprecated. Use WP_HTTP (http.php, class-http.php) instead. */ _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' ); if ( !class_exists( 'Snoopy' ) ) : /************************************************* Snoopy - the PHP net client Author: Monte Ohrt <monte@ispi.net> Copyright (c): 1999-...
zyblog
trunk/zyblog/wp-includes/class-snoopy.php
PHP
asf20
37,774
<?php /** * WordPress scripts and styles default loader. * * Most of the functionality that existed here was moved to * {@link http://backpress.automattic.com/ BackPress}. WordPress themes and * plugins will only be concerned about the filters and actions set in this * file. * * Several constants are used to ma...
zyblog
trunk/zyblog/wp-includes/script-loader.php
PHP
asf20
41,322
<?php /** * mail_fetch/setup.php * * Copyright (c) 1999-2011 CDI (cdi@thewebmasters.net) All Rights Reserved * Modified by Philippe Mingo 2001-2009 mingo@rotedic.com * An RFC 1939 compliant wrapper class for the POP3 protocol. * * Licensed under the GNU GPL. For full terms see the file COPYING. * * POP3 class ...
zyblog
trunk/zyblog/wp-includes/class-pop3.php
PHP
asf20
20,748
<?php /** * XML-RPC protocol support for WordPress * * @package WordPress */ /** * WordPress XMLRPC server implementation. * * Implements compatibility for Blogger API, MetaWeblog API, MovableType, and * pingback. Additional WordPress API for managing comments, pages, posts, * options, etc. * * Since WordPr...
zyblog
trunk/zyblog/wp-includes/class-wp-xmlrpc-server.php
PHP
asf20
162,707
<?php if ( !class_exists( 'Services_JSON' ) ) : /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Converts to and from JSON format. * * JSON (JavaScript Object Notation) is a lightweight data-interchange * format. It is easy for humans to read and write. It is easy for machines * to parse and ge...
zyblog
trunk/zyblog/wp-includes/class-json.php
PHP
asf20
26,688
<?php /** * Customize Section Class. * * @package WordPress * @subpackage Customize * @since 3.4.0 */ class WP_Customize_Section { public $manager; public $id; public $priority = 10; public $capability = 'edit_theme_options'; public $theme_supports = ''; public $title = ''; public $descr...
zyblog
trunk/zyblog/wp-includes/class-wp-customize-section.php
PHP
asf20
2,240
<?php /** * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. * * @package PHP * @access private */ // If gettext isn't available if ( !function_exists('_') ) { function _($string) { return $string; } } if ( !function_exists('mb_substr') ): functio...
zyblog
trunk/zyblog/wp-includes/compat.php
PHP
asf20
2,635
<?php /** * Defines constants and global variables that can be overridden, generally in wp-config.php. * * @package WordPress * @subpackage Multisite * @since 3.0.0 */ /** * Defines Multisite upload constants. * * Exists for backward compatibility with legacy file-serving through * wp-includes/ms-files.php (...
zyblog
trunk/zyblog/wp-includes/ms-default-constants.php
PHP
asf20
4,327
<?php /** * Object Cache API * * @link http://codex.wordpress.org/Function_Reference/WP_Cache * * @package WordPress * @subpackage Cache */ /** * Adds data to the cache, if the cache key doesn't already exist. * * @since 2.0.0 * @uses $wp_object_cache Object Cache Class * @see WP_Object_Cache::add() * * ...
zyblog
trunk/zyblog/wp-includes/cache.php
PHP
asf20
17,925
(function( exports, $ ){ var api = wp.customize, debounce; debounce = function( fn, delay, context ) { var timeout; return function() { var args = arguments; context = context || this; clearTimeout( timeout ); timeout = setTimeout( function() { timeout = null; fn.apply( context, args ); ...
zyblog
trunk/zyblog/wp-includes/js/customize-preview.js
JavaScript
asf20
3,699
window.wp = window.wp || {}; (function( exports, $ ){ var api, extend, ctor, inherits, slice = Array.prototype.slice; /* ===================================================================== * Micro-inheritance - thank you, backbone.js. * ===================================================================== *...
zyblog
trunk/zyblog/wp-includes/js/customize-base.js
JavaScript
asf20
15,518
// utility functions var wpCookies = { // The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL. each : function(obj, cb, scope) { var n, l; if ( !obj ) return 0; scope = scope || obj; if ( typeof(obj.length) != 'undefined' ) { for ( n = 0, l = obj.length; n < l; n+...
zyblog
trunk/zyblog/wp-includes/js/utils.js
JavaScript
asf20
3,951
// =================================================================== // Author: Matt Kruse <matt@mattkruse.com> // WWW: http://www.mattkruse.com/ // // NOTICE: You may use this code for any purpose, commercial or // private, without any further permission from the author. You may // remove this notice from your final...
zyblog
trunk/zyblog/wp-includes/js/colorpicker.js
JavaScript
asf20
29,083
(function($) { var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList; wpList = { settings: { url: ajaxurl, type: 'POST', response: 'ajax-response', what: '', alt: 'alternate', altOffset: 0, addColor: null, delColor: null, dimAddColor: null, dimDelColor: null, c...
zyblog
trunk/zyblog/wp-includes/js/wp-lists.js
JavaScript
asf20
11,036
// Ensure the global `wp` object exists. window.wp = window.wp || {}; (function($){ var views = {}, instances = {}; // Create the `wp.mce` object if necessary. wp.mce = wp.mce || {}; // wp.mce.view // ----------- // A set of utilities that simplifies adding custom UI within a TinyMCE editor. // At its core,...
zyblog
trunk/zyblog/wp-includes/js/mce-view.js
JavaScript
asf20
9,792
var topWin = window.dialogArguments || opener || parent || top; function fileDialogStart() { jQuery("#media-upload-error").empty(); } // progress and success handlers for media multi uploads function fileQueued(fileObj) { // Get rid of unused form jQuery('.media-blank').remove(); // Collapse a single item if ( j...
zyblog
trunk/zyblog/wp-includes/js/swfupload/handlers.js
JavaScript
asf20
12,588
/* Cookie Plug-in This plug in automatically gets all the cookies for this site and adds them to the post_params. Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params. The cookies will override any other post params with the same name. */ var SWFUpload; ...
zyblog
trunk/zyblog/wp-includes/js/swfupload/plugins/swfupload.cookies.js
JavaScript
asf20
1,572
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is continued. ...
zyblog
trunk/zyblog/wp-includes/js/swfupload/plugins/swfupload.queue.js
JavaScript
asf20
3,383
/* SWFUpload.SWFObject Plugin Summary: This plugin uses SWFObject to embed SWFUpload dynamically in the page. SWFObject provides accurate Flash Player detection and DOM Ready loading. This plugin replaces the Graceful Degradation plugin. Features: * swfupload_load_failed_hander event * swfupload_pre_load_...
zyblog
trunk/zyblog/wp-includes/js/swfupload/plugins/swfupload.swfobject.js
JavaScript
asf20
3,926
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over averaged...
zyblog
trunk/zyblog/wp-includes/js/swfupload/plugins/swfupload.speed.js
JavaScript
asf20
12,234
.imgCrop_wrap { /* width: 500px; @done_in_js */ /* height: 375px; @done_in_js */ position: relative; cursor: crosshair; } /* an extra classname is applied for Opera < 9.0 to fix it's lack of opacity support */ .imgCrop_wrap.opera8 .imgCrop_overlay, .imgCrop_wrap.opera8 .imgCrop_clickArea { background-color: t...
zyblog
trunk/zyblog/wp-includes/js/crop/cropper.css
CSS
asf20
2,950
/** * Copyright (c) 2006, David Spurr (http://www.defusion.org.uk/) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright not...
zyblog
trunk/zyblog/wp-includes/js/crop/cropper.js
JavaScript
asf20
16,485
var topWin = window.dialogArguments || opener || parent || top, uploader, uploader_init; function fileDialogStart() { jQuery("#media-upload-error").empty(); } // progress and success handlers for media multi uploads function fileQueued(fileObj) { // Get rid of unused form jQuery('.media-blank').remove(); var ite...
zyblog
trunk/zyblog/wp-includes/js/plupload/handlers.js
JavaScript
asf20
15,699
window.wp = window.wp || {}; (function( exports, $ ) { var Uploader; if ( typeof _wpPluploadSettings === 'undefined' ) return; /* * An object that helps create a WordPress uploader using plupload. * * @param options - object - The options passed to the new plupload instance. * Accepts the following p...
zyblog
trunk/zyblog/wp-includes/js/plupload/wp-plupload.js
JavaScript
asf20
9,746
window.wp = window.wp || {}; (function($){ var Attachment, Attachments, Query, compare, l10n, media; /** * wp.media( attributes ) * * Handles the default media experience. Automatically creates * and opens a media frame, and returns the result. * Does nothing if the controllers do not exist. * * @para...
zyblog
trunk/zyblog/wp-includes/js/media-models.js
JavaScript
asf20
26,176
/* * Quicktags * * This is the HTML editor in WordPress. It can be attached to any textarea and will * append a toolbar above it. This script is self-contained (does not require external libraries). * * Run quicktags(settings) to initialize it, where settings is an object containing up to 3 properties: * setting...
zyblog
trunk/zyblog/wp-includes/js/quicktags.js
JavaScript
asf20
19,310
var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, fullscreen, autosaveLockRelease = true; jQuery(document).ready( function($) { autosaveLast = ( $('#post #title').val() || '' ) + ( $('#post #content').val() || '' ); autosa...
zyblog
trunk/zyblog/wp-includes/js/autosave.js
JavaScript
asf20
10,649
var wpAjax = jQuery.extend( { unserialize: function( s ) { var r = {}, q, pp, i, p; if ( !s ) { return r; } q = s.split('?'); if ( q[1] ) { s = q[1]; } pp = s.split('&'); for ( i in pp ) { if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } p = pp[i].split('='); r[p[0]...
zyblog
trunk/zyblog/wp-includes/js/wp-ajax-response.js
JavaScript
asf20
3,114
/** * Pointer jQuery widget. */ (function($){ var identifier = 0, zindex = 9999; $.widget("wp.pointer", { options: { pointerClass: 'wp-pointer', pointerWidth: 320, content: function( respond, event, t ) { return $(this).text(); }, buttons: function( event, t ) { var close = ( wpPointerL...
zyblog
trunk/zyblog/wp-includes/js/wp-pointer.js
JavaScript
asf20
6,607
(function(w) { var init = function() { var pr = document.getElementById('post-revisions'), inputs = pr ? pr.getElementsByTagName('input') : []; pr.onclick = function() { var i, checkCount = 0, side; for ( i = 0; i < inputs.length; i++ ) { checkCount += inputs[i].checked ? 1 : 0; side = inputs[i].ge...
zyblog
trunk/zyblog/wp-includes/js/wp-list-revisions.js
JavaScript
asf20
912
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"...
zyblog
trunk/zyblog/wp-includes/js/jquery/jquery.schedule.js
JavaScript
asf20
3,457
(function($){ $.fn.filter_visible = function(depth) { depth = depth || 3; var is_visible = function() { var p = $(this), i; for(i=0; i<depth-1; ++i) { if (!p.is(':visible')) return false; p = p.parent(); } return true; } return this.filter(is_visible); }; $.table_hotkeys = function(table,...
zyblog
trunk/zyblog/wp-includes/js/jquery/jquery.table-hotkeys.js
JavaScript
asf20
3,725
/*! * jQuery serializeObject - v0.2 - 1/20/2010 * http://benalman.com/projects/jquery-misc-plugins/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Whereas .serializeArray() serializes a form into an array, .serializeObject() ...
zyblog
trunk/zyblog/wp-includes/js/jquery/jquery.serialize-object.js
JavaScript
asf20
783
/****************************************************************************************************************************** * @ Original idea by by Binny V A, Original version: 2.00.A * @ http://www.openjs.com/scripts/events/keyboard_shortcuts/ * @ Original License : BSD * @ jQuery Plugin by Tzury Bar Yocha...
zyblog
trunk/zyblog/wp-includes/js/jquery/jquery.hotkeys.js
JavaScript
asf20
5,711
/*! * jQuery Form Plugin * version: 2.73 (03-MAY-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(functi...
zyblog
trunk/zyblog/wp-includes/js/jquery/jquery.form.js
JavaScript
asf20
24,074
// Utility functions for parsing and handling shortcodes in Javascript. // Ensure the global `wp` object exists. window.wp = window.wp || {}; (function(){ wp.shortcode = { // ### Find the next matching shortcode // // Given a shortcode `tag`, a block of `text`, and an optional starting // `index`, returns th...
zyblog
trunk/zyblog/wp-includes/js/shortcode.js
JavaScript
asf20
10,340
// WordPress, TinyMCE, and Media // ----------------------------- (function($){ // Stores the editors' `wp.media.controller.Frame` instances. var workflows = {}; wp.media.string = { // Joins the `props` and `attachment` objects, // outputting the proper object format based on the // attachment's type. props...
zyblog
trunk/zyblog/wp-includes/js/media-editor.js
JavaScript
asf20
17,124
/* * imgAreaSelect jQuery plugin * version 0.9.9 * * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://odyniec.net/projects/imgareaselect/ * */ (function($) { /* * Math functions will be used extens...
zyblog
trunk/zyblog/wp-includes/js/imgareaselect/jquery.imgareaselect.js
JavaScript
asf20
36,846
/* * imgAreaSelect animated border style */ .imgareaselect-border1 { background: url(border-anim-v.gif) repeat-y left top; } .imgareaselect-border2 { background: url(border-anim-h.gif) repeat-x left top; } .imgareaselect-border3 { background: url(border-anim-v.gif) repeat-y right top; } .imgareaselect-bo...
zyblog
trunk/zyblog/wp-includes/js/imgareaselect/imgareaselect.css
CSS
asf20
790
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r6 // 2011.02.26 // jQuery 1.5...
zyblog
trunk/zyblog/wp-includes/js/hoverIntent.js
JavaScript
asf20
4,246
/* Clearlooks 2 */ /* Reset */ .clearlooks2, .clearlooks2 div, .clearlooks2 span, .clearlooks2 a {vertical-align:baseline; text-align:left; position:absolute; border:0; padding:0; margin:0; background:transparent; font-family:Arial,Verdana; font-size:11px; color:#000; text-decoration:none; font-weight:normal; width:au...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css
CSS
asf20
6,859
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each ...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin_src.js
JavaScript
asf20
18,910
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Template for dialogs</title> <link rel="stylesheet" type="text/css" href="skins/clearlooks2/window.css?ver=358-20121205" /> </head> <body> <di...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/inlinepopups/template.htm
HTML
asf20
12,508
(function() { tinymce.create('tinymce.plugins.wpGallery', { init : function(ed, url) { var t = this; t.url = url; t.editor = ed; t._createButtons(); // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); ed.addCommand('WP_Gallery', function() { i...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js
JavaScript
asf20
4,541
/** * WordPress View plugin. */ (function() { var VK = tinymce.VK, TreeWalker = tinymce.dom.TreeWalker, selected; tinymce.create('tinymce.plugins.wpView', { init : function( editor, url ) { var wpView = this; // Check if the `wp.mce` API exists. if ( typeof wp === 'undefined' || ! wp.mce ) ret...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
JavaScript
asf20
5,148
/** * popup.js * * An altered version of tinyMCEPopup to work in the same window as tinymce. * * ------------------------------------------------------------------ * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js
JavaScript
asf20
11,854
(function($){ $.ui.dialog.prototype.options.closeOnEscape = false; $.widget('wp.wpdialog', $.ui.dialog, { // Work around a bug in jQuery UI 1.9.1. // http://bugs.jqueryui.com/ticket/8805 widgetEventPrefix: 'wpdialog', open: function() { var ed; // Initialize tinyMCEPopup if it exists and the editor is...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpdialogs/js/wpdialog.js
JavaScript
asf20
769
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.WPDialogs', { init : function(ed, url) { tinymce....
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin_src.js
JavaScript
asf20
1,792
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <script type="text/javascript" src="../../tiny_mce.js?ver=358-20121205"></script> <script type="text/javascript"> function patchCallback(settings, key) { if (settings[key])...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm
HTML
asf20
3,279
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var DOM = tinymce.DOM; tinymce.create('tinymce.plugins.FullScreenPlugin', { init :...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/fullscreen/editor_plugin_src.js
JavaScript
asf20
5,484
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinym...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js
JavaScript
asf20
2,935
/** * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. */ function writeFlash(p) { writeEmbed( 'D27CDB6E-AE6D-11cf-96B8-444553540000', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', 'application/x-shockwave...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/media/js/embed.js
JavaScript
asf20
1,865
(function() { var url; if (url = tinyMCEPopup.getParam("media_external_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); function get(id) { return document.getElementById(id); } function clone(obj) ...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/media/js/media.js
JavaScript
asf20
15,960
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var rootAttributes = tinymce.explode('id,name,width,height,style,align,class,hspace,vs...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/media/editor_plugin_src.js
JavaScript
asf20
25,521
#id, #name, #hspace, #vspace, #class_name, #align { width: 100px } #hspace, #vspace { width: 50px } #flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px } #flash_base, #flash_flashvars, #html5_altsource1, #html5_altsource2, #html5_poster { width: 240px } #width, #height { width: 40px }...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/media/css/media.css
CSS
asf20
1,340
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{#media_dlg.title}</title> <script type="text/javascript" src="../../tiny_mce_popup.js?ver=358-20121205"></script> <script type="text/javascript" src...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/media/media.htm
HTML
asf20
38,049
var tinymce = null, tinyMCEPopup, tinyMCE, wpImage; tinyMCEPopup = { init: function() { var t = this, w, ti; // Find window & API w = t.getWin(); tinymce = w.tinymce; tinyMCE = w.tinyMCE; t.editor = tinymce.EditorManager.activeEditor; t.params = t.editor.windowManager.params; t.features = t.editor.w...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js
JavaScript
asf20
17,070
(function() { tinymce.create('tinymce.plugins.wpEditImage', { url: '', editor: {}, init: function(ed, url) { var t = this, mouse = {}; t.url = url; t.editor = ed; t._createButtons(); ed.addCommand('WP_EditImage', t._editImage); ed.onInit.add(function(ed) { ed.dom.events.add(ed.getBody(...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
JavaScript
asf20
9,137
html, body { background-color: #fff; margin: 0; padding: 0; } body { font-family: sans-serif; font-size: 12px; line-height: 1.4em; } a.button { padding: 4px 8px; } textarea, input, select { font: inherit; margin: 1px; padding: 3px; } p.help { margin: 4px 0; font-size: 12px; font-style: italic; } abbr...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css
CSS
asf20
6,970
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <link rel="stylesheet" href="css/editimage.css?ver=358-20121205" type="text/css" media="all" /> <link rel="stylesheet" href="../../../../css/buttons.css?...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
HTML
asf20
11,989
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.Directionality', { init : function(ed, url) { var...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/directionality/editor_plugin_src.js
JavaScript
asf20
2,105
.mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;}
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/spellchecker/css/content.css
CSS
asf20
97
<?php /** * config.php * * @package MCManager.includes */ // General settings $config['general.engine'] = 'GoogleSpell'; //$config['general.engine'] = 'PSpell'; //$config['general.engine'] = 'PSpellShell'; //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php'; // PSpell settings $c...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/spellchecker/config.php
PHP
asf20
775
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{#paste.paste_text_desc}</title> <script type="text/javascript" src="../../tiny_mce_popup.js?ver=358-20121205"></script> <script type="text/javascript" src="js/pastetext.js?ver=358-20121205"></script> </head> <body onresize="PasteTextDialog.resize();" style="...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/paste/pastetext.htm
HTML
asf20
1,217
tinyMCEPopup.requireLangPack(); var PasteWordDialog = { init : function() { var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; // Create iframe el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></if...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/paste/js/pasteword.js
JavaScript
asf20
1,596
tinyMCEPopup.requireLangPack(); var PasteTextDialog = { init : function() { this.resize(); }, insert : function() { var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; // Convert linebreaks into paragraphs if (document.getElementById('linebreaks').checked) { lines = h.spli...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/paste/js/pastetext.js
JavaScript
asf20
848
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var each = tinymce.each, defs = { paste_auto_cleanup_on_paste : true, paste_en...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/paste/editor_plugin_src.js
JavaScript
asf20
30,590
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{#paste.paste_word_desc}</title> <script type="text/javascript" src="../../tiny_mce_popup.js?ver=358-20121205"></script> <script type="text/javascript" src="js/pasteword.js?ver=358-20121205"></script> </head> <body onresize="PasteWordDialog.resize();" style="...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/paste/pasteword.htm
HTML
asf20
796
/** * WP Fullscreen TinyMCE plugin * * Contains code from Moxiecode Systems AB released under LGPL License http://tinymce.moxiecode.com/license */ (function() { tinymce.create('tinymce.plugins.wpFullscreenPlugin', { resize_timeout: false, init : function(ed, url) { var t = this, oldHeight = 0, s = {}, DOM...
zyblog
trunk/zyblog/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js
JavaScript
asf20
5,362