|
|
|
@ -21,73 +21,25 @@ add_action('customize_register', function (\WP_Customize_Manager $wp_customize)
|
|
|
|
|
'slug' => 'primary', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Primary Color', 'aldine'), |
|
|
|
|
'description' => __('Used for primary elements.', 'aldine'), |
|
|
|
|
'description' => __('Primary color, used for links and other primary elements.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'accent', |
|
|
|
|
'hex' => '#015d75', |
|
|
|
|
'label' => __('Accent Color', 'aldine'), |
|
|
|
|
'description' => __('Used for accents.', 'aldine'), |
|
|
|
|
'description' => __('Accent color, used for flourishes and secondary elements.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'link', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Link Color', 'aldine'), |
|
|
|
|
'description' => __('Used for links.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'header_link', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Header Link Color', 'aldine'), |
|
|
|
|
'description' => __('Used for links in the header.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'block_border', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Block Border Color', 'aldine'), |
|
|
|
|
'description' => __('Used for home button block border.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'fg', |
|
|
|
|
'hex' => '#ffffff', |
|
|
|
|
'label' => __('Foreground Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the foreground text of colored blocks.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'bg', |
|
|
|
|
'hex' => '#015d75', |
|
|
|
|
'label' => __('Background Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the background of colored blocks.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'btn_text', |
|
|
|
|
'slug' => 'primary_fg', |
|
|
|
|
'hex' => '#ffffff', |
|
|
|
|
'label' => __('Button Text Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the foreground text of buttons.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'btn_active_text', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Button Active Text Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the foreground text of active buttons.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'btn_bg', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Button Background Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the background of buttons.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'btn_inverse_text', |
|
|
|
|
'hex' => '#b01109', |
|
|
|
|
'label' => __('Inverse Button Text Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the foreground text of buttons.', 'aldine'), |
|
|
|
|
'label' => __('Primary Foreground Color', 'aldine'), |
|
|
|
|
'description' => __('Used for text on a primary background.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
'slug' => 'btn_inverse_active_text', |
|
|
|
|
'slug' => 'accent_fg', |
|
|
|
|
'hex' => '#ffffff', |
|
|
|
|
'label' => __('Inverse Button Active Text Color', 'aldine'), |
|
|
|
|
'description' => __('Used for the background of buttons.', 'aldine'), |
|
|
|
|
'label' => __('Accent Foreground Color', 'aldine'), |
|
|
|
|
'description' => __('Used for text on an accent color background.', 'aldine'), |
|
|
|
|
], |
|
|
|
|
] as $color) { |
|
|
|
|
$wp_customize->add_setting("pb_network_color_{$color['slug']}", [ |
|
|
|
|