Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0d937ca2
Commit
0d937ca2
authored
Jan 14, 2017
by
Carsten Rose
Browse files
QuickFormQuery.php: Added config.qfq.ini values CSS_CLASS_QFQ_FORM_PILL, CSS_CLASS_QFQ_FORM_BODY
parent
8369257a
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/Constants.php
View file @
0d937ca2
...
...
@@ -293,6 +293,8 @@ const SYSTEM_SHOW_DEBUG_INFO = 'SHOW_DEBUG_INFO';
const
SYSTEM_CSS_LINK_CLASS_INTERNAL
=
'CSS_LINK_CLASS_INTERNAL'
;
const
SYSTEM_CSS_LINK_CLASS_EXTERNAL
=
'CSS_LINK_CLASS_EXTERNAL'
;
const
SYSTEM_CSS_CLASS_QFQ_CONTAINER
=
'CSS_CLASS_QFQ_CONTAINER'
;
const
SYSTEM_CSS_CLASS_QFQ_FORM_PILL
=
'CSS_CLASS_QFQ_FORM_PILL'
;
const
SYSTEM_CSS_CLASS_QFQ_FORM_BODY
=
'CSS_CLASS_QFQ_FORM_BODY'
;
// computed automatically during runtime
const
SYSTEM_PATH_EXT
=
'EXT_PATH'
;
...
...
extension/qfq/qfq/QuickFormQuery.php
View file @
0d937ca2
...
...
@@ -354,8 +354,15 @@ class QuickFormQuery {
Support
::
setIfNotSet
(
$this
->
formSpec
,
F_SUBMIT_BUTTON_TEXT
,
''
);
Support
::
setIfNotSet
(
$this
->
formSpec
,
F_CLASS_PILL
,
'qfq-color-grey-1'
);
Support
::
setIfNotSet
(
$this
->
formSpec
,
F_CLASS_BODY
,
'qfq-color-grey-2'
);
// Take default from config.ini
$class
=
$this
->
store
->
getVar
(
SYSTEM_CSS_CLASS_QFQ_FORM_PILL
,
STORE_SYSTEM
);
$class
=
$class
?
$class
:
'qfq-color-grey-1'
;
Support
::
setIfNotSet
(
$this
->
formSpec
,
F_CLASS_PILL
,
$class
);
// Take default from config.ini
$class
=
$this
->
store
->
getVar
(
SYSTEM_CSS_CLASS_QFQ_FORM_BODY
,
STORE_SYSTEM
);
$class
=
$class
?
$class
:
'qfq-color-grey-2'
;
Support
::
setIfNotSet
(
$this
->
formSpec
,
F_CLASS_BODY
,
$class
);
// Clear
$this
->
store
->
setVar
(
SYSTEM_FORM_ELEMENT
,
''
,
STORE_SYSTEM
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment