Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeremy Groot
/
stellervista-Intranet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
76a3ec6a
authored
2023-03-06 14:22:06 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sss
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
8e2658be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
wp-content/themes/understrap-child/blocks/link-block/link-block.php
wp-content/themes/understrap-child/blocks/link-block/link-block.php
View file @
76a3ec6
...
...
@@ -17,6 +17,23 @@ $new_window="";
if
(
$fields
[
'new_window'
]){
$new_window
=
'target="_blank"'
;
}
$return
=
''
;
if
(
$fields
[
'modal'
]){
$new_window
=
'href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#Modal"'
;
$page_data
=
get_page_by_path
(
$fields
[
'link'
]
);
$return
.=
'<div class="modal fade" id="Modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="body-content">'
;
$return
.=
$page_data
->
post_content
;
$return
.=
'</div></div></div></div></div>'
;
echo
$return
;
}
switch
(
$style
){
case
'image'
:
?>
<a
class=
"block-link"
<?php
echo
$new_window
;
?>
href=
"
<?php
echo
$fields
[
'link'
];
?>
"
>
...
...
@@ -61,4 +78,6 @@ switch($style){
default
:
?>
<p>
Please select style.
</p>
<?php
};
\ No newline at end of file
<?php
};
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment