';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '';
$html .= '
';
$html .= '';
$html .= '
'; //close col-lg-3
$html .= '
'; //close row
$html .= '
'; //close container-fluid
$html .= '
'; //close eltdf-section-content
$html .= ''; //close eltdf-page-form-section
echo wp_kses($html, array(
'input' => array(
'type' => true,
'id' => true,
'name' => true,
'value' => true,
'checked' => true,
'class' => true,
'disabled' => true
),
'div' => array(
'class' => true
),
'br' => true,
'label' => array(
'for'=>true
)
));
}
}
class CallaElatedFieldDate extends CallaElatedFieldType {
public function render( $name, $label="", $description="", $options = array(), $args = array(), $repeat = array() ) {
$col_width = 2;
if(isset($args["col_width"]))
$col_width = $args["col_width"];
$suffix = !empty($args['suffix']) ? $args['suffix'] : false;
$class = '';
$data_string = '';
if (!empty($repeat) && array_key_exists('name', $repeat) && array_key_exists('index', $repeat)) {
$id = $name . '-' . $repeat['index'];
$name = $repeat['name'] . '['.$repeat['index'].']['. $name .']';
$value = $repeat['value'];
} else {
$id = $name;
$value = calla_elated_option_get_value($name);
}
if($label === '' && $description === '') {
$class .= ' eltdf-no-description';
}
if(isset($args['custom_class']) && $args['custom_class'] != '') {
$class .= ' ' . $args['custom_class'];
}
if(isset($args['input-data']) && $args['input-data'] != '') {
foreach($args['input-data'] as $data_key => $data_value) {
$data_string .= $data_key . '=' . $data_value;
$data_string .= ' ';
}
}
?>