File "LayoutHelper.php"
Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/mailpoet/lib/Newsletter/Editor/LayoutHelper.php
File size: 725 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace MailPoet\Newsletter\Editor;
if (!defined('ABSPATH')) exit;
class LayoutHelper {
public static function row($blocks, $styles = []) {
if (empty($styles['backgroundColor'])) {
$styles['backgroundColor'] = 'transparent';
}
return [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => ['block' => $styles],
'blocks' => $blocks,
];
}
public static function col($blocks, $styles = []) {
if (empty($styles['backgroundColor'])) {
$styles['backgroundColor'] = 'transparent';
}
return [
'type' => 'container',
'orientation' => 'vertical',
'styles' => ['block' => $styles],
'blocks' => $blocks,
];
}
}