first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
/**
* Class WPML_Media_Factory
*/
class WPML_Media_Factory implements IWPML_Frontend_Action_Loader, IWPML_Backend_Action_Loader {
public function create() {
global $sitepress, $wpdb;
$wpml_wp_api = $sitepress->get_wp_api();
$template_service_loader = new WPML_Twig_Template_Loader(
array( $wpml_wp_api->constant( 'WPML_MEDIA_PATH' ) . '/templates/menus/' )
);
$wpml_media_menus_factory = new WPML_Media_Menus_Factory();
return new WPML_Media( $sitepress, $wpdb, $wpml_media_menus_factory );
}
}