Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
iberculturaviva
iberculturaviva-mapas
Commits
3ede06f5
Commit
3ede06f5
authored
6 years ago
by
Leonardo Piccioni de Almeida
Browse files
Options
Download
Email Patches
Plain Diff
Hide fields: sexual orientation, state/department.
parent
d1c2fdc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
themes/IberCulturaViva/Theme.php
themes/IberCulturaViva/Theme.php
+2
-0
themes/IberCulturaViva/assets/css/sass/_hide-fields.scss
themes/IberCulturaViva/assets/css/sass/_hide-fields.scss
+6
-0
themes/IberCulturaViva/assets/css/sass/main.scss
themes/IberCulturaViva/assets/css/sass/main.scss
+2
-1
themes/IberCulturaViva/assets/js/hide-fields.js
themes/IberCulturaViva/assets/js/hide-fields.js
+8
-0
No files found.
themes/IberCulturaViva/Theme.php
View file @
3ede06f5
...
...
@@ -71,6 +71,8 @@ class Theme extends BaseV1\Theme{
$this
->
asset
(
'img/home--projects.jpg'
,
false
);
$this
->
asset
(
'img/home--spaces.jpg'
,
false
);
$this
->
enqueueScript
(
'app'
,
'hide-fields'
,
'js/hide-fields.js'
);
$this
->
jsObject
[
'assets'
][
'logo-instituicao'
]
=
$this
->
asset
(
'img/logo-instituicao.png'
,
false
);
}
...
...
This diff is collapsed.
Click to expand it.
themes/IberCulturaViva/assets/css/sass/_hide-fields.scss
0 → 100644
View file @
3ede06f5
// Hide sexual orientation
.ficha-spcultura
{
p
.privado
:nth-child
(
6
)
{
display
:
none
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
themes/IberCulturaViva/assets/css/sass/main.scss
View file @
3ede06f5
...
...
@@ -3,4 +3,5 @@
@import
"variables"
;
@import
"mixins"
;
@import
"../../../../BaseV1/assets/css/sass/main"
;
@import
"overrides"
;
\ No newline at end of file
@import
"overrides"
;
@import
"hide-fields"
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
themes/IberCulturaViva/assets/js/hide-fields.js
0 → 100644
View file @
3ede06f5
// Hide Brazilian states
window
.
setTimeout
(
function
()
{
document
.
querySelectorAll
(
'
p
'
).
forEach
(
function
(
p
)
{
if
(
p
.
querySelectorAll
(
'
#En_Estado
'
).
length
)
{
p
.
style
.
display
=
'
none
'
;
}
});
},
1000
);
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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