Added login request
This commit is contained in:
8
backend/wordpress/wp-content/plugins/jetpack/.svnignore
Normal file
8
backend/wordpress/wp-content/plugins/jetpack/.svnignore
Normal file
@@ -0,0 +1,8 @@
|
||||
.git/
|
||||
.gitignore
|
||||
.travis.yml
|
||||
readme.md
|
||||
tests/
|
||||
_inc/lib/icalendar-reader.php
|
||||
modules/shortcodes/upcoming-events.php
|
||||
modules/widgets/upcoming-events.php
|
||||
23
backend/wordpress/wp-content/plugins/jetpack/3rd-party/3rd-party.php
vendored
Normal file
23
backend/wordpress/wp-content/plugins/jetpack/3rd-party/3rd-party.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Placeholder to load 3rd party plugin tweaks until a legit system
|
||||
* is architected
|
||||
*/
|
||||
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/buddypress.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/wpml.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/bitly.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/bbpress.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/domain-mapping.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/qtranslate-x.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/vaultpress.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/beaverbuilder.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/debug-bar.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-modules-overrides.php' );
|
||||
|
||||
// We can't load this conditionally since polldaddy add the call in class constuctor.
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/polldaddy.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce-services.php' );
|
||||
require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-amp-support.php' );
|
||||
50
backend/wordpress/wp-content/plugins/jetpack/3rd-party/bbpress.php
vendored
Normal file
50
backend/wordpress/wp-content/plugins/jetpack/3rd-party/bbpress.php
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
add_action( 'init', 'jetpack_bbpress_compat', 11 ); // Priority 11 needed to ensure sharing_display is loaded.
|
||||
|
||||
/**
|
||||
* Adds Jetpack + bbPress Compatibility filters.
|
||||
*
|
||||
* @author Brandon Kraft
|
||||
* @since 3.7.1
|
||||
*/
|
||||
function jetpack_bbpress_compat() {
|
||||
if ( function_exists( 'sharing_display' ) ) {
|
||||
add_filter( 'bbp_get_topic_content', 'sharing_display', 19 );
|
||||
add_action( 'bbp_template_after_single_forum', 'jetpack_sharing_bbpress' );
|
||||
add_action( 'bbp_template_after_single_topic', 'jetpack_sharing_bbpress' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable Markdown support for bbpress post types.
|
||||
*
|
||||
* @author Brandon Kraft
|
||||
* @since 6.0.0
|
||||
*/
|
||||
if ( function_exists( 'bbp_get_topic_post_type' ) ) {
|
||||
add_post_type_support( bbp_get_topic_post_type(), 'wpcom-markdown' );
|
||||
add_post_type_support( bbp_get_reply_post_type(), 'wpcom-markdown' );
|
||||
add_post_type_support( bbp_get_forum_post_type(), 'wpcom-markdown' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Use Photon for all images in Topics and replies.
|
||||
*
|
||||
* @since 4.9.0
|
||||
*/
|
||||
if ( class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) ) {
|
||||
add_filter( 'bbp_get_topic_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
|
||||
add_filter( 'bbp_get_reply_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display Jetpack "Sharing" buttons on bbPress 2.x forums/ topics/ lead topics/ replies.
|
||||
*
|
||||
* Determination if the sharing buttons should display on the post type is handled within sharing_display().
|
||||
*
|
||||
* @author David Decker
|
||||
* @since 3.7.0
|
||||
*/
|
||||
function jetpack_sharing_bbpress() {
|
||||
sharing_display( null, true );
|
||||
}
|
||||
20
backend/wordpress/wp-content/plugins/jetpack/3rd-party/beaverbuilder.php
vendored
Normal file
20
backend/wordpress/wp-content/plugins/jetpack/3rd-party/beaverbuilder.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Beaverbuilder Compatibility.
|
||||
*/
|
||||
class Jetpack_BeaverBuilderCompat {
|
||||
|
||||
function __construct() {
|
||||
add_action( 'init', array( $this, 'beaverbuilder_refresh' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* If masterbar module is active force BeaverBuilder to refresh when publishing a layout.
|
||||
*/
|
||||
function beaverbuilder_refresh() {
|
||||
if ( Jetpack::is_module_active( 'masterbar' ) ) {
|
||||
add_filter( 'fl_builder_should_refresh_on_publish', '__return_true' );
|
||||
}
|
||||
}
|
||||
}
|
||||
new Jetpack_BeaverBuilderCompat();
|
||||
34
backend/wordpress/wp-content/plugins/jetpack/3rd-party/bitly.php
vendored
Normal file
34
backend/wordpress/wp-content/plugins/jetpack/3rd-party/bitly.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Fixes issues with the Official Bitly for WordPress
|
||||
* https://wordpress.org/plugins/bitly/
|
||||
*/
|
||||
if( class_exists( 'Bitly' ) ) {
|
||||
|
||||
if( isset( $GLOBALS['bitly'] ) ) {
|
||||
if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
|
||||
remove_action( 'wp_head', array( $GLOBALS['bitly'], 'og_tags' ) );
|
||||
}
|
||||
|
||||
add_action( 'wp_head', 'jetpack_bitly_og_tag', 100 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* jetpack_bitly_og_tag
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function jetpack_bitly_og_tag() {
|
||||
if( has_filter( 'wp_head', 'jetpack_og_tags') === false ) {
|
||||
// Add the bitly part again back if we don't have any jetpack_og_tags added
|
||||
if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
|
||||
$GLOBALS['bitly']->og_tags();
|
||||
}
|
||||
} elseif ( isset( $GLOBALS['posts'] ) && $GLOBALS['posts'][0]->ID > 0 ) {
|
||||
printf( "<meta property=\"bitly:url\" content=\"%s\" /> \n", esc_attr( $GLOBALS['bitly']->get_bitly_link_for_post_id( $GLOBALS['posts'][0]->ID ) ) );
|
||||
}
|
||||
|
||||
}
|
||||
9
backend/wordpress/wp-content/plugins/jetpack/3rd-party/buddypress.php
vendored
Normal file
9
backend/wordpress/wp-content/plugins/jetpack/3rd-party/buddypress.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
add_filter( 'bp_core_pre_avatar_handle_upload', 'blobphoto' );
|
||||
function blobphoto( $bool ) {
|
||||
|
||||
add_filter( 'jetpack_photon_skip_image', '__return_true' );
|
||||
|
||||
return $bool;
|
||||
}
|
||||
351
backend/wordpress/wp-content/plugins/jetpack/3rd-party/class.jetpack-amp-support.php
vendored
Normal file
351
backend/wordpress/wp-content/plugins/jetpack/3rd-party/class.jetpack-amp-support.php
vendored
Normal file
@@ -0,0 +1,351 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Manages compatibility with the amp-wp plugin
|
||||
*
|
||||
* @see https://github.com/Automattic/amp-wp
|
||||
*/
|
||||
class Jetpack_AMP_Support {
|
||||
|
||||
static function init() {
|
||||
if ( ! self::is_amp_request() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// enable stats
|
||||
if ( Jetpack::is_module_active( 'stats' ) ) {
|
||||
add_action( 'amp_post_template_footer', array( 'Jetpack_AMP_Support', 'add_stats_pixel' ) );
|
||||
}
|
||||
|
||||
// carousel
|
||||
add_filter( 'jp_carousel_maybe_disable', '__return_true' );
|
||||
|
||||
// sharing
|
||||
add_filter( 'sharing_enqueue_scripts', '__return_false' );
|
||||
add_filter( 'jetpack_sharing_counts', '__return_false' );
|
||||
add_filter( 'sharing_js', '__return_false' );
|
||||
add_filter( 'jetpack_sharing_display_markup', array( 'Jetpack_AMP_Support', 'render_sharing_html' ), 10, 2 );
|
||||
|
||||
// disable lazy images
|
||||
add_filter( 'lazyload_is_enabled', '__return_false' );
|
||||
|
||||
// disable imploding CSS
|
||||
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
|
||||
|
||||
// enforce freedom mode for videopress
|
||||
add_filter( 'videopress_shortcode_options', array( 'Jetpack_AMP_Support', 'videopress_enable_freedom_mode' ) );
|
||||
|
||||
// include Jetpack og tags when rendering native AMP head
|
||||
add_action( 'amp_post_template_head', array( 'Jetpack_AMP_Support', 'amp_post_jetpack_og_tags' ) );
|
||||
|
||||
// Post rendering changes for legacy AMP
|
||||
add_action( 'pre_amp_render_post', array( 'Jetpack_AMP_Support', 'amp_disable_the_content_filters' ) );
|
||||
|
||||
// Add post template metadata for legacy AMP
|
||||
add_filter( 'amp_post_template_metadata', array( 'Jetpack_AMP_Support', 'amp_post_template_metadata' ), 10, 2 );
|
||||
}
|
||||
|
||||
static function admin_init() {
|
||||
// disable Likes metabox for post editor if AMP canonical disabled
|
||||
add_filter( 'post_flair_disable', array( 'Jetpack_AMP_Support', 'is_amp_canonical' ), 99 );
|
||||
}
|
||||
|
||||
static function init_filter_jetpack_widgets() {
|
||||
if ( ! self::is_amp_request() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// widgets
|
||||
add_filter( 'jetpack_widgets_to_include', array( 'Jetpack_AMP_Support', 'filter_available_widgets' ) );
|
||||
}
|
||||
|
||||
static function is_amp_canonical() {
|
||||
return function_exists( 'amp_is_canonical' ) && amp_is_canonical();
|
||||
}
|
||||
|
||||
static function is_amp_request() {
|
||||
// can't use is_amp_endpoint() since it's not ready early enough in init.
|
||||
// is_amp_endpoint() implementation calls is_feed, which bails with a notice if plugins_loaded isn't finished
|
||||
// "Conditional query tags do not work before the query is run"
|
||||
$is_amp_request =
|
||||
defined( 'AMP__VERSION' )
|
||||
&&
|
||||
! is_admin() // this is necessary so that modules can still be enabled/disabled/configured as per normal via Jetpack admin
|
||||
&&
|
||||
function_exists( 'amp_is_canonical' ) // this is really just testing if the plugin exists
|
||||
&&
|
||||
(
|
||||
amp_is_canonical()
|
||||
||
|
||||
isset( $_GET[ amp_get_slug() ] )
|
||||
||
|
||||
( version_compare( AMP__VERSION, '1.0', '<' ) && self::has_amp_suffix() ) // after AMP 1.0, the amp suffix will no longer be supported
|
||||
);
|
||||
|
||||
/**
|
||||
* Returns true if the current request should return valid AMP content.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param boolean $is_amp_request Is this request supposed to return valid AMP content?
|
||||
*/
|
||||
return apply_filters( 'jetpack_is_amp_request', $is_amp_request );
|
||||
}
|
||||
|
||||
static function has_amp_suffix() {
|
||||
$request_path = wp_parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
|
||||
return $request_path && preg_match( '#/amp/?$#i', $request_path );
|
||||
}
|
||||
|
||||
static function filter_available_widgets( $widgets ) {
|
||||
if ( self::is_amp_request() ) {
|
||||
$widgets = array_filter( $widgets, array( 'Jetpack_AMP_Support', 'is_supported_widget' ) );
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
|
||||
static function is_supported_widget( $widget_path ) {
|
||||
return substr( $widget_path, -14 ) !== '/milestone.php';
|
||||
}
|
||||
|
||||
static function amp_disable_the_content_filters() {
|
||||
if ( defined( 'WPCOM') && WPCOM ) {
|
||||
add_filter( 'videopress_show_2015_player', '__return_true' );
|
||||
add_filter( 'protected_embeds_use_form_post', '__return_false' );
|
||||
remove_filter( 'the_title', 'widont' );
|
||||
}
|
||||
|
||||
remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'filter' ), 11 );
|
||||
remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add Jetpack stats pixel.
|
||||
*
|
||||
* @since 6.2.1
|
||||
*/
|
||||
static function add_stats_pixel() {
|
||||
if ( ! has_action( 'wp_footer', 'stats_footer' ) ) {
|
||||
return;
|
||||
}
|
||||
stats_render_amp_footer( stats_build_view_data() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add publisher and image metadata to legacy AMP post.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $metadata Metadata array.
|
||||
* @param WP_Post $post Post.
|
||||
* @return array Modified metadata array.
|
||||
*/
|
||||
static function amp_post_template_metadata( $metadata, $post ) {
|
||||
if ( isset( $metadata['publisher'] ) && ! isset( $metadata['publisher']['logo'] ) ) {
|
||||
$metadata = self::add_site_icon_to_metadata( $metadata );
|
||||
}
|
||||
|
||||
if ( ! isset( $metadata['image'] ) ) {
|
||||
$metadata = self::add_image_to_metadata( $metadata, $post );
|
||||
}
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add blavatar to legacy AMP post metadata.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $metadata Metadata.
|
||||
* @return array Metadata.
|
||||
*/
|
||||
static function add_site_icon_to_metadata( $metadata ) {
|
||||
$size = 60;
|
||||
|
||||
if ( function_exists( 'blavatar_domain' ) ) {
|
||||
$metadata['publisher']['logo'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => blavatar_url( blavatar_domain( site_url() ), 'img', $size, self::staticize_subdomain( 'https://wordpress.com/i/favicons/apple-touch-icon-60x60.png' ) ),
|
||||
'width' => $size,
|
||||
'height' => $size,
|
||||
);
|
||||
} else if ( $site_icon_url = Jetpack_Sync_Functions::site_icon_url( $size ) ) {
|
||||
$metadata['publisher']['logo'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => $site_icon_url,
|
||||
'width' => $size,
|
||||
'height' => $size,
|
||||
);
|
||||
}
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add image to legacy AMP post metadata.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $metadata Metadata.
|
||||
* @param WP_Post $post Post.
|
||||
* @return array Metadata.
|
||||
*/
|
||||
static function add_image_to_metadata( $metadata, $post ) {
|
||||
$image = Jetpack_PostImages::get_image( $post->ID, array(
|
||||
'fallback_to_avatars' => true,
|
||||
'avatar_size' => 200,
|
||||
// AMP already attempts these.
|
||||
'from_thumbnail' => false,
|
||||
'from_attachment' => false,
|
||||
) );
|
||||
|
||||
if ( empty( $image ) ) {
|
||||
return self::add_fallback_image_to_metadata( $metadata );
|
||||
}
|
||||
|
||||
if ( ! isset( $image['src_width'] ) ) {
|
||||
$dimensions = self::extract_image_dimensions_from_getimagesize( array(
|
||||
$image['src'] => false,
|
||||
) );
|
||||
|
||||
if ( false !== $dimensions[ $image['src'] ] ) {
|
||||
$image['src_width'] = $dimensions['width'];
|
||||
$image['src_height'] = $dimensions['height'];
|
||||
}
|
||||
}
|
||||
|
||||
$metadata['image'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => $image['src'],
|
||||
'width' => $image['src_width'],
|
||||
'height' => $image['src_height'],
|
||||
);
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add fallback image to legacy AMP post metadata.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $metadata Metadata.
|
||||
* @return array Metadata.
|
||||
*/
|
||||
static function add_fallback_image_to_metadata( $metadata ) {
|
||||
/** This filter is documented in functions.opengraph.php */
|
||||
$default_image = apply_filters( 'jetpack_open_graph_image_default', 'https://wordpress.com/i/blank.jpg' );
|
||||
|
||||
$metadata['image'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => self::staticize_subdomain( $default_image ),
|
||||
'width' => 200,
|
||||
'height' => 200,
|
||||
);
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
static function staticize_subdomain( $domain ) {
|
||||
// deal with WPCOM vs Jetpack
|
||||
if ( function_exists( 'staticize_subdomain' ) ) {
|
||||
return staticize_subdomain( $domain );
|
||||
} else {
|
||||
return Jetpack::staticize_subdomain( $domain );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract image dimensions via wpcom/imagesize, only on WPCOM
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $dimensions Dimensions.
|
||||
* @return array Dimensions.
|
||||
*/
|
||||
static function extract_image_dimensions_from_getimagesize( $dimensions ) {
|
||||
if ( ! ( defined('WPCOM') && WPCOM && function_exists( 'require_lib' ) ) ) {
|
||||
return $dimensions;
|
||||
}
|
||||
require_lib( 'wpcom/imagesize' );
|
||||
|
||||
foreach ( $dimensions as $url => $value ) {
|
||||
if ( is_array( $value ) ) {
|
||||
continue;
|
||||
}
|
||||
$result = wpcom_getimagesize( $url );
|
||||
if ( is_array( $result ) ) {
|
||||
$dimensions[ $url ] = array(
|
||||
'width' => $result[0],
|
||||
'height' => $result[1],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $dimensions;
|
||||
}
|
||||
|
||||
static function amp_post_jetpack_og_tags() {
|
||||
Jetpack::init()->check_open_graph();
|
||||
if ( function_exists( 'jetpack_og_tags' ) ) {
|
||||
jetpack_og_tags();
|
||||
}
|
||||
}
|
||||
|
||||
static function videopress_enable_freedom_mode( $options ) {
|
||||
$options['freedom'] = true;
|
||||
return $options;
|
||||
}
|
||||
|
||||
static function render_sharing_html( $markup, $sharing_enabled ) {
|
||||
remove_action( 'wp_footer', 'sharing_add_footer' );
|
||||
if ( empty( $sharing_enabled ) ) {
|
||||
return $markup;
|
||||
}
|
||||
$supported_services = array(
|
||||
'facebook' => array(
|
||||
/** This filter is documented in modules/sharedaddy/sharing-sources.php */
|
||||
'data-param-app_id' => apply_filters( 'jetpack_sharing_facebook_app_id', '249643311490' ),
|
||||
),
|
||||
'twitter' => array(),
|
||||
'pinterest' => array(),
|
||||
'whatsapp' => array(),
|
||||
'google-plus-1' => array(
|
||||
'type' => 'gplus',
|
||||
),
|
||||
'tumblr' => array(),
|
||||
'linkedin' => array(),
|
||||
);
|
||||
$sharing_links = array();
|
||||
foreach ( $sharing_enabled['visible'] as $id => $service ) {
|
||||
if ( ! isset( $supported_services[ $id ] ) ) {
|
||||
$sharing_links[] = "<!-- not supported: $id -->";
|
||||
continue;
|
||||
}
|
||||
$args = array_merge(
|
||||
array(
|
||||
'type' => $id,
|
||||
),
|
||||
$supported_services[ $id ]
|
||||
);
|
||||
$sharing_link = '<amp-social-share';
|
||||
foreach ( $args as $key => $value ) {
|
||||
$sharing_link .= sprintf( ' %s="%s"', sanitize_key( $key ), esc_attr( $value ) );
|
||||
}
|
||||
$sharing_link .= '></amp-social-share>';
|
||||
$sharing_links[] = $sharing_link;
|
||||
}
|
||||
return preg_replace( '#(?<=<div class="sd-content">).+?(?=</div>)#s', implode( '', $sharing_links ), $markup );
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'init', array( 'Jetpack_AMP_Support', 'init' ), 1 );
|
||||
|
||||
add_action( 'admin_init', array( 'Jetpack_AMP_Support', 'admin_init' ), 1 );
|
||||
|
||||
// this is necessary since for better or worse Jetpack modules and widget files are loaded during plugins_loaded, which means we must
|
||||
// take the opportunity to intercept initialisation before that point, either by adding explicit detection into the module,
|
||||
// or preventing it from loading in the first place (better for performance)
|
||||
add_action( 'plugins_loaded', array( 'Jetpack_AMP_Support', 'init_filter_jetpack_widgets' ), 1 );
|
||||
143
backend/wordpress/wp-content/plugins/jetpack/3rd-party/class.jetpack-modules-overrides.php
vendored
Normal file
143
backend/wordpress/wp-content/plugins/jetpack/3rd-party/class.jetpack-modules-overrides.php
vendored
Normal file
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Provides methods for dealing with module overrides.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*/
|
||||
class Jetpack_Modules_Overrides {
|
||||
/**
|
||||
* Used to cache module overrides so that we minimize how many times we appy the
|
||||
* option_jetpack_active_modules filter.
|
||||
*
|
||||
* @var null|array
|
||||
*/
|
||||
private $overrides = null;
|
||||
|
||||
/**
|
||||
* Clears the $overrides member used for caching.
|
||||
*
|
||||
* Since get_overrides() can be passed a falsey value to skip caching, this is probably
|
||||
* most useful for clearing cache between tests.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function clear_cache() {
|
||||
$this->overrides = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if there is a filter on the jetpack_active_modules option.
|
||||
*
|
||||
* @return bool Whether there is a filter on the jetpack_active_modules option.
|
||||
*/
|
||||
public function do_overrides_exist() {
|
||||
return (bool) ( has_filter( 'option_jetpack_active_modules' ) || has_filter( 'jetpack_active_modules' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the override for a given module.
|
||||
*
|
||||
* @param string $module_slug The module's slug.
|
||||
* @param boolean $use_cache Whether or not cached overrides should be used.
|
||||
*
|
||||
* @return bool|string False if no override for module. 'active' or 'inactive' if there is an override.
|
||||
*/
|
||||
public function get_module_override( $module_slug, $use_cache = true ) {
|
||||
$overrides = $this->get_overrides( $use_cache );
|
||||
|
||||
if ( ! isset( $overrides[ $module_slug ] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $overrides[ $module_slug ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of module overrides where the key is the module slug and the value
|
||||
* is true if the module is forced on and false if the module is forced off.
|
||||
*
|
||||
* @param bool $use_cache Whether or not cached overrides should be used.
|
||||
*
|
||||
* @return array The array of module overrides.
|
||||
*/
|
||||
public function get_overrides( $use_cache = true ) {
|
||||
if ( $use_cache && ! is_null( $this->overrides ) ) {
|
||||
return $this->overrides;
|
||||
}
|
||||
|
||||
if ( ! $this->do_overrides_exist() ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$available_modules = Jetpack::get_available_modules();
|
||||
|
||||
/**
|
||||
* First, let's get all modules that have been forced on.
|
||||
*/
|
||||
|
||||
/** This filter is documented in wp-includes/option.php */
|
||||
$filtered = apply_filters( 'option_jetpack_active_modules', array() );
|
||||
|
||||
/** This filter is documented in class.jetpack.php */
|
||||
$filtered = apply_filters( 'jetpack_active_modules', $filtered );
|
||||
|
||||
$forced_on = array_diff( $filtered, array() );
|
||||
|
||||
/**
|
||||
* Second, let's get all modules forced off.
|
||||
*/
|
||||
|
||||
/** This filter is documented in wp-includes/option.php */
|
||||
$filtered = apply_filters( 'option_jetpack_active_modules', $available_modules );
|
||||
|
||||
/** This filter is documented in class.jetpack.php */
|
||||
$filtered = apply_filters( 'jetpack_active_modules', $filtered );
|
||||
|
||||
$forced_off = array_diff( $available_modules, $filtered );
|
||||
|
||||
/**
|
||||
* Last, build the return value.
|
||||
*/
|
||||
$return_value = array();
|
||||
foreach ( $forced_on as $on ) {
|
||||
$return_value[ $on ] = 'active';
|
||||
}
|
||||
|
||||
foreach ( $forced_off as $off ) {
|
||||
$return_value[ $off ] = 'inactive';
|
||||
}
|
||||
|
||||
$this->overrides = $return_value;
|
||||
|
||||
return $return_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* A reference to an instance of this class.
|
||||
*
|
||||
* @var Jetpack_Modules_Overrides
|
||||
*/
|
||||
private static $instance = null;
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of Jetpack_Modules_Overrides
|
||||
*
|
||||
* @return Jetpack_Modules_Overrides
|
||||
*/
|
||||
public static function instance() {
|
||||
if ( is_null( self::$instance ) ) {
|
||||
self::$instance = new Jetpack_Modules_Overrides();
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Private construct to enforce singleton.
|
||||
*/
|
||||
private function __construct() {
|
||||
}
|
||||
}
|
||||
|
||||
Jetpack_Modules_Overrides::instance();
|
||||
19
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar.php
vendored
Normal file
19
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Checks if the search module is active, and if so, will initialize the singleton instance
|
||||
* of Jetpack_Search_Debug_Bar and add it to the array of debug bar panels.
|
||||
*
|
||||
* @param array $panels The array of debug bar panels.
|
||||
* @return array $panel The array of debug bar panels with our added panel.
|
||||
*/
|
||||
function init_jetpack_search_debug_bar( $panels ) {
|
||||
if ( ! Jetpack::is_module_active( 'search' ) ) {
|
||||
return $panels;
|
||||
}
|
||||
|
||||
require_once dirname( __FILE__ ) . '/debug-bar/class.jetpack-search-debug-bar.php';
|
||||
$panels[] = Jetpack_Search_Debug_Bar::instance();
|
||||
return $panels;
|
||||
}
|
||||
add_filter( 'debug_bar_panels', 'init_jetpack_search_debug_bar' );
|
||||
154
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/class.jetpack-search-debug-bar.php
vendored
Normal file
154
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/class.jetpack-search-debug-bar.php
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Singleton class instantiated by Jetpack_Searc_Debug_Bar::instance() that handles
|
||||
* rendering the Jetpack Search debug bar menu item and panel.
|
||||
*/
|
||||
class Jetpack_Search_Debug_Bar extends Debug_Bar_Panel {
|
||||
/**
|
||||
* Holds singleton instance
|
||||
*
|
||||
* @var Jetpack_Search_Debug_Bar
|
||||
*/
|
||||
protected static $instance = null;
|
||||
|
||||
/**
|
||||
* The title to use in the debug bar navigation
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $title;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->title( esc_html__( 'Jetpack Search', 'jetpack' ) );
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
||||
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of Jetpack_Search_Debug_Bar
|
||||
*
|
||||
* @return Jetpack_Search_Debug_Bar
|
||||
*/
|
||||
public static function instance() {
|
||||
if ( is_null( self::$instance ) ) {
|
||||
self::$instance = new Jetpack_Search_Debug_Bar();
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueues styles for our panel in the debug bar
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
wp_enqueue_style(
|
||||
'jetpack-search-debug-bar',
|
||||
plugins_url( '3rd-party/debug-bar/debug-bar.css', JETPACK__PLUGIN_FILE )
|
||||
);
|
||||
wp_enqueue_script(
|
||||
'jetpack-search-debug-bar',
|
||||
plugins_url( '3rd-party/debug-bar/debug-bar.js', JETPACK__PLUGIN_FILE ),
|
||||
array( 'jquery' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Should the Jetpack Search Debug Bar show?
|
||||
*
|
||||
* Since we've previously done a check for the search module being activated, let's just return true.
|
||||
* Later on, we can update this to only show when `is_search()` is true.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function is_visible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the panel content
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function render() {
|
||||
if ( ! class_exists( 'Jetpack_Search' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$jetpack_search = Jetpack_Search::instance();
|
||||
$last_query_info = $jetpack_search->get_last_query_info();
|
||||
|
||||
// If not empty, let's reshuffle the order of some things.
|
||||
if ( ! empty( $last_query_info ) ) {
|
||||
$args = $last_query_info['args'];
|
||||
$response = $last_query_info['response'];
|
||||
$response_code = $last_query_info['response_code'];
|
||||
|
||||
unset( $last_query_info['args'] );
|
||||
unset( $last_query_info['response'] );
|
||||
unset( $last_query_info['response_code'] );
|
||||
|
||||
if ( is_null( $last_query_info['es_time'] ) ) {
|
||||
$last_query_info['es_time'] = esc_html_x(
|
||||
'cache hit',
|
||||
'displayed in search results when results are cached',
|
||||
'jetpack'
|
||||
);
|
||||
}
|
||||
|
||||
$temp = array_merge(
|
||||
array( 'response_code' => $response_code ),
|
||||
array( 'args' => $args ),
|
||||
$last_query_info,
|
||||
array( 'response' => $response )
|
||||
);
|
||||
|
||||
$last_query_info = $temp;
|
||||
}
|
||||
?>
|
||||
<div class="jetpack-search-debug-bar">
|
||||
<h2><?php esc_html_e( 'Last query information:', 'jetpack' ); ?></h2>
|
||||
<?php if ( empty( $last_query_info ) ) : ?>
|
||||
<?php echo esc_html_x( 'None', 'Text displayed when there is no information', 'jetpack' ); ?>
|
||||
<?php
|
||||
else :
|
||||
foreach ( $last_query_info as $key => $info ) :
|
||||
?>
|
||||
<h3><?php echo esc_html( $key ); ?></h3>
|
||||
<?php
|
||||
if ( 'response' !== $key && 'args' !== $key ) :
|
||||
?>
|
||||
<pre><?php print_r( esc_html( $info ) ); ?></pre>
|
||||
<?php
|
||||
else :
|
||||
$this->render_json_toggle( $info );
|
||||
endif;
|
||||
?>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</div><!-- Closes .jetpack-search-debug-bar -->
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Responsible for rendering the HTML necessary for the JSON toggle
|
||||
*
|
||||
* @param array $value The resonse from the API as an array.
|
||||
* @return void
|
||||
*/
|
||||
public function render_json_toggle( $value ) {
|
||||
?>
|
||||
<div class="json-toggle-wrap">
|
||||
<pre class="json"><?php echo wp_json_encode( $value ); ?></pre>
|
||||
<span class="pretty toggle"><?php echo esc_html_x( 'Pretty', 'label for formatting JSON', 'jetpack' ); ?></span>
|
||||
<span class="ugly toggle"><?php echo esc_html_x( 'Minify', 'label for formatting JSON', 'jetpack' ); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
56
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/debug-bar.css
vendored
Normal file
56
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/debug-bar.css
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
.jetpack-search-debug-bar h2,
|
||||
.qm-debug-bar-output .jetpack-search-debug-bar h2 {
|
||||
float: none !important;
|
||||
padding: 0 !important;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.qm-debug-bar-output .jetpack-search-debug-bar h2 {
|
||||
margin-top: 1em !important;
|
||||
}
|
||||
|
||||
.qm-debug-bar-output .jetpack-search-debug-bar h2:first-child {
|
||||
margin-top: .5em !important;
|
||||
}
|
||||
|
||||
.debug-menu-target h3 {
|
||||
padding-top: 0
|
||||
}
|
||||
|
||||
.jetpack-search-debug-output-toggle .print-r {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.json-toggle-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.json-toggle-wrap .toggle {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
background: #fff;
|
||||
border: 1px solid #000;
|
||||
cursor: pointer;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.json-toggle-wrap .ugly {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.json-toggle-wrap.pretty .pretty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.json-toggle-wrap.pretty .ugly {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.jetpack-search-debug-bar pre {
|
||||
white-space: pre-wrap;
|
||||
white-space: -moz-pre-wrap;
|
||||
white-space: -pre-wrap;
|
||||
white-space: -o-pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
22
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/debug-bar.js
vendored
Normal file
22
backend/wordpress/wp-content/plugins/jetpack/3rd-party/debug-bar/debug-bar.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* global jQuery, JSON */
|
||||
|
||||
( function( $ ) {
|
||||
$( document ).ready( function() {
|
||||
$( '.jetpack-search-debug-bar .json-toggle-wrap .toggle' ).click( function() {
|
||||
var t = $( this ),
|
||||
wrap = t.closest( '.json-toggle-wrap' ),
|
||||
pre = wrap.find( 'pre' ),
|
||||
content = pre.text(),
|
||||
isPretty = wrap.hasClass( 'pretty' );
|
||||
|
||||
if ( ! isPretty ) {
|
||||
pre.text( JSON.stringify( JSON.parse( content ), null, 2 ) );
|
||||
} else {
|
||||
content.replace( '\t', '' ).replace( '\n', '' ).replace( ' ', '' );
|
||||
pre.text( JSON.stringify( JSON.parse( content ) ) );
|
||||
}
|
||||
|
||||
wrap.toggleClass( 'pretty' );
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
||||
113
backend/wordpress/wp-content/plugins/jetpack/3rd-party/domain-mapping.php
vendored
Normal file
113
backend/wordpress/wp-content/plugins/jetpack/3rd-party/domain-mapping.php
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class Jetpack_3rd_Party_Domain_Mapping
|
||||
*
|
||||
* This class contains methods that are used to provide compatibility between Jetpack sync and domain mapping plugins.
|
||||
*/
|
||||
class Jetpack_3rd_Party_Domain_Mapping {
|
||||
|
||||
/**
|
||||
* @var Jetpack_3rd_Party_Domain_Mapping
|
||||
**/
|
||||
private static $instance = null;
|
||||
|
||||
/**
|
||||
* An array of methods that are used to hook the Jetpack sync filters for home_url and site_url to a mapping plugin.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
static $test_methods = array(
|
||||
'hook_wordpress_mu_domain_mapping',
|
||||
'hook_wpmu_dev_domain_mapping'
|
||||
);
|
||||
|
||||
static function init() {
|
||||
if ( is_null( self::$instance ) ) {
|
||||
self::$instance = new Jetpack_3rd_Party_Domain_Mapping;
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
private function __construct() {
|
||||
add_action( 'plugins_loaded', array( $this, 'attempt_to_hook_domain_mapping_plugins' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is called on the plugins_loaded action and will loop through the $test_methods
|
||||
* to try and hook a domain mapping plugin to the Jetpack sync filters for the home_url and site_url callables.
|
||||
*/
|
||||
function attempt_to_hook_domain_mapping_plugins() {
|
||||
if ( ! Jetpack_Constants::is_defined( 'SUNRISE' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$hooked = false;
|
||||
$count = count( self::$test_methods );
|
||||
for ( $i = 0; $i < $count && ! $hooked; $i++ ) {
|
||||
$hooked = call_user_func( array( $this, self::$test_methods[ $i ] ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will test for a constant and function that are known to be used with Donncha's WordPress MU
|
||||
* Domain Mapping plugin. If conditions are met, we hook the domain_mapping_siteurl() function to Jetpack sync
|
||||
* filters for home_url and site_url callables.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function hook_wordpress_mu_domain_mapping() {
|
||||
if ( ! Jetpack_Constants::is_defined( 'SUNRISE_LOADED' ) || ! $this->function_exists( 'domain_mapping_siteurl' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
add_filter( 'jetpack_sync_home_url', 'domain_mapping_siteurl' );
|
||||
add_filter( 'jetpack_sync_site_url', 'domain_mapping_siteurl' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will test for a class and method known to be used in WPMU Dev's domain mapping plugin. If the
|
||||
* method exists, then we'll hook the swap_to_mapped_url() to our Jetpack sync filters for home_url and site_url.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function hook_wpmu_dev_domain_mapping() {
|
||||
if ( ! $this->class_exists( 'domain_map' ) || ! $this->method_exists( 'domain_map', 'utils' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$utils = $this->get_domain_mapping_utils_instance();
|
||||
add_filter( 'jetpack_sync_home_url', array( $utils, 'swap_to_mapped_url' ) );
|
||||
add_filter( 'jetpack_sync_site_url', array( $utils, 'swap_to_mapped_url' ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Utility Methods
|
||||
*
|
||||
* These methods are very minimal, and in most cases, simply pass on arguments. Why create them you ask?
|
||||
* So that we can test.
|
||||
*/
|
||||
|
||||
public function method_exists( $class, $method ) {
|
||||
return method_exists( $class, $method );
|
||||
}
|
||||
|
||||
public function class_exists( $class ) {
|
||||
return class_exists( $class );
|
||||
}
|
||||
|
||||
public function function_exists( $function ) {
|
||||
return function_exists( $function );
|
||||
}
|
||||
|
||||
public function get_domain_mapping_utils_instance() {
|
||||
return domain_map::utils();
|
||||
}
|
||||
}
|
||||
|
||||
Jetpack_3rd_Party_Domain_Mapping::init();
|
||||
7
backend/wordpress/wp-content/plugins/jetpack/3rd-party/polldaddy.php
vendored
Normal file
7
backend/wordpress/wp-content/plugins/jetpack/3rd-party/polldaddy.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
class Jetpack_Sync {
|
||||
static function sync_options() {
|
||||
_deprecated_function( __METHOD__, 'jetpack-4.2', 'jetpack_options_whitelist filter' );
|
||||
}
|
||||
}
|
||||
19
backend/wordpress/wp-content/plugins/jetpack/3rd-party/qtranslate-x.php
vendored
Normal file
19
backend/wordpress/wp-content/plugins/jetpack/3rd-party/qtranslate-x.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Prevent qTranslate X from redirecting REST calls.
|
||||
*
|
||||
* @since 5.3
|
||||
*
|
||||
* @param string $url_lang Language URL to redirect to.
|
||||
* @param string $url_orig Original URL.
|
||||
* @param array $url_info Pieces of original URL.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) {
|
||||
if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) {
|
||||
return false;
|
||||
}
|
||||
return $url_lang;
|
||||
}
|
||||
add_filter( 'qtranslate_language_detect_redirect', 'jetpack_no_qtranslate_rest_url_redirect', 10, 3 );
|
||||
42
backend/wordpress/wp-content/plugins/jetpack/3rd-party/vaultpress.php
vendored
Normal file
42
backend/wordpress/wp-content/plugins/jetpack/3rd-party/vaultpress.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Notify user that VaultPress has been disabled. Hide VaultPress notice that requested attention.
|
||||
*
|
||||
* @since 5.8
|
||||
*/
|
||||
function jetpack_vaultpress_rewind_enabled_notice() {
|
||||
// The deactivation is performed here because there may be pages that admin_init runs on,
|
||||
// such as admin_ajax, that could deactivate the plugin without showing this notification.
|
||||
deactivate_plugins( 'vaultpress/vaultpress.php' );
|
||||
|
||||
// Remove WP core notice that says that the plugin was activated.
|
||||
if ( isset( $_GET['activate'] ) ) {
|
||||
unset( $_GET['activate'] );
|
||||
}
|
||||
?>
|
||||
<div class="notice notice-success vp-deactivated">
|
||||
<h2 style="margin-bottom: 0.25em;"><?php _e( 'Jetpack is now handling your backups.', 'jetpack' ); ?></h2>
|
||||
<p><?php _e( 'VaultPress is no longer needed and has been deactivated.', 'jetpack' ); ?></p>
|
||||
</div>
|
||||
<style>#vp-notice{display:none;}</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* If Rewind is enabled, remove its entry in sidebar, deactivate VaultPress, and show a notification.
|
||||
*
|
||||
* @since 5.8
|
||||
*/
|
||||
function jetpack_vaultpress_rewind_check() {
|
||||
if ( Jetpack::is_active() &&
|
||||
Jetpack::is_plugin_active( 'vaultpress/vaultpress.php' ) &&
|
||||
Jetpack::is_rewind_enabled()
|
||||
) {
|
||||
remove_submenu_page( 'jetpack', 'vaultpress' );
|
||||
|
||||
add_action( 'admin_notices', 'jetpack_vaultpress_rewind_enabled_notice' );
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'admin_init', 'jetpack_vaultpress_rewind_check', 11 );
|
||||
133
backend/wordpress/wp-content/plugins/jetpack/3rd-party/woocommerce-services.php
vendored
Normal file
133
backend/wordpress/wp-content/plugins/jetpack/3rd-party/woocommerce-services.php
vendored
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class WC_Services_Installer {
|
||||
|
||||
/**
|
||||
* @var Jetpack
|
||||
**/
|
||||
private $jetpack;
|
||||
|
||||
/**
|
||||
* @var WC_Services_Installer
|
||||
**/
|
||||
private static $instance = null;
|
||||
|
||||
static function init() {
|
||||
if ( is_null( self::$instance ) ) {
|
||||
self::$instance = new WC_Services_Installer();
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
public function __construct() {
|
||||
$this->jetpack = Jetpack::init();
|
||||
|
||||
add_action( 'admin_init', array( $this, 'add_error_notice' ) );
|
||||
add_action( 'admin_init', array( $this, 'try_install' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify the intent to install WooCommerce Services, and kick off installation.
|
||||
*/
|
||||
public function try_install() {
|
||||
if ( ! isset( $_GET['wc-services-action'] ) ) {
|
||||
return;
|
||||
}
|
||||
check_admin_referer( 'wc-services-install' );
|
||||
|
||||
$result = false;
|
||||
|
||||
switch ( $_GET['wc-services-action'] ) {
|
||||
case 'install':
|
||||
if ( current_user_can( 'install_plugins' ) ) {
|
||||
$this->jetpack->stat( 'jitm', 'wooservices-install-' . JETPACK__VERSION );
|
||||
$result = $this->install();
|
||||
if ( $result ) {
|
||||
$result = $this->activate();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'activate':
|
||||
if ( current_user_can( 'activate_plugins' ) ) {
|
||||
$this->jetpack->stat( 'jitm', 'wooservices-activate-' . JETPACK__VERSION );
|
||||
$result = $this->activate();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$redirect = isset( $_GET['redirect'] ) ? admin_url( $_GET['redirect'] ) : wp_get_referer();
|
||||
|
||||
if ( $result ) {
|
||||
$this->jetpack->stat( 'jitm', 'wooservices-activated-' . JETPACK__VERSION );
|
||||
} else {
|
||||
$redirect = add_query_arg( 'wc-services-install-error', true, $redirect );
|
||||
}
|
||||
|
||||
wp_safe_redirect( $redirect );
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up installation error admin notice.
|
||||
*/
|
||||
public function add_error_notice() {
|
||||
if ( ! empty( $_GET['wc-services-install-error'] ) ) {
|
||||
add_action( 'admin_notices', array( $this, 'error_notice' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify the user that the installation of WooCommerce Services failed.
|
||||
*/
|
||||
public function error_notice() {
|
||||
?>
|
||||
<div class="notice notice-error is-dismissible">
|
||||
<p><?php _e( 'There was an error installing WooCommerce Services.', 'jetpack' ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Download and install the WooCommerce Services plugin.
|
||||
*
|
||||
* @return bool result of installation
|
||||
*/
|
||||
private function install() {
|
||||
include_once( ABSPATH . '/wp-admin/includes/admin.php' );
|
||||
include_once( ABSPATH . '/wp-admin/includes/plugin-install.php' );
|
||||
include_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
||||
include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );
|
||||
include_once( ABSPATH . '/wp-admin/includes/class-plugin-upgrader.php' );
|
||||
|
||||
$api = plugins_api( 'plugin_information', array( 'slug' => 'woocommerce-services' ) );
|
||||
|
||||
if ( is_wp_error( $api ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() );
|
||||
$result = $upgrader->install( $api->download_link );
|
||||
|
||||
return true === $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Activate the WooCommerce Services plugin.
|
||||
*
|
||||
* @return bool result of activation
|
||||
*/
|
||||
private function activate() {
|
||||
$result = activate_plugin( 'woocommerce-services/woocommerce-services.php' );
|
||||
|
||||
// activate_plugin() returns null on success
|
||||
return is_null( $result );
|
||||
}
|
||||
}
|
||||
|
||||
WC_Services_Installer::init();
|
||||
95
backend/wordpress/wp-content/plugins/jetpack/3rd-party/woocommerce.php
vendored
Normal file
95
backend/wordpress/wp-content/plugins/jetpack/3rd-party/woocommerce.php
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* This file contains compatibility functions for WooCommerce to improve Jetpack feature support.
|
||||
*/
|
||||
add_action( 'woocommerce_init', 'jetpack_woocommerce_integration' );
|
||||
|
||||
function jetpack_woocommerce_integration() {
|
||||
/**
|
||||
* Double check WooCommerce exists - unlikely to fail due to the hook being used but better safe than sorry.
|
||||
*/
|
||||
if ( ! class_exists( 'WooCommerce' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_share', 'jetpack_woocommerce_social_share_icons', 10 );
|
||||
|
||||
/**
|
||||
* Wrap in function exists check since this requires WooCommerce 3.3+.
|
||||
*/
|
||||
if ( function_exists( 'wc_get_default_products_per_row' ) ) {
|
||||
add_filter( 'infinite_scroll_render_callbacks', 'jetpack_woocommerce_infinite_scroll_render_callback', 10 );
|
||||
add_action( 'wp_enqueue_scripts', 'jetpack_woocommerce_infinite_scroll_style', 10 );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure the social sharing icons show up under the product's short description
|
||||
*/
|
||||
function jetpack_woocommerce_social_share_icons() {
|
||||
if ( function_exists( 'sharing_display' ) ) {
|
||||
remove_filter( 'the_content', 'sharing_display', 19 );
|
||||
remove_filter( 'the_excerpt', 'sharing_display', 19 );
|
||||
echo sharing_display();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove sharing display from account, cart, and checkout pages in WooCommerce.
|
||||
*/
|
||||
function jetpack_woocommerce_remove_share() {
|
||||
/**
|
||||
* Double check WooCommerce exists - unlikely to fail due to the hook being used but better safe than sorry.
|
||||
*/
|
||||
if ( ! class_exists( 'WooCommerce' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( is_cart() || is_checkout() || is_account_page() ) {
|
||||
remove_filter( 'the_content', 'sharing_display', 19 );
|
||||
if ( class_exists( 'Jetpack_Likes' ) ) {
|
||||
remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
add_action( 'loop_start', 'jetpack_woocommerce_remove_share' );
|
||||
|
||||
/**
|
||||
* Add a callback for WooCommerce product rendering in infinite scroll.
|
||||
*
|
||||
* @param array $callbacks
|
||||
* @return array
|
||||
*/
|
||||
function jetpack_woocommerce_infinite_scroll_render_callback( $callbacks ) {
|
||||
$callbacks[] = 'jetpack_woocommerce_infinite_scroll_render';
|
||||
return $callbacks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a default renderer for WooCommerce products within infinite scroll.
|
||||
*/
|
||||
function jetpack_woocommerce_infinite_scroll_render() {
|
||||
if ( ! is_shop() && ! is_product_taxonomy() && ! is_product_category() && ! is_product_tag() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
woocommerce_product_loop_start();
|
||||
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
wc_get_template_part( 'content', 'product' );
|
||||
}
|
||||
|
||||
woocommerce_product_loop_end();
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic styling when infinite scroll is active only.
|
||||
*/
|
||||
function jetpack_woocommerce_infinite_scroll_style() {
|
||||
$custom_css = "
|
||||
.infinite-scroll .woocommerce-pagination {
|
||||
display: none;
|
||||
}";
|
||||
wp_add_inline_style( 'woocommerce-layout', $custom_css );
|
||||
}
|
||||
62
backend/wordpress/wp-content/plugins/jetpack/3rd-party/wpml.php
vendored
Normal file
62
backend/wordpress/wp-content/plugins/jetpack/3rd-party/wpml.php
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Only load these if WPML plugin is installed and active.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Load routines only if WPML is loaded.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*/
|
||||
function wpml_jetpack_init() {
|
||||
add_action( 'jetpack_widget_get_top_posts', 'wpml_jetpack_widget_get_top_posts', 10, 3 );
|
||||
add_filter( 'grunion_contact_form_field_html', 'grunion_contact_form_field_html_filter', 10, 3 );
|
||||
}
|
||||
add_action( 'wpml_loaded', 'wpml_jetpack_init' );
|
||||
|
||||
/**
|
||||
* Filter the Top Posts and Pages by language.
|
||||
*
|
||||
* @param array $posts Array of the most popular posts.
|
||||
* @param array $post_ids Array of Post IDs.
|
||||
* @param string $count Number of Top Posts we want to display.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function wpml_jetpack_widget_get_top_posts( $posts, $post_ids, $count ) {
|
||||
global $sitepress;
|
||||
|
||||
foreach ( $posts as $k => $post ) {
|
||||
$lang_information = wpml_get_language_information( $post['post_id'] );
|
||||
if ( ! is_wp_error( $lang_information ) ) {
|
||||
$post_language = substr( $lang_information['locale'], 0, 2 );
|
||||
if ( $post_language !== $sitepress->get_current_language() ) {
|
||||
unset( $posts[ $k ] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $posts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the HTML of the Contact Form and output the one requested by language.
|
||||
*
|
||||
* @param string $r Contact Form HTML output.
|
||||
* @param string $field_label Field label.
|
||||
* @param int|null $id Post ID.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function grunion_contact_form_field_html_filter( $r, $field_label, $id ){
|
||||
global $sitepress;
|
||||
|
||||
if ( function_exists( 'icl_translate' ) ) {
|
||||
if ( $sitepress->get_current_language() !== $sitepress->get_default_language() ) {
|
||||
$label_translation = icl_translate( 'jetpack ', $field_label . '_label', $field_label );
|
||||
$r = str_replace( $field_label, $label_translation, $r );
|
||||
}
|
||||
}
|
||||
|
||||
return $r;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
||||
|
||||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery
|
||||
* Personal attacks
|
||||
* Trolling or insulting/derogatory comments
|
||||
* Public or private harassment
|
||||
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
|
||||
* Other unethical or unprofessional conduct
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
||||
|
||||
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by emailing a project maintainer via [this contact form](https://developer.wordpress.com/contact/?g21-subject=Code%20of%20Conduct), with a subject that includes `Code of Conduct`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]
|
||||
|
||||
[homepage]: http://contributor-covenant.org
|
||||
[version]: http://contributor-covenant.org/version/1/3/0/
|
||||
@@ -0,0 +1,19 @@
|
||||
var keyboardNavigation = false,
|
||||
keyboardNavigationKeycodes = [ 9, 32, 37, 38, 39, 40 ]; // keyCodes for tab, space, left, up, right, down respectively
|
||||
|
||||
document.addEventListener( 'keydown', function( event ) {
|
||||
if ( keyboardNavigation ) {
|
||||
return;
|
||||
}
|
||||
if ( keyboardNavigationKeycodes.indexOf( event.keyCode ) !== -1 ) {
|
||||
keyboardNavigation = true;
|
||||
document.documentElement.classList.add( 'accessible-focus' );
|
||||
}
|
||||
} );
|
||||
document.addEventListener( 'mouseup', function() {
|
||||
if ( ! keyboardNavigation ) {
|
||||
return;
|
||||
}
|
||||
keyboardNavigation = false;
|
||||
document.documentElement.classList.remove( 'accessible-focus' );
|
||||
} );
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/accessible-focus.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/accessible-focus.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
var keyboardNavigation=!1,keyboardNavigationKeycodes=[9,32,37,38,39,40];document.addEventListener("keydown",function(e){keyboardNavigation||-1!==keyboardNavigationKeycodes.indexOf(e.keyCode)&&(keyboardNavigation=!0,document.documentElement.classList.add("accessible-focus"))}),document.addEventListener("mouseup",function(){keyboardNavigation&&(keyboardNavigation=!1,document.documentElement.classList.remove("accessible-focus"))});
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint devel: true, onevar: false */
|
||||
/* global tinyMCE, AtD_restore_if_proofreading, AtD_check, AtD_unbind_proofreader_listeners,
|
||||
AtD, AtD_bind_proofreader_listeners, AtD_check_when
|
||||
*/
|
||||
function AtD_submit_check(t){AtD_proofread_click_count>0||(t.stopImmediatePropagation(),t.preventDefault(),"undefined"!=typeof tinyMCE&&tinyMCE.activeEditor&&!tinyMCE.activeEditor.isHidden()?tinyMCE.activeEditor.execCommand("mceWritingImprovementTool",AtD_submit_check_callback):(AtD_restore_if_proofreading(),AtD_check(AtD_submit_check_callback)))}function AtD_submit_check_callback(t){if(t=Number(t||0),AtD_unbind_proofreader_listeners(),0===t||1<AtD_proofread_click_count)AtD_update_post();else if(-1===t)alert(AtD.getLang("message_server_error","There was a problem communicating with the Proofreading service. Try again in one minute.")),AtD_update_post();else{var e,i=jQuery("#original_post_status").val();e="publish"===i?AtD.getLang("dialog_confirm_post_publish","The proofreader has suggestions for this post. Are you sure you want to publish it?\n\nPress OK to publish your post, or Cancel to view the suggestions and edit your post."):AtD.getLang("dialog_confirm_post_update","The proofreader has suggestions for this post. Are you sure you want to update it?\n\nPress OK to update your post, or Cancel to view the suggestions and edit your post."),confirm(e)?AtD_update_post():(AtD_bind_proofreader_listeners(),AtD_kill_autoproofread()),jQuery("#publish").removeClass("button-primary-disabled"),jQuery("#ajax-loading").hide()}}function AtD_kill_autoproofread(){jQuery("#publish").unbind("click.AtD_submit_check")}function AtD_update_post(){"undefined"!=typeof tinyMCE&&tinyMCE.activeEditor&&!tinyMCE.activeEditor.isHidden()||AtD_restore_if_proofreading(),jQuery("#publish").unbind("click.AtD_submit_check").click()}var AtD_proofread_click_count=0;jQuery(document).ready(function(t){var e=t("#original_post_status").val();"undefined"!=typeof AtD_check_when&&t("#content").length&&("publish"!==e&&AtD_check_when.onpublish||("publish"===e||"schedule"===e)&&AtD_check_when.onupdate)&&t("#publish").bind("click.AtD_submit_check",AtD_submit_check)});
|
||||
File diff suppressed because one or more lines are too long
9
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/atd.core.min.js
vendored
Normal file
9
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/atd.core.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
17
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/jquery.atd.min.js
vendored
Normal file
17
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/jquery.atd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
21
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/tinymce/plugin.min.js
vendored
Normal file
21
backend/wordpress/wp-content/plugins/jetpack/_inc/build/after-the-deadline/tinymce/plugin.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/carousel/jetpack-carousel.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/carousel/jetpack-carousel.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
jQuery(document).ready(function(t){var n="https://public-api.wordpress.com/rest/v1",e=[];!function(){t(".comment-like-count").each(function(){var n=t(this).attr("data-blog-id"),o=t(this).attr("data-comment-id");e.push("/sites/"+n+"/comments/"+o+"/likes")}),t.ajax({type:"GET",url:n+"/batch",dataType:"jsonp",data:"urls[]="+e.map(encodeURIComponent).join("&urls[]="),success:function(n){for(var e in n)if(!n[e].error_data){var o=e.split("/"),a=o[4],i=n[e].found;if(i<1)return;t("#comment-like-count-"+a).find(".like-count").hide().text(i).fadeIn()}},error:function(){}})}()});
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/editor-view.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/editor-view.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global ajaxurl */
|
||||
jQuery(function(e){function n(c,t){e.post(ajaxurl,{action:"grunion_recheck_queue",offset:c,limit:t},function(e){e.processed<t?window.location.reload():n(c+t,t)})}e(document).on("click","#jetpack-check-feedback-spam:not(.button-disabled)",function(c){c.preventDefault(),e("#jetpack-check-feedback-spam:not(.button-disabled)").addClass("button-disabled"),e(".jetpack-check-feedback-spam-spinner").addClass("spinner").show(),n(0,100)})});
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
jQuery(function(t){t(".contact-form input.jp-contact-form-date").datepicker()});
|
||||
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/grunion.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/contact-form/js/grunion.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global grunionEditorView, tinymce */
|
||||
!function(){tinymce.create("tinymce.plugins.grunion_form",{init:function(n){n.addButton("grunion",{title:grunionEditorView.labels.tinymce_label,cmd:"grunion_add_form",icon:"grunion"}),n.addCommand("grunion_add_form",function(){grunionEditorView.default_form?n.execCommand("mceInsertContent",0,"[contact-form]"+grunionEditorView.default_form+"[/contact-form]"):n.execCommand("mceInsertContent",0,"[contact-form /]")})},createControl:function(){return null},getInfo:function(){return{longname:"Grunion Contact Form",author:"Automattic",version:"1"}}}),tinymce.PluginManager.add("grunion_form",tinymce.plugins.grunion_form)}();
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
// Originally based on https://raw.githubusercontent.com/xwp/wp-custom-scss-demo/master/custom-scss-demo-preview.js
|
||||
/* globals jpCustomizerCssPreview */
|
||||
!function(e,s){e.settingPreviewHandlers?e.settingPreviewHandlers.custom_css=function(){}:parent.console.warn("Missing core patch that adds support for settingPreviewHandlers"),e.selectiveRefresh.partialConstructor.custom_css=e.selectiveRefresh.Partial.extend({refresh:function(){var t,r,c=this,n=e("jetpack_custom_css[preprocessor]").get();return jpCustomizerCssPreview.preprocessors.hasOwnProperty(n)?e.selectiveRefresh.Partial.prototype.refresh.call(c):(t=new s.Deferred,r=e("custom_css["+e.settings.theme.stylesheet+"]"),_.each(c.placements(),function(e){e.container.text(r.get())}),t.resolve(),t.promise())}})}(wp.customize,jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(s,t){function n(s){var n=t.control.value(s);return n?n.container:null}s(document).ready(function(){var e=n("jetpack_css_mode_control");e&&e.prepend('<span class="customize-control-title">'+window._jp_css_settings.l10n.mode+"</span>");var i=n("jetpack_mobile_css_control");i&&i.prepend('<span class="customize-control-title">'+window._jp_css_settings.l10n.mobile+"</span>");var o=n("wpcom_custom_css_content_width_control");o&&(o.append('<span class="description">'+window._jp_css_settings.l10n.contentWidth+"<span>"),o.find("input").after("<span>px</span>")),s("<div />",{id:"css-help-links",class:"css-help"}).appendTo(n("custom_css")),s("<a />",{id:"help-link",target:"_blank",href:window._jp_css_settings.cssHelpUrl,text:window._jp_css_settings.l10n.css_help_title}).prependTo("#css-help-links"),window._jp_css_settings.areThereCssRevisions&&s("<a />",{id:"revisions-link",target:"_blank",href:window._jp_css_settings.revisionsUrl,text:window._jp_css_settings.l10n.revisions}).prependTo("#css-help-links"),t("jetpack_custom_css[preprocessor]",function(s){s.bind(function(s){var n={default:"text/css",less:"text/x-less",sass:"text/x-scss"},e="text/css";void 0!==n[s]&&(e=n[s]),t.control("custom_css").deferred.codemirror.done(function(s){s.setOption("mode",e),"text/css"===e?s.setOption("lint",!0):s.setOption("lint",!1)})})})})}(jQuery,this.wp.customize);
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(t,s,i){i.controlConstructor.jetpackCss=i.Control.extend({modes:{default:"text/css",less:"text/x-less",sass:"text/x-scss"},_updating:!1,ready:function(){this.opts=window._jp_css_settings,this.$input=s("<textarea />",{name:this.setting.id,class:"for-codemirror hidden"}).val(this.setting()),this.container.append(this.$input),i(this.setting.id,_.bind(function(t){var s=new i.Element(this.$input);this.elements=[s],s.sync(t),s.set(t())},this)),this.opts.useRichEditor?this.initCodeMirror():this.$input.removeClass("hidden"),i.bind("ready",_.bind(this.addLabels,this))},initCodeMirror:function(){this.editor=window.CodeMirror.fromTextArea(this.$input.get(0),{mode:this.getMode(),lineNumbers:!0,tabSize:2,indentWithTabs:!0,lineWrapping:!0}),this.addListeners()},addListeners:function(){var t=!1;s("#accordion-section-custom_css > .accordion-section-title").click(_.bind(_.debounce(this.editor.refresh,250),this.editor)),this.editor.on("focus",function(t){t.refresh()}),this.editor.on("change",_.bind(function(s){this._updating=!0,this.$input.val(s.getValue()).trigger("change"),this._updating=!1,t||(window.ga&&window.ga("send","event","Customizer","Typed Custom CSS"),t=!0)},this)),this.editor.on("focus",function(){window.ga&&window.ga("send","event","Customizer","Focused CSS Editor")}),this.setting.bind("change",_.bind(this.externalChange,this))},getMode:function(){var t=i("jetpack_custom_css[preprocessor]")();return""!==t&&this.modes[t]||(t="default"),this.modes[t]},externalChange:function(){this._updating||this.editor.setValue(this.setting())},refresh:function(t){"accordion-section-custom_css"===t&&setTimeout(_.bind(function(){this.editor.refresh()},this),300)},addLabels:function(){this.addTitle("jetpack_css_mode_control",this.opts.l10n.mode),this.addTitle("jetpack_mobile_css_control",this.opts.l10n.mobile),this.addDesc("wpcom_custom_css_content_width_control",this.opts.l10n.contentWidth);var t=this._getControl("wpcom_custom_css_content_width_control");t&&t.find("input").after("<span>px</span>"),s("<div />",{id:"css-help-links",class:"css-help"}).appendTo(this.container),s("<a />",{id:"help-link",target:"_blank",href:this.opts.cssHelpUrl,text:this.opts.l10n.css_help_title}).prependTo("#css-help-links"),this.opts.areThereCssRevisions&&s("<a />",{id:"revisions-link",target:"_blank",href:this.opts.revisionsUrl,text:this.opts.l10n.revisions}).prependTo("#css-help-links")},addTitle:function(t,s){var i=this._getControl(t);i&&i.prepend('<span class="customize-control-title">'+s+"<span>")},addDesc:function(t,s){var i=this._getControl(t);i&&i.append('<span class="description">'+s+"<span>")},_getControl:function(t){var s=i.control.value(t);return s?s.container:null}})}(this.wp,jQuery,this.wp.customize);
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
/* global postboxes, addLoadEvent */
|
||||
!function(e){var s,o,c,t;c=function(){s.height(o.height()-s.offset().top-250)},t=function(){s=e("#safecss"),o=e(window),postboxes.add_postbox_toggles("editcss"),c(),e("#safecssform").on("click","#preview",function(e){e.preventDefault(),document.forms.safecssform.target="csspreview",document.forms.safecssform.action.value="preview",document.forms.safecssform.submit(),document.forms.safecssform.target="",document.forms.safecssform.action.value="save"})},window.onresize=c,addLoadEvent(t)}(jQuery),jQuery(function(e){e(".edit-preprocessor").bind("click",function(s){s.preventDefault(),e("#preprocessor-select").slideDown(),e(this).hide()}),e(".cancel-preprocessor").bind("click",function(s){s.preventDefault(),e("#preprocessor-select").slideUp(function(){e(".edit-preprocessor").show(),e("#preprocessor_choices").val(e("#custom_css_preprocessor").val())})}),e(".save-preprocessor").bind("click",function(s){s.preventDefault(),e("#preprocessor-select").slideUp(),e("#preprocessor-display").text(e("#preprocessor_choices option:selected").text()),e("#custom_css_preprocessor").val(e("#preprocessor_choices").val()).change(),e(".edit-preprocessor").show()}),e(".edit-css-mode").bind("click",function(s){s.preventDefault(),e("#css-mode-select").slideDown(),e(this).hide()}),e(".cancel-css-mode").bind("click",function(s){s.preventDefault(),e("#css-mode-select").slideUp(function(){e(".edit-css-mode").show(),e("input[name=add_to_existing_display][value="+e("#add_to_existing").val()+"]").attr("checked",!0)})}),e(".save-css-mode").bind("click",function(s){s.preventDefault(),e("#css-mode-select").slideUp(),e("#css-mode-display").text("true"==e("input[name=add_to_existing_display]:checked").val()?"Add-on":"Replacement"),e("#add_to_existing").val(e("input[name=add_to_existing_display]:checked").val()),e(".edit-css-mode").show()})});
|
||||
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
!function(t){var e={modes:{default:"text/css",less:"text/x-less",sass:"text/x-scss"},init:function(){this.$textarea=t("#safecss"),this.editor=window.CodeMirror.fromTextArea(this.$textarea.get(0),{mode:this.getMode(),lineNumbers:!0,tabSize:2,indentWithTabs:!0,lineWrapping:!0}),this.setEditorHeight()},addListeners:function(){t(window).on("resize",_.bind(_.debounce(this.setEditorHeight,100),this)),this.editor.on("change",_.bind(function(t){this.$textarea.val(t.getValue())},this)),t("#preprocessor_choices").change(_.bind(function(){this.editor.setOption("mode",this.getMode())},this))},setEditorHeight:function(){var e=t("html").height()-t(this.editor.getWrapperElement()).offset().top;this.editor.setSize(null,e)},getMode:function(){var e=t("#preprocessor_choices").val();return""!==e&&this.modes[e]||(e="default"),this.modes[e]}};t(document).ready(_.bind(e.init,e))}(jQuery);
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true, devel: true */
|
||||
/* global Jetpack_Comics_Options */
|
||||
jQuery(function(o){var e={init:function(){o(document).on("dragover.jetpack-comics","body, #jetpack-comic-drop-zone",this.onDragOver),o(document).on("dragleave.jetpack-comics","body, #jetpack-comic-drop-zone",this.onDragLeave),o(document).on("drop.jetpack-comics","body, #jetpack-comic-drop-zone",this.onDrop),o("body").append(o('<div id="jetpack-comic-drop-zone"><p class="dragging" /><p class="uploading" /></div>')),o("#jetpack-comic-drop-zone").find(".dragging").text(Jetpack_Comics_Options.labels.dragging).end().find(".uploading").text(Jetpack_Comics_Options.labels.uploading).prepend(o('<span class="spinner"/>')),"FileReader"in window&&"File"in window||(o("#jetpack-comic-drop-zone .dragging").text(Jetpack_Comics_Options.labels.unsupported),o(document).off("drop.jetpack-comics").on("drop.jetpack-comics","body, #jetpack-comic-drop-zone",this.onDragLeave))},filterImageFiles:function(o){for(var e=[],n=0,a=o.length;n<a;n++)o[n].type.match(/^image\//i)&&e.push(o[n]);return e},dragTimeout:null,onDragOver:function(n){n.preventDefault(),clearTimeout(e.dragTimeout),o("body").addClass("dragging")},onDragLeave:function(){clearTimeout(e.dragTimeout),e.dragTimeout=setTimeout(function(){o("body").removeClass("dragging")},100)},onDrop:function(n){n.preventDefault(),n.stopPropagation(),n.originalEvent.stopPropagation(),n.originalEvent.preventDefault();var a=e.filterImageFiles(n.originalEvent.dataTransfer.files);if(o("body").removeClass("dragging"),0===a.length)return void alert(Jetpack_Comics_Options.labels.invalidUpload);o("body").addClass("uploading");for(var i=new FormData,t=0,r=a.length;t<r;t++)i.append("image_"+t,a[t]);o("#jetpack-comic-drop-zone .uploading .spinner").spin(),o.ajax({url:Jetpack_Comics_Options.writeURL+"&nonce="+Jetpack_Comics_Options.nonce,data:i,processData:!1,contentType:!1,type:"POST",dataType:"json",xhrFields:{withCredentials:!0}}).done(function(e){o("#jetpack-comic-drop-zone .uploading").text(Jetpack_Comics_Options.labels.processing),"url"in e?document.location.href=e.url:"error"in e&&(alert(e.error),o("body").removeClass("uploading"))}).fail(function(){alert(Jetpack_Comics_Options.labels.error)})}};e.init()});
|
||||
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
!function(t){var n,a,e;e={init:function(){var i,o,r=this;return this.on("keypress.manyItemsTable",function(t){13===t.which&&(t.preventDefault(),"function"==typeof FormData&&e.submitRow.apply(r),e.addRow.apply(r))}).on("focus.manyItemsTable",":input",function(){r.data("currentRow",t(this).parents("tr:first"))}),i=this.find("tbody:last"),o=i.find("tr:first").clone(),this.data("form",this.parents("form:first")),this.data("tbody",i),this.data("row",o),this.data("currentRow",o),n=t("#nova-menu-tax"),a=t("#_wpnonce"),this},destroy:function(){return this.off(".manyItemsTable"),this},submitRow:function(){var e,i,o,r;return e=this.data("currentRow"),i=e.find(":input"),o=this.data("form").find(":input").not(i).attr("disabled",!0).end(),r=new FormData(this.data("form").get(0)),r.append("ajax","1"),r.append("nova_menu_tax",n.val()),r.append("_wpnonce",a.val()),o.attr("disabled",!1),t.ajax({url:"",type:"POST",data:r,processData:!1,contentType:!1}).complete(function(t){e.html(t.responseText)}),i.attr("disabled",!0),this},addRow:function(){var t=this.data("row").clone();return t.appendTo(this.data("tbody")),t.find(":input:first").focus(),this}},t.fn.manyItemsTable=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?(t.error("Method "+n+" does not exist on jQuery.manyItemsTable"),this):e.init.apply(this,arguments)},t.fn.clickAddRow=function(){var n=this.find("tbody:last"),a=n.find("tr:first").clone();t(a).find("input, textarea").val(""),t(a).appendTo(n)}}(jQuery),jQuery(".many-items-table").one("focus",":input",function(t){jQuery(t.delegateTarget).manyItemsTable()}),jQuery(".many-items-table").on("click","a.nova-new-row",function(t){jQuery(t.delegateTarget).clickAddRow()});
|
||||
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true, devel: true */
|
||||
!function(c){var n={inputs:null,popInputs:null,initialize:function(){n.popInputs=c("#nova_menuchecklist-pop").find(":checkbox"),n.inputs=c("#nova_menuchecklist").find(":checkbox").change(n.checkOne).change(n.syncPop),n.isChecked()||n.checkFirst(),n.syncPop()},syncPop:function(){n.popInputs.each(function(){var n=c(this);n.prop("checked",c("#in-nova_menu-"+n.val()).is(":checked"))})},isChecked:function(){return n.inputs.is(":checked")},checkFirst:function(){n.inputs.first().prop("checked",!0)},checkOne:function(){return c(this).is(":checked")?n.inputs.not(this).prop("checked",!1):c(this).closest("#nova_menuchecklist").find(":checked").length>0?c(this).prop("checked",!1):n.checkFirst()}};c(n.initialize)}(jQuery);
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
/* global _novaDragDrop */
|
||||
!function(n){function e(){u=n("#the-list"),t(),o(),a(),i()}function t(){u.sortable({cancel:".no-items",stop:function(n,e){if(e.item.is(":first-child"))return u.sortable("cancel");r()}})}function r(){u.find(".menu-label-row").each(function(){var e=n(this).data("term_id");n(this).nextUntil(".menu-label-row").each(function(t){var r=n(this);r.find(".menu-order-value").val(t),r.find(".nova-menu-term").val(e)})})}function a(){n(".tablenav").prepend('<input type="submit" class="button-primary button-reorder alignright" value="'+_novaDragDrop.reorder+'" name="'+_novaDragDrop.reorderName+'" />')}function o(){n("#posts-filter").append('<input type="hidden" name="'+_novaDragDrop.nonceName+'" value="'+_novaDragDrop.nonce+'" />')}function i(){n("#posts-filter").attr("method","post")}var u;n(document).ready(e)}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global FB, jpfbembed */
|
||||
!function(e){var n=function(){var e,n;"undefined"!=typeof FB&&FB.XFBML?FB.XFBML.parse():(e=document.createElement("div"),e.id="fb-root",document.getElementsByTagName("body")[0].appendChild(e),n="//connect.facebook.net/"+jpfbembed.locale+"/sdk.js#xfbml=1",jpfbembed.appid&&(n+="&appId="+jpfbembed.appid),n+="&version=v2.3",jQuery.getScript(n))};e.fbAsyncInit=function(){FB.init({appId:jpfbembed.appid,version:"v2.3"}),FB.XFBML.parse()},"undefined"!=typeof infiniteScroll&&jQuery(document.body).on("post-load",n),n()}(this);
|
||||
5
backend/wordpress/wp-content/plugins/jetpack/_inc/build/gallery-settings.min.js
vendored
Normal file
5
backend/wordpress/wp-content/plugins/jetpack/_inc/build/gallery-settings.min.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/**
|
||||
* Jetpack Gallery Settings
|
||||
*/
|
||||
!function(e){var t=wp.media;t.view.Settings.Gallery=t.view.Settings.Gallery.extend({render:function(){var a=this.$el;return t.view.Settings.prototype.render.apply(this,arguments),a.append(t.template("jetpack-gallery-settings")),t.gallery.defaults.type="default",this.update.apply(this,["type"]),a.find("select[name=type]").on("change",function(){var t=a.find("select[name=columns]").closest("label.setting");"default"===e(this).val()||"thumbnails"===e(this).val()?t.show():t.hide()}).change(),this}})}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/idc-notice.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/idc-notice.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global idcL10n, jQuery, analytics, history, wpCookies */
|
||||
!function(e){function i(){u.prop("disabled",!0)}function c(){u.prop("disabled",!1)}function n(){v.hide(),s("confirm_safe_mode");var n=p+"jetpack/v4/identity-crisis/confirm-safe-mode";i(),e.ajax({method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",d)},url:n,data:{},success:function(){l.hide(),h.removeClass("hide"),window.location.search&&1===window.location.search.indexOf("page=jetpack")&&window.location.reload()},error:function(e){g="confirm",r(e),c()}})}function t(){v.hide(),s("migrate");var n=p+"jetpack/v4/identity-crisis/migrate";i(),e.ajax({method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",d)},url:n,data:{},success:function(){l.hide(),e("body").hasClass("toplevel_page_jetpack")&&window.location.reload(!0)},error:function(e){g="migrate",r(e),c()}})}function o(){v.hide(),s("fix_connection"),l.addClass("jp-idc-show-second-step")}function a(){v.hide(),s("start_fresh");var n=p+"jetpack/v4/identity-crisis/start-fresh";i(),e.ajax({method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",d)},url:n,data:{},success:function(e){window.location=e+"&from=idc-notice"},error:function(e){g="start-fresh",r(e),c()}})}function r(i){var c=e(".jp-idc-error__desc");i&&i.responseJSON&&i.responseJSON.message?c.html(i.responseJSON.message):c.html(""),v.css("display","flex")}function s(e,i){void 0!==i&&"object"==typeof i||(i={}),e&&e.length&&"undefined"!=typeof analytics&&analytics.tracks&&analytics.mc&&(e=e.replace(/-/g,"_"),e=0!==e.indexOf("jetpack_idc_")?"jetpack_idc_"+e:e,analytics.tracks.recordEvent(e,i),e=e.replace("jetpack_idc_",""),e=e.replace(/_/g,"-"),analytics.mc.bumpStat("jetpack-idc",e))}var d=idcL10n.nonce,f=idcL10n.currentUrl,p=idcL10n.apiRoot,l=e(".jp-idc-notice"),u=e(".jp-idc-notice .dops-button"),m=idcL10n.tracksUserData,_=idcL10n.tracksEventData,h=e("#wp-admin-bar-jetpack-idc"),j=e("#jp-idc-confirm-safe-mode-action"),k=e("#jp-idc-fix-connection-action"),w=e("#jp-idc-migrate-action"),y=e("#jp-idc-reconnect-site-action"),v=e(".jp-idc-error__notice"),g=!1;"undefined"!=typeof analytics&&analytics.initialize(m.userid,m.username),_.isAdmin?s("notice_view"):s("non_admin_notice_view",{page:_.currentScreen}),function(e){e=void 0!==e&&e,window.location.search&&-1!==window.location.search.indexOf("jetpack_idc_clear_confirmation")&&(s("clear_confirmation_clicked"),history&&history.pushState?history.pushState({},"",f):e&&(window.location.href=f))}(),l.on("click",".notice-dismiss",function(){var e="https:"===window.location.protocol;wpCookies.set("jetpack_idc_dismiss_notice","1",604800,!1,!1,e),s("non_admin_notice_dismiss",{page:_.currentScreen})}),l.on("click","#jp-idc-error__action",function(){switch(v.hide(),g){case"confirm":n();break;case"start-fresh":a();break;case"migrate":t();break;default:return}}),j.on("click",n),k.on("click",o),y.on("click",a),w.on("click",t)}(jQuery);
|
||||
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/infinite-scroll/infinity.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/infinite-scroll/infinity.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-admin.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-admin.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(e){function a(){var a=e(".frame.top"),o=e(".frame.bottom"),t=e("body");t.scroll(function(){33>a.offset().top&&(a.addClass("fixed"),t.addClass("jp-frame-top-fixed")),120<=o.offset().top&&(a.removeClass("fixed"),t.removeClass("jp-frame-top-fixed"))}),e("table.jetpack-modules",o).addClass("with-transparency"),e(".manage-left",o).css("width",""),e(".manage-right",o).show()}function o(){e(".filter-search").on("click",function(){e(this).toggleClass("active"),e(".manage-right").toggleClass("show"),e(".shade").toggle()}),e(".checkall").on("click",function(){e(".table-bordered").find(":checkbox").prop("checked",this.checked)}),e(".shade, .modal .close").on("click",function(a){e(".shade, .modal").hide(),e(".manage-right").removeClass("show"),a.preventDefault()})}e(document).ready(function(){o(),a()})}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global jQuery, jp_banner */
|
||||
!function(e){function n(e){i.find(".vertical-menu__feature-item-is-selected").removeClass("vertical-menu__feature-item-is-selected"),c.find(".jp__slide-is-active").removeClass("jp__slide-is-active"),i.children().eq(e).addClass("vertical-menu__feature-item-is-selected"),c.children().eq(e).addClass("jp__slide-is-active")}var i=e(".jp-wpcom-connect__vertical-nav-container"),c=e(".jp-wpcom-connect__content-container"),t=e(".jp-banner__button-container .next-feature"),o=e(".jp-connect-full__container"),s=e(".jp-connect-full__dismiss"),a=e("#welcome-panel"),l=e("#message"),r=e(".connection-banner-dismiss");e(window).on("load",function(){a.insertBefore(l)}),r.on("click",function(){e(l).hide();var n={action:"jetpack_connection_banner",nonce:jp_banner.connectionBannerNonce,dismissBanner:!0};e.post(jp_banner.ajax_url,n,function(n){!0!==n.success&&e(l).show()})}),i.on("click",".vertical-menu__feature-item:not( .vertical-menu__feature-item-is-selected )",function(){n(e(this).index())}),t.on("click",function(){n(e(this).closest(".jp-wpcom-connect__slide").index()+1)}),s.on("click",function(){e(o).hide(),e("body").css("overflow","visible")}),e(document).keyup(function(n){27===n.keyCode&&e(s).click()}),e(o).is(":visible")&&e("body").css("overflow","hidden")}(jQuery);
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-jitm.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-jitm.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
jQuery(document).ready(function(t){var e={default:function(e){var a='<div class="jitm-card jitm-banner '+(e.CTA.message?"has-call-to-action":"")+" is-upgrade-premium "+e.content.classes+'" data-stats_url="'+e.jitm_stats_url+'">';if(a+='<div class="jitm-banner__icon-plan">'+e.content.icon+"</div>",a+='<div class="jitm-banner__content">',a+='<div class="jitm-banner__info">',a+='<div class="jitm-banner__title">'+e.content.message+"</div>",e.content.description&&""!==e.content.description){if(a+='<div class="jitm-banner__description">'+e.content.description,e.content.list.length>0){a+='<ul class="banner__list">';for(var n=0;n<e.content.list.length;n++){var i=e.content.list[n].item;e.content.list[n].url&&(i='<a href="'+e.content.list[n].url+'" target="_blank" rel="noopener noreferrer" data-module="'+e.feature_class+'" data-jptracks-name="nudge_item_click" data-jptracks-prop="jitm-'+e.id+'">'+i+"</a>"),a+='<li><svg class="gridicon gridicons-checkmark" height="16" width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414" /></g></svg>'+i+"</li>"}}a+="</div>"}return a+="</div>",e.CTA.message&&(a+='<div class="jitm-banner__action">',a+='<a href="'+e.url+'" target="'+(!1===e.CTA.newWindow?"_self":"_blank")+'" rel="noopener noreferrer" title="'+e.CTA.message+'" data-module="'+e.feature_class+'" type="button" class="jitm-button is-compact '+(e.CTA.primary?"is-primary":"")+' jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="jitm-'+e.id+'">'+e.CTA.message+"</a>",a+="</div>"),a+='<a href="#" data-module="'+e.feature_class+'" class="jitm-banner__dismiss"></a>',a+="</div>",a+="</div>",t(a)}},a=function(a,n,i){var s;s=n.template,s&&e[s]||(s="default"),n.url=n.url+"&redirect="+i;var r=e[s](n);r.find(".jitm-banner__dismiss").click(function(e){return function(a){a.preventDefault(),e.hide(),t.ajax({url:window.jitm_config.api_root+"jetpack/v4/jitm",method:"POST",data:{id:n.id,feature_class:n.feature_class}})}}(r)),a.replaceWith(r),r.prependTo(t("#jp-admin-notices"))};t(".jetpack-jitm-message").each(function(){var e=t(this),n=e.data("message-path"),i=e.data("query"),s=e.data("redirect");t.get(window.jitm_config.api_root+"jetpack/v4/jitm",{message_path:n,query:i,_wpnonce:e.data("nonce")}).then(function(t){"object"==typeof t&&t[1]&&(t=[t[1]]),0!==t.length&&t[0].content&&a(e,t[0],s)})})});
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(e,t,a,n,s,o,i,l){"use strict";var c,r,u,d,p;t(".wp-list-table.jetpack-modules"),u=t(".navbar-form"),d=t("#srch-term-search-input"),t(".jp-frame"),p=t("#doaction"),c=new n.Modules({items:a}),new s.List_Table({el:"#the-list",model:c}),c.trigger("change"),r=function(e){t(".subsubsub").find('a[data-title="'+t(this).data("title")+'"]').addClass("current").closest("li").siblings().find("a.current").removeClass("current"),e.preventDefault(),c.trigger("change")},t(".subsubsub a").on("click",{modules:c},r),u.on("click",".button-group .button",{modules:c},function(e){e.preventDefault(),t(this).addClass("active").siblings(".active").removeClass("active"),c.trigger("change")}),d.on("keyup search",function(e){9!==e.keyCode&&c.trigger("change")}),d.prop("placeholder",o.search_placeholder),p.on("click",function(a){var n,s=t(".jetpack-modules-list-table-form").serialize(),o=t(this).siblings("select").val();s.length&&"-1"!==o&&(n="admin.php?page=jetpack&action="+encodeURIComponent(o),n+="&"+s,n+="&_wpnonce="+encodeURIComponent(l.bulk),e.location.href=n),a.preventDefault()})}(this,jQuery,window.jetpackModulesData.modules,this.jetpackModules.models,this.jetpackModules.views,window.jetpackModulesData.i18n,window.jetpackModulesData.modalinfo,window.jetpackModulesData.nonces);
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.models.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.models.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
this.jetpackModules=this.jetpackModules||{},window.jetpackModules.models=function(t,e,r,s){"use strict";var a={};return a.Modules=s.Model.extend({visibles:{},filter_and_sort:function(){var t,s=e(".subsubsub .current"),a=this.get("raw"),i=e(".button-group.filter-active .active"),o=e(".button-group.sort .active"),n=e("#srch-term-search-input").val().toLowerCase();return s.closest("li").hasClass("all")||(a=r.filter(a,function(t){return r.contains(t.module_tags,s.data("title"))})),i.data("filter-by")&&(a=r.filter(a,function(t){return t[i.data("filter-by")]===i.data("filter-value")})),n.length&&(a=r.filter(a,function(t){return-1!==(t.name+" "+t.description+" "+t.long_description+" "+t.search_terms+" "+t.jumpstart_desc+" "+t.module_tags).toLowerCase().indexOf(n)})),o.data("sort-by")&&(a=r.sortBy(a,o.data("sort-by")),"reverse"===o.data("sort-order")&&a.reverse()),t=r.groupBy(a,"available"),r.has(t,"false")&&(a=[].concat(t[!0],t[!1])),this.set("items",a),this},initialize:function(){var t=this.get("items");this.set("raw",t)}}),a}(0,jQuery,_,Backbone);
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.views.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jetpack-modules.views.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
this.jetpackModules=this.jetpackModules||{},window.jetpackModules.views=function(t,e,a,o,i){"use strict";var n={};return n.List_Table=o.View.extend({template:i.template("Jetpack_Modules_List_Table_Template"),updateUrl:function(){if(t.history.replaceState){var a=t.location.href.split("?")[0]+"?page=jetpack_modules",o=e(".subsubsub .current"),i=e(".button-group.filter-active .active"),n=e(".button-group.sort .active"),s=e("#srch-term-search-input").val();s.length&&(a+="&s="+encodeURIComponent(s)),o.hasClass("all")||(a+="&module_tag="+encodeURIComponent(o.data("title"))),i.data("filter-by")&&(a+="&"+encodeURIComponent(i.data("filter-by"))+"="+encodeURIComponent(i.data("filter-value"))),"name"!==n.data("sort-by")&&(a+="&sort_by="+encodeURIComponent(n.data("sort-by"))),t.history.replaceState({},"",a)}},render:function(){return this.model.filter_and_sort(),this.$el.html(this.template(this.model.attributes)),this.updateUrl(),this},initialize:function(){this.listenTo(this.model,"change",this.render)}}),n}(this,jQuery,_,Backbone,wp);
|
||||
24
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jquery.jetpack-resize.min.js
vendored
Normal file
24
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jquery.jetpack-resize.min.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global Jetpack, JSON */
|
||||
/**
|
||||
* Resizeable Iframes.
|
||||
*
|
||||
* Start listening to resize postMessage events for selected iframes:
|
||||
* $( selector ).Jetpack( 'resizeable' );
|
||||
* - OR -
|
||||
* Jetpack.resizeable( 'on', context );
|
||||
*
|
||||
* Resize selected iframes:
|
||||
* $( selector ).Jetpack( 'resizeable', 'resize', { width: 100, height: 200 } );
|
||||
* - OR -
|
||||
* Jetpack.resizeable( 'resize', { width: 100, height: 200 }, context );
|
||||
*
|
||||
* Stop listening to resize postMessage events for selected iframes:
|
||||
* $( selector ).Jetpack( 'resizeable', 'off' );
|
||||
* - OR -
|
||||
* Jetpack.resizeable( 'off', context );
|
||||
*
|
||||
* Stop listening to all resize postMessage events:
|
||||
* Jetpack.resizeable( 'off' );
|
||||
*/
|
||||
!function(e){var t,a,i,r,n=!1,o=[],s=!1;if(void 0===window.Jetpack&&(window.Jetpack={getTarget:function(t){return this instanceof jQuery?t?this.filter(t):this:t?e(t):t}}),void 0===e.fn.Jetpack&&(e.fn.Jetpack=function(t){if("function"==typeof Jetpack[t])return Jetpack[t].apply(this,Array.prototype.slice.call(arguments,1));e.error('Namespace "'+t+'" does not exist on jQuery.Jetpack')}),"function"!=typeof window.postMessage)return void e.extend(window.Jetpack,{resizeable:function(){e.error("Browser does not support window.postMessage")}});t=function(e){return e.match(/^https?:\/\//)||(e=document.location.href),e.split("/").slice(0,3).join("/")},a=function(){n=!0,e(window).on("message.JetpackResizeableIframe",function(t){var a,i=t.originalEvent;if(-1!==e.inArray(i.origin,o)){if("object"==typeof i.data)a=i.data.data;else try{a=JSON.parse(i.data)}catch(e){a=!1}a.data&&(a=a.data,void 0!==a.action&&"resize"===a.action&&s.filter(function(){return void 0!==a.name?this.name===a.name:i.source===this.contentWindow}).first().Jetpack("resizeable","resize",a))}})},i=function(){n=!1,e(window).off("message.JetpackResizeableIframe"),o=[],e(".jetpack-resizeable").removeClass("jetpack-resizeable"),s=!1},r={on:function(i){var r=Jetpack.getTarget.call(this,i);return n||a(),r.each(function(){o.push(t(e(this).attr("src")))}).addClass("jetpack-resizeable"),s=e(".jetpack-resizeable"),r},off:function(a){var r=Jetpack.getTarget.call(this,a);return void 0===r?(i(),r):(r.each(function(){var a=t(e(this).attr("src")),i=e.inArray(a,o);-1!==i&&o.splice(i,1)}).removeClass("jetpack-resizeable"),s=e(".jetpack-resizeable"),r)},resize:function(t,a){var i=Jetpack.getTarget.call(this,a);return e.each(["width","height"],function(e,a){var r,n=0;void 0!==t[a]&&(n=parseInt(t[a],10)),0!==n&&(i[a](n),r=i.parent(),r.hasClass("slim-likes-widget")&&r[a](n))}),i}},e.extend(window.Jetpack,{resizeable:function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):t?void e.error("Method "+t+" does not exist on Jetpack.resizeable"):r.on.apply(this)}})}(jQuery);
|
||||
6
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jquery.spin.min.js
vendored
Normal file
6
backend/wordpress/wp-content/plugins/jetpack/_inc/build/jquery.spin.min.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/**
|
||||
* Copyright (c) 2011-2013 Felix Gnass
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
!function(e){if("object"==typeof exports)e(require("jquery"),require("spin"));else if("function"==typeof define&&define.amd)define(["jquery","spin"],e);else{if(!window.Spinner)throw new Error("Spin.js not present");e(window.jQuery,window.Spinner)}}(function(e,n){e.fn.spin=function(s,i){return this.each(function(){var t=e(this),r=t.data();if(r.spinner&&(r.spinner.stop(),delete r.spinner),!1!==s){if(s=e.extend({color:i||t.css("color")},e.fn.spin.presets[s]||s),void 0!==s.right&&void 0!==s.length&&void 0!==s.width&&void 0!==s.radius){var p=t.css("padding-left");p=void 0===p?0:parseInt(p,10),s.left=t.outerWidth()-2*(s.length+s.width+s.radius)-p-s.right,delete s.right}r.spinner=new n(s).spin(this)}})},e.fn.spin.presets={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}}}),function(e){e.fn.spin.presets.wp={trail:60,speed:1.3},e.fn.spin.presets.small=e.extend({lines:8,length:2,width:2,radius:3},e.fn.spin.presets.wp),e.fn.spin.presets.medium=e.extend({lines:8,length:4,width:3,radius:5},e.fn.spin.presets.wp),e.fn.spin.presets.large=e.extend({lines:10,length:6,width:4,radius:7},e.fn.spin.presets.wp),e.fn.spin.presets["small-left"]=e.extend({left:5},e.fn.spin.presets.small),e.fn.spin.presets["small-right"]=e.extend({right:5},e.fn.spin.presets.small),e.fn.spin.presets["medium-left"]=e.extend({left:5},e.fn.spin.presets.medium),e.fn.spin.presets["medium-right"]=e.extend({right:5},e.fn.spin.presets.medium),e.fn.spin.presets["large-left"]=e.extend({left:5},e.fn.spin.presets.large),e.fn.spin.presets["large-right"]=e.extend({right:5},e.fn.spin.presets.large)}(jQuery);
|
||||
16
backend/wordpress/wp-content/plugins/jetpack/_inc/build/lazy-images/js/lazy-images.min.js
vendored
Normal file
16
backend/wordpress/wp-content/plugins/jetpack/_inc/build/lazy-images/js/lazy-images.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/post-count-jetpack.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/post-count-jetpack.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
var wpPostLikeCount=wpPostLikeCount||{};!function(t){wpPostLikeCount=jQuery.extend(wpPostLikeCount,{request:function(e){return t.ajax({type:"GET",url:wpPostLikeCount.jsonAPIbase+e.path,dataType:"jsonp",data:e.data,success:function(t){e.success(t)},error:function(t){e.error(t)}})}})}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/post-count.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/post-count.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
var wpPostLikeCount=wpPostLikeCount||{};!function(t){wpPostLikeCount=jQuery.extend(wpPostLikeCount,{jsonAPIbase:"https://public-api.wordpress.com/rest/v1",APIqueue:[],wpPostLikeCount:function(){t(".post-like-count").each(function(){var o=t(this).attr("data-post-id"),n=t(this).attr("data-blog-id");wpPostLikeCount.APIqueue.push("/sites/"+n+"/posts/"+o+"/likes")}),wpPostLikeCount.getCounts()},showCount:function(o,n){n>0&&(t("#post-like-count-"+o).find(".comment-count").hide(),t("#post-like-count-"+o).find(".comment-count").text(n),t("#post-like-count-"+o).find(".comment-count").fadeIn())},getCounts:function(){for(var t={path:"/batch",data:"",success:function(t){for(var o in t)if(!t[o].error_data){var n=o.split("/"),e=n[4];wpPostLikeCount.showCount(e,t[o].found)}},error:function(){}},o="",n=0;n<wpPostLikeCount.APIqueue.length;n++)n>0&&(o="&"),t.data+=o+"urls[]="+wpPostLikeCount.APIqueue[n];wpPostLikeCount.request(t)}})}(jQuery),jQuery(document).ready(function(){wpPostLikeCount.wpPostLikeCount()});
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/*globals JSON */
|
||||
!function(a){function e(a,e){try{return JSON.parse(a)}catch(a){return e}}var i={"wp-admin-bar-blog":"my_sites","wp-admin-bar-newdash":"reader","wp-admin-bar-ab-new-post":"write_button","wp-admin-bar-my-account":"my_account","wp-admin-bar-notes":"notifications","wp-admin-bar-switch-site":"my_sites_switch_site","wp-admin-bar-blog-info":"my_sites_blog_info","wp-admin-bar-site-view":"my_sites_view_site","wp-admin-bar-blog-stats":"my_sites_blog_stats","wp-admin-bar-plan":"my_sites_plan","wp-admin-bar-plan-badge":"my_sites_plan_badge","wp-admin-bar-edit-page":"my_sites_manage_site_pages","wp-admin-bar-new-page-badge":"my_sites_manage_add_page","wp-admin-bar-edit-post":"my_sites_manage_blog_posts","wp-admin-bar-new-post-badge":"my_sites_manage_add_new_post","wp-admin-bar-edit-attachment":"my_sites_manage_media","wp-admin-bar-new-attachment-badge":"my_sites_manage_add_media","wp-admin-bar-comments":"my_sites_manage_comments","wp-admin-bar-edit-testimonial":"my_sites_manage_testimonials","wp-admin-bar-new-testimonial":"my_sites_manage_add_testimonial","wp-admin-bar-edit-portfolio":"my_sites_manage_portfolio","wp-admin-bar-new-portfolio":"my_sites_manage_add_portfolio","wp-admin-bar-themes":"my_sites_personalize_themes","wp-admin-bar-cmz":"my_sites_personalize_themes_customize","wp-admin-bar-sharing":"my_sites_configure_sharing","wp-admin-bar-people":"my_sites_configure_people","wp-admin-bar-people-add":"my_sites_configure_people_add_button","wp-admin-bar-plugins":"my_sites_configure_plugins","wp-admin-bar-plugins-add":"my_sites_configure_manage_plugins","wp-admin-bar-blog-settings":"my_sites_configure_settings","wp-admin-bar-followed-sites":"reader_followed_sites","wp-admin-bar-reader-followed-sites-manage":"reader_manage_followed_sites","wp-admin-bar-discover-discover":"reader_discover","wp-admin-bar-discover-search":"reader_search","wp-admin-bar-discover-recommended-blogs":"reader_recommendations","wp-admin-bar-my-activity-my-likes":"reader_my_likes","wp-admin-bar-user-info":"my_account_user_name","wp-admin-bar-my-profile":"my_account_profile_my_profile","wp-admin-bar-account-settings":"my_account_profile_account_settings","wp-admin-bar-billing":"my_account_profile_manage_purchases","wp-admin-bar-security":"my_account_profile_security","wp-admin-bar-notifications":"my_account_profile_notifications","wp-admin-bar-get-apps":"my_account_special_get_apps","wp-admin-bar-next-steps":"my_account_special_next_steps","wp-admin-bar-help":"my_account_special_help"},t={openSite:function(a){return{clicked:"masterbar_notifications_panel_site",site_id:a.siteId}},openPost:function(a){return{clicked:"masterbar_notifications_panel_post",site_id:a.siteId,post_id:a.postId}},openComment:function(a){return{clicked:"masterbar_notifications_panel_comment",site_id:a.siteId,post_id:a.postId,comment_id:a.commentId}}};a(document).ready(function(){a(".mb-trackable .ab-item:not(div),#wp-admin-bar-notes .ab-item,#wp-admin-bar-user-info .ab-item,.mb-trackable .ab-secondary").on("click touchstart",function(e){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var t=a(e.target),n=t.closest("li");if(t.is("a")||(t=t.closest("a")),n&&t){var s=t.attr("ID")||n.attr("ID");if(i.hasOwnProperty(s)){var r={clicked:i[s]};n.hasClass("menupop")?window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r):(e.preventDefault(),window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r).always(function(){window.location=t.attr("href")}))}}}})}),a(window).on("message",function(a){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var i=!a.data&&a.originalEvent.data?a.originalEvent:a;if("https://widgets.wp.com"===i.origin){var n="string"==typeof i.data?e(i.data,{}):i.data;if("notesIframeMessage"===n.type){var s=t[n.action];s&&window.jpTracksAJAX.record_ajax_event("masterbar_click","click",s(n))}}}})}(jQuery);
|
||||
@@ -0,0 +1,7 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/**
|
||||
* navigation.js
|
||||
*
|
||||
* Handles toggling the navigation menu for small screens.
|
||||
*/
|
||||
!function(){var e,a,l=document.getElementById("access");if(l&&(e=l.getElementsByTagName("h3")[0],a=l.getElementsByTagName("ul")[0],e))a&&a.childNodes.length?e.onclick=function(){-1===a.className.indexOf("nav-menu")&&(a.className="nav-menu"),-1!==e.className.indexOf("toggled-on")?(e.className=e.className.replace(" toggled-on",""),a.className=a.className.replace(" toggled-on","")):(e.className+=" toggled-on",a.className+=" toggled-on")}:e.style.display="none"}();
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/photon/photon.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/photon/photon.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false */
|
||||
!function(t){var a=function(){t("img[data-recalc-dims]").each(function a(){var o=t(this);if(this.complete){if(o.data("lazy-src")&&o.attr("src")!==o.data("lazy-src"))return void o.load(a);var d=this.width,i=this.height;d&&d>0&&i&&i>0&&(o.attr({width:d,height:i}),e(this))}else o.load(a)})},e=function(a){t(a).removeAttr("data-recalc-dims").removeAttr("scale")};t(document).ready(a),"on"in t.fn?t(document.body).on("post-load",a):t(document).delegate("body","post-load",a)}(jQuery);
|
||||
25
backend/wordpress/wp-content/plugins/jetpack/_inc/build/postmessage.min.js
vendored
Normal file
25
backend/wordpress/wp-content/plugins/jetpack/_inc/build/postmessage.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
backend/wordpress/wp-content/plugins/jetpack/_inc/build/publicize/assets/publicize.min.js
vendored
Normal file
5
backend/wordpress/wp-content/plugins/jetpack/_inc/build/publicize/assets/publicize.min.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
/* global tb_show, tb_pathToImage, ajaxurl, tb_init, tb_remove */
|
||||
/* global myblogsResponse, publicizeConnTestStart:true, publicizeConnTestComplete:true, publicizeConnRefreshClick:true */
|
||||
var showOptionsPage;jQuery(function(e){showOptionsPage=function(n,t,o,a){tb_show(null,null,null),e("body").append("<div id='TB_load'><img src='"+tb_pathToImage+"' /></div>"),e("#TB_load").show();var i="";o&&(i+="&connection="+encodeURIComponent(o)),void 0!==a&&a&&(i+="&blog_id="+Number(a)),e.post(ajaxurl,"action=publicize_"+n+"_options_page&_wpnonce="+t+i,function(t){e("#TB_load").remove();try{var o=jQuery.parseJSON(t);if(o&&"object"==typeof o&&o.hasOwnProperty("fb_redirect"))return void(location.href=o.fb_redirect+"&redirect_uri="+encodeURIComponent(location.href))}catch(e){}if(t){var a=e("input[name=wpas_ajax_blog_id]").val(),i=e('<div id="wpas-ajax-'+a+'" class="wrap"></div>').append(t);i.append('<a href="#TB_inline?thickbox&height=420&width=555&inlineId=wpas-ajax-'+a+'" id="wpas-click-'+a+'" class="new-thickbox" style="display: none;"></a>'),e("#wpas-message").html(i),tb_init("a.new-thickbox"),e("#wpas-click-"+a).click();var s=parseInt(e("#TB_ajaxContent").css("height"),10),c=e("#thickbox-content").height();if(c<s){var r=c+15;e("#TB_ajaxContent").css("height",r);var p=parseInt(e("#TB_window").css("margin-top"),10)+(s-r)/2+"px";e("#TB_window").css("margin-top",p)}e(".save-options").unbind("click").click(function(){var t=e("input[name='option']:checked"),o=e("input[name='global']:checked"),a=e(this).data("connection"),i=encodeURIComponent(t.val()),s=encodeURIComponent(t.attr("id")),c=encodeURIComponent(t.attr("data-type")),r=e(this).attr("rel"),p="off",l="";o.length&&(p="on",l=o.val()),e.post(ajaxurl,"action=publicize_"+n+"_options_save&connection="+a+"&selected_id="+s+"&token="+i+"&type="+c+"&_wpnonce="+r+"&global="+p+"&global_nonce="+l,function(){var e;tb_remove(),e=document.location.search.match(/frame-nonce=([^&]+)/),/inside-newdash=1/.test(document.location.search)&&e?document.location="options-general.php?page=sharing&inside-newdash=1&frame-nonce"+e[1]:top.location="options-general.php?page=sharing"})})}},"html")},e("body").append('<div id="wpas-message" style="display: none"></div>'),e(".wpas-posts").change(function(){var n=e(this).parents("td:first").find(":input"),t=this,o=n.filter("[name=wpas_ajax_blog_id]").val();e("#waiting_"+o).show(),e.post(ajaxurl,n.serialize()+"&action=wpas_post",function(e){myblogsResponse.call(t,o,e)},"html")}),e(".options").unbind("click").bind("click",function(n){n.preventDefault(),n.stopPropagation();var t=e(this).attr("class").replace("options ",""),o=null;void 0!==e(this).attr("id")&&(o=parseInt(e(this).attr("id").replace("options-",""),10));var a=e(this).attr("href").replace("#nonce=",""),i=e(this).data("connection");showOptionsPage.call(this,t,a,i,o)}),publicizeConnTestStart=function(){e(".pub-connection-test").addClass("test-in-progress"),e.post(ajaxurl,{action:"test_publicize_conns"},publicizeConnTestComplete)},publicizeConnRefreshClick=function(e){e.preventDefault();var n=e.currentTarget.href,t=e.currentTarget.title,o=window.open(n,t,""),a=window.setInterval(function(){!1!==o.closed&&(window.clearInterval(a),publicizeConnTestStart())},500)},publicizeConnTestComplete=function(n){e(".pub-connection-test").removeClass("test-in-progress"),e.each(n.data,function(n,t){var o="#pub-connection-test-"+t.connectionID;t.connectionTestPassed?e(o).addClass("test-passed").html("").removeClass("test-failed"):(e(o).addClass("test-failed").html('<p><span class="pub-connection-error">'+t.connectionTestMessage+"</span></p>").removeClass("test-passed"),t.userCanRefresh&&(e(o).append("<br/>"),e("<a/>",{class:"pub-refresh-button button",title:t.refreshText,href:t.refreshURL,text:t.refreshText,target:"_refresh_"+t.serviceName}).appendTo(o).click(publicizeConnRefreshClick)))})},e(document).ready(function(){e(".pub-connection-test").length&&publicizeConnTestStart()})});
|
||||
@@ -0,0 +1,5 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/**
|
||||
* Adds functionality for Related Posts controls in Customizer.
|
||||
*/
|
||||
!function(t){"use strict";t("jetpack_relatedposts[show_headline]",function(e){var n=function(t){var n,i;i=function(){return e.findControls()[0].active.get()&&e.get()},n=function(){t.active.set(i())},t.active.validate=i,n(),e.bind(n)};t.control("jetpack_relatedposts[headline]",n)})}(wp.customize);
|
||||
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/related-posts/related-posts.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/related-posts/related-posts.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false */
|
||||
/* globals related_posts_js_options */
|
||||
!function(t){function e(){s.cleanupTrackedUrl();var e=s.getEndpointURL(),a=t("#jp-relatedposts");t.getJSON(e,function(e){if(0!==e.items.length&&0!==a.length){s.response=e;var o,p,r={};"undefined"!=typeof wp&&wp.customize?(p=wp.customize.instance("jetpack_relatedposts[show_thumbnails]").get(),r.showDate=wp.customize.instance("jetpack_relatedposts[show_date]").get(),r.showContext=wp.customize.instance("jetpack_relatedposts[show_context]").get(),r.layout=wp.customize.instance("jetpack_relatedposts[layout]").get()):(p=e.show_thumbnails,r.showDate=e.show_date,r.showContext=e.show_context,r.layout=e.layout),o=p?s.generateVisualHtml(e.items,r):s.generateMinimalHtml(e.items,r),a.append(o),s.setVisualExcerptHeights(),r.showDate&&a.find(".jp-relatedposts-post-date").show(),a.show(),t("#jp-relatedposts a.jp-relatedposts-post-a").click(function(){this.href=s.getTrackedUrl(this)})}})}var s={response:null,getEndpointURL:function(e){var s,a="undefined"!=typeof wp&&wp.customize&&wp.customize.settings&&wp.customize.settings.url&&wp.customize.settings.url.self;a?(s=document.createElement("a"),s.href=wp.customize.settings.url.self):s=document.location,"string"==typeof e&&e.match(/^https?:\/\//)&&(s=document.createElement("a"),s.href=e);var o="relatedposts=1";t("#jp-relatedposts").data("exclude")&&(o+="&relatedposts_exclude="+t("#jp-relatedposts").data("exclude")),a&&(o+="&jetpackrpcustomize=1");var p=s.pathname;return"/"!==p[0]&&(p="/"+p),""===s.search?p+"?"+o:p+s.search+"&"+o},getAnchor:function(e,s){var a=e.title;""!=""+e.excerpt&&(a+="\n\n"+e.excerpt);var o=t("<a>");o.attr({class:s,href:e.url,title:a,rel:e.rel,"data-origin":e.url_meta.origin,"data-position":e.url_meta.position});var p=t("<div>").append(o).html();return[p.substring(0,p.length-4),"</a>"]},generateMinimalHtml:function(e,s){var a=this,o="";return t.each(e,function(t,e){var p=a.getAnchor(e,"jp-relatedposts-post-a"),r="jp-relatedposts-post jp-relatedposts-post"+t;e.classes.length>0&&(r+=" "+e.classes.join(" ")),o+='<p class="'+r+'" data-post-id="'+e.id+'" data-post-format="'+e.format+'">',o+='<span class="jp-relatedposts-post-title">'+p[0]+e.title+p[1]+"</span>",s.showDate&&(o+='<span class="jp-relatedposts-post-date">'+e.date+"</span>"),s.showContext&&(o+='<span class="jp-relatedposts-post-context">'+e.context+"</span>"),o+="</p>"}),'<div class="jp-relatedposts-items jp-relatedposts-items-minimal jp-relatedposts-'+s.layout+' ">'+o+"</div>"},generateVisualHtml:function(e,s){var a=this,o="";return t.each(e,function(e,p){var r=a.getAnchor(p,"jp-relatedposts-post-a"),i="jp-relatedposts-post jp-relatedposts-post"+e;if(p.classes.length>0&&(i+=" "+p.classes.join(" ")),p.img.src?i+=" jp-relatedposts-post-thumbs":i+=" jp-relatedposts-post-nothumbs",o+='<div class="'+i+'" data-post-id="'+p.id+'" data-post-format="'+p.format+'">',p.img.src)o+=r[0]+'<img class="jp-relatedposts-post-img" src="'+p.img.src+'" width="'+p.img.width+'" alt="'+p.title+'" />'+r[1];else{var n=a.getAnchor(p,"jp-relatedposts-post-a jp-relatedposts-post-aoverlay");o+=n[0]+n[1]}o+="<"+related_posts_js_options.post_heading+' class="jp-relatedposts-post-title">'+r[0]+p.title+r[1]+"</"+related_posts_js_options.post_heading+">",o+='<p class="jp-relatedposts-post-excerpt">'+t("<p>").text(p.excerpt).html()+"</p>",s.showDate&&(o+='<p class="jp-relatedposts-post-date">'+p.date+"</p>"),s.showContext&&(o+='<p class="jp-relatedposts-post-context">'+p.context+"</p>"),o+="</div>"}),'<div class="jp-relatedposts-items jp-relatedposts-items-visual jp-relatedposts-'+s.layout+' ">'+o+"</div>"},setVisualExcerptHeights:function(){var e=t("#jp-relatedposts .jp-relatedposts-post-nothumbs .jp-relatedposts-post-excerpt");if(!(0>=e.length)){var s=parseInt(e.first().css("font-size"),10),a=parseInt(e.first().css("line-height"),10);e.css("max-height",5*a/s+"em")}},getTrackedUrl:function(e){var s="relatedposts_hit=1";s+="&relatedposts_origin="+t(e).data("origin"),s+="&relatedposts_position="+t(e).data("position");var a=e.pathname;return"/"!==a[0]&&(a="/"+a),""===e.search?a+"?"+s:a+e.search+"&"+s},cleanupTrackedUrl:function(){if("function"==typeof history.replaceState){var t=document.location.search.replace(/\brelatedposts_[a-z]+=[0-9]*&?\b/gi,"");"?"===t&&(t=""),document.location.search!==t&&history.replaceState({},document.title,document.location.pathname+t)}}};t(function(){"undefined"!=typeof wp&&wp.customize?(wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){"jetpack_relatedposts"===t.partial.id&&e()}),wp.customize.bind("preview-ready",e)):e()})}(jQuery);
|
||||
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/sharedaddy/admin-sharing.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/sharedaddy/admin-sharing.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/sharedaddy/sharing.min.js
vendored
Normal file
4
backend/wordpress/wp-content/plugins/jetpack/_inc/build/sharedaddy/sharing.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/blocks/vr-block.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/blocks/vr-block.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
"use strict";!function(e,t,l){var n=e.registerBlockType,a=e.UrlInput,r=t.Placeholder,i=t.SelectControl,c=l.__;n("jetpack/vr",{title:c("VR Image","jetpack"),icon:"embed-photo",category:"embed",support:{html:!1},attributes:{url:{type:"string"},view:{type:"string"}},edit:function(e){var t=e.attributes,l=function(t){return e.setAttributes({url:t})},n=function(t){return e.setAttributes({view:t})};return function(){return t.url&&t.view?wp.element.createElement("div",{className:e.className},wp.element.createElement("iframe",{title:c("VR Image","jetpack"),allowFullScreen:"true",frameBorder:"0",width:"100%",height:"300",src:"https://vr.me.sh/view/?view="+encodeURIComponent(t.view)+"&url="+encodeURIComponent(t.url)})):wp.element.createElement("div",null,wp.element.createElement(r,{key:"placeholder",instructions:c("Enter URL to VR image","jetpack"),icon:"format-image",label:c("VR Image","jetpack"),className:e.className},wp.element.createElement(a,{value:t.url,onChange:l}),wp.element.createElement("div",{style:{marginTop:"10px"}},wp.element.createElement(i,{label:c("View Type","jetpack"),value:t.view,onChange:n,options:[{label:"",value:""},{label:c("360","jetpack"),value:"360"},{label:c("Cinema","jetpack"),value:"cinema"}]}))))}()},save:function(e){return wp.element.createElement("div",{className:e.className},wp.element.createElement("iframe",{title:c("VR Image","jetpack"),allowFullScreen:"true",frameBorder:"0",width:"100%",height:"300",src:"https://vr.me.sh/view/?view="+encodeURIComponent(e.attributes.view)+"&url="+encodeURIComponent(e.attributes.url)}))}})}(wp.blocks,wp.components,wp.i18n);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global brightcove, brightcoveData */
|
||||
!function(e){function t(){clearTimeout(r),"object"==typeof brightcove?(e(document).ready(brightcove.createExperiences),e("body").on("post-load",brightcove.createExperiences),brightcove.createExperiences()):r=setTimeout(t,100)}var c=document.createElement("script"),o="co.jp"===brightcoveData.tld?"co.jp":"com",r=!1;c.src="https://sadmin.brightcove."+o+"/js/BrightcoveExperiences.js",c.type="text/javascript",c.language="JavaScript",document.head.appendChild(c),t()}(jQuery);
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/gist.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/gist.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(e,t){var a=!1,n=function(){e(".gist-oembed").each(function(t,n){var o="https://gist.github.com/"+e(n).data("gist");e.ajax({url:o,dataType:"jsonp"}).done(function(t){if(e(n).replaceWith(t.div),!a){var o='<link rel="stylesheet" href="'+t.stylesheet+'" type="text/css" />';e("head").append(o),a=!0}})})};e(document).ready(n),e("body").on("post-load",n)}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/instagram.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/instagram.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global window */
|
||||
!function(){var e=function(){if(void 0!==window.instgrm&&window.instgrm.Embeds&&"function"==typeof window.instgrm.Embeds.process)window.instgrm.Embeds.process();else{var e=document.createElement("script");e.async=!0,e.defer=!0,e.src="//platform.instagram.com/en_US/embeds.js",document.getElementsByTagName("body")[0].appendChild(e)}};"undefined"!=typeof jQuery&&"undefined"!=typeof infiniteScroll&&jQuery(document.body).on("post-load",e),e()}();
|
||||
21
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js
vendored
Normal file
21
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/main.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/main.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(s){function t(t){var i,o,n,l,r;i=this,i.wrapper=s(t),i.slideshow=s(".presentation",t),i.navLeft=s(".nav-arrow-left",t),i.navRight=s(".nav-arrow-right",t),i.expandButton=s(".nav-fullscreen-button",t),i.overlay=s(".autoplay-overlay",t),i.fullscreen=!1,i.autoPlaying=!1,i.autoplayTime=parseFloat(i.slideshow.attr("data-autoplay"),10)||0,i.wrapper.css({width:i.slideshow.width(),height:i.slideshow.height()}),o=i.slideshow.attr("duration")||"1s",e.animation.transitionDuration=o,i.autoplayTime&&(i.autoplayTime+=1e3*parseFloat(o,10)),o="opacity "+o,n={width:i.slideshow.width(),height:i.slideshow.height(),"-webkit-transition":o,"-moz-transition":o,"-ms-transition":o,"-o-transition":o,transition:o},s(".step",i.slideshow).each(function(t,e){s(e).css(n)}),s(".step.fadebullets li",i.slideshow).each(function(t,e){s(e).attr("data-jmpress","fade")}),s(window).resize(function(){i.fullscreen&&i.resizePresentation()}),i.navLeft.on("click",function(){return i.slideshow.jmpress("prev"),i.overlay.css("opacity",0),!1}),i.navRight.on("click",function(){return i.slideshow.jmpress("next"),i.overlay.css("opacity",0),!1}),i.slideshow.on("click",function(){return i.setAutoplay(!0),!1}),i.slideshow.on("focusout",function(){i.setAutoplay(!1)}),l=/MSIE\s(\d+)\.\d+/,r=l.exec(navigator.userAgent),r&&parseInt(r[1],10)<10?(i.expandButton.remove(),i.expandButton=null):i.expandButton.on("click",function(){return i.setFullscreen(!i.fullscreen),!1}),s(window).on("keydown",function(s){27===s.which&&i.setFullscreen(!1)}),i.slideshow.jmpress(e),i.slideshow.jmpress("initialized")&&(i.slideshow.css("display",""),i.overlay.css("display",""),s(".not-supported-msg",i.wrapper).remove()),i.setFullscreen(!1)}var e={fullscreen:!1,hash:{use:!1},mouse:{clickSelects:!1},keyboard:{use:!0},animation:{transitionDuration:"1s"},presentationMode:!1,stepSelector:".step",duration:{defaultValue:0}};s.extend(t.prototype,{resizePresentation:function(){var t,e,i,o,n,l;i=this.slideshow.jmpress("settings"),e=i.animation.transitionDuration,i.animation.transitionDuration="0s",this.slideshow.jmpress("reselect"),t=1,o={top:0,left:0,zoom:1},this.fullscreen&&(n=s(window).width()/this.slideshow.width(),l=s(window).height()/this.slideshow.height(),t=Math.min(n,l),o.top=(s(window).height()-t*this.slideshow.height())/2,o.left=(s(window).width()-t*this.slideshow.width())/2),this.slideshow.css("-moz-transform")||this.slideshow.css("-ms-transform")?(o.top+=(t-1)*this.slideshow.height()/2,o.left+=(t-1)*this.slideshow.width()/2,t="scale("+t+")",s.extend(o,{"-moz-transform":t,"-ms-transform":t,transform:t})):(o.top/=t,o.left/=t,o.zoom=t),this.slideshow.css(o),i.animation.transitionDuration=e,this.slideshow.jmpress("reselect")},setFullscreen:function(t){this.fullscreen=t,this.setAutoplay(!1),t&&(this.scrollVert=s(window).scrollTop(),this.scrollHoriz=s(window).scrollLeft(),s(window).scrollTop(0),s(window).scrollLeft(0)),s("html").toggleClass("presentation-global-fullscreen",t),s("body").toggleClass("presentation-global-fullscreen",t),this.wrapper.toggleClass("presentation-wrapper-fullscreen",t),this.wrapper.parents().each(function(e,i){s(i).toggleClass("presentation-wrapper-fullscreen-parent",t)}),this.resizePresentation(),t||(s(window).scrollTop(this.scrollVert),s(window).scrollLeft(this.scrollHoriz))},setAutoplay:function(s){var t,e=this;e.autoPlaying!==s&&(t=s&&e.autoplayTime>0?e.autoplayTime:0,e.slideshow.jmpress("settings").duration.defaultValue=t,t?(e.slideshow.jmpress("next"),e.overlay.css("opacity",0)):e.slideshow.jmpress("reselect"),e.autoPlaying=s)}}),s(document).ready(function(){s(".presentation-wrapper").map(function(){new t(this)})})}(jQuery);
|
||||
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(a){a.fn.shuffleQuiz=function(){var t=this.get(),n=function(a){return Math.floor(Math.random()*a)},i=a.map(t,function(){var i=n(t.length),r=a(t[i]).clone(!0)[0];return t.splice(i,1),r});return this.each(function(t){a(this).replaceWith(a(i[t]))}),a(i)}}(jQuery),jQuery(function(a){a(".jetpack-quiz").each(function(){var t=a(this);t.find("div.jetpack-quiz-answer").shuffleQuiz(),t.find("div[data-correct]").removeAttr("data-correct").data("correct",1),t.find("div.jetpack-quiz-answer:last").addClass("last")}),a("div.jetpack-quiz").on("click","div.jetpack-quiz-answer",function(){var t,n=a(this),i=n.closest("div.jetpack-quiz");i.data("a8ctraining")&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_trainingchaos-"+i.data("username")+"="+i.data("a8ctraining")+"&rand="+Math.random(),i.data("a8ctraining",!1),i.data("trackid",!1)),t=i.data("trackid"),n.data("correct")?(n.addClass("correct"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=correct&rand="+Math.random())):(n.addClass("wrong"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=wrong&rand="+Math.random())),i.data("trackid",!1)})});
|
||||
42
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js
vendored
Normal file
42
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
// jshint ignore: start
|
||||
/*
|
||||
* printThis v1.9.0
|
||||
* @desc Printing plug-in for jQuery
|
||||
* @author Jason Day
|
||||
*
|
||||
* Resources (based on) :
|
||||
* jPrintArea: http://plugins.jquery.com/project/jPrintArea
|
||||
* jqPrint: https://github.com/permanenttourist/jquery.jqprint
|
||||
* Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm
|
||||
*
|
||||
* Licensed under the MIT licence:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* (c) Jason Day 2015
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* $("#mySelector").printThis({
|
||||
* debug: false, * show the iframe for debugging
|
||||
* importCSS: true, * import page CSS
|
||||
* importStyle: false, * import style tags
|
||||
* printContainer: true, * grab outer container as well as the contents of the selector
|
||||
* loadCSS: "path/to/my.css", * path to additional css file - us an array [] for multiple
|
||||
* pageTitle: "", * add title to print page
|
||||
* removeInline: false, * remove all inline styles from print elements
|
||||
* printDelay: 333, * variable print delay
|
||||
* header: null, * prefix to html
|
||||
* footer: null, * postfix to html
|
||||
* base: false, * preserve the BASE tag, or accept a string for the URL
|
||||
* formValues: true * preserve input/form values
|
||||
* canvas: false * copy canvas elements (experimental)
|
||||
* doctypeString: '...' * enter a different doctype for older markup
|
||||
* });
|
||||
*
|
||||
* Notes:
|
||||
* - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout
|
||||
*
|
||||
* jshint onevar: false, smarttabs: true, devel: true
|
||||
*/
|
||||
!function(e){var t;e.fn.printThis=function(n){t=e.extend({},e.fn.printThis.defaults,n);var i=this instanceof jQuery?this:e(this),a="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',r=document.createElement("iframe");r.name="printIframe",r.id=a,r.className="MSIE",document.body.appendChild(r),r.src=o}else{e("<iframe id='"+a+"' name='printIframe' />").appendTo("body")}var d=e("#"+a);t.debug||d.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),setTimeout(function(){t.doctypeString&&function(e,t){var n,i;n=e.get(0),n=n.contentWindow||n.contentDocument||n,i=n.document||n.contentDocument||n,i.open(),i.write(t),i.close()}(d,t.doctypeString);var n,a=d.contents(),o=a.find("head"),r=a.find("body"),s=e("base");if(n=!0===t.base&&s.length>0?s.attr("href"):"string"==typeof t.base?t.base:document.location.protocol+"//"+document.location.host,o.append('<base href="'+n+'">'),t.importCSS&&e("link[rel=stylesheet]").each(function(){var t=e(this).attr("href");if(t){var n=e(this).attr("media")||"all";o.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+n+"'>")}}),t.importStyle&&e("style").each(function(){e(this).clone().appendTo(o)}),t.pageTitle&&o.append("<title>"+t.pageTitle+"</title>"),t.loadCSS&&(e.isArray(t.loadCSS)?jQuery.each(t.loadCSS,function(e,t){o.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):o.append("<link type='text/css' rel='stylesheet' href='"+t.loadCSS+"'>")),t.header&&r.append(t.header),t.canvas){var c=0;i.find("canvas").each(function(){e(this).attr("data-printthis",c++)})}if(t.printContainer?r.append(i.outer()):i.each(function(){r.append(e(this).html())}),t.canvas&&r.find("canvas").each(function(){var t=e(this).data("printthis"),n=e('[data-printthis="'+t+'"]');this.getContext("2d").drawImage(n[0],0,0),n.removeData("printthis")}),t.formValues){var p=i.find("input");p.length&&p.each(function(){var t=e(this),n=e(this).attr("name"),i=t.is(":checkbox")||t.is(":radio"),o=a.find('input[name="'+n+'"]'),r=t.val();i?t.is(":checked")&&(t.is(":checkbox")?o.attr("checked","checked"):t.is(":radio")&&a.find('input[name="'+n+'"][value="'+r+'"]').attr("checked","checked")):o.val(r)});var h=i.find("select");h.length&&h.each(function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('select[name="'+n+'"]').val(i)});var l=i.find("textarea");l.length&&l.each(function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('textarea[name="'+n+'"]').val(i)})}t.removeInline&&(e.isFunction(e.removeAttr)?a.find("body *").removeAttr("style"):a.find("body *").attr("style","")),t.footer&&r.append(t.footer),setTimeout(function(){d.hasClass("MSIE")?(window.frames.printIframe.focus(),o.append("<script> window.print(); <\/script>")):document.queryCommandSupported("print")?d[0].contentWindow.document.execCommand("print",!1,null):(d[0].contentWindow.focus(),d[0].contentWindow.print()),t.debug||setTimeout(function(){d.remove()},1e3)},t.printDelay)},333)},e.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,printDelay:333,header:null,footer:null,formValues:!0,canvas:!1,base:!1,doctypeString:"<!DOCTYPE html>"},jQuery.fn.outer=function(){return e(e("<div></div>").html(this.clone())).html()}}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global jetpack_recipes_vars */
|
||||
!function(e){e(window).load(function(){e(".jetpack-recipe-print a").click(function(i){i.preventDefault(),e(this).closest(".jetpack-recipe").printThis({pageTitle:jetpack_recipes_vars.pageTitle,loadCSS:jetpack_recipes_vars.loadCSS})})})}(jQuery);
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar:false, loopfunc:true */
|
||||
/* global jetpackSlideshowSettings, escape */
|
||||
function JetpackSlideshow(e,t,i){this.element=e,this.images=[],this.controls={},this.transition=t||"fade",this.autostart=i}JetpackSlideshow.prototype.showLoadingImage=function(e){if(e){this.loadingImage_=document.createElement("div"),this.loadingImage_.className="slideshow-loading";var t=document.createElement("img");t.src=jetpackSlideshowSettings.spinner,this.loadingImage_.appendChild(t),this.loadingImage_.appendChild(this.makeZeroWidthSpan()),this.element.append(this.loadingImage_)}else this.loadingImage_&&(this.loadingImage_.parentNode.removeChild(this.loadingImage_),this.loadingImage_=null)},JetpackSlideshow.prototype.init=function(){this.showLoadingImage(!0);for(var e=this,t=0;t<this.images.length;t++){var i=this.images[t],s=document.createElement("img");s.src=i.src,s.title=void 0!==i.title?i.title:"",s.alt=void 0!==i.alt?i.alt:"",s.align="middle",s.setAttribute("itemprop","image"),s.nopin="nopin";var o=document.createElement("div");o.className="slideshow-slide-caption",o.setAttribute("itemprop","caption description"),o.innerHTML=i.caption;var n=document.createElement("div");n.className="slideshow-slide",n.setAttribute("itemprop","associatedMedia"),n.setAttribute("itemscope",""),n.setAttribute("itemtype","https://schema.org/ImageObject"),0===t&&(s.complete?setTimeout(function(){e.finishInit_()},1):jQuery(s).load(function(){e.finishInit_()})),n.appendChild(s),s.removeAttribute("width"),s.removeAttribute("height"),n.appendChild(this.makeZeroWidthSpan()),n.appendChild(o),this.element.append(n)}},JetpackSlideshow.prototype.makeZeroWidthSpan=function(){var e=document.createElement("span");return e.className="slideshow-line-height-hack",-1!==window.navigator.userAgent.indexOf("MSIE ")?e.appendChild(document.createTextNode(" ")):e.innerHTML=" ",e},JetpackSlideshow.prototype.finishInit_=function(){this.showLoadingImage(!1),this.renderControls_();var e=this;if(this.images.length>1){this.element.cycle({fx:this.transition,prev:this.controls.prev,next:this.controls.next,timeout:jetpackSlideshowSettings.speed,slideExpr:".slideshow-slide",onPrevNextEvent:function(){return e.onCyclePrevNextClick_.apply(e,arguments)}});var t=this.element;this.autostart||(t.cycle("pause"),jQuery(this.controls.stop).removeClass("running"),jQuery(this.controls.stop).addClass("paused")),jQuery(this.controls.stop).click(function(){var e=jQuery(this);return e.hasClass("paused")?(e.addClass("running"),e.removeClass("paused"),t.cycle("resume",!0)):(t.cycle("pause"),e.removeClass("running"),e.addClass("paused")),!1})}else this.element.children(":first").show(),this.element.css("position","relative");this.initialized_=!0},JetpackSlideshow.prototype.renderControls_=function(){if(!this.controlsDiv_){var e=document.createElement("div");e.className="slideshow-controls";for(var t=["prev","stop","next"],i=0;i<t.length;i++){var s=t[i],o=document.createElement("a");o.href="#",e.appendChild(o),this.controls[s]=o}this.element.append(e),this.controlsDiv_=e}},JetpackSlideshow.prototype.onCyclePrevNextClick_=function(e,t){if(jetpackSlideshowSettings.blog_id){var i=this.images[t].id;(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?host="+escape(document.location.host)+"&rand="+Math.random()+"&blog="+jetpackSlideshowSettings.blog_id+"&subd="+jetpackSlideshowSettings.blog_subdomain+"&user_id="+jetpackSlideshowSettings.user_id+"&post="+i+"&ref="+escape(document.location)}},function(e){function t(){e(".jetpack-slideshow-noscript").remove(),e(".jetpack-slideshow").each(function(){var t=e(this);if(!t.data("processed")){var i=new JetpackSlideshow(t,t.data("trans"),t.data("autostart"));i.images=t.data("gallery"),i.init(),t.data("processed",!0)}})}e(document).ready(t),e("body").on("post-load",t)}(jQuery);
|
||||
7
backend/wordpress/wp-content/plugins/jetpack/_inc/build/spin.min.js
vendored
Normal file
7
backend/wordpress/wp-content/plugins/jetpack/_inc/build/spin.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
//fgnass.github.com/spin.js#v1.3
|
||||
/**
|
||||
* Copyright (c) 2011-2013 Felix Gnass
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var i,o=document.createElement(t||"div");for(i in e)o[i]=e[i];return o}function e(t){for(var e=1,i=arguments.length;e<i;e++)t.appendChild(arguments[e]);return t}function i(t,e,i,o){var r=["opacity",e,~~(100*t),i,o].join("-"),n=.01+i/o*100,s=Math.max(1-(1-t)/e*(100-n),t),a=l.substring(0,l.indexOf("Animation")).toLowerCase(),f=a&&"-"+a+"-"||"";return p[r]||(c.insertRule("@"+f+"keyframes "+r+"{0%{opacity:"+s+"}"+n+"%{opacity:"+t+"}"+(n+.01)+"%{opacity:1}"+(n+e)%100+"%{opacity:"+t+"}100%{opacity:"+s+"}}",c.cssRules.length),p[r]=1),r}function o(t,e){var i,o,r=t.style;if(void 0!==r[e])return e;for(e=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<f.length;o++)if(i=f[o]+e,void 0!==r[i])return i}function r(t,e){for(var i in e)t.style[o(t,i)||i]=e[i];return t}function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)void 0===t[o]&&(t[o]=i[o])}return t}function s(t){for(var e={x:t.offsetLeft,y:t.offsetTop};t=t.offsetParent;)e.x+=t.offsetLeft,e.y+=t.offsetTop;return e}function a(t){if(void 0===this)return new a(t);this.opts=n(t||{},a.defaults,d)}var l,f=["webkit","Moz","ms","O"],p={},c=function(){var i=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],i),i.sheet||i.styleSheet}(),d={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};a.defaults={},n(a.prototype,{spin:function(e){this.stop();var i,o,n=this,a=n.opts,f=n.el=r(t(0,{className:a.className}),{position:a.position,width:0,zIndex:a.zIndex}),p=a.radius+a.length+a.width;if(e&&(e.insertBefore(f,e.firstChild||null),o=s(e),i=s(f),r(f,{left:("auto"==a.left?o.x-i.x+(e.offsetWidth>>1):parseInt(a.left,10)+p)+"px",top:("auto"==a.top?o.y-i.y+(e.offsetHeight>>1):parseInt(a.top,10)+p)+"px"})),f.setAttribute("role","progressbar"),n.lines(f,n.opts),!l){var c,d=0,u=(a.lines-1)*(1-a.direction)/2,h=a.fps,y=h/a.speed,m=(1-a.opacity)/(y*a.trail/100),v=y/a.lines;!function t(){d++;for(var e=0;e<a.lines;e++)c=Math.max(1-(d+(a.lines-e)*v)%y*m,a.opacity),n.opacity(f,e*a.direction+u,c,a);n.timeout=n.el&&setTimeout(t,~~(1e3/h))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(o,n){function s(e,i){return r(t(),{position:"absolute",width:n.length+n.width+"px",height:n.width+"px",background:e,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/n.lines*f+n.rotate)+"deg) translate("+n.radius+"px,0)",borderRadius:(n.corners*n.width>>1)+"px"})}for(var a,f=0,p=(n.lines-1)*(1-n.direction)/2;f<n.lines;f++)a=r(t(),{position:"absolute",top:1+~(n.width/2)+"px",transform:n.hwaccel?"translate3d(0,0,0)":"",opacity:n.opacity,animation:l&&i(n.opacity,n.trail,p+f*n.direction,n.lines)+" "+1/n.speed+"s linear infinite"}),n.shadow&&e(a,r(s("#000","0 0 4px #000"),{top:"2px"})),e(o,e(a,s(n.color,"0 0 1px rgba(0,0,0,.1)")));return o},opacity:function(t,e,i){e<t.childNodes.length&&(t.childNodes[e].style.opacity=i)}});var u=r(t("group"),{behavior:"url(#default#VML)"});return!o(u,"transform")&&u.adj?function(){function i(e,i){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',i)}c.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,o){function n(){return r(i("group",{coordsize:f+" "+f,coordorigin:-l+" "+-l}),{width:f,height:f})}function s(t,s,a){e(c,e(r(n(),{rotation:360/o.lines*t+"deg",left:~~s}),e(r(i("roundrect",{arcsize:o.corners}),{width:l,height:o.width,left:o.radius,top:-o.width>>1,filter:a}),i("fill",{color:o.color,opacity:o.opacity}),i("stroke",{opacity:0}))))}var a,l=o.length+o.width,f=2*l,p=2*-(o.width+o.length)+"px",c=r(n(),{position:"absolute",top:p,left:p});if(o.shadow)for(a=1;a<=o.lines;a++)s(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=o.lines;a++)s(a);return e(t,c)},a.prototype.opacity=function(t,e,i,o){var r=t.firstChild;o=o.shadow&&o.lines||0,r&&e+o<r.childNodes.length&&(r=r.childNodes[e+o],r=r&&r.firstChild,(r=r&&r.firstChild)&&(r.opacity=i))}}():l=o(u,"animation"),a});
|
||||
@@ -0,0 +1,7 @@
|
||||
<div id="ie-legacy-notice" style="display:none;"><div class="dops-notice is-warning"><span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"></path></g></svg></span><span class="dops-notice__content"><span class="dops-notice__text"><div>#HEADER_TEXT#<br/>#TEXT#</div></span></span></div></div><script type="text/javascript">
|
||||
/*@cc_on
|
||||
if ( @_jscript_version <= 10) {
|
||||
jQuery( '#ie-legacy-notice' ).show();
|
||||
}
|
||||
@*/
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<noscript><div class="dops-notice is-warning"><span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"></path></g></svg></span><span class="dops-notice__content"><span class="dops-notice__text"><div>#HEADER_TEXT#<br/>#TEXT#</div></span></span></div></noscript>
|
||||
@@ -0,0 +1 @@
|
||||
<div class="dops-notice is-warning"><span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"></path></g></svg></span><span class="dops-notice__content"><span class="dops-notice__text"><div>#HEADER_TEXT#<br/>#TEXT#</div></span></span></div>
|
||||
File diff suppressed because one or more lines are too long
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/style.min.css
vendored
Normal file
2
backend/wordpress/wp-content/plugins/jetpack/_inc/build/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar:false, smarttabs:true */
|
||||
!function(e){function i(){this.galleries=[],this.findAndSetupNewGalleries()}function t(e){this.gallery=e,this.addCaptionEvents(),this.resize(),this.gallery.removeClass("tiled-gallery-unresized")}function n(i){function t(){i.resizeAll(),n&&o(t)}var n=!1,r=null;e(window).resize(function(){clearTimeout(r),n||o(t),n=!0,r=setTimeout(function(){n=!1},15)})}function r(i){e(window).resize(function(){i.resizeAll()})}i.prototype.findAndSetupNewGalleries=function(){var i=this;e(".tiled-gallery.tiled-gallery-unresized").each(function(){i.galleries.push(new t(e(this)))})},i.prototype.resizeAll=function(){e.each(this.galleries,function(e,i){i.resize()})},t.prototype.resizeableElementsSelector=".gallery-row, .gallery-group, .tiled-gallery-item img",t.prototype.addCaptionEvents=function(){this.gallery.find(".tiled-gallery-caption").hide(),this.gallery.find(".tiled-gallery-item").hover(function(){e(this).find(".tiled-gallery-caption").stop(!0,!0).slideDown("fast")},function(){e(this).find(".tiled-gallery-caption").stop(!0,!0).slideUp("fast")})},t.prototype.getExtraDimension=function(e,i,t){if("horizontal"===t){var n="border"===i?"borderLeftWidth":i+"Left",r="border"===i?"borderRightWidth":i+"Right";return(parseInt(e.css(n),10)||0)+(parseInt(e.css(r),10)||0)}if("vertical"===t){var o="border"===i?"borderTopWidth":i+"Top",a="border"===i?"borderBottomWidth":i+"Bottom";return(parseInt(e.css(o),10)||0)+(parseInt(e.css(a),10)||0)}return 0},t.prototype.resize=function(){var i=this.gallery.data("original-width"),t=this.gallery.parent().width(),n=Math.min(1,t/i),r=this;this.gallery.find(this.resizeableElementsSelector).each(function(){var i=e(this),t=r.getExtraDimension(i,"margin","horizontal"),o=r.getExtraDimension(i,"margin","vertical"),a=r.getExtraDimension(i,"padding","horizontal"),l=r.getExtraDimension(i,"padding","vertical"),s=r.getExtraDimension(i,"border","horizontal"),d=r.getExtraDimension(i,"border","vertical"),c=i.data("original-width")+a+s+t,h=i.data("original-height")+l+d+o;i.width(Math.floor(n*c)-t).height(Math.floor(n*h)-o)})};var o=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;e(document).ready(function(){var t=new i;e("body").on("post-load",function(e,i){"string"==typeof i&&"resize"===i?t.resizeAll():t.findAndSetupNewGalleries()}),e(document).on("page-rendered.wpcom-newdash",function(){t.findAndSetupNewGalleries()}),window.chrome&&o?n(t):r(t),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){wp.isJetpackWidgetPlaced(e,"gallery")&&t.findAndSetupNewGalleries()})})}(jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/twitter-timeline.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/twitter-timeline.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint ignore:start */
|
||||
!function(t,e,r){var n,s=t.getElementsByTagName(e)[0],i=/^http:/.test(t.location)?"http":"https";t.getElementById(r)||(n=t.createElement(e),n.id=r,n.src=i+"://platform.twitter.com/widgets.js",s.parentNode.insertBefore(n,s))}(document,"script","twitter-wjs");
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/videopress/js/editor-view.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/videopress/js/editor-view.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global tinyMCE, vpEditorView */
|
||||
!function(e,t,a){t.mce=t.mce||{},void 0!==t.mce.views&&(t.mce.videopress_wp_view_renderer={shortcode_string:"videopress",shortcode_data:{},defaults:{w:"",at:"",permalink:!0,hd:!1,loop:!1,freedom:!1,autoplay:!1,flashonly:!1},coerce:t.media.coerce,template:t.template("videopress_iframe_vnext"),getContent:function(){var e,t,o,s="for="+encodeURIComponent(a.home_url_host),l=this.shortcode.attrs.named;for(t in l)switch(t){case"at":parseInt(l[t],10)&&(s+="&"+t+"="+parseInt(l[t],10));break;case"permalink":"false"===l[t]&&(s+="&"+t+"=0");break;case"hd":case"loop":case"autoplay":"true"===l[t]&&(s+="&"+t+"=1")}return e={width:a.content_width,height:.5625*a.content_width,guid:this.shortcode.attrs.numeric[0],urlargs:s},void 0!==l.w&&(o=parseInt(l.w,10))>=a.min_content_width&&o<a.content_width&&(e.width=o,e.height=parseInt(.5625*o,10)),e.ratio=e.height/e.width*100,this.template(e)},edit:function(o){var s=t.shortcode.next(this.shortcode_string,o),l=s.shortcode.attrs.named,i=tinyMCE.activeEditor,n=this,d=tinyMCE.ui.FormItem.prototype.renderHtml;tinyMCE.ui.TextBox.prototype.renderHtml=function(){var e,t,a=this,o=a.settings,s=document.createElement(o.multiline?"textarea":"input"),l=["rows","spellcheck","maxLength","size","readonly","min","max","step","list","pattern","placeholder","required","multiple"];for(e=0;e<l.length;e++)t=l[e],void 0!==o[t]&&s.setAttribute(t,o[t]);return o.multiline?s.innerText=a.state.get("value"):(s.setAttribute("type",o.subtype?o.subtype:"text"),s.setAttribute("value",a.state.get("value"))),s.id=a._id,s.className=a.classes,s.setAttribute("hidefocus",1),a.disabled()&&(s.disabled=!0),s.outerHTML},tinyMCE.ui.FormItem.prototype.renderHtml=function(){return _.each(a.modal_labels,function(e,t){e===this.settings.items.text&&this.classes.add("videopress-field-"+t)},this),_.contains([a.modal_labels.hd,a.modal_labels.permalink,a.modal_labels.autoplay,a.modal_labels.loop,a.modal_labels.freedom,a.modal_labels.flashonly],this.settings.items.text)&&this.classes.add("videopress-checkbox"),d.call(this)},_.each(this.defaults,function(e,t){l[t]=this.coerce(l,t)},this),i.windowManager.open({title:a.modal_labels.title,id:"videopress-shortcode-settings-modal",width:520,height:240,body:[{type:"textbox",disabled:!0,name:"guid",label:a.modal_labels.guid,value:s.shortcode.attrs.numeric[0]},{type:"textbox",subtype:"number",min:a.min_content_width,name:"w",label:a.modal_labels.w,value:l.w},{type:"textbox",subtype:"number",min:0,name:"at",label:a.modal_labels.at,value:l.at},{type:"checkbox",name:"hd",label:a.modal_labels.hd,checked:l.hd},{type:"checkbox",name:"permalink",label:a.modal_labels.permalink,checked:l.permalink},{type:"checkbox",name:"autoplay",label:a.modal_labels.autoplay,checked:l.autoplay},{type:"checkbox",name:"loop",label:a.modal_labels.loop,checked:l.loop},{type:"checkbox",name:"freedom",label:a.modal_labels.freedom,checked:l.freedom},{type:"checkbox",name:"flashonly",label:a.modal_labels.flashonly,checked:l.flashonly}],onsubmit:function(e){var a={tag:n.shortcode_string,type:"single",attrs:{named:_.pick(e.data,_.keys(n.defaults)),numeric:[e.data.guid]}};"0"===a.attrs.named.at&&(a.attrs.named.at=""),_.each(n.defaults,function(e,t){a.attrs.named[t]=this.coerce(a.attrs.named,t),e===a.attrs.named[t]&&delete a.attrs.named[t]},n),i.insertContent(t.shortcode.string(a))},onopen:function(t){var o="mce-videopress-field-";_.each(["w","at"],function(e){t.target.$el.find("."+o+e+" .mce-container-body").append('<span class="'+o+"unit "+o+"unit-"+e+'">'+a.modal_labels[e+"_unit"])}),e("body").addClass("modal-open")},onclose:function(){e("body").removeClass("modal-open")}}),tinyMCE.ui.FormItem.prototype.renderHtml=d}},t.mce.views.register("videopress",t.mce.videopress_wp_view_renderer),t.mce.wpvideo_wp_view_renderer=_.extend({},t.mce.videopress_wp_view_renderer,{shortcode_string:"wpvideo"}),t.mce.views.register("wpvideo",t.mce.wpvideo_wp_view_renderer))}(jQuery,wp,vpEditorView);
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
window.wp=window.wp||{},function(e){e.mediaWidgets&&(e.mediaWidgets.controlConstructors.media_video.prototype.mapMediaToModelProps=function(e){return function(o){var t,i,d;return i=e.call(this,o),t=_.extend({},i),o.videopress&&o.videopress.guid&&(d=o.videopress.guid),!d&&o.videopress_guid&&o.videopress_guid.length&&(d=o.videopress_guid[0]),d&&(t=_.extend({},i,{url:"https://videopress.com/v/"+d,attachment_id:0})),t}}(e.mediaWidgets.controlConstructors.media_video.prototype.mapMediaToModelProps),e.mediaWidgets.controlConstructors.media_video.prototype.isHostedVideo=function(e){return function(o){var t=document.createElement("a");return t.href=o,"videopress.com"===t.hostname||e.call(this,o)}}(e.mediaWidgets.controlConstructors.media_video.prototype.isHostedVideo))}(window.wp);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* globals plupload, pluploadL10n, error */
|
||||
window.wp=window.wp||{},function(e){var i={originalOptions:{},handleStandardResponse:function(e,i){return!_.isObject(e)||_.isUndefined(e.success)?error(pluploadL10n.default_error,null,i):e.success?e:error(e.data&&e.data.message,e.data,i)},handleRestApiResponse:function(e,i){if(1!==e.media.length)return error(pluploadL10n.default_error,null,i);var t=e.media[0],a=t.mime_type.split("/"),o={alt:"",author:t.author_ID||0,authorName:"",caption:"",compat:{item:"",meta:""},date:t.date||"",dateFormatted:t.date||"",description:t.description||"",editLink:"",filename:t.file||"",filesizeHumanReadable:"",filesizeInBytes:"",height:t.height,icon:t.icon||"",id:t.ID||"",link:t.URL||"",menuOrder:0,meta:!1,mime:t.mime_type||"",modified:0,name:"",nonces:{update:"",delete:"",edit:""},orientation:"",sizes:void 0,status:"",subtype:a[1]||"",title:t.title||"",type:a[0]||"",uploadedTo:1,uploadedToLink:"",uploadedToTitle:"",url:t.URL||"",width:t.width,success:"",videopress:{guid:t.videopress_guid||null,processing_done:t.videopress_processing_done||!1}};return e.data=o,e},resetToOriginalOptions:function(e){void 0!==i.originalOptions.url&&(e.setOption("url",i.originalOptions.url),delete i.originalOptions.url),void 0!==i.originalOptions.multipart_params&&(e.setOption("multipart_params",i.originalOptions.multipart_params),delete i.originalOptions.multipart_params),void 0!==i.originalOptions.file_data_name&&(e.setOption("file_data_name",i.originalOptions.file_data_name),delete i.originalOptions.file_data_name)}};if(void 0!==e.Uploader){var t=e.media;plupload.VIDEOPRESS_TOKEN_FAILURE="VP_TOKEN_FAILURE",plupload.addFileFilter("videopress_check_uploads",function(e,i,a){var o=this;"video"===i.type.split("/")[0]?t.ajax("videopress-get-upload-token",{async:!1,data:{filename:i.name}}).done(function(e){i.videopress=e,a(!0)}).fail(function(e){o.trigger("Error",{code:plupload.VIDEOPRESS_TOKEN_FAILURE,message:plupload.translate("Could not get the VideoPress token needed for uploading"),file:i,response:e}),a(!1)}):void 0!==i.size&&e&&i.size>e?(this.trigger("Error",{code:plupload.FILE_SIZE_ERROR,message:plupload.translate("File size error."),file:i}),a(!1)):a(!0)})}e.VideoPress=i}(window.wp);
|
||||
@@ -0,0 +1,7 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
/* global isRtl */
|
||||
/* global widget_conditions_parent_pages */
|
||||
/* global widget_conditions_data */
|
||||
/* global jQuery */
|
||||
jQuery(function(i){function t(t){var n,e;if(i("body").hasClass("wp-customizer"))return void t.find(".widget-inside").css("top",0);t.hasClass("expanded")?(t.attr("style")&&t.data("original-style",t.attr("style")),(n=t.width())<400&&(e=400-n,isRtl?t.css("position","relative").css("right","-"+e+"px").css("width","400px"):t.css("position","relative").css("left","-"+e+"px").css("width","400px"))):t.data("original-style")?t.attr("style",t.data("original-style")).data("original-style",null):t.removeAttr("style")}function n(i){var t=i.find("a.display-options").first();t.insertBefore(i.find("input.widget-control-save")),t.parent().removeClass("widget-control-noform").find(".spinner").remove().css("float","left").prependTo(t.parent())}function e(t){var n,e,o,d,a,c,l,r,h,p,u,g,f=t.find(".conditions-rule-minor").html(""),v=t.data("rule-major");if(!v||"post_type"===v)return void f.attr("disabled","disabled");for(n=t.data("rule-minor"),e=t.data("rule-has-children"),o=widget_conditions_data[v],d=0,r=o.length;d<r;d++)if(c=o[d][0],"object"==typeof(l=o[d][1])){for(g=i("<optgroup/>").attr("label",c),a=0,h=l.length;a<h;a++)p=o[d][1][a][0],u=o[d][1][a][1],g.append(i("<option/>").val(p).text(s(u.replace(/ /g," "))));f.append(g)}else f.append(i("<option/>").val(c).text(s(l.replace(/ /g," "))));f.removeAttr("disabled"),f.val(n),"page"===v&&n in widget_conditions_parent_pages?(f.siblings("span.conditions-rule-has-children").show(),e&&f.siblings("span.conditions-rule-has-children").find('input[type="checkbox"]').attr("checked","checked")):f.siblings("span.conditions-rule-has-children").hide().find('input[type="checkbox"]').removeAttr("checked")}function o(t){var n=0;t.find("span.conditions-rule-has-children").find('input[type="checkbox"]').each(function(){i(this).attr("name","conditions[page_children]["+n+"]"),n++})}function s(i){var t=document.createElement("textarea");return t.innerHTML=i,t.value}var d=i("div#widgets-right");d.length&&i(d).find(".widget-control-actions").length||(d=i("form#customize-controls")),i(".widget").each(function(){n(i(this))}),i(document).on("widget-added",function(i,t){0===t.find("div.widget-control-actions a.display-options").length&&n(t)}),d.on("click.widgetconditions","a.add-condition",function(t){var n=i(this).closest("div.condition"),e=n.clone().data("rule-major","").data("rule-minor","").data("has-children","").insertAfter(n);t.preventDefault(),e.find("select.conditions-rule-major").val(""),e.find("select.conditions-rule-minor").html("").attr("disabled"),e.find("span.conditions-rule-has-children").hide().find('input[type="checkbox"]').removeAttr("checked"),o(e.closest(".conditions"))}),d.on("click.widgetconditions","a.display-options",function(n){var o=i(this),s=o.closest("div.widget");n.preventDefault(),s.find("div.widget-conditional").toggleClass("widget-conditional-hide"),i(this).toggleClass("active"),s.toggleClass("expanded"),t(s),i(this).hasClass("active")?(s.find("input[name=widget-conditions-visible]").val("1"),s.find(".condition").each(function(){e(i(this))})):s.find("input[name=widget-conditions-visible]").val("0")}),d.on("click.widgetconditions","a.delete-condition",function(t){var n=i(this).closest("div.condition");t.preventDefault(),n.is(":first-child")&&n.is(":last-child")?(i(this).closest("div.widget").find("a.display-options").click(),n.find("select.conditions-rule-major").val("").change()):(n.find("select.conditions-rule-major").change(),n.detach()),o(n.closest(".conditions"))}),d.on("click.widgetconditions","div.widget-top",function(){var n=i(this).closest("div.widget"),e=n.find("a.display-options");e.hasClass("active")&&e.attr("opened","true"),e.attr("opened")&&(e.removeAttr("opened"),n.toggleClass("expanded"),t(n))}),d.on("change.widgetconditions","input.conditions-match-all",function(){i(this).parents(".widget-conditional").toggleClass("conjunction").toggleClass("intersection")}),i(document).on("change.widgetconditions","select.conditions-rule-major",function(){var t=i(this),n=t.siblings("select.conditions-rule-minor:first"),o=t.siblings("span.conditions-rule-has-children"),s=n.closest(".condition");s.data("rule-minor","").data("rule-major",t.val()),t.val()?e(s):(t.siblings("select.conditions-rule-minor").attr("disabled","disabled").html(""),o.hide().find('input[type="checkbox"]').removeAttr("checked"))}),i(document).on("change.widgetconditions","select.conditions-rule-minor",function(){var t=i(this),n=t.siblings("select.conditions-rule-major"),e=t.siblings("span.conditions-rule-has-children");t.closest(".condition").data("rule-minor",t.val()),"page"===n.val()&&t.val()in widget_conditions_parent_pages?e.show():e.hide().find('input[type="checkbox"]').removeAttr("checked")}),i(document).on("widget-updated widget-synced",function(t,n){n.find(".condition").each(function(){e(i(this))})})});
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(n){n(document).on("change",".jp-contact-info-showmap",function(){var o=n(this),c=o.is(":checked");o.closest(".widget").find(".jp-contact-info-apikey").toggle(c)})}(window.jQuery);
|
||||
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js
vendored
Normal file
3
backend/wordpress/wp-content/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* global wp, gapi, FB, twttr */
|
||||
wp.customizerHasPartialWidgetRefresh=function(){return"object"==typeof wp&&"function"==typeof wp.customize&&"object"==typeof wp.customize.selectiveRefresh&&"object"==typeof wp.customize.widgetsPreview&&"function"==typeof wp.customize.widgetsPreview.WidgetPartial},wp.isJetpackWidgetPlaced=function(e,t){return e.partial.widgetId&&0===e.partial.widgetId.indexOf(t)},function(e){e(document).ready(function(){wp&&wp.customize&&wp.customizerHasPartialWidgetRefresh()&&(wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){t.container&&(wp.isJetpackWidgetPlaced(t,"googleplus-badge")&&"object"==typeof gapi&&gapi.person&&"function"==typeof gapi.person.go?gapi.person.go(t.container[0]):wp.isJetpackWidgetPlaced(t,"facebook-likebox")&&"object"==typeof FB&&"object"==typeof FB.XFBML&&"function"==typeof FB.XFBML.parse?FB.XFBML.parse(t.container[0],function(){var i=e(t.container[0]).find(".fb_iframe_widget"),o=i.data("width"),a=i.data("height");i.find("span").css({width:o,height:a}),setTimeout(function(){i.find("iframe").css({width:o,height:a,position:"relative"})},1)}):wp.isJetpackWidgetPlaced(t,"twitter_timeline")&&"object"==typeof twttr&&"object"==typeof twttr.widgets&&"function"==typeof twttr.widgets.load?twttr.widgets.load(t.container[0]):wp.isJetpackWidgetPlaced(t,"eu_cookie_law_widget")&&(e("#eu-cookie-law").hasClass("top")?e(".widget_eu_cookie_law_widget").addClass("top"):e(".widget_eu_cookie_law_widget").removeClass("top"),t.container.fadeIn()))}),wp.customize.selectiveRefresh.bind("partial-content-moved",function(e){e.container&&wp.isJetpackWidgetPlaced(e,"twitter_timeline")&&e.container.find("iframe.twitter-timeline:not([src]):first").length&&e.partial.refresh()}))})}(jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(i){var e=i(document);e.on("ready",function(){var o=function(e,o){var c=i(o||this).closest(".eu-cookie-law-widget-policy-url");c.find('input[type="radio"][value="default"]').is(":checked")?(c.find(".notice.default-policy").css("display","block"),c.find(".notice.custom-policy").hide()):(c.find(".notice.default-policy").hide(),c.find(".notice.custom-policy").css("display","block"))};e.on("click",'.eu-cookie-law-widget-policy-url input[type="radio"]',o),e.on("widget-updated widget-added",function(e,c){var d=i(c).attr("id");-1!==d.indexOf("eu_cookie_law_widget")&&o(0,i("#"+d+" .eu-cookie-law-widget-policy-url"))}),i(".eu-cookie-law-widget-policy-url").each(o)})}(jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
!function(e){function o(o){if(!d){d=!0,o&&o.preventDefault&&o.preventDefault(),t.hasClass("hide-on-scroll")&&e(window).off("scroll",a);var s=new Date;s.setTime(s.getTime()+24*t.data("consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+s.getTime()+";path=/;expires="+s.toGMTString(),t.hasClass("ads-active")&&t.hasClass("hide-on-button")&&(document.cookie="personalized-ads-consent="+s.getTime()+";path=/;expires="+s.toGMTString()),t.fadeOut(400,function(){t.remove()})}}var s,a,i=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),t=e("#eu-cookie-law");if(t.hasClass("top")&&e(".widget_eu_cookie_law_widget").addClass("top"),t.hasClass("ads-active")){var n=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*$/,"$1");""!==i&&""!==n&&t.remove()}else""!==i&&t.remove();e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),t.find("form").on("submit",o),t.hasClass("hide-on-scroll")?(s=e(window).scrollTop(),a=function(){Math.abs(e(window).scrollTop()-s)>50&&o()},e(window).on("scroll",a)):t.hasClass("hide-on-time")&&setTimeout(o,1e3*t.data("hide-timeout"));var d=!1}(jQuery);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user