[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.139.236.144: ~ $
<?php

namespace MailPoet\Form\Block;

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


use MailPoet\Form\BlockStylesRenderer;
use MailPoet\Form\BlockWrapperRenderer;
use MailPoet\WP\Functions as WPFunctions;

class Submit {

  /** @var BlockRendererHelper */
  private $rendererHelper;

  /** @var BlockWrapperRenderer */
  private $wrapper;

  /** @var BlockStylesRenderer */
  private $stylesRenderer;

  /** @var WPFunctions */
  private $wp;

  public function __construct(
    BlockRendererHelper $rendererHelper,
    BlockWrapperRenderer $wrapper,
    BlockStylesRenderer $stylesRenderer,
    WPFunctions $wp
  ) {
    $this->rendererHelper = $rendererHelper;
    $this->wrapper = $wrapper;
    $this->stylesRenderer = $stylesRenderer;
    $this->wp = $wp;
  }

  public function render(array $block, array $formSettings): string {
    $html = '';

    $html .= '<input type="submit" class="mailpoet_submit" ';

    $html .= 'value="' . $this->rendererHelper->getFieldLabel($block) . '" ';

    $html .= 'data-automation-id="subscribe-submit-button" ';

    if (isset($block['styles']['font_family'])) {
      $html .= "data-font-family='{$this->wp->escAttr($block['styles']['font_family'])}' " ;
    }

    $styles = $this->stylesRenderer->renderForButton($block['styles'] ?? [], $formSettings);

    if ($styles) {
      $html .= 'style="' . $this->wp->escAttr($styles) . '" ';
    }

    $html .= '/>';

    $html .= '<span class="mailpoet_form_loading"><span class="mailpoet_bounce1"></span><span class="mailpoet_bounce2"></span><span class="mailpoet_bounce3"></span></span>';

    return $this->wrapper->render($block, $html);
  }
}

Filemanager

Name Type Size Permission Actions
BlockRendererHelper.php File 6.65 KB 0644
Checkbox.php File 1.79 KB 0644
Column.php File 1.85 KB 0644
Columns.php File 1.81 KB 0644
Date.php File 7.46 KB 0644
Divider.php File 1.88 KB 0644
Heading.php File 2.85 KB 0644
Html.php File 928 B 0644
Image.php File 2.88 KB 0644
Paragraph.php File 2.54 KB 0644
Radio.php File 2.02 KB 0644
Segment.php File 2.45 KB 0644
Select.php File 2.67 KB 0644
Submit.php File 1.59 KB 0644
Text.php File 2.26 KB 0644
Textarea.php File 1.84 KB 0644
index.php File 0 B 0644