X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/plugins/jetpack
home
/
notabjze
/
hourglass.life
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(715.22 KB)
📄
LICENSE.txt
(17.98 KB)
📄
SECURITY.md
(2.45 KB)
ðŸ“
_inc
📄
class-jetpack-connection-status.php
(728 B)
📄
class-jetpack-gallery-settings.php
(3.38 KB)
📄
class-jetpack-newsletter-dashboard-widget.php
(389 B)
📄
class-jetpack-pre-connection-jitms.php
(2.34 KB)
📄
class-jetpack-stats-dashboard-widget.php
(7.47 KB)
📄
class-jetpack-xmlrpc-methods.php
(7.39 KB)
📄
class.frame-nonce-preview.php
(3.22 KB)
📄
class.jetpack-admin.php
(18.49 KB)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-cli.php
(71.4 KB)
📄
class.jetpack-client-server.php
(2.62 KB)
📄
class.jetpack-gutenberg.php
(44.66 KB)
📄
class.jetpack-heartbeat.php
(4.55 KB)
📄
class.jetpack-modules-list-table.php
(14.79 KB)
📄
class.jetpack-network-sites-list-table.php
(5.98 KB)
📄
class.jetpack-network.php
(21.07 KB)
📄
class.jetpack-plan.php
(4.09 KB)
📄
class.jetpack-post-images.php
(36.73 KB)
📄
class.jetpack-twitter-cards.php
(12.92 KB)
📄
class.jetpack-user-agent.php
(25.3 KB)
📄
class.jetpack.php
(203.04 KB)
📄
class.json-api-endpoints.php
(90.79 KB)
📄
class.json-api.php
(37.32 KB)
📄
class.photon.php
(1.74 KB)
📄
composer.json
(4.08 KB)
ðŸ“
css
📄
enhanced-open-graph.php
(4.39 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.31 KB)
📄
functions.cookies.php
(2.04 KB)
📄
functions.global.php
(15.38 KB)
📄
functions.is-mobile.php
(2.47 KB)
📄
functions.opengraph.php
(21.38 KB)
📄
functions.photon.php
(3.04 KB)
ðŸ“
images
📄
jetpack.php
(8.57 KB)
ðŸ“
jetpack_vendor
📄
json-api-config.php
(338 B)
ðŸ“
json-endpoints
📄
json-endpoints.php
(6.92 KB)
📄
load-jetpack.php
(3.1 KB)
📄
locales.php
(324 B)
ðŸ“
modules
📄
readme.txt
(32.74 KB)
ðŸ“
sal
ðŸ“
src
📄
unauth-file-upload.php
(5.18 KB)
📄
uninstall.php
(1.6 KB)
ðŸ“
vendor
ðŸ“
views
📄
wpml-config.xml
(1.26 KB)
Editing: enhanced-open-graph.php
<?php /** * Enhanced Open Graph for Jetpack. * * @package automattic/jetpack */ if ( ! class_exists( 'Jetpack_Media_Summary' ) ) { require_once JETPACK__PLUGIN_DIR . '_inc/lib/class.media-summary.php'; } /** * Better OG Image Tags for Image Post Formats * * @param array $tags Array of Open Graph tags. */ function enhanced_og_image( $tags ) { if ( ! is_singular() || post_password_required() ) { return $tags; } global $post; // Bail if we do not have info about the post. if ( ! $post instanceof WP_Post ) { return $tags; } // Always favor featured images. if ( enhanced_og_has_featured_image( $post->ID ) ) { return $tags; } $summary = Jetpack_Media_Summary::get( $post->ID ); if ( 'image' !== $summary['type'] ) { return $tags; } $tags['og:image'] = $summary['image']; $tags['og:image:secure_url'] = $summary['secure']['image']; return $tags; } add_filter( 'jetpack_open_graph_tags', 'enhanced_og_image' ); /** * Better OG Image Tags for Gallery Post Formats * * @param array $tags Array of Open Graph tags. */ function enhanced_og_gallery( $tags ) { if ( ! is_singular() || post_password_required() ) { return $tags; } global $post; // Bail if we do not have info about the post. if ( ! $post instanceof WP_Post ) { return $tags; } // Always favor featured images. if ( enhanced_og_has_featured_image( $post->ID ) ) { return $tags; } $summary = Jetpack_Media_Summary::get( $post->ID ); if ( 'gallery' !== $summary['type'] ) { return $tags; } if ( ! isset( $summary['images'] ) || ! is_array( $summary['images'] ) || empty( $summary['images'] ) ) { return $tags; } $images = array(); $secures = array(); foreach ( $summary['images'] as $i => $image ) { $images[] = $image['url']; $secures[] = $summary['secure']['images'][ $i ]['url']; } $tags['og:image'] = $images; $tags['og:image:secure_url'] = $secures; return $tags; } add_filter( 'jetpack_open_graph_tags', 'enhanced_og_gallery' ); /** * Allows VideoPress, YouTube, and Vimeo videos to play inline on Facebook * * @param array $tags Array of Open Graph tags. */ function enhanced_og_video( $tags ) { if ( ! is_singular() || post_password_required() ) { return $tags; } global $post; // Bail if we do not have info about the post. if ( ! $post instanceof WP_Post ) { return $tags; } // Always favor featured images. if ( enhanced_og_has_featured_image( $post->ID ) ) { return $tags; } $summary = Jetpack_Media_Summary::get( $post->ID ); if ( 'video' !== $summary['type'] ) { if ( $summary['count']['video'] > 0 && $summary['count']['image'] < 1 ) { $tags['og:image'] = $summary['image']; $tags['og:image:secure_url'] = $summary['secure']['image']; } return $tags; } $tags['og:image'] = $summary['image']; $tags['og:image:secure_url'] = $summary['secure']['image']; // This should be html by default for youtube/vimeo, since we're linking to HTML pages. $tags['og:video:type'] = isset( $summary['video_type'] ) ? $summary['video_type'] : 'text/html'; $video_url = $summary['video']; $secure_video_url = $summary['secure']['video']; if ( preg_match( '/((youtube|vimeo)\.com|youtu.be)/', $video_url ) ) { if ( strstr( $video_url, 'youtube' ) ) { $id = jetpack_get_youtube_id( $video_url ); $video_url = 'http://www.youtube.com/embed/' . $id; $secure_video_url = 'https://www.youtube.com/embed/' . $id; } elseif ( strstr( $video_url, 'vimeo' ) ) { preg_match( '|vimeo\.com/(\d+)/?$|i', $video_url, $match ); if ( isset( $match[1] ) ) { $id = (int) $match[1]; $video_url = 'http://vimeo.com/moogaloop.swf?clip_id=' . $id; $secure_video_url = 'https://vimeo.com/moogaloop.swf?clip_id=' . $id; } } } $tags['og:video'] = $video_url; $tags['og:video:secure_url'] = $secure_video_url; if ( empty( $post->post_title ) ) { /* translators: %s is the name of the site */ $tags['og:title'] = sprintf( __( 'Video on %s', 'jetpack' ), get_option( 'blogname' ) ); } return $tags; } add_filter( 'jetpack_open_graph_tags', 'enhanced_og_video' ); /** * Check if a post has a suitable featured image. * * @param int $post_id The post ID to check. * @return bool True if the post has a suitable featured image, false otherwise. */ function enhanced_og_has_featured_image( $post_id ) { return ! empty( Jetpack_PostImages::from_thumbnail( $post_id ) ); }
Upload File
Create Folder