示例#1
0
文件: pb.php 项目: Makenrro/repos
function cws_pb_print_fa_select($all = false)
{
    //require_once( get_template_directory() . '/framework/rc/inc/fields/select/fa-icons.php');
    $output = '<option value=""></option>';
    //$icons = $all ? get_all_fa_icons() : get_font_fa_icons();
    if (function_exists('get_all_fa_icons')) {
        $icons = get_all_fa_icons();
        foreach ($icons as $icon) {
            $output .= '<option value="' . $icon . '">' . $icon . '</option>';
        }
    }
    return $output;
}
示例#2
0
function cws_print_fa_select($fa_selected = '')
{
    $output = '<option value=""></option>';
    $icons = get_all_fa_icons();
    foreach ($icons as $icon) {
        $selected = $icon == $fa_selected ? ' selected="selected"' : '';
        $output .= '<option value="' . $icon . '"' . $selected . '>' . $icon . '</option>';
    }
    return $output;
}
示例#3
0
function cws_print_fa_select($fa_selected = '', $all = false)
{
    require_once ReduxFramework::$_dir . '/inc/fields/select/fa-icons.php';
    $output = '<option value=""></option>';
    if ($all) {
        $icons = get_all_fa_icons();
    } else {
        $icons = get_font_fa_icons();
    }
    foreach ($icons as $icon) {
        $selected = $icon == $fa_selected ? ' selected="selected"' : '';
        $output .= '<option value="' . $icon . '"' . $selected . '>' . $icon . '</option>';
    }
    return $output;
}