diff --git a/src/assets/fonts/figtree.css b/src/assets/fonts/figtree.css new file mode 100644 index 0000000..10e3979 --- /dev/null +++ b/src/assets/fonts/figtree.css @@ -0,0 +1,11 @@ +/* + * figtree.css + * material-board + * + * Created by Fatih Balsoy on 11/30/24 + * Copyright © 2024 Fatih Balsoy. All rights reserved. + */ + + :root { + --font-type: 'Figtree' !important; +} \ No newline at end of file diff --git a/src/assets/fonts/outfit.css b/src/assets/fonts/outfit.css new file mode 100644 index 0000000..bf9ae7c --- /dev/null +++ b/src/assets/fonts/outfit.css @@ -0,0 +1,11 @@ +/* + * outfit.css + * material-board + * + * Created by Fatih Balsoy on 11/30/24 + * Copyright © 2024 Fatih Balsoy. All rights reserved. + */ + + :root { + --font-type: 'Outfit' !important; +} \ No newline at end of file diff --git a/src/material-board.php b/src/material-board.php index d91d7f6..eae40a8 100644 --- a/src/material-board.php +++ b/src/material-board.php @@ -89,7 +89,7 @@ function __construct() $this->settings_slug = $fbwpmdp_bundle; if (is_admin()) { if (!function_exists('get_plugin_data')) { - require_once (ABSPATH . 'wp-admin/includes/plugin.php'); + require_once(ABSPATH . 'wp-admin/includes/plugin.php'); } $plugin_data = get_plugin_data(__FILE__); $fbwpmdp_version = $plugin_data["Version"]; @@ -216,6 +216,12 @@ function fbwpmdp_enqueue_dark_theme() case 'dm-sans': wp_enqueue_style('dm-sans-font', plugins_url('assets/fonts/dm-sans.css', __FILE__)); break; + case 'figtree': + wp_enqueue_style('figtree-font', plugins_url('assets/fonts/figtree.css', __FILE__)); + break; + case 'outfit': + wp_enqueue_style('outfit-font', plugins_url('assets/fonts/outfit.css', __FILE__)); + break; case 'mona-sans': wp_enqueue_style('mona-sans-font', plugins_url('assets/fonts/mona-sans.css', __FILE__)); break; @@ -327,4 +333,4 @@ function fbwpmdp_is_gutenberg_editor() } } -$materialBoardPlugin = new MaterialBoardPlugin(); +$materialBoardPlugin = new MaterialBoardPlugin(); \ No newline at end of file diff --git a/src/settings/options/font.php b/src/settings/options/font.php index 0409a02..1b4b759 100644 --- a/src/settings/options/font.php +++ b/src/settings/options/font.php @@ -12,6 +12,8 @@