이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

CMB2 Field Type: Font Awesome

설명

Font Awesome icon selector for powerful custom metabox generator CMB2

You can use as field type in CMB2 function file. Add a new field, set type to faiconselect and add font awesome icons to options (look Usage for examples). Plugin uses jQuery Font Picker for creating a icon selector.

Sample Usage

Detailed instructions on Github

$cmb->add_field( array(
    'name' => __( 'Select Font Awesome Icon', 'cmb' ),
    'id'   => $prefix . 'iconselect',
    'desc' => 'Select Font Awesome icon',
    'type' => 'faiconselect',
    'options' => array(
    'fa fa-facebook' => 'fa fa-facebook',
    'fa fa-500px'    => 'fa fa-500px',
    'fa fa-twitter'  => 'fa fa-twitter'
    )
) );

Sample Usage With Font Awesome 5

$cmb->add_field( array(
    'name' => __( 'Select Font Awesome Icon', 'cmb' ),
    'id'   => $prefix . 'iconselect',
    'desc' => 'Select Font Awesome icon',
    'type' => 'faiconselect',
    'options' => array(
        'fab fa-facebook' => 'fa fa-facebook',
        'fab fa-500px'       => 'fa fa-500px',
        'fab fa-twitter'     => 'fa fa-twitter',
        'fas fa-address-book' => 'fas fa-address-book'
    ),
    'attributes' => array(
        'faver' => 5
    )
) );

스크린샷

  • Selector

설치

  1. Upload cmb2-field-type-font-awesome folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

후기

모든 1 평가 읽기

기여자 & 개발자

“CMB2 Field Type: Font Awesome”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “CMB2 Field Type: Font Awesome”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

Version 1.4

  • Composer Support Added

Version 1.3-beta

  • Test for Gutenberg
  • Font Awesome 5 support added
  • Code Fixes

Version 1.2

  • Version corrections and tests
  • fontawesome & mainjs definition fix

Version 1.1

  • Group Field Problem Solved
  • Icon Selector js updated to latest version

Version 1.0

  • Released