Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laniakea
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wordpress
Laniakea
Commits
acc5886f
Commit
acc5886f
authored
Apr 10, 2024
by
Simone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature link all per shortcode swiper
parent
f3224d00
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
swiper.controller.php
laniakea/core/shortcodes/controllers/swiper.controller.php
+2
-1
swiper.template.php
laniakea/core/shortcodes/templates/swiper.template.php
+9
-7
style.css
laniakea/style.css
+1
-1
style.min.css
laniakea/style.min.css
+0
-0
style.scss
laniakea/style.scss
+1
-1
No files found.
laniakea/core/shortcodes/controllers/swiper.controller.php
View file @
acc5886f
...
...
@@ -13,7 +13,8 @@ class SwiperController
'spacebetween'
=>
16
,
'centeredslides'
=>
true
,
'button_text'
=>
''
,
'button_color'
=>
'white'
'button_color'
=>
'white'
,
'link_all'
=>
'false'
]
];
}
...
...
laniakea/core/shortcodes/templates/swiper.template.php
View file @
acc5886f
...
...
@@ -30,9 +30,10 @@ if (!empty($this->atts['custom_post'])) {
$the_query
=
new
WP_Query
(
$args
);
if
(
$this
->
atts
[
'gruppo'
])
{
$term
=
get_term_by
(
'slug'
,
$this
->
atts
[
'gruppo'
],
'swiper_group'
);
$term
=
get_term_by
(
'slug'
,
$this
->
atts
[
'gruppo'
],
'swiper_group'
);
$term_meta
=
get_option
(
"taxonomy_term_
$term->term_id
"
);
$swiper_json
=
wp_unslash
(
$term_meta
[
"swiper_group_json"
]);
}
if
(
$the_query
->
have_posts
())
:
?>
...
...
@@ -50,7 +51,8 @@ if ($the_query->have_posts()) : ?>
<?php
echo
$this
->
atts
[
'button_text'
]
?>
</a>
</div>
<?php
else
:
?>
<?php
endif
;
?>
<?php
if
(
empty
(
$this
->
atts
[
'button_text'
])
||
$this
->
atts
[
'link_all'
]
==
'true'
)
:
?>
<a
class=
"card__link"
href=
"
<?php
echo
$link
;
?>
"
></a>
<?php
endif
;
?>
<div
class=
"card__inner"
>
...
...
@@ -60,11 +62,11 @@ if ($the_query->have_posts()) : ?>
<div
class=
"card_caption"
>
<?php
the_title
()
?>
</div>
<?php
if
(
$post_type
==
'laniakea_swiper'
)
:
?>
<?php
if
(
$post_type
==
'laniakea_swiper'
)
:
?>
<div
class=
"card_content"
>
<?php
the_content
()
?>
</div>
<?php endif;?>
<?php
endif
;
?>
</div>
</div>
</div>
...
...
@@ -98,9 +100,9 @@ if ($the_query->have_posts()) : ?>
{
speed: 400,
slidesPerView: 1,
spaceBetween
:
"
.
$this->atts
['spacebetween'].
"
,
loop
:
"
.
$this->atts
['loop'].
"
,
initialSlide
:
"
.
$this->atts
['initialslide'].
"
,
spaceBetween: "
.
$this
->
atts
[
'spacebetween'
]
.
",
loop: "
.
$this
->
atts
[
'loop'
]
.
",
initialSlide: "
.
$this
->
atts
[
'initialslide'
]
.
" ,
centeredSlides: false,
centerInsufficientSlides: false,
scrollbar: {
...
...
laniakea/style.css
View file @
acc5886f
...
...
@@ -863,7 +863,7 @@ main {
.swiper
.card
.vc_btn3-container
{
position
:
absolute
;
z-index
:
2
;
z-index
:
3
;
margin
:
0
;
}
...
...
laniakea/style.min.css
View file @
acc5886f
This diff is collapsed.
Click to expand it.
laniakea/style.scss
View file @
acc5886f
...
...
@@ -187,7 +187,7 @@ main {
.swiper
.card
.vc_btn3-container
{
position
:
absolute
;
z-index
:
2
;
z-index
:
3
;
margin
:
0
;
}
...
...
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