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
25b7afc1
Commit
25b7afc1
authored
Oct 13, 2018
by
Martin Lees
Browse files
Removed some useless divs
parent
3cdf97c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/class-steempress_sp-public.php
View file @
25b7afc1
...
...
@@ -116,24 +116,20 @@ class Steempress_sp_Public {
$permlink
=
get_post_meta
(
$id
,
"steempress_sp_permlink"
);
$tag
=
get_post_meta
(
$id
,
"steempress_sp_tag"
);
$data
=
""
;
if
(
sizeof
(
$username
)
==
1
and
sizeof
(
$permlink
)
==
1
and
sizeof
(
$tag
)
==
1
)
{
$username
=
$username
[
0
];
$permlink
=
$permlink
[
0
];
$tag
=
$tag
[
0
];
$data
=
"<div name=
\"
steempress_sp_username
\"
style=
\"
display: none;
\"
>"
.
$username
.
"</div>"
;
$data
.
=
"<div name=
\"
steempress_sp_permlink
\"
style=
\"
display: none;
\"
>"
.
$permlink
.
"</div>"
;
$data
.
=
"<div name=
\"
steempress_sp_tag
\"
style=
\"
display: none;
\"
>"
.
$tag
.
"</div>"
;
// If it's the front page, we display a smaller iframe.
if
(
is_front_page
())
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=false
\"
style=
\"
border: 0; width: 100%; height:
83
px;
\"
></iframe>"
;
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=false
\"
style=
\"
border: 0; width: 100%; height:
150
px;
\"
></iframe>"
;
else
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=true
\"
style=
\"
border: 0; width: 100%; height:
5
00px
\"
></iframe>"
;
$steempress
=
"<iframe src=
\"
http://localhost:8002/?tag="
.
$tag
.
"&author="
.
$username
.
"&permlink="
.
$permlink
.
"&display_comment=true
\"
style=
\"
border: 0; width: 100%; height:
8
00px
\"
></iframe>"
;
}
return
$content
.
$data
.
$steempress
;
return
$content
.
$steempress
;
}
else
return
$content
;
...
...
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