<?php 
// if( class_exists('bbPress') ):
$edumodo_primary_color = get_theme_mod('primary_color');
$edumodo_theme_secondary_color = get_theme_mod('secondary_color');
$bbpress_body_typo = get_theme_mod( 'body_typo', [] );
$bbpress_heading_all_typo = get_theme_mod( 'headings_all', [] );

$edumodo_primarycolor__color_selector_for_forum = [
	'body.buddyboss.single-item.groups #buddypress #bbpress-forums .bbp-topics .bbp-body ul.topic:hover a,body.bbpress .bbpress-sidebar-wrapper .bbp_widget_login .bbp-submit-wrapper button[type="submit"]:hover,body.bbpress .bbpress-sidebar-wrapper .widget ul li:hover a, body.bbpress .bbpress-sidebar-wrapper .widget ol li:hover a,body.bbpress .bbpress-sidebar-wrapper .widget a:hover,.bbp-user-page.single #bbpress-forums #bbp-user-wrapper #bbp-single-user-details #bbp-user-navigation li.current a, .bbp-user-edit.single #bbpress-forums #bbp-user-wrapper #bbp-single-user-details #bbp-user-navigation li.current a,.bbpress #bbpress-forums .bbp-forums .bbp-body ul.forum:hover a, .bbpress #bbpress-forums .bbp-forums .bbp-body ul.topic:hover a, .bbpress #bbpress-forums .bbp-topics .bbp-body ul.forum:hover a, .bbpress #bbpress-forums .bbp-topics .bbp-body ul.topic:hover a, .bbpress #bbpress-forums .bbp-replies .bbp-body ul.forum:hover a, .bbpress #bbpress-forums .bbp-replies .bbp-body ul.topic:hover a,.bbpress #bbpress-forums .bbp-topic-tags a:hover,.bbpress #bbpress-forums .bbp-template-notice li a:hover,.bbpress #bbpress-forums .bbp-template-notice li:hover a,.bbpress #bbpress-forums a:hover,.bbpress #bbpress-forums .bbp-breadcrumb a:hover,.bbpress #bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-current '
];
$edumodo_primarycolor__background_color_selector_for_forum = [
	'.bbp-user-edit.single #bbpress-forums #bbp-your-profile .user-submit,.bbpress #bbpress-forums .bbp-topic-form form .bbp-submit-wrapper button, .bbpress #bbpress-forums .bbp-reply-form form .bbp-submit-wrapper button, .bbpress #bbpress-forums .bbp-no-reply form .bbp-submit-wrapper button, .bbpress #bbpress-forums .bbp-no-topic form .bbp-submit-wrapper button,.bbpress #bbpress-forums #subscription-toggle a.favorite-toggle, .bbpress #bbpress-forums #favorite-toggle a.subscription-toggle, .bbpress #bbpress-forums #favorite-toggle a.favorite-toggle,.bbpress #bbpress-forums .bbp-pagination .bbp-pagination-links .current'
];
$edumodo_primarycolor__border_color_selector_for_forum = [
	'.bbpress #bbpress-forums .bbp-forums .bbp-body div.topic, .bbpress #bbpress-forums .bbp-topics .bbp-body div.topic, .bbpress #bbpress-forums .bbp-replies .bbp-body div.topic'
];
$edumodo_bbpress__font_family_selector = [
	'body #bbpress', 
];
$edumodo_bbpress__heading_font_family_selector = [
	'.bbpress #bbpress-forums .bbp-body .bbp-forum-info a,
	.bbpress #bbpress-forums .bbp-forums .bbp-body ul.forum .bbp-forum-freshness .bbp-author-name,
	.groups-header .moderators-lists .moderators-title', 
];
$edumodo_bbpress__heading_font_weight_selector = [
	'.bbpress #bbpress-forums .bbp-body .bbp-forum-info a,
	.bbpress #bbpress-forums .bbp-forums .bbp-body ul.forum .bbp-forum-freshness .bbp-author-name', 
];

?>
<style id="edumodo-forum-style">
	<?php 
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__color_selector_for_forum), 'color', $edumodo_primary_color);
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__background_color_selector_for_forum), 'background-color', $edumodo_primary_color);
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__border_color_selector_for_forum), 'border-color', $edumodo_primary_color);

        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_bbpress__font_family_selector), 'font-family', $bbpress_body_typo ? $bbpress_body_typo['font-family'] : 'inherit');
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_bbpress__heading_font_family_selector), 'font-family', $bbpress_heading_all_typo ? $bbpress_heading_all_typo['font-family'] : 'inherit');
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_bbpress__heading_font_weight_selector), 'font-weight', $bbpress_heading_all_typo ? $bbpress_heading_all_typo['font-weight'] : 'inherit');
	?>
</style>
<?php
// endif;
?>