<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing 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, ]; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LayoutHelper.php | File | 819 B | 0644 |
|
MetaInformationManager.php | File | 2.22 KB | 0644 |
|
PostContentManager.php | File | 4.82 KB | 0644 |
|
PostListTransformer.php | File | 772 B | 0644 |
|
PostTransformer.php | File | 5.13 KB | 0644 |
|
PostTransformerContentsExtractor.php | File | 7.07 KB | 0644 |
|
StructureTransformer.php | File | 3.93 KB | 0644 |
|
TitleListTransformer.php | File | 1.25 KB | 0644 |
|
Transformer.php | File | 625 B | 0644 |
|
index.php | File | 6 B | 0644 |
|