1
0
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:
Cameron
2019-12-02 13:32:21 -08:00
parent e1504b91c0
commit 5cf54d07d2
11 changed files with 80 additions and 3 deletions

View File

@@ -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";
}
}