mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-09-21 05:49:32 +00:00
Fixes
This commit is contained in:
README.md
admin
class
fields
checkbox
code
date
doc_files
doc_from_rub
doc_from_rub_all
doc_from_rub_check
doc_from_rub_search
download
drop_down
drop_down_key
image_mega
image_multi
image_single
link
link_multi
multi_checkbox
multi_line
multi_line_simple
multi_line_slim
multi_links
multi_list
multi_list_single
multi_list_triple
multi_select
rubrics
single_line
single_line_numeric
single_line_numeric_three
single_line_numeric_two
tags
teasers
text_to_image
youtube
functions
func.common.phpfunc.documents.phpfunc.fields.phpfunc.parserequest.phpfunc.rubrics.phpfunc.sysblock.php
inc
index.php@@ -184,6 +184,28 @@ function get_field_multi_links($field_value, $action, $field_id=0, $tpl='', $tpl
|
||||
}
|
||||
break;
|
||||
|
||||
case 'api':
|
||||
if (empty($field_value))
|
||||
return $field_value;
|
||||
|
||||
$items = unserialize($field_value);
|
||||
|
||||
if ($items != false)
|
||||
{
|
||||
|
||||
foreach($items as $k => $v){
|
||||
$list_item = explode('|', $v);
|
||||
|
||||
$list[$k]['param'] = (isset($list_item[0])) ? htmlspecialchars_decode($list_item[0], ENT_QUOTES) : '';
|
||||
$list[$k]['value'] = (isset($list_item[1])) ? htmlspecialchars_decode($list_item[1], ENT_QUOTES) : '';
|
||||
}
|
||||
|
||||
$items = $list;
|
||||
}
|
||||
|
||||
return $items;
|
||||
break;
|
||||
|
||||
case 'name':
|
||||
return $AVE_Template->get_config_vars('name');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user