Beispiel #1
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;
}
Beispiel #2
0
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();
    foreach ($icons as $icon) {
        $output .= '<option value="' . $icon . '">' . $icon . '</option>';
    }
    return $output;
}