For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
$days = array(JHTML::_('select.option', '', $params->get('[COLOR=Red]birthday__daylabel[/COLOR]', JText::_('Day'))));
for ($i=1; $i < 32; $i++) {
$days[] = JHTML::_('select.option', $i);
}
$months = array(JHTML::_('select.option', '', $params->get('[COLOR=Red]birthday_monthlabel[/COLOR]', JText::_('MONTH'))));
//siin oli enne $monthlabels, viisin ?lespoole
for ($i=0; $i<count($monthlabels); $i++) {
$months[] = JHTML::_('select.option', $i+1, $monthlabels[$i]);
}
$years = array(JHTML::_('select.option', '', $params->get([COLOR=Red]'birthday_yearlabel[/COLOR]', JText::_('YEAR'))));
$date = date('Y');
$firstYear = (int)$params->get('[COLOR=Red]birthday_numyears[/COLOR]', 110);
<field name="birthday_separatorlabel" type="text" default="please select" label="PLG_ELEMENT_BIRTHDAY_SEPARATOR_LABEL" description="PLG_ELEMENT_BIRTHDAY_SEPARATOR_DESC" />
PLG_ELEMENT_BIRTHDAY_SEPARATOR_DESC="Select what you would like to use as a separator on the front end"
PLG_ELEMENT_BIRTHDAY_SEPARATOR_LABEL="Separator please select separator value"
$str[] = ' / '.JHTML::_('select.genericlist', $months, preg_replace('#(\[\])$#','[1]',$name), $attribs, 'value', 'text', $monthvalue);
$str[] = ' / '.JHTML::_('select.genericlist', $years, preg_replace('#(\[\])$#','[2]',$name), $attribs, 'value', 'text', $yearvalue);
$str[] = ' .$params->get('birthday_separatorlabel', JText::_('/')). '.JHTML::_('select.genericlist', $months, preg_replace('#(\[\])$#','[1]',$name), $attribs, 'value', 'text', $monthvalue);
$str[] = ' .$params->get('birthday_separatorlabel', JText::_('/')) .'.JHTML::_('select.genericlist', $years, preg_replace('#(\[\])$#','[2]',$name), $attribs, 'value', 'text', $yearvalue);
JText::_('/')
$str[] = $params->get('birthday_separatorlabel', JText::_('/')) . ' ' .JHTML::_('select.genericlist', $months, preg_replace('#(\[\])$#','[1]',$name), $attribs, 'value', 'text', $monthvalue);
$days = array(JHTML::_('select.option', '', $params->get('birthday_daylabel', JText::_('DAY'))));