wysiwyg block
This commit is contained in:
@@ -33,12 +33,6 @@ class Dynamic
|
||||
$field['choices'][$slug] = '<i class="fas fa-circle" style="color: '. $hex .'"></i> ' . @$NameThatColour->name($hex)['name'];
|
||||
endforeach;
|
||||
|
||||
$field['choices']['quaternary-white'] = '<i class="fas fa-circle text-gradient text-gradient-quaternary-white"></i> ' . @$NameThatColour->name($colour->name2hex('quaternary'))['name'] . ' to White';
|
||||
$field['choices']['quinary-white'] = '<i class="fas fa-circle text-gradient text-gradient-quinary-white"></i> ' . @$NameThatColour->name($colour->name2hex('quinary'))['name'] . ' to White';
|
||||
|
||||
$field['choices']['white-quaternary'] = '<i class="fas fa-circle text-gradient text-gradient-white-quaternary"></i> White to ' . @$NameThatColour->name($colour->name2hex('quaternary'))['name'];
|
||||
$field['choices']['white-quinary'] = '<i class="fas fa-circle text-gradient text-gradient-white-quinary"></i> White to ' . @$NameThatColour->name($colour->name2hex('quinary'))['name'];
|
||||
|
||||
return $field;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\PostTypes;
|
||||
|
||||
class Driver
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
add_action('init', [$this, 'register']);
|
||||
}
|
||||
|
||||
public function register()
|
||||
{
|
||||
$td = 'sage';
|
||||
$postType = 'driver';
|
||||
|
||||
register_extended_post_type(
|
||||
$postType,
|
||||
[
|
||||
'labels' => [
|
||||
'featured_image' => __('Portrait', $td),
|
||||
],
|
||||
'menu_position' => 40,
|
||||
'supports' => [
|
||||
'title',
|
||||
'excerpt',
|
||||
'thumbnail',
|
||||
'page-attributes',
|
||||
],
|
||||
'menu_icon' => 'dashicons-car',
|
||||
'rewrite' => false,
|
||||
'has_archive' => false,
|
||||
'publicly_queryable' => false,
|
||||
'exclude_from_search' => true,
|
||||
'capability_type' => 'page',
|
||||
'show_in_nav_menus' => false,
|
||||
'admin_cols' => [
|
||||
'credentials' =>[
|
||||
'title' => __('Credentials', $td),
|
||||
'meta_key' => 'badegg_driver_credentials',
|
||||
],
|
||||
'driver_category' => [
|
||||
'title' => __('Category', $td),
|
||||
'taxonomy' => 'driver_category',
|
||||
],
|
||||
'portrait' => [
|
||||
'title' => __('Portrait', $td),
|
||||
'featured_image' => 'thumbnail',
|
||||
'width' => 48,
|
||||
// 'height' => 48,
|
||||
],
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
register_extended_taxonomy(
|
||||
'driver_category',
|
||||
$postType,
|
||||
[
|
||||
// 'meta_box' => 'radio',
|
||||
'rewrite' => false,
|
||||
'publicly_queryable' => false,
|
||||
'show_in_nav_menus' => false,
|
||||
],
|
||||
[
|
||||
'singular' => __('Category', $td),
|
||||
'plural' => __('Categories', $td),
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user