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,23 @@
<?php
use WPML\Core\Twig_Environment;
/**
* @author OnTheGo Systems
*/
class WPML_Twig_Template implements IWPML_Template_Service {
private $twig;
/**
* WPML_Twig_Template constructor.
*
* @param Twig_Environment $twig
*/
public function __construct( Twig_Environment $twig ) {
$this->twig = $twig;
}
public function show( $model, $template ) {
return $this->twig->render( $template, $model );
}
}