fixin iphone bugs

This commit is contained in:
Claude 2012-04-15 16:45:55 +02:00
parent 96afe55b84
commit b118422050
3 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@ class Iphone extends CI_Controller
function __construct() function __construct()
{ {
parent::__construct(); parent::__construct();
$this->load->model('languages');
} }
function index() function index()

View File

@ -15,7 +15,7 @@
<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<?php } ?>"><a href="<?php echo base_url()?>iphone">View</a></li> <li class="<?php if($page =="" || $page == "view"){?>active<?php } ?>"><a href="<?php echo base_url(); ?>iphone">View</a></li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -2,10 +2,10 @@
<div class="info"> <div class="info">
<h1 class="pagetitle"><?php echo $title; ?></h1> <h1 class="pagetitle"><?php echo $title; ?></h1>
<div class="meta"> <div class="meta">
<p><strong>By</strong> <?php echo =$name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]; ?> ago, written in <?php echo =$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">
<?php echo =$paste; ?> <?php echo $paste; ?>
</div> </div>
<?php $this->load->view('iphone/footer'); ?> <?php $this->load->view('iphone/footer'); ?>