mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
also applied the language configurability to the defaults of the bootstrap
theme
This commit is contained in:
parent
2d06b12030
commit
80fc7c5258
@ -1,3 +1,3 @@
|
|||||||
<footer class="footer">
|
<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>
|
</footer>
|
||||||
|
@ -53,13 +53,13 @@ $this->carabiner->display('css');
|
|||||||
<div class="nav-collapse">
|
<div class="nav-collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<?php $l = $this->uri->segment(1)?>
|
<?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')){ ?>
|
<?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 == "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="Trending Pastes">Trending</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 } ?>
|
<?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 == "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="About">About</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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div class="span12">
|
<div class="span12">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1><?php if(!isset($page['title'])){ ?>
|
<h1><?php if(!isset($page['title'])){ ?>
|
||||||
Create a new paste
|
<?php echo lang('paste_create_new'); ?>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo $page['title']; ?>
|
<?php echo $page['title']; ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<form action="<?php echo base_url(); ?>" method="post" class="form-vertical well">
|
<form action="<?php echo base_url(); ?>" method="post" class="form-vertical well">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<label for="name">Author
|
<label for="name"><?php echo lang('paste_author'); ?>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php $set = array('name' => 'name', 'id' => 'name', 'class' => 'span3', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
|
<?php $set = array('name' => 'name', 'id' => 'name', 'class' => 'span3', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<label for="title">
|
<label for="title">
|
||||||
Title
|
<?php echo lang('paste_title'); ?>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="span3" type="text" id="title" name="title" tabindex="2" maxlength="32" />
|
<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">
|
<div class="span3">
|
||||||
<label for="lang">
|
<label for="lang">
|
||||||
Language
|
<?php echo lang('paste_lang'); ?>
|
||||||
</label>
|
</label>
|
||||||
<?php $lang_extra = 'id="lang" class="select span3" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?>
|
<?php $lang_extra = 'id="lang" class="select span3" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?>
|
||||||
</div>
|
</div>
|
||||||
@ -43,8 +43,8 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<label for="paste">Your paste
|
<label for="paste"><?php echo lang('paste_yourpaste'); ?>
|
||||||
<span class="instruction">Paste your paste here</span>
|
<span class="instruction"><?php echo lang('paste_shorturl_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -57,19 +57,19 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<div class="control-group">
|
<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">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<?php
|
<?php
|
||||||
$set = array('name' => 'snipurl', 'id' => 'snipurl', 'value' => '1', 'tabindex' => '5', 'checked' => $snipurl_set);
|
$set = array('name' => 'snipurl', 'id' => 'snipurl', 'value' => '1', 'tabindex' => '5', 'checked' => $snipurl_set);
|
||||||
echo form_checkbox($set);
|
echo form_checkbox($set);
|
||||||
?>
|
?>
|
||||||
Create a shorter url that redirects to your paste?
|
<?php echo long('paste_shorturl_desc'); ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<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">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<?php
|
<?php
|
||||||
@ -80,13 +80,13 @@
|
|||||||
}
|
}
|
||||||
echo form_checkbox($set);
|
echo form_checkbox($set);
|
||||||
?>
|
?>
|
||||||
Private paste aren't shown in recent listings.
|
<?php echo lang('paste_private_desc'); ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<label for="expire">Delete After
|
<label for="expire"><?php echo lang('paste_delete'); ?>
|
||||||
<span class="instruction">When should we delete your paste?</span>
|
<span class="instruction"><?php echo lang('paste_delete_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
<?php
|
<?php
|
||||||
$expire_extra = 'id="expire" class="select" tabindex="7"';
|
$expire_extra = 'id="expire" class="select" tabindex="7"';
|
||||||
@ -112,8 +112,8 @@
|
|||||||
<?php if($this->config->item('enable_captcha')){ ?>
|
<?php if($this->config->item('enable_captcha')){ ?>
|
||||||
<div class="item_group">
|
<div class="item_group">
|
||||||
<div class="item item_captcha">
|
<div class="item item_captcha">
|
||||||
<label for="captcha">Spam Protection
|
<label for="captcha"><?php echo lang('paste_spam'); ?>
|
||||||
<span class="instruction">Type in the characters displayed in the picture.</span>
|
<span class="instruction"><?php echo lang('paste_spam_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
<img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="40" />
|
<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" />
|
<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">
|
<div class="form-actions">
|
||||||
<button type="submit" name="submit" value="submit" class="btn-large btn-primary">
|
<button type="submit" name="submit" value="submit" class="btn-large btn-primary">
|
||||||
<i class="icon-pencil icon-white"></i>
|
<i class="icon-pencil icon-white"></i>
|
||||||
Create
|
<?php echo lang('paste_create'); ?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user