File: D:/HostingSpaces/SBogers10/kms.komma.pro/wwwroot/lib/form/types/field_type_text.class.php
<?php
/**
* field_type_text.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 13/12/13
*/
class Field_Type_Text extends Form_Field
{
public function __construct()
{
parent::__construct();
}
/*
* Create output
* @return string
*/
public function generate()
{
$output = '';
$output .= '<div class="input_holder">
<label for="title">' . $this->label . '</label>
<input type="text" name="' . $this->name . '" id="' . $this->name . '" data-label="' . $this->placeholder . '" value="' . $this->value .'" />
<span class="placeholder">' . $this->placeholder . '</span>
</div>';
return $output;
}
}