Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/plugins/builder-mosaic/providers/base.php
Ðазад
<?php /** * Base class for Builder_Data_Provider classes * * @package Themify */ if ( ! class_exists( 'Builder_Data_Provider' ) ) : class Builder_Data_Provider { function is_available() { return true; } function get_id() {} function get_label() {} function get_options() { return array(); } function get_error() { return ''; } function get_items( $settings, $limit, $paged ) {} /** * Check if page is currently displayed inside lightbox window * * @return bool */ protected static function is_lightbox( $key = 'tb-mosaic-lightbox' ) { return isset( $_GET[$key], $_GET['iframe'] ) // this parameter is sent by getiFrameLink() in themify.gallery.js && $_GET['iframe'] === 'true'; } } class Builder_Data_Provider_Container { /* instances of data providers for this module */ public $providers; /** * Creates or returns an instance of this class. * * @return A single instance of this class. */ public static function get_instance() { static $instance = null; if ( $instance === null ) { $instance = new self; } return $instance; } private function __construct() { add_action( 'init', array( $this, 'init_providers' ) ); } /** * Initialize data providers for the module * * Other plugins or themes can extend or add to this list * by using the "builder_tiled_posts_providers" filter. */ function init_providers() { $dir = trailingslashit( dirname( __FILE__ ) ); include( $dir . '/posts.php' ); include( $dir . '/text.php' ); include( $dir . '/wc.php' ); include( $dir . '/portfolio.php' ); include( $dir . '/ptb.php' ); include( $dir . '/tep.php' ); include( $dir . '/nextgen.php' ); include( $dir . '/rss.php' ); include( $dir . '/gallery.php' ); include( $dir . '/files.php' ); $providers = apply_filters( 'builder_data_providers', array( 'posts' => 'Builder_Data_Provider_Posts', 'text' => 'Builder_Data_Provider_Text', 'gallery' => 'Builder_Data_Provider_Gallery', 'wc' => 'Builder_Data_Provider_WooCommerce', 'portfolio' => 'Builder_Data_Provider_Portfolio', 'ptb' => 'Builder_Data_Provider_PTB', 'tep' => 'Builder_Data_Provider_Event_Posts', 'nextgen' => 'Builder_Data_Provider_NextGen_Gallery', 'rss' => 'Builder_Data_Provider_RSS', 'files' => 'Builder_Data_Provider_Files', ) ); foreach ( $providers as $id => $provider ) { if ( class_exists( $provider ) ) { $this->providers[ $id ] = new $provider(); } } } /** * Helper function to retrieve list of providers * * @return object */ public function get_providers() { return $this->providers; } /** * Helper function to retrieve a provider instance * * @return object */ public function get_provider( $id ) { return isset( $this->providers[ $id ] ) ? $this->providers[ $id ] : false; } } Builder_Data_Provider_Container::get_instance(); endif;
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка