shitty shorttags

This commit is contained in:
Claude 2012-04-13 16:20:30 +02:00
parent 4f5ff6064a
commit 277431fa99
7 changed files with 49 additions and 49 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <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;"/> <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<title>Stikked - iPhone</title> <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> </head>
<body> <body>
<div id="container"> <div id="container">
@ -15,9 +15,9 @@
<div class="toolbar"> <div class="toolbar">
<ul> <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. ?> <?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> </ul>
</div> </div>
</div> </div>
</div> </div>
<div class="content"> <div class="content">

View File

@ -4,25 +4,25 @@
return ($num%2) ? TRUE : FALSE; return ($num%2) ? TRUE : FALSE;
}?> }?>
<ul class="recent"> <ul class="recent">
<? foreach($pastes as $paste) { <?php foreach($pastes as $paste) {
if(checkNum($paste['id']) == TRUE) { if(checkNum($paste['id']) == TRUE) {
$eo = "even"; $eo = "even";
} else { } else {
$eo = "odd"; $eo = "odd";
} }
?> ?>
<li class="<?=$eo?>"> <li class="<?php echo $eo; ?>">
<span class="title"><a href="<?=base_url()?>iphone/view/<?=$paste['pid']?>"><?=$paste['title']?></a></span> <span class="title"><a href="<?php echo base_url(); ?>iphone/view/<?php echo $paste['pid']; ?>"><?php echo $paste['title']; ?></a></span>
<span class="author"><?=$paste['name']?></span> <span class="author"><?php echo $paste['name']; ?></span>
</li> </li>
<? }?> <?php }?>
<?=$pages?> <?php echo $pages; ?>
</ul> </ul>
<? } else { ?> <?php } else { ?>
<p>Sorry no pastes to show :)</p> <p>Sorry no pastes to show :)</p>
<? }?> <?php }?>
<?php $this->load->view('iphone/footer.php'); ?> <?php $this->load->view('iphone/footer.php'); ?>

View File

@ -1,11 +1,11 @@
<?php $this->load->view('iphone/header'); ?> <?php $this->load->view('iphone/header'); ?>
<div class="info"> <div class="info">
<h1 class="pagetitle"><?=$title?></h1> <h1 class="pagetitle"><?php echo $title; ?></h1>
<div class="meta"> <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> </div>
<div class="text_formatted"> <div class="text_formatted">
<?=$paste?> <?php echo =$paste; ?>
</div> </div>
<?php $this->load->view('iphone/footer'); ?> <?php $this->load->view('iphone/footer'); ?>

View File

@ -16,7 +16,7 @@
<th class="lang">Language</th> <th class="lang">Language</th>
<th class="time">When</th> <th class="time">When</th>
</tr> </tr>
<? foreach($pastes as $paste) { <?php foreach($pastes as $paste) {
if(checkNum($n) == TRUE) { if(checkNum($n) == TRUE) {
$eo = "even"; $eo = "even";
} else { } else {
@ -25,19 +25,19 @@
$n++; $n++;
?> ?>
<tr class="<?=$eo?>"> <tr class="<?php echo $eo; ?>">
<td class="first"><a href="<?=site_url("view/".$paste['pid'])?>"><?=$paste['title']?></a></td> <td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td>
<td><?=$paste['name']?></td> <td><?php echo $paste['name']; ?></td>
<td><?=$paste['lang']?></td> <td><?php echo $paste['lang']; ?></td>
<td><? $p = explode(",", timespan($paste['created'], time())); echo $p[0];?> ago.</td> <td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> ago.</td>
</tr> </tr>
<? }?> <?php }?>
</tbody> </tbody>
</table> </table>
<?} else { ?> <?php } else { ?>
<p>There have been no pastes :(</p> <p>There have been no pastes :(</p>
<? }?> <?php }?>
<?=$pages?> <?php echo $pages; ?>
<div class="spacer"></div> <div class="spacer"></div>
<?php $this->load->view('defaults/footer');?> <?php $this->load->view('defaults/footer');?>

View File

@ -4,12 +4,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php echo $this->config->item('site_name');?></title> <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" /> <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 if(!empty($scripts)){ ?>
<?php foreach($scripts as $script){?> <?php foreach($scripts as $script){ ?>
<script src="<?=base_url()?>static/js/<?=$script?>" type="text/javascript"></script> <script src="<?php echo base_url(); ?>static/js/<?php echo $script; ?>" type="text/javascript"></script>
<?}}?> <?php }} ?>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
@ -17,17 +17,17 @@
echo $insert; echo $insert;
}?> }?>
<h1><?=$title?></h1> <h1><?php echo $title?></h1>
<?php if(!$this->db_session->userdata("view_raw")){?> <?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 { ?> <?php } else { ?>
<a href="<?=base_url()?>">Go Home</a> <a href="<?php echo base_url()?>">Go Home</a>
<?php }?> <?php }?>
&mdash; <a href="<?=site_url("view/options")?>">Change Paste Viewing Options</a> &mdash; <a href="<?php echo site_url("view/options")?>">Change Paste Viewing Options</a>
<pre> <pre>
<?=$raw?> <?php echo $raw?>
</pre> </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> </div>
<?php $this->load->view('defaults/stats'); ?> <?php $this->load->view('defaults/stats'); ?>
</body> </body>

View File

@ -19,20 +19,20 @@
<div class="paste_info"> <div class="paste_info">
<div class="info"> <div class="info">
<h1 class="pagetitle right"><?=$title?></h1> <h1 class="pagetitle right"><?php echo $title; ?></h1>
<div class="meta"> <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 }?> <?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="<?=$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)){?> <?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 }?> <?php }?>
<div class="spacer"></div> <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> &mdash; <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> &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>
</div> </div>
</div> </div>
</div> </div>
@ -44,7 +44,7 @@
<div class="paste <?php if($full_width){ echo "full"; }?>"> <div class="paste <?php if($full_width){ echo "full"; }?>">
<div class="text_formatted <?php if($full_width){ echo "full"; }?>"> <div class="text_formatted <?php if($full_width){ echo "full"; }?>">
<div class="container"> <div class="container">
<?=$paste?> <?php echo $paste; ?>
</div> </div>
</div> </div>
</div> </div>
@ -82,10 +82,10 @@
$n++; $n++;
?> ?>
<tr class="<?=$eo?>"> <tr class="<?php echo $eo; ?>">
<td class="first"><a href="<?=site_url("view/".$reply['pid'])?>"><?=$reply['title']?></a></td> <td class="first"><a href="<?php echo site_url("view/".$reply['pid']); ?>"><?php echo $reply['title']; ?></a></td>
<td><?=$reply['name']?></td> <td><?php echo $reply['name']; ?></td>
<td><? $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> ago.</td> <td><?php $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> ago.</td>
</tr> </tr>
<?php }?> <?php }?>

View File

@ -1,7 +1,7 @@
<?php $this->load->view("defaults/header"); ?> <?php $this->load->view("defaults/header"); ?>
<div class="form_wrapper margin full"> <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> <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> <p class="explain border">Here you can change your preferences for viewing pastes. Requires cookies to be enabled.</p>