wip
This commit is contained in:
parent
25e8e7451f
commit
a104b8b6fd
4 changed files with 4 additions and 8 deletions
|
@ -52,7 +52,7 @@ class Transformers_Manager {
|
||||||
/**
|
/**
|
||||||
* Instance.
|
* Instance.
|
||||||
*
|
*
|
||||||
* Ensures only one instance of the module class is loaded or can be loaded.
|
* Ensures only one instance of the transformer manager class is loaded or can be loaded.
|
||||||
*
|
*
|
||||||
* @since version_number_transformer_management_placeholder
|
* @since version_number_transformer_management_placeholder
|
||||||
* @access public
|
* @access public
|
||||||
|
@ -107,9 +107,6 @@ class Transformers_Manager {
|
||||||
require ACTIVITYPUB_PLUGIN_DIR . 'includes/class-transformer-base.php';
|
require ACTIVITYPUB_PLUGIN_DIR . 'includes/class-transformer-base.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function T( $post_type ) {
|
|
||||||
return in_array($post_type, $this->supported_post_types);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a transformer is registered.
|
* Checks if a transformer is registered.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Activitypub\Model;
|
namespace Activitypub\Model;
|
||||||
|
|
||||||
use Activitypub\Transformer\Post as Post_Transformer;
|
use Activitypub\Transformer_Post as Post_Transformer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActivityPub Post Class
|
* ActivityPub Post Class
|
||||||
|
|
|
@ -53,8 +53,6 @@ class Transformer_Post extends Transformer_Base {
|
||||||
return 'Built-In';
|
return 'Built-In';
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
|
@ -260,10 +260,11 @@
|
||||||
$transformer_manager = \Activitypub\Transformers_Manager::instance();
|
$transformer_manager = \Activitypub\Transformers_Manager::instance();
|
||||||
$transformers = $transformer_manager->get_transformers();
|
$transformers = $transformer_manager->get_transformers();
|
||||||
|
|
||||||
// END OF DUMMY CODE
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// TODO Probably we should use checkboxes and not select and make this less buggy and insert the js at the right place.
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
var radioGroups = {};
|
var radioGroups = {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue