bydomino
Forum Replies Created
-
Hey anyone home?? what is up with this error?
Here is the code from line 25 in register.php
Please repair this and create new version or let mken o if this is a setting somewherethanks
foreach ( $attr as $att ) {
// Prepare values (used only for selects)
$values = array();
// Parse options for select field
if ( $att[‘type’] === ‘select’ ) foreach ( (array) explode( “\n”, $att[‘options’] ) as $option ) {
if ( strpos( $option, ‘|’ ) === false ) $option = array( $option, $option );
else $option = explode( ‘|’, $option );
$values[sanitize_html_class( $option[0] )] = sanitize_text_field( $option[1] );
}
// Replace number with slider
if ( $att[‘type’] === ‘number’ ) $att[‘type’] = ‘slider’;
// Insert attribute
$atts[$att[‘slug’]] = array(
‘type’ => $att[‘type’],
‘default’ => ( isset( $att[‘default’] ) ) ? $att[‘default’] : ”,
‘name’ => ( !empty( $att[‘name’] ) ) ? $att[‘name’] : $att[‘slug’],
‘desc’ => ( !empty( $att[‘desc’] ) ) ? $att[‘desc’] : ”,
‘min’ => ( isset( $att[‘min’] ) ) ? $att[‘min’] : 0,
‘max’ => ( isset( $att[‘max’] ) ) ? $att[‘max’] : 100,
‘step’ => ( isset( $att[‘step’] ) ) ? $att[‘step’] : 1,
‘values’ => $values
);
}