mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
shitty shorttags
This commit is contained in:
parent
4f5ff6064a
commit
277431fa99
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
|
||||
<title>Stikked - iPhone</title>
|
||||
<link rel="stylesheet" href="<?=base_url()?>static/styles/iphone.css" type="text/css" media="screen" title="iphone stylesheet" charset="utf-8" />
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>static/styles/iphone.css" type="text/css" media="screen" title="iphone stylesheet" charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
@ -15,9 +15,9 @@
|
||||
<div class="toolbar">
|
||||
<ul>
|
||||
<?php $page = $this->uri->segment(2); // There is currently only one link so the active link may seem pointless but this future proofs it. ?>
|
||||
<li class="<?if($page =="" || $page == "view"){?>active<?}?>"><a href="<?=base_url()?>iphone">View</a></li>
|
||||
<li class="<?if($page =="" || $page == "view"){?>active<?php } ?>"><a href="<?php echo base_url()?>iphone">View</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content">
|
||||
|
@ -4,25 +4,25 @@
|
||||
return ($num%2) ? TRUE : FALSE;
|
||||
}?>
|
||||
<ul class="recent">
|
||||
<? foreach($pastes as $paste) {
|
||||
<?php foreach($pastes as $paste) {
|
||||
if(checkNum($paste['id']) == TRUE) {
|
||||
$eo = "even";
|
||||
} else {
|
||||
$eo = "odd";
|
||||
}
|
||||
?>
|
||||
<li class="<?=$eo?>">
|
||||
<span class="title"><a href="<?=base_url()?>iphone/view/<?=$paste['pid']?>"><?=$paste['title']?></a></span>
|
||||
<span class="author"><?=$paste['name']?></span>
|
||||
<li class="<?php echo $eo; ?>">
|
||||
<span class="title"><a href="<?php echo base_url(); ?>iphone/view/<?php echo $paste['pid']; ?>"><?php echo $paste['title']; ?></a></span>
|
||||
<span class="author"><?php echo $paste['name']; ?></span>
|
||||
</li>
|
||||
<? }?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?=$pages?>
|
||||
<?php echo $pages; ?>
|
||||
</ul>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<p>Sorry no pastes to show :)</p>
|
||||
<? }?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?php $this->load->view('iphone/footer.php'); ?>
|
||||
<?php $this->load->view('iphone/footer.php'); ?>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php $this->load->view('iphone/header'); ?>
|
||||
<div class="info">
|
||||
<h1 class="pagetitle"><?=$title?></h1>
|
||||
<h1 class="pagetitle"><?php echo $title; ?></h1>
|
||||
<div class="meta">
|
||||
<p><strong>By</strong> <?=$name?>, <? $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?=$lang?>.</p>
|
||||
<p><strong>By</strong> <?php echo =$name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]; ?> ago, written in <?php echo =$lang; ?>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text_formatted">
|
||||
<?=$paste?>
|
||||
<?php echo =$paste; ?>
|
||||
</div>
|
||||
<?php $this->load->view('iphone/footer'); ?>
|
||||
<?php $this->load->view('iphone/footer'); ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<th class="lang">Language</th>
|
||||
<th class="time">When</th>
|
||||
</tr>
|
||||
<? foreach($pastes as $paste) {
|
||||
<?php foreach($pastes as $paste) {
|
||||
if(checkNum($n) == TRUE) {
|
||||
$eo = "even";
|
||||
} else {
|
||||
@ -25,19 +25,19 @@
|
||||
$n++;
|
||||
?>
|
||||
|
||||
<tr class="<?=$eo?>">
|
||||
<td class="first"><a href="<?=site_url("view/".$paste['pid'])?>"><?=$paste['title']?></a></td>
|
||||
<td><?=$paste['name']?></td>
|
||||
<td><?=$paste['lang']?></td>
|
||||
<td><? $p = explode(",", timespan($paste['created'], time())); echo $p[0];?> ago.</td>
|
||||
<tr class="<?php echo $eo; ?>">
|
||||
<td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td>
|
||||
<td><?php echo $paste['name']; ?></td>
|
||||
<td><?php echo $paste['lang']; ?></td>
|
||||
<td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> ago.</td>
|
||||
</tr>
|
||||
|
||||
<? }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?} else { ?>
|
||||
<?php } else { ?>
|
||||
<p>There have been no pastes :(</p>
|
||||
<? }?>
|
||||
<?=$pages?>
|
||||
<?php }?>
|
||||
<?php echo $pages; ?>
|
||||
<div class="spacer"></div>
|
||||
<?php $this->load->view('defaults/footer');?>
|
||||
|
@ -4,12 +4,12 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $this->config->item('site_name');?></title>
|
||||
<link rel="stylesheet" href="<?=base_url()?>static/styles/raw.css" type="text/css" media="screen" title="raw stylesheet" charset="utf-8" />
|
||||
<?php if(!empty($scripts)){?>
|
||||
<?php foreach($scripts as $script){?>
|
||||
<script src="<?=base_url()?>static/js/<?=$script?>" type="text/javascript"></script>
|
||||
<?}}?>
|
||||
<title><?php echo $this->config->item('site_name'); ?></title>
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>static/styles/raw.css" type="text/css" media="screen" title="raw stylesheet" charset="utf-8" />
|
||||
<?php if(!empty($scripts)){ ?>
|
||||
<?php foreach($scripts as $script){ ?>
|
||||
<script src="<?php echo base_url(); ?>static/js/<?php echo $script; ?>" type="text/javascript"></script>
|
||||
<?php }} ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
@ -17,17 +17,17 @@
|
||||
echo $insert;
|
||||
}?>
|
||||
|
||||
<h1><?=$title?></h1>
|
||||
<h1><?php echo $title?></h1>
|
||||
<?php if(!$this->db_session->userdata("view_raw")){?>
|
||||
<a href="<?=site_url("view/".$pid)?>">Go Back</a>
|
||||
<a href="<?php echo site_url("view/".$pid)?>">Go Back</a>
|
||||
<?php } else { ?>
|
||||
<a href="<?=base_url()?>">Go Home</a>
|
||||
<a href="<?php echo base_url()?>">Go Home</a>
|
||||
<?php }?>
|
||||
— <a href="<?=site_url("view/options")?>">Change Paste Viewing Options</a>
|
||||
— <a href="<?php echo site_url("view/options")?>">Change Paste Viewing Options</a>
|
||||
<pre>
|
||||
<?=$raw?>
|
||||
<?php echo $raw?>
|
||||
</pre>
|
||||
<?php if(!$this->db_session->userdata("view_raw")){?><a href="<?=site_url("view/".$pid)?>">Go Back</a><?php } else { ?><a href="<?=base_url()?>">Go Home</a><?php }?>
|
||||
<?php if(!$this->db_session->userdata("view_raw")){?><a href="<?php echo site_url("view/".$pid)?>">Go Back</a><?php } else { ?><a href="<?php echo base_url()?>">Go Home</a><?php }?>
|
||||
</div>
|
||||
<?php $this->load->view('defaults/stats'); ?>
|
||||
</body>
|
||||
|
@ -19,20 +19,20 @@
|
||||
|
||||
<div class="paste_info">
|
||||
<div class="info">
|
||||
<h1 class="pagetitle right"><?=$title?></h1>
|
||||
<h1 class="pagetitle right"><?php echo $title; ?></h1>
|
||||
<div class="meta">
|
||||
<span class="detail by">By <?=$name?>, <? $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?=$lang?>.</span>
|
||||
<span class="detail by">By <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?php echo $lang; ?>.</span>
|
||||
<?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>
|
||||
<span class="detail"><span class="item">URL </span><a href="<?=$url?>"><?=$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)){?>
|
||||
<span class="detail"><span class="item">Snipurl </span><a href="<?=$snipurl?>"><?php echo htmlspecialchars($snipurl) ?></a></span>
|
||||
<span class="detail"><span class="item">Snipurl </span><a href="<?php echo $snipurl; ?>"><?php echo htmlspecialchars($snipurl) ?></a></span>
|
||||
<?php }?>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
<span class="detail"><a class="control" href="<?=site_url("view/download/".$pid)?>">Download Paste</a> or <a class="control" href="<?=site_url("view/raw/".$pid)?>">View Raw</a> — <a href="#" class="expand control">Expand paste</a> to full width of browser | <a href="<?=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> — <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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,7 +44,7 @@
|
||||
<div class="paste <?php if($full_width){ echo "full"; }?>">
|
||||
<div class="text_formatted <?php if($full_width){ echo "full"; }?>">
|
||||
<div class="container">
|
||||
<?=$paste?>
|
||||
<?php echo $paste; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -82,10 +82,10 @@
|
||||
$n++;
|
||||
?>
|
||||
|
||||
<tr class="<?=$eo?>">
|
||||
<td class="first"><a href="<?=site_url("view/".$reply['pid'])?>"><?=$reply['title']?></a></td>
|
||||
<td><?=$reply['name']?></td>
|
||||
<td><? $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> ago.</td>
|
||||
<tr class="<?php echo $eo; ?>">
|
||||
<td class="first"><a href="<?php echo site_url("view/".$reply['pid']); ?>"><?php echo $reply['title']; ?></a></td>
|
||||
<td><?php echo $reply['name']; ?></td>
|
||||
<td><?php $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> ago.</td>
|
||||
</tr>
|
||||
|
||||
<?php }?>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php $this->load->view("defaults/header"); ?>
|
||||
|
||||
<div class="form_wrapper margin full">
|
||||
<form action="<?=site_url("view/options")?>" method="post">
|
||||
<form action="<?php echo site_url("view/options"); ?>" method="post">
|
||||
|
||||
<h1>Change paste viewing options</h1>
|
||||
<p class="explain border">Here you can change your preferences for viewing pastes. Requires cookies to be enabled.</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user