Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/includes/elements/elementor/modules/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/includes/elements/elementor/modules/templates-types-manager.php |
<?php
namespace Auxin\Plugin\Pro\Elementor\Modules;
use Elementor\Plugin;
class Templates_Types_Manager {
private $docs_types = [];
public function __construct() {
if( ! defined( 'ELEMENTOR_PRO_VERSION' ) ){
define( 'AUXPRO_ELEMENTOR_TEMPLATE', true );
add_action( 'elementor/documents/register', [ $this, 'register_documents' ] );
}
}
public function register_documents() {
$this->docs_types = [
'single' => Documents\Single::get_class_full_name(),
// 'archive' => Documents\Archive::get_class_full_name(),
];
foreach ( $this->docs_types as $type => $class_name ) {
Plugin::$instance->documents->register_document_type( $type, $class_name );
}
}
}