X7ROOT File Manager
Current Path:
/home/notabjze/crypfinite.com/wp-content/plugins/jetpack
home
/
notabjze
/
crypfinite.com
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(709.33 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-affiliate.php
(205 B)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-bbpress-json-api.compat.php
(220 B)
📄
class.jetpack-cli.php
(71.4 KB)
📄
class.jetpack-client-server.php
(2.62 KB)
📄
class.jetpack-gutenberg.php
(44.27 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.7 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.88 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.35 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.3 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)
📄
global.d.ts
(48 B)
ðŸ“
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
(33.55 KB)
ðŸ“
sal
ðŸ“
src
📄
unauth-file-upload.php
(5.18 KB)
📄
uninstall.php
(1.6 KB)
ðŸ“
vendor
ðŸ“
views
📄
wpml-config.xml
(1.26 KB)
Editing: class-jetpack-gallery-settings.php
<?php /** * Adding extra functions for the gallery. * * @package automattic/jetpack */ use Automattic\Jetpack\Assets; /** * Renders extra controls in the Gallery Settings section of the new media UI. */ class Jetpack_Gallery_Settings { /** * Available gallery types. * * @var array */ public $gallery_types; /** * The constructor. */ public function __construct() { add_action( 'admin_init', array( $this, 'admin_init' ) ); } /** * Initialize the admin resources. */ public function admin_init() { /** * Filter the available gallery types. * * @module shortcodes, tiled-gallery * * @since 2.5.1 * * @param array $value Array of the default thumbnail grid gallery type. Default array contains one key, ‘default’. */ $this->gallery_types = apply_filters( 'jetpack_gallery_types', array( 'default' => __( 'Thumbnail Grid', 'jetpack' ) ) ); // Enqueue the media UI only if needed. if ( is_countable( $this->gallery_types ) && count( $this->gallery_types ) > 1 ) { add_action( 'wp_enqueue_media', array( $this, 'wp_enqueue_media' ) ); add_action( 'print_media_templates', array( $this, 'print_media_templates' ) ); } // Add Slideshow and Galleries functionality to core's media gallery widget. add_filter( 'widget_media_gallery_instance_schema', array( $this, 'core_media_widget_compat' ) ); } /** * Updates the schema of the core gallery widget so we can save the * fields that we add to Gallery Widgets, like `type` and `conditions` * * @param array $schema The current schema for the core gallery widget. * @return array the updated schema */ public function core_media_widget_compat( $schema ) { $schema['type'] = array( 'type' => 'string', 'enum' => array_keys( $this->gallery_types ), 'description' => __( 'Type of gallery.', 'jetpack' ), 'default' => 'default', ); return $schema; } /** * Registers/enqueues the gallery settings admin js. */ public function wp_enqueue_media() { if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { /** * This only happens if we're not in Jetpack, but on WPCOM instead. * This is the correct path for WPCOM. */ wp_register_script( 'jetpack-gallery-settings', Assets::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ), array( 'jquery', 'media-views' ), '20121225', false ); } wp_enqueue_script( 'jetpack-gallery-settings' ); } /** * Outputs a view template which can be used with wp.media.template */ public function print_media_templates() { /** * Filter the default gallery type. * * @module tiled-gallery * * @since 2.5.1 * * @param string $value A string of the gallery type. Default is ‘default’. */ $default_gallery_type = apply_filters( 'jetpack_default_gallery_type', 'default' ); ?> <script type="text/html" id="tmpl-jetpack-gallery-settings"> <label class="setting"> <span><?php esc_html_e( 'Type', 'jetpack' ); ?></span> <select class="type" name="type" data-setting="type"> <?php foreach ( $this->gallery_types as $value => $caption ) : ?> <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $default_gallery_type ); ?>><?php echo esc_html( $caption ); ?></option> <?php endforeach; ?> </select> </label> </script> <?php } } new Jetpack_Gallery_Settings();
Upload File
Create Folder