<?php
/**
* Font Awesome
*
* @package Bootscore
* @version 6.5.0
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
/*
* Simple shortcode for inserting Font Awesome icons on Gutenberg level
* (instead of heaving to insert HTML code into a block on HTML editing mode)
*/
function bsfaCode($atts) {
$atts = (array) $atts;
$vstr = "";
foreach ($atts as $value) {
$vstr .= " " . sanitize_html_class($value);
}
return '<i class="' . esc_attr(trim($vstr)) . '"></i>';
}
add_shortcode('bsfa', 'bsfaCode');
/**
* Add fa-width-auto class to body
* This reduces the left/right padding on icons and makes buttons narrower.
*
* @link https://docs.fontawesome.com/web/style/icon-canvas
*
* Use filter to disable it
* add_filter( 'bootscore/class/fa_width_auto', '__return_false' );
*/
function bootscore_fa_auto_width( $classes ) {
if ( apply_filters( 'bootscore/class/fa_width_auto', true ) ) {
$classes[] = 'fa-width-auto';
}
return $classes;
}
add_filter( 'body_class', 'bootscore_fa_auto_width' );
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| blocks/ | 2026-11-26 08:19 | 19.5 KB | 76129f60960:kunden | dxwrx-rx-r | |
| scssphp/ | 2026-11-26 08:19 | 549.31 KB | 76129f60960:kunden | dxwrx-rx-r | |
| update/ | 2026-11-26 08:19 | 380.49 KB | 76129f60960:kunden | dxwrx-rx-r | |
| updater/ | 2026-11-26 08:19 | 25.44 KB | 76129f60960:kunden | dxwrx-rx-r | |
| breadcrumb.php | 2026-11-26 08:19 | 6.2 KB | 76129f60960:kunden | -xw-x--x-- | |
| columns.php | 2026-11-26 08:19 | 703 B | 76129f60960:kunden | -xw-x--x-- | |
| comments.php | 2026-11-26 08:19 | 5.27 KB | 76129f60960:kunden | -xw-x--x-- | |
| deprecated.php | 2026-11-26 08:19 | 132 B | 76129f60960:kunden | -xw-x--x-- | |
| enable-html.php | 2026-11-26 08:19 | 642 B | 76129f60960:kunden | -xw-x--x-- | |
| enqueue.php | 2026-11-26 08:19 | 3.59 KB | 76129f60960:kunden | -xw-x--x-- | |
| excerpt.php | 2026-11-26 08:19 | 200 B | 76129f60960:kunden | -xw-x--x-- | |
| fontawesome.php | 2026-11-26 08:19 | 1.02 KB | 76129f60960:kunden | -xw-x--x-- | |
| jetpack.php | 2026-11-26 08:19 | 1.47 KB | 76129f60960:kunden | -xw-x--x-- | |
| navmenu.php | 2026-11-26 08:19 | 681 B | 76129f60960:kunden | -xw-x--x-- | |
| navwalker.php | 2026-11-26 08:19 | 6.97 KB | 76129f60960:kunden | -xw-x--x-- | |
| pagination.php | 2026-11-26 08:19 | 3.01 KB | 76129f60960:kunden | -xw-x--x-- | |
| password-protected-form.php | 2026-11-26 08:19 | 864 B | 76129f60960:kunden | -xw-x--x-- | |
| scss-compiler.php | 2026-11-26 08:19 | 7.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| template-functions.php | 2026-11-26 08:19 | 1005 B | 76129f60960:kunden | -xw-x--x-- | |
| template-tags.php | 2026-11-26 08:19 | 8.87 KB | 76129f60960:kunden | -xw-x--x-- | |
| theme-setup.php | 2026-11-26 08:19 | 2.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| tinymce-editor.php | 2026-11-26 08:19 | 841 B | 76129f60960:kunden | -xw-x--x-- | |
| widgets.php | 2026-11-26 08:19 | 5.97 KB | 76129f60960:kunden | -xw-x--x-- | |