✏️ 编辑:block-right.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/newsletter/emails/blocks/hero/block-right.php
大小:1.64 KB · 修改:2026-09-30 14:36:39 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** @var array $options */ /** @var array $composer */ /** @var TNP_Media $media */ defined('ABSPATH') || exit; $widths = []; if ($layout === 'right13') { $widths = [2, 1]; } $items = []; ?> <style> .title { <?php $title_style->echo_css(0.8) ?> margin: 0; line-height: normal; padding: 0 0 20px 0; } .text { <?php $text_style->echo_css() ?> padding: 0 0 15px; line-height: 1.5; margin: 0; } .button { padding: 10px 0 0 0; } </style> <?php ob_start(); ?> <table align="left" class="responsive" border="0" cellspacing="0" cellpadding="0" role="presentation"> <?php if (empty($order)) { ?> <tr> <td inline-class="title"> <?php echo $options['title'] ?> </td> </tr> <tr> <td inline-class="text"> <?php echo $options['text'] ?> </td> </tr> <?php } else { ?> <tr> <td inline-class="text"> <?php echo $options['text'] ?> </td> </tr> <tr> <td inline-class="title"> <?php echo $options['title'] ?> </td> </tr> <?php } ?> <tr> <td align="center" inline-class="button"> <?php echo TNP_Composer::button($button_options, 'button', $composer) ?> </td> </tr> </table> <?php $items[] = trim(ob_get_clean()); if ($media) { $items[] = TNP_Composer::image($media); } echo TNP_Composer::grid($items, ['columns' => count($items), 'widths'=>$widths, 'width' => $composer['content_width'], 'responsive' => true]); ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF