Allow text as textarea in custom fields
Allow text as textarea in custom fields
This commit is contained in:
parent
7830891ded
commit
13d8225d58
1 changed files with 27 additions and 2 deletions
|
@ -293,6 +293,15 @@ echo Bootstrap::formOpen(array(
|
||||||
'checked'=>(isset($options['checked'])?true:false),
|
'checked'=>(isset($options['checked'])?true:false),
|
||||||
'labelForCheckbox'=>(isset($options['tip'])?$options['tip']:'')
|
'labelForCheckbox'=>(isset($options['tip'])?$options['tip']:'')
|
||||||
));
|
));
|
||||||
|
} elseif ($options['type']=="text") {
|
||||||
|
echo Bootstrap::formTextareaBlock(array(
|
||||||
|
'name'=>'custom['.$field.']',
|
||||||
|
'value'=>(isset($options['default'])?$options['default']:''),
|
||||||
|
'tip'=>(isset($options['tip'])?$options['tip']:''),
|
||||||
|
'label'=>(isset($options['label'])?$options['label']:''),
|
||||||
|
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
||||||
|
'rows' => '4'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -357,7 +366,6 @@ echo Bootstrap::formOpen(array(
|
||||||
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
||||||
'class'=>'mb-2',
|
'class'=>'mb-2',
|
||||||
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
||||||
|
|
||||||
));
|
));
|
||||||
} elseif ($options['type']=="bool") {
|
} elseif ($options['type']=="bool") {
|
||||||
echo Bootstrap::formCheckbox(array(
|
echo Bootstrap::formCheckbox(array(
|
||||||
|
@ -369,6 +377,15 @@ echo Bootstrap::formOpen(array(
|
||||||
'class'=>'mb-2',
|
'class'=>'mb-2',
|
||||||
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
||||||
));
|
));
|
||||||
|
} elseif ($options['type']=="text") {
|
||||||
|
echo Bootstrap::formTextareaBlock(array(
|
||||||
|
'name'=>'custom['.$field.']',
|
||||||
|
'value'=>(isset($options['default'])?$options['default']:''),
|
||||||
|
'tip'=>(isset($options['tip'])?$options['tip']:''),
|
||||||
|
'label'=>(isset($options['label'])?$options['label']:''),
|
||||||
|
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
||||||
|
'rows' => '4'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -397,7 +414,6 @@ echo Bootstrap::formOpen(array(
|
||||||
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
||||||
'class'=>'mt-2',
|
'class'=>'mt-2',
|
||||||
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
||||||
|
|
||||||
));
|
));
|
||||||
} elseif ($options['type']=="bool") {
|
} elseif ($options['type']=="bool") {
|
||||||
echo Bootstrap::formCheckbox(array(
|
echo Bootstrap::formCheckbox(array(
|
||||||
|
@ -409,6 +425,15 @@ echo Bootstrap::formOpen(array(
|
||||||
'class'=>'mt-2',
|
'class'=>'mt-2',
|
||||||
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
|
||||||
));
|
));
|
||||||
|
} elseif ($options['type']=="text") {
|
||||||
|
echo Bootstrap::formTextareaBlock(array(
|
||||||
|
'name'=>'custom['.$field.']',
|
||||||
|
'value'=>(isset($options['default'])?$options['default']:''),
|
||||||
|
'tip'=>(isset($options['tip'])?$options['tip']:''),
|
||||||
|
'label'=>(isset($options['label'])?$options['label']:''),
|
||||||
|
'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''),
|
||||||
|
'rows' => '4'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue