Displays a configurable colored tag cloud as a widget, or in your template, or both.
将可配置的彩色标签云显示为小部件或您的模板,或同时显示两者。 p>
Using in templates
使用模板 h3>
Use the function in your theme files if desired.
根据需要在主题文件中使用该功能。
It is always advisable to wrap
总是建议包装
the function call in an ‘if function_exists’ statement.
函数在“ if function_exists”语句中调用。 p>
Usage:
用法:
if ( function_exists( ‘ilwp_colored_tag_cloud’ )
如果(function_exists(‘ilwp_colored_tag_cloud’)
ilwp_colored_tag_cloud( $options = array() );
ilwp_colored_tag_cloud($ options = array()); p>
Available options, and their defaults:
可用选项及其默认值: p>
$default_colors = array( 'aqua', 'black', 'blue', 'fuchsia', $ default_colors = array('aqua','black','blue','紫红色, 'gray', 'green', 'lime', 'maroon',
'灰色','绿色','石灰','栗色',
'navy', 'olive', 'purple', 'red',
'海军','橄榄','紫色','红色',
'silver', 'teal', 'white', 'yellow');
“银”,“蓝绿色”,“白色”,“黄色”);
$default['min_size'] = 8;
$ default ['min_size'] = 8;
$default['max_size'] = 40;
$ default ['max_size'] = 40;
$default['number'] = 0;
$ default ['number'] = 0;
$default['use_colors'] = 1;
$ default ['use_colors'] = 1;
$default['use_color_names'] = 1;
$ default ['use_color_names'] = 1;
$default['sort'] = 'random';
$ default ['sort'] ='random';
$default['order'] = 'ASC';
$ default ['order'] ='ASC';
$default['color_names'] = $default_colors;
$ default ['color_names'] = $ default_colors;
code> pre>