D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tvinntxo
/
www
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Newsletter
/
Editor
/
Filename :
Transformer.php
back
Copy
<?php namespace MailPoet\Newsletter\Editor; if (!defined('ABSPATH')) exit; class Transformer { private $transformer; public function __construct( $args ) { $titleListOnly = $args['displayType'] === 'titleOnly' && $args['titleFormat'] === 'ul'; if ($titleListOnly) $transformer = new TitleListTransformer($args); else $transformer = new PostListTransformer($args); $this->transformer = $transformer; } public function transform($posts) { return $this->transformer->transform($posts); } }