Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
frente-brasil-popular
Comite Nacional Lula Livre
Commits
1f76c475
Commit
1f76c475
authored
5 years ago
by
Henrique Marques
Browse files
Options
Download
Plain Diff
Merge branch 'develop'
parents
dbd15152
1aeee53a
master
develop
downloadbutton
feature/header_footer_image_change
v1.10.2
v1.10.1
v1.10.0
v1.9.0
v1.8.0
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.3
v1.6.2
v1.6.1
v1.6.0
v1.5.7
v1.5.6
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.9
v1.4.8
v1.4.7
v1.4.6
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.4.0
v1.3.1
v1.3.0
No related merge requests found
Pipeline
#7539
passed with stages
in 1 minute and 57 seconds
Changes
7
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
187 additions
and
22 deletions
+187
-22
themes/comite-nacional-lula-livre/assets/javascript/app.js
themes/comite-nacional-lula-livre/assets/javascript/app.js
+8
-0
themes/comite-nacional-lula-livre/assets/scss/3--components/_c-featured-card.scss
...ula-livre/assets/scss/3--components/_c-featured-card.scss
+49
-0
themes/comite-nacional-lula-livre/assets/scss/foundation.scss
...es/comite-nacional-lula-livre/assets/scss/foundation.scss
+13
-0
themes/comite-nacional-lula-livre/dist/app.css
themes/comite-nacional-lula-livre/dist/app.css
+84
-0
themes/comite-nacional-lula-livre/dist/app.js
themes/comite-nacional-lula-livre/dist/app.js
+8
-0
themes/comite-nacional-lula-livre/library/metaboxes.php
themes/comite-nacional-lula-livre/library/metaboxes.php
+8
-13
themes/comite-nacional-lula-livre/template-parts/featured-card.php
...mite-nacional-lula-livre/template-parts/featured-card.php
+17
-9
No files found.
themes/comite-nacional-lula-livre/assets/javascript/app.js
View file @
1f76c475
...
...
@@ -77,6 +77,14 @@ jQuery(document).ready(function(){
jQuery
(
'
#modal-art,#modal-art-wrapper
'
).
css
({
'
display
'
:
'
none
'
});
});
$
(
'
.featured-card .play-button
'
).
click
(
function
(){
let
$parent
=
$
(
this
).
parents
(
'
.featured-card
'
);
let
$iframe
=
$parent
.
find
(
'
iframe
'
);
$parent
.
addClass
(
'
play
'
);
$iframe
.
attr
(
'
src
'
,
$iframe
.
attr
(
'
src
'
)
+
'
&autoplay=1
'
);
})
});
window
.
downloadFile
=
function
(
sUrl
)
{
...
...
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/assets/scss/3--components/_c-featured-card.scss
View file @
1f76c475
...
...
@@ -10,6 +10,27 @@
}
&
.has-image
{
.play-button
{
font-size
:
60px
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
font-size
:
100px
;
color
:
white
;
transform
:
translate
(
-50%
,
-50%
);
cursor
:
pointer
;
}
.iframe-wrapper
{
opacity
:
0
;
transition
:
all
.6s
;
top
:
0px
;
@include
mobile
{
display
:
none
;
}
@include
desktop
{
position
:
absolute
;
}
}
@include
desktop
{
.featured-card--infos
{
max-width
:
50%
;
...
...
@@ -23,10 +44,38 @@
top
:
50%
;
transform
:
translateY
(
-50%
);
right
:
0
;
transition
:
all
.6s
;
}
}
&
.play
{
.play-button
{
display
:
none
;
}
.iframe-wrapper
{
opacity
:
1
;
z-index
:
100
;
@include
mobile
{
display
:
block
;
}
}
@include
desktop
{
.featured-card--image
{
max-width
:
53%
;
}
}
.featured-card--image
img
{
opacity
:
0
;
}
@include
mobile
{
.featured-card--image
img
{
position
:
absolute
;
}
}
}
}
&
.has-embed
{
.play-button
{
display
:
block
;
}
@include
mobile
{
.featured-card--image
{
position
:
relative
;
}
}
}
&
--title
{
font-family
:
Oswald
;
...
...
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/assets/scss/foundation.scss
View file @
1f76c475
...
...
@@ -143,4 +143,17 @@ body{
flex
:
0
0
100%
;
max-width
:
100%
;
}
}
.iframe-wrapper
{
padding-top
:
56%
;
width
:
100%
;
position
:
relative
;
iframe
{
position
:
absolute
;
top
:
0
;
width
:
100%
;
height
:
100%
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/dist/app.css
View file @
1f76c475
...
...
@@ -9051,6 +9051,35 @@ body .em-calendar td ul li a {
}
}
.featured-card.has-image
.play-button
{
font-size
:
60px
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
font-size
:
100px
;
color
:
white
;
transform
:
translate
(
-50%
,
-50%
);
cursor
:
pointer
;
}
.featured-card.has-image
.iframe-wrapper
{
opacity
:
0
;
transition
:
all
.6s
;
top
:
0px
;
}
@media
(
max-width
:
767px
)
{
.featured-card.has-image
.iframe-wrapper
{
display
:
none
;
}
}
@media
(
min-width
:
1025px
)
{
.featured-card.has-image
.iframe-wrapper
{
position
:
absolute
;
}
}
@media
(
min-width
:
1025px
)
{
.featured-card.has-image
.featured-card--infos
{
max-width
:
50%
;
...
...
@@ -9063,6 +9092,48 @@ body .em-calendar td ul li a {
top
:
50%
;
transform
:
translateY
(
-50%
);
right
:
0
;
transition
:
all
.6s
;
}
}
.featured-card.has-image.play
.play-button
{
display
:
none
;
}
.featured-card.has-image.play
.iframe-wrapper
{
opacity
:
1
;
z-index
:
100
;
}
@media
(
max-width
:
767px
)
{
.featured-card.has-image.play
.iframe-wrapper
{
display
:
block
;
}
}
@media
(
min-width
:
1025px
)
{
.featured-card.has-image.play
.featured-card--image
{
max-width
:
53%
;
}
}
.featured-card.has-image.play
.featured-card--image
img
{
opacity
:
0
;
}
@media
(
max-width
:
767px
)
{
.featured-card.has-image.play
.featured-card--image
img
{
position
:
absolute
;
}
}
.featured-card.has-embed
.play-button
{
display
:
block
;
}
@media
(
max-width
:
767px
)
{
.featured-card.has-embed
.featured-card--image
{
position
:
relative
;
}
}
...
...
@@ -10278,3 +10349,16 @@ body {
max-width
:
100%
;
}
}
.iframe-wrapper
{
padding-top
:
56%
;
width
:
100%
;
position
:
relative
;
}
.iframe-wrapper
iframe
{
position
:
absolute
;
top
:
0
;
width
:
100%
;
height
:
100%
;
}
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/dist/app.js
View file @
1f76c475
...
...
@@ -11483,6 +11483,14 @@ jQuery(document).ready(function () {
$('#modal-art .close-button').click(function (e) {
jQuery('#modal-art,#modal-art-wrapper').css({ 'display': 'none' });
});
$('.featured-card .play-button').click(function () {
var $parent = $(this).parents('.featured-card');
var $iframe = $parent.find('iframe');
$parent.addClass('play');
$iframe.attr('src', $iframe.attr('src') + '&autoplay=1');
});
});
window.downloadFile = function (sUrl) {
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/library/metaboxes.php
View file @
1f76c475
...
...
@@ -27,24 +27,19 @@ add_action('cmb2_admin_init', function() {
));
$cmb_
arte
=
new_cmb2_box
(
array
(
'id'
=>
'
arte
_metabox'
,
'title'
=>
"Opções d
a arte
"
,
'object_types'
=>
array
(
'
arte
'
),
//
arte
type
$cmb_
post
=
new_cmb2_box
(
array
(
'id'
=>
'
post
_metabox'
,
'title'
=>
"Opções d
o post
"
,
'object_types'
=>
array
(
'
post
'
),
//
post
type
'context'
=>
'normal'
,
'priority'
=>
'high'
,
'show_names'
=>
true
,
));
$cmb_arte
->
add_field
(
array
(
'name'
=>
'Tipo de Arte'
,
'id'
=>
'arte_tipo'
,
'type'
=>
'radio_inline'
,
'options'
=>
[
'video'
=>
"Vídeo"
,
'audio'
=>
"Áudio"
,
'texto'
=>
"Texto"
,
]
$cmb_post
->
add_field
(
array
(
'name'
=>
'Vídeo embed'
,
'id'
=>
'post_video'
,
'type'
=>
'oembed'
,
));
// $cmb_post = new_cmb2_box(array(
...
...
This diff is collapsed.
Click to expand it.
themes/comite-nacional-lula-livre/template-parts/featured-card.php
View file @
1f76c475
<div
class=
"featured-card
<?=
has_post_thumbnail
()
?
'has-image'
:
''
?>
"
>
<?php
$embed_url
=
wp_oembed_get
(
esc_url
(
get_post_meta
(
get_the_ID
(),
'post_video'
,
true
)));
?>
<div
class=
"featured-card
<?=
(
has_post_thumbnail
()
?
'has-image '
:
' '
)
.
(
!
empty
(
$embed_url
)
?
'has-embed'
:
''
)
?>
"
>
<div
class=
"featured-card--infos"
>
<small
class=
"featured-card--category"
>
<?php
the_category
(
', '
)
?>
//
<?php
the_date
(
'd.m.Y'
)
?>
// por
<?php
the_meta_author
()
?>
</small>
<a
href=
"
<?php
the_permalink
()
?>
"
>
<h2
class=
"featured-card--title"
>
<?php
the_title
()
?>
</h2>
<div
class=
"featured-card--excerpt"
>
<?php
the_excerpt
()
?>
</div>
</a>
<div
class=
"featured-card--infos"
>
<small
class=
"featured-card--category"
>
<?php
the_category
(
', '
)
?>
//
<?php
the_date
(
'd.m.Y'
)
?>
// por
<?php
the_meta_author
()
?>
</small>
<a
href=
"
<?php
the_permalink
()
?>
"
>
<h2
class=
"featured-card--title"
>
<?php
the_title
()
?>
</h2>
<div
class=
"featured-card--excerpt"
>
<?php
the_excerpt
()
?>
</div>
</a>
<a
href=
"
<?php
the_permalink
()
?>
"
class=
"button outline"
>
Leia na Íntegra
</a>
</div>
<a
href=
"
<?php
the_permalink
()
?>
"
class=
"button outline"
>
Leia na Íntegra
</a>
</div>
<div
class=
"featured-card--image"
>
<div
class=
"iframe-wrapper"
>
<?=
$embed_url
?>
</div>
<i
class=
"fa fa-play-circle play-button"
></i>
<img
src=
"
<?=
images\url
(
'full'
);
?>
"
alt=
""
>
</div>
...
...
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