Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danny Froberg
steempress_amn
Commits
3cdf97c8
Commit
3cdf97c8
authored
Oct 10, 2018
by
Martin Lees
Browse files
Proper removal of the sandbox
parent
45260b34
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/class-steempress_sp-public.php
View file @
3cdf97c8
...
...
@@ -128,9 +128,9 @@ class Steempress_sp_Public {
$data
.
=
"<div name=
\"
steempress_sp_tag
\"
style=
\"
display: none;
\"
>"
.
$tag
.
"</div>"
;
if
(
is_front_page
())
$steempress
=
"<iframe
sandbox='allow-popups allow-scripts allow-same-origin '
src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=false
\"
style=
\"
border: 0; width: 100%; height: 83px;
\"
></iframe>"
;
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=false
\"
style=
\"
border: 0; width: 100%; height: 83px;
\"
></iframe>"
;
else
$steempress
=
"<iframe
sandbox='allow-popups allow-scripts allow-same-origin'
src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=true
\"
style=
\"
border: 0; width: 100%; height: 500px
\"
></iframe>"
;
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=true
\"
style=
\"
border: 0; width: 100%; height: 500px
\"
></iframe>"
;
}
return
$content
.
$data
.
$steempress
;
...
...
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