[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.141.21.35: ~ $
<?php

namespace MailPoet\Newsletter\Renderer\Blocks;

if (!defined('ABSPATH')) exit;


use MailPoet\Newsletter\Renderer\EscapeHelper as EHelper;

class Social {
  public function render($element) {
    $iconsBlock = '';
    if (is_array($element['icons'])) {
      foreach ($element['icons'] as $index => $icon) {
        if (empty($icon['image'])) {
          continue;
        }

        $style = 'width:' . $icon['width'] . ';height:' . $icon['width'] . ';-ms-interpolation-mode:bicubic;border:0;display:inline;outline:none;';
        $iconsBlock .= '<a href="' . EHelper::escapeHtmlLinkAttr($icon['link']) . '" style="text-decoration:none!important;"
        ><img
          src="' . EHelper::escapeHtmlLinkAttr($icon['image']) . '"
          width="' . (int)$icon['width'] . '"
          height="' . (int)$icon['height'] . '"
          style="' . EHelper::escapeHtmlStyleAttr($style) . '"
          alt="' . EHelper::escapeHtmlAttr($icon['iconType']) . '"
        ></a>&nbsp;';
      }
    }
    $alignment = isset($element['styles']['block']['textAlign']) ? $element['styles']['block']['textAlign'] : 'center';
    if (!empty($iconsBlock)) {
      $template = '
      <tr>
        <td class="mailpoet_padded_side mailpoet_padded_vertical" valign="top" align="' . EHelper::escapeHtmlAttr($alignment) . '">
          ' . $iconsBlock . '
        </td>
      </tr>';
      return $template;
    }
  }
}

Filemanager

Name Type Size Permission Actions
AbandonedCartContent.php File 2.25 KB 0644
AutomatedLatestContentBlock.php File 2.12 KB 0644
Button.php File 3.3 KB 0644
Divider.php File 1.59 KB 0644
Footer.php File 1.83 KB 0644
Header.php File 1.83 KB 0644
Image.php File 2.91 KB 0644
Placeholder.php File 676 B 0644
Renderer.php File 4 KB 0644
Social.php File 1.37 KB 0644
Spacer.php File 607 B 0644
Text.php File 6.7 KB 0644
index.php File 0 B 0644