Server IP : 172.67.157.199 / Your IP : 3.145.202.171 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/gravityforms/includes/assets/admin-dependencies/ |
Upload File : |
<?php namespace Gravity_Forms\Gravity_Forms\Asset\Admin_Dependencies; abstract class GF_Admin_Dependencies { /** * Items to enqueue * * @since 2.6 * * @var array */ protected $items = array(); /** * The method for actually enqueueing the items. * * @since 2.6 * * @param $handle * * @return mixed */ abstract protected function do_enqueue( $handle ); /** * Get the dependency items. * * @since 2.6 * * @return array */ public function get_items() { return $this->items; } /** * Enqueue the items. * * @since 2.6 * * @param $items */ public function enqueue() { if ( ! $this->should_enqueue() ) { return; } foreach ( $this->items as $handle ) { $this->do_enqueue( $handle ); } } /** * Override to determine whether the assets outlined should be enqueued. * * @since 2.6 * * @return bool */ protected function should_enqueue() { return true; } }