Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
186f29ca
Commit
186f29ca
authored
Dec 24, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-theme' into 'develop'
add new js code See merge request manzarH/dic-global-dev!40
parents
d089164b
46323165
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
14 deletions
+60
-14
custom.js
themes/custom/envigo/js/custom.js
+48
-0
views-view-unformatted--news--block.html.twig
themes/custom/envigo/templates/views/views-view-unformatted--news--block.html.twig
+12
-14
No files found.
themes/custom/envigo/js/custom.js
View file @
186f29ca
...
...
@@ -1875,6 +1875,54 @@
});
}
if
(
$
(
".b_slider_m_c_box"
).
length
)
{
$
(
".b_slider_m_c_box"
).
slick
({
dots
:
false
,
arrows
:
true
,
infinite
:
false
,
slidesToShow
:
4
,
slidesToScroll
:
4
,
nextArrow
:
'<button class="arrowSlider leftArrow"><i class="fa fa-chevron-left" aria-hidden="true"></i><button>'
,
prevArrow
:
'<button class="arrowSlider rightArrow"><i class="fa fa-chevron-right" aria-hidden="true"></i><button>'
,
responsive
:
[{
breakpoint
:
991
,
settings
:
{
arrows
:
true
,
slidesToShow
:
3
,
slidesToScroll
:
3
,
},
},
{
breakpoint
:
767
,
settings
:
"unslick"
},
],
});
//when the slick slide initializes we want to set all of our slides to the same height
$
(
".b_slider_m_c_box"
).
on
(
"setPosition"
,
function
()
{
jbResizeSlider
();
});
//we need to maintain a set height when a resize event occurs.
//Some events will through a resize trigger: $(window).trigger('resize');
$
(
window
).
on
(
"resize"
,
function
(
e
)
{
jbResizeSlider
();
});
//since multiple events can trigger a slider adjustment, we will control that adjustment here
function
jbResizeSlider
()
{
$slickSlider
=
$
(
".b_slider_m_c_box"
);
$slickSlider
.
find
(
".slick-slide"
).
height
(
"auto"
);
var
slickTrack
=
$slickSlider
.
find
(
".slick-track"
);
var
slickTrackHeight
=
$
(
slickTrack
).
height
();
$slickSlider
.
find
(
".slick-slide"
).
css
(
"height"
,
slickTrackHeight
+
"px"
);
}
}
$
(
".subheadings-list li a"
).
on
(
"click"
,
function
(
event
)
{
event
.
preventDefault
();
...
...
themes/custom/envigo/templates/views/views-view-unformatted--news--block.html.twig
View file @
186f29ca
...
...
@@ -19,6 +19,7 @@
#}
<div
class=
"container-fluid bg_l_gray spacerTB cs_bnmv cs_box_shadow"
>
<div
class=
"row"
>
<div
class=
"container"
>
...
...
@@ -27,50 +28,46 @@
<div
class=
"cs_w_b"
>
<h1
class=
"c_heading_b text-center"
>
DIC News
</h1>
<div
class=
"cs_slider_wp"
>
<div
class=
"cs_s_cb row cs_slider_dic_news_in
ner"
>
<div
class=
"cs_s_cb row cs_slider_contai
ner"
>
{%
for
row
in
rows
%}
<div
class=
"cs_item_b col-10 col-md-4"
>
<div
class=
"cs_inner_item"
>
<div
class=
"cs_containe_i_w"
>
<a
href=
"#"
class=
"cs_img_bc"
>
<span
class=
"cs_c1_m"
>
Management
&
IR
</span>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
</a>
<div
class=
"cs_text_cib"
>
<div
class=
"cs_wc_b"
>
<div
class=
"cs_iwcb"
>
<i
class=
"fa fa-clock-o"
aria-hidden=
"true"
></i>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_date }}'
]
}}
<i
class=
"fa fa-clock-o"
aria-hidden=
"true"
></i>
Oct. 28, 2020
</div>
<span>
TSE Filings
</span>
</div>
<h6
class=
"cs_hcwbm"
>
<a
href=
""
>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ title }}'
]
}}
</a>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ title }}'
]
}}
</h6>
<!-- <p>
DIC Corporation announced on August 29, 2019, that
it had resolved to acquire the shares and assets.
</p> -->
<p>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ body }}'
]
}}
</p>
</div>
</div>
</div>
</div>
{%
endfor
%}
</div>
</div>
<div
class=
"cs_btn_c_b"
>
<a
href=
""
>
View All
<i
class=
"fa fa-angle-right"
aria-hidden=
"true"
></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
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