71 lines
1.2 KiB
PHP
71 lines
1.2 KiB
PHP
|
<?php
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
exit; // Exit if accessed directly.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* ActivityPub Tribe Transformer
|
||
|
*
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
class Tribe extends \Activitypub\Transformer\Base {
|
||
|
|
||
|
/**
|
||
|
* Get widget name.
|
||
|
*
|
||
|
* Retrieve oEmbed widget name.
|
||
|
*
|
||
|
* @since 1.0.0
|
||
|
* @access public
|
||
|
* @return string Widget name.
|
||
|
*/
|
||
|
public function get_name() {
|
||
|
return 'activitypub-event-transformers/vs-event';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get widget title.
|
||
|
*
|
||
|
* Retrieve Transformer title.
|
||
|
*
|
||
|
* @since 1.0.0
|
||
|
* @access public
|
||
|
* @return string Widget title.
|
||
|
*/
|
||
|
public function get_label() {
|
||
|
return 'VS Event';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns the ActivityStreams 2.0 Object-Type for an Event.
|
||
|
*
|
||
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event
|
||
|
* @since 1.0.0
|
||
|
* @return string The Event Object-Type.
|
||
|
*/
|
||
|
protected function get_object_type() {
|
||
|
return 'Event';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get supported post types.
|
||
|
*
|
||
|
* Retrieve the list of supported WordPress post types this transformer widget can handle.
|
||
|
*
|
||
|
* @since 1.0.0
|
||
|
* @access public
|
||
|
* @return array Widget categories.
|
||
|
*/
|
||
|
public function get_supported_post_types() {
|
||
|
return [ 'event' ];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the event location
|
||
|
*/
|
||
|
public function get_event_location() {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|