HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/raven/includes/core/library/documents/single.php
<?php
/**
 * Add Library Single Document.
 *
 * @package Raven
 * @since 1.5.0
 */

namespace Raven\Core\Library\Documents;

defined( 'ABSPATH' ) || die();

/**
 * Raven single library document.
 *
 * Raven single library document handler class is responsible for
 * handling a document of a single type.
 *
 * @since 1.5.0
 */
class Single extends Library_Document {

	/**
	 * Get document properties.
	 *
	 * Retrieve the document properties.
	 *
	 * @since 1.5.0
	 * @access public
	 * @static
	 *
	 * @return array Document properties.
	 */
	public static function get_properties() {
		$properties = parent::get_properties();

		$properties['library_view'] = 'list';
		$properties['group']        = 'blocks';

		return $properties;
	}

	/**
	 * Get document name.
	 *
	 * Retrieve the document name.
	 *
	 * @since 1.5.0
	 * @access public
	 *
	 * @return string Document name.
	 */
	public function get_name() {
		return 'single';
	}

	/**
	 * Get document title.
	 *
	 * Retrieve the document title.
	 *
	 * @since 1.5.0
	 * @access public
	 * @static
	 *
	 * @return string Document title.
	 */
	public static function get_title() {
		return __( 'Single', 'raven' );
	}

	/**
	 * Get document library category.
	 *
	 * @since 1.5.0
	 * @access protected
	 *
	 * @return array Document config.
	 */
	protected function get_remote_library_config() {
		$config = parent::get_remote_library_config();

		$config['category'] = 'Jupiter X single post';

		return $config;
	}
}