embed_field

This commit is contained in:
Claude 2012-05-01 18:34:50 +02:00
parent e9e271e585
commit d6bddf36a4
2 changed files with 6 additions and 2 deletions

View File

@ -12,11 +12,10 @@
<?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?></span><?php }?> <?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?></span><?php }?>
<div class="spacer"></div> <div class="spacer"></div>
<span class="detail"><span class="item">URL </span><a href="<?php echo $url; ?>"><?php echo $url; ?></a></span> <span class="detail"><span class="item">URL </span><a href="<?php echo $url; ?>"><?php echo $url; ?></a></span>
<?php if(!empty($snipurl)){?> <?php if(!empty($snipurl)){?>
<span class="detail"><span class="item">Shorturl </span><a href="<?php echo $snipurl; ?>"><?php echo htmlspecialchars($snipurl) ?></a></span> <span class="detail"><span class="item">Shorturl </span><a href="<?php echo $snipurl; ?>"><?php echo htmlspecialchars($snipurl) ?></a></span>
<?php }?> <?php }?>
<span class="detail"><span class="item">Embed </span><input id="embed_field" type="text" value="<?php echo htmlspecialchars('<iframe src="http://pastebin.com/embed_iframe.php?i=B8rZ4zEW" style="border:none;width:100%"></iframe>'); ?>" /></span>
<div class="spacer"></div> <div class="spacer"></div>
<span class="detail"><a class="control" href="<?php echo site_url("view/download/".$pid); ?>">Download Paste</a> or <a class="control" href="<?php echo site_url("view/raw/".$pid); ?>">View Raw</a> &mdash; <a href="#" class="expand control">Expand paste</a> to full width of browser | <a href="<?php echo site_url('view/options'); ?>">Change Viewing Options</a></span> <span class="detail"><a class="control" href="<?php echo site_url("view/download/".$pid); ?>">Download Paste</a> or <a class="control" href="<?php echo site_url("view/raw/".$pid); ?>">View Raw</a> &mdash; <a href="#" class="expand control">Expand paste</a> to full width of browser | <a href="<?php echo site_url('view/options'); ?>">Change Viewing Options</a></span>

View File

@ -360,6 +360,11 @@ h4 {
float: left; float: left;
} }
#embed_field {
width: 200px;
border: 1px solid #ccc;
}
.paste { .paste {
margin: 0 auto; margin: 0 auto;
width: 900px; width: 900px;