Commit a3523540 authored by Martin Lees's avatar Martin Lees
Browse files

Updated to be easily moved by themes

parent 25b7afc1
......@@ -123,11 +123,13 @@ class Steempress_sp_Public {
$tag = $tag[0];
// If it's the front page, we display a smaller iframe.
$steempress = "<div id='steempress_sp_comment_feed'>";
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: 150px;\"></iframe>";
$steempress .= "<iframe id='steempress_sp_embed' src=\"http://localhost:8002/?tag=".$tag."&author=".$username."&permlink=".$permlink."&display_comment=false\" style=\"border: 0; width: 100%; height: 150px;\"></iframe>";
else
$steempress = "<iframe src=\"http://localhost:8002/?tag=".$tag."&author=".$username."&permlink=".$permlink."&display_comment=true\" style=\"border: 0; width: 100%; height: 800px\"></iframe>";
$steempress .= "<iframe id='steempress_sp_embed' src=\"http://localhost:8002/?tag=".$tag."&author=".$username."&permlink=".$permlink."&display_comment=true\" style=\"border: 0; width: 100%; height: 800px\"></iframe>";
$steempress .= "</div>";
}
return $content . $steempress;
} else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment