mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 15:31:41 +02:00
Basic per-item search engine robots handling added to News and Pages.
This commit is contained in:
@@ -3028,6 +3028,7 @@ class e_form
|
||||
{
|
||||
$name = (strpos($name, '[') === false) ? $name.'[]' : $name;
|
||||
if(!is_array($selected)) $selected = explode(",",$selected);
|
||||
|
||||
}
|
||||
|
||||
$text = $this->select_open($name, $options)."\n";
|
||||
@@ -3316,6 +3317,15 @@ var_dump($select_options);*/
|
||||
$opts['disabled'] = in_array($value, $options['optDisabled']);
|
||||
}
|
||||
|
||||
if(is_array($options['title']) && !empty($options['title'][$value]))
|
||||
{
|
||||
$opts['data-title'] = $options['title'][$value];
|
||||
}
|
||||
else
|
||||
{
|
||||
$opts['data-title'] = '';
|
||||
}
|
||||
|
||||
$text .= $this->option($label, $value, $sel, $opts)."\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user