also applied the language configurability to the defaults of the bootstrap

theme
This commit is contained in:
Stephan Bergemann 2013-04-15 20:40:52 +02:00
parent 2d06b12030
commit 80fc7c5258
3 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,3 @@
<footer class="footer">
Powered By <a href="https://github.com/claudehohl/Stikked">Stikked</a>
<?php echo lang('powered_by'); ?> <a href="https://github.com/claudehohl/Stikked">Stikked</a>
</footer>

View File

@ -53,13 +53,13 @@ $this->carabiner->display('css');
<div class="nav-collapse">
<ul class="nav">
<?php $l = $this->uri->segment(1)?>
<li><a <?php if($l == ""){ echo 'class="active"'; }?> href="<?php echo base_url()?>" title="Create A New Paste">Create</a></li>
<li><a <?php if($l == ""){ echo 'class="active"'; }?> href="<?php echo base_url()?>" title="<?php echo lang('menu_create_title'); ?>"><?php echo lang('menu_create'); ?></a></li>
<?php if(!$this->config->item('private_only')){ ?>
<li><a <?php if($l == "lists" || $l == "view" and $this->uri->segment(2) != "options"){ echo 'class="active"'; }?> href="<?php echo site_url('lists'); ?>" title="Recent Pastes">Recent</a></li>
<li><a <?php if($l == "trends"){ echo 'class="active"'; }?> href="<?php echo site_url('trends'); ?>" title="Trending Pastes">Trending</a></li>
<li><a <?php if($l == "lists" || $l == "view" and $this->uri->segment(2) != "options"){ echo 'class="active"'; }?> href="<?php echo site_url('lists'); ?>" title="<?php echo lang('menu_recent_title'); ?>"><?php echo lang('menu_recent'); ?></a></li>
<li><a <?php if($l == "trends"){ echo 'class="active"'; }?> href="<?php echo site_url('trends'); ?>" title="<?php echo lang('menu_trending_title'); ?>"><?php echo lang('menu_trending'); ?></a></li>
<?php } ?>
<li><a <?php if($l == "api"){ echo 'class="active"'; }?> href="<?php echo site_url('api'); ?>" title="API">API</a></li>
<li><a <?php if($l == "about"){ echo 'class="active"'; }?> href="<?php echo site_url('about'); ?>" title="About">About</a></li>
<li><a <?php if($l == "api"){ echo 'class="active"'; }?> href="<?php echo site_url('api'); ?>" title="<?php echo lang('menu_api'); ?>"><?php echo lang('menu_api'); ?></a></li>
<li><a <?php if($l == "about"){ echo 'class="active"'; }?> href="<?php echo site_url('about'); ?>" title="<?php echo lang('menu_about'); ?>"><?php echo lang('menu_about'); ?></a></li>
</ul>
</div>
</div>

View File

@ -5,7 +5,7 @@
<div class="span12">
<div class="page-header">
<h1><?php if(!isset($page['title'])){ ?>
Create a new paste
<?php echo lang('paste_create_new'); ?>
<?php } else { ?>
<?php echo $page['title']; ?>
<?php } ?>
@ -18,7 +18,7 @@
<form action="<?php echo base_url(); ?>" method="post" class="form-vertical well">
<div class="row">
<div class="span3">
<label for="name">Author
<label for="name"><?php echo lang('paste_author'); ?>
</label>
<?php $set = array('name' => 'name', 'id' => 'name', 'class' => 'span3', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
@ -27,7 +27,7 @@
<div class="span3">
<label for="title">
Title
<?php echo lang('paste_title'); ?>
</label>
<input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="span3" type="text" id="title" name="title" tabindex="2" maxlength="32" />
@ -35,7 +35,7 @@
<div class="span3">
<label for="lang">
Language
<?php echo lang('paste_lang'); ?>
</label>
<?php $lang_extra = 'id="lang" class="select span3" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?>
</div>
@ -43,8 +43,8 @@
<div class="row">
<div class="span12">
<label for="paste">Your paste
<span class="instruction">Paste your paste here</span>
<label for="paste"><?php echo lang('paste_yourpaste'); ?>
<span class="instruction"><?php echo lang('paste_shorturl_desc'); ?></span>
</label>
</div>
</div>
@ -57,19 +57,19 @@
<div class="row">
<div class="span8">
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Create Shorturl</label>
<label class="control-label" for="optionsCheckbox"><?php echo long('paste_shorturl'); ?></label>
<div class="controls">
<label class="checkbox">
<?php
$set = array('name' => 'snipurl', 'id' => 'snipurl', 'value' => '1', 'tabindex' => '5', 'checked' => $snipurl_set);
echo form_checkbox($set);
?>
Create a shorter url that redirects to your paste?
<?php echo long('paste_shorturl_desc'); ?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Private</label>
<label class="control-label" for="optionsCheckbox"><?php echo lang('paste_private'); ?></label>
<div class="controls">
<label class="checkbox">
<?php
@ -80,13 +80,13 @@
}
echo form_checkbox($set);
?>
Private paste aren't shown in recent listings.
<?php echo lang('paste_private_desc'); ?>
</label>
</div>
</div>
<div class="item">
<label for="expire">Delete After
<span class="instruction">When should we delete your paste?</span>
<label for="expire"><?php echo lang('paste_delete'); ?>
<span class="instruction"><?php echo lang('paste_delete_desc'); ?></span>
</label>
<?php
$expire_extra = 'id="expire" class="select" tabindex="7"';
@ -112,8 +112,8 @@
<?php if($this->config->item('enable_captcha')){ ?>
<div class="item_group">
<div class="item item_captcha">
<label for="captcha">Spam Protection
<span class="instruction">Type in the characters displayed in the picture.</span>
<label for="captcha"><?php echo lang('paste_spam'); ?>
<span class="instruction"><?php echo lang('paste_spam_desc'); ?></span>
</label>
<img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="40" />
<input value="<?php if(isset($captcha_set)){ echo $captcha_set; }?>" type="text" id="captcha" name="captcha" tabindex="2" maxlength="32" />
@ -123,7 +123,7 @@
<div class="form-actions">
<button type="submit" name="submit" value="submit" class="btn-large btn-primary">
<i class="icon-pencil icon-white"></i>
Create
<?php echo lang('paste_create'); ?>
</button>
</div>
</form>