feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -246,9 +246,9 @@ if (!function_exists('aksrt_resource_pay_type_badge')) {
|
||||
$badges = [
|
||||
'reading' => ['label' => __('付费阅读', 'aksrt'), 'color' => '#EF4444', 'icon' => 'fa-lock'],
|
||||
'download'=> ['label' => __('付费下载', 'aksrt'), 'color' => '#F97316', 'icon' => 'fa-download'],
|
||||
'gallery' => ['label' => __('付费图库', 'aksrt'), 'color' => '#10B981', 'icon' => 'fa-images'],
|
||||
'gallery' => ['label' => __('付费图库', 'aksrt'), 'color' => '#10B981', 'icon' => 'fa-image'],
|
||||
'video' => ['label' => __('付费视频', 'aksrt'), 'color' => '#8B5CF6', 'icon' => 'fa-play-circle'],
|
||||
'vip' => ['label' => __('VIP 专属', 'aksrt'), 'color' => '#3B82F6', 'icon' => 'fa-crown'],
|
||||
'vip' => ['label' => __('VIP 专属', 'aksrt'), 'color' => '#3B82F6', 'icon' => 'fa-certificate'],
|
||||
];
|
||||
|
||||
if ($pay_type === 'download' || !isset($badges[$pay_type])) {
|
||||
@@ -257,7 +257,7 @@ if (!function_exists('aksrt_resource_pay_type_badge')) {
|
||||
|
||||
$b = $badges[$pay_type];
|
||||
return sprintf(
|
||||
'<span class="resource-pay-type-badge" style="background:%s"><i class="fas %s"></i> %s</span>',
|
||||
'<span class="resource-pay-type-badge" style="background:%s"><i class="fa %s"></i> %s</span>',
|
||||
esc_attr($b['color']),
|
||||
esc_attr($b['icon']),
|
||||
esc_html($b['label'])
|
||||
@@ -549,14 +549,14 @@ if (!function_exists('aksrt_resource_meta_icon')) {
|
||||
*/
|
||||
function aksrt_resource_meta_icon(string $field): string {
|
||||
$icons = [
|
||||
'version' => 'fas fa-code-branch',
|
||||
'size' => 'fas fa-hdd',
|
||||
'compat' => 'fas fa-laptop',
|
||||
'license' => 'fas fa-shield-alt',
|
||||
'demo_url' => 'fas fa-external-link-alt',
|
||||
'download' => 'fas fa-download',
|
||||
'views' => 'fas fa-eye',
|
||||
'version' => 'fa fas fa-code-branch',
|
||||
'size' => 'fa fas fa-hdd',
|
||||
'compat' => 'fa fas fa-laptop',
|
||||
'license' => 'fa fas fa-shield-alt',
|
||||
'demo_url' => 'fa fas fa-external-link-alt',
|
||||
'download' => 'fa fas fa-download',
|
||||
'views' => 'fa fas fa-eye',
|
||||
];
|
||||
return $icons[$field] ?? 'fas fa-info-circle';
|
||||
return $icons[$field] ?? 'fa fas fa-info-circle';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user