golden hour
/var/www/html/wp-content/plugins/the-events-calendar/common/src/Tribe
⬆️ Go Up
Upload
File/Folder
Size
Actions
Abstract_Deactivation.php
1.65 KB
Del
OK
Abstract_Plugin_Register.php
1.25 KB
Del
OK
Admin
-
Del
OK
Ajax
-
Del
OK
App_Shop.php
9.87 KB
Del
OK
Asset
-
Del
OK
Assets.php
24.69 KB
Del
OK
Assets_Pipeline.php
1.7 KB
Del
OK
Autoloader.php
8.31 KB
Del
OK
Cache.php
18.13 KB
Del
OK
Cache_Listener.php
5.92 KB
Del
OK
Changelog_Reader.php
1.5 KB
Del
OK
Container.php
11.36 KB
Del
OK
Context
-
Del
OK
Context.php
48.65 KB
Del
OK
Cost_Utils.php
16.44 KB
Del
OK
Credits.php
2.9 KB
Del
OK
Customizer
-
Del
OK
Customizer.php
25.29 KB
Del
OK
DB_Lock.php
10.04 KB
Del
OK
Data.php
5.21 KB
Del
OK
Date_Utils.php
48.59 KB
Del
OK
Db.php
876 B
Del
OK
Debug.php
1.54 KB
Del
OK
Debug_Bar
-
Del
OK
Dependency.php
16.47 KB
Del
OK
Deprecation.php
4.84 KB
Del
OK
Dialog
-
Del
OK
Documentation
-
Del
OK
Duplicate
-
Del
OK
Editor
-
Del
OK
Editor.php
6.58 KB
Del
OK
Error.php
4.51 KB
Del
OK
Exception.php
2.08 KB
Del
OK
Extension.php
13 KB
Del
OK
Extension_Loader.php
3.96 KB
Del
OK
Feature_Detection.php
7.51 KB
Del
OK
Field.php
22.38 KB
Del
OK
Field_Conditional.php
2.37 KB
Del
OK
Freemius.php
1.34 KB
Del
OK
Image
-
Del
OK
JSON_LD
-
Del
OK
Languages
-
Del
OK
Log
-
Del
OK
Log.php
11.33 KB
Del
OK
Main.php
23.13 KB
Del
OK
Meta
-
Del
OK
Models
-
Del
OK
Notices.php
1.49 KB
Del
OK
PUE
-
Del
OK
Plugin_Meta_Links.php
3.45 KB
Del
OK
Plugins.php
5.32 KB
Del
OK
Plugins_API.php
12.2 KB
Del
OK
Post_History.php
2.96 KB
Del
OK
Post_Transient.php
5.76 KB
Del
OK
Process
-
Del
OK
Promise.php
9.04 KB
Del
OK
Promoter
-
Del
OK
REST
-
Del
OK
Repository
-
Del
OK
Repository.php
100.06 KB
Del
OK
Rewrite.php
34.63 KB
Del
OK
Service_Providers
-
Del
OK
Settings.php
23.81 KB
Del
OK
Settings_Manager.php
9.78 KB
Del
OK
Settings_Tab.php
6.93 KB
Del
OK
Shortcode
-
Del
OK
Simple_Table.php
4.01 KB
Del
OK
Support
-
Del
OK
Support.php
14.43 KB
Del
OK
Tabbed_View
-
Del
OK
Tabbed_View.php
8.1 KB
Del
OK
Template.php
43.65 KB
Del
OK
Template_Factory.php
5.45 KB
Del
OK
Template_Part_Cache.php
2.74 KB
Del
OK
Templates.php
1.79 KB
Del
OK
Terms.php
1.51 KB
Del
OK
Timezones.php
18.21 KB
Del
OK
Tooltip
-
Del
OK
Tracker.php
12.51 KB
Del
OK
Traits
-
Del
OK
Updater.php
3.78 KB
Del
OK
Utils
-
Del
OK
Validate.php
16.54 KB
Del
OK
Validator
-
Del
OK
View_Helpers.php
9.64 KB
Del
OK
Widget
-
Del
OK
Edit: Template_Factory.php
<?php /** * Template Factory * * The parent class for managing the view methods in core and addons * */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } if ( class_exists( 'Tribe__Template_Factory' ) ) { return; } class Tribe__Template_Factory { /** * Array of asset packages needed for this template * * @deprecated 4.7.18 * * @var array **/ protected $asset_packages = []; /** * Static variable that holds array of vendor script handles, for adding to later deps. * * @deprecated 4.7.18 * * @static * @var array */ protected static $vendor_scripts = []; /** * Constant that holds the ajax hook suffix for the view * * @deprecated 4.7.18 * * @static * @var string */ const AJAX_HOOK = ''; /** * Run include packages, set up hooks * * @deprecated 4.7.18 * * @return void **/ public function __construct() { $this->asset_packages(); } /** * Manage the asset packages defined for this template * * @deprecated 4.7.18 * * @return void **/ protected function asset_packages() { foreach ( $this->asset_packages as $asset_package ) { $this->asset_package( $asset_package ); } } /** * Handles an asset package request. * * @deprecated 4.7.18 * * @param string $name The asset name in the `hyphen-separated-format` * @param array $deps An array of dependency handles * @param string $vendor_url URL to vendor scripts and styles dir * @param string $prefix MT script and style prefix * @param Tribe__Main $tec An instance of the main plugin class */ protected static function handle_asset_package_request( $name, $deps, $vendor_url, $prefix, $tec ) { $asset = self::get_asset_factory_instance( $name ); self::prepare_asset_package_request( $asset, $name, $deps, $vendor_url, $prefix, $tec ); } /** * initializes asset package request * * @deprecated 4.7.18 * * @param object $asset The Tribe__*Asset object * @param string $name The asset name in the `hyphen-separated-format` * @param array $deps An array of dependency handles * @param string $vendor_url URL to vendor scripts and styles dir * @param string $prefix MT script and style prefix * @param Tribe__Main $common An instance of the main plugin class */ protected static function prepare_asset_package_request( $asset, $name, $deps, $vendor_url, $prefix, $common ) { if ( ! $asset ) { do_action( $prefix . '-' . $name ); return; } $asset->set_name( $name ); $asset->set_deps( $deps ); $asset->set_vendor_url( $vendor_url ); $asset->set_prefix( $prefix ); $asset->set_tec( $common ); $asset->handle(); } /** * Retrieves the appropriate asset factory instance * * @deprecated 4.7.18 * */ protected static function get_asset_factory_instance( $name ) { $asset = Tribe__Asset__Factory::instance()->make_for_name( $name ); return $asset; } /** * * @deprecated 4.7.18 * * @param string $script_handle A registered script handle. */ public static function add_vendor_script( $script_handle ) { if ( in_array( $script_handle, self::$vendor_scripts ) ) { return; } self::$vendor_scripts[] = $script_handle; } /** * @return string[] An array of registered vendor script handles. */ public static function get_vendor_scripts() { return self::$vendor_scripts; } /** * Asset calls for vendor packages * * @deprecated 4.7.18 * * @param string $name * @param array $deps Dependents */ public static function asset_package( $name, $deps = [] ) { $common = Tribe__Main::instance(); $prefix = 'tribe-events'; // setup plugin resources & 3rd party vendor urls $vendor_url = trailingslashit( $common->plugin_url ) . 'vendor/'; self::handle_asset_package_request( $name, $deps, $vendor_url, $prefix, $common ); } /** * Returns the path to a minified version of a js or css file, if it exists. * If the file does not exist, returns false. * * @deprecated 4.7.18 * * @param string $url The path or URL to the un-minified file. * @param bool $default_to_original Whether to just return original path if min version not found. * * @return string|false The path/url to minified version or false, if file not found. */ public static function getMinFile( $url, $default_to_original = false ) { if ( ! defined( 'SCRIPT_DEBUG' ) || SCRIPT_DEBUG === false ) { if ( substr( $url, - 3, 3 ) == '.js' ) { $url_new = substr_replace( $url, '.min', - 3, 0 ); } if ( substr( $url, - 4, 4 ) == '.css' ) { $url_new = substr_replace( $url, '.min', - 4, 0 ); } } if ( isset( $url_new ) && file_exists( str_replace( content_url(), WP_CONTENT_DIR, $url_new ) ) ) { return $url_new; } elseif ( $default_to_original ) { return $url; } else { return false; } } /** * Playing ping-pong with WooCommerce. They keep changing their script. * * @deprecated 4.7.18 * * @see https://github.com/woothemes/woocommerce/issues/3623 */ public static function get_placeholder_handle() { $placeholder_handle = 'jquery-placeholder'; global $woocommerce; if ( class_exists( 'Woocommerce' ) && version_compare( $woocommerce->version, '2.0.11', '>=' ) && version_compare( $woocommerce->version, '2.0.13', '<=' ) ) { $placeholder_handle = 'tribe-placeholder'; } return $placeholder_handle; } }
Save