Skip to content

Commit a23740f

Browse files
committed
Add ForumPostsCSS style option.
1 parent 52992cf commit a23740f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ function (App\Request $request) use ($app, $context, $forumPagesPathPrefix) {
184184

185185
Internal\Themes::$elementsOptions['forumPosts'] = function ($options, $idPrefix, $parentSelector, $context, $details) {
186186
$groupForumPosts = $options->addGroup(__("bearcms.themes.options.Forum posts"));
187+
$groupForumPosts->addOption($idPrefix . "ForumPostsCSS", "css", '', [
188+
"cssTypes" => ["cssPadding", "cssBorder", "cssRadius", "cssShadow", "cssBackground"],
189+
"cssOptions" => array_diff(isset($details['cssOptions']) ? $details['cssOptions'] : [], ["*/focusState"]), // all but focus state
190+
"cssOutput" => [
191+
["selector", $parentSelector . " .bearcms-forum-posts-element"]
192+
]
193+
]);
187194

188195
$groupForumPostsPost = $groupForumPosts->addGroup(__("bearcms.themes.options.forumPosts.Post"));
189196
$groupForumPostsPost->addOption($idPrefix . "ForumPostsPostCSS", "css", '', [

0 commit comments

Comments
 (0)