icon-select.php (1561B)
1 <?php 2 /** 3 * Redux Pro Icon Select Sample config. 4 * For full documentation, please visit: http:https://devs.redux.io/ 5 * 6 * @package Redux Pro 7 */ 8 9 defined( 'ABSPATH' ) || exit; 10 11 require_once Redux_Pro::$dir . 'core/inc/extensions/icon_select/font-awesome-5-free.php'; 12 13 Redux::setSection( 14 $opt_name, 15 array( 16 'title' => esc_html__( 'Icon Select', 'your-textdomain-here' ), 17 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/icon-select.html" target="_blank">https://devs.redux.io/premium/icon-select.html</a>', 18 'subsection' => true, 19 'fields' => array( 20 array( 21 'id' => 'icon_select_field', 22 'type' => 'icon_select', 23 'title' => esc_html__( 'Icon Select', 'your-textdomain-here' ), 24 'subtitle' => esc_html__( 'Select an icon.', 'your-textdomain-here' ), 25 'default' => '', 26 'options' => redux_icon_select_fa_5_free(), 27 28 // Disable auto-enqueue of stylesheet if present in the panel. 29 'enqueue' => true, 30 31 // Disable auto-enqueue of stylesheet on the front-end. 32 'enqueue_frontend' => false, 33 'stylesheet' => 'https://use.fontawesome.com/releases/v5.15.3/css/all.css', 34 35 // If needed to initialize the icon. 36 'prefix' => 'fa', 37 38 // How each icons begins for this given font. 39 'selector' => 'fa-', 40 41 // Change the height of the container. defaults to 300px; . 42 'height' => 300, 43 ), 44 ), 45 ) 46 );