mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
making texts dynamic
This commit is contained in:
parent
3992b8297d
commit
3c3a003ca1
@ -1,10 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$lang['paste_create_new'] = "No migrations were found.";
|
$lang['paste_create_new'] = 'Create a new paste';
|
||||||
$lang['migration_not_found'] = "This migration could not be found.";
|
$lang['paste_create_new_desc'] = 'Here you can create a new paste';
|
||||||
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
|
$lang['paste_author'] = 'Author';
|
||||||
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could not be found.";
|
$lang['paste_author_desc'] = 'What\'s your name?';
|
||||||
$lang['migration_missing_up_method'] = "The migration class \"%s\" is missing an 'up' method.";
|
|
||||||
$lang['migration_missing_down_method'] = "The migration class \"%s\" is missing an 'down' method.";
|
|
||||||
$lang['migration_invalid_filename'] = "Migration \"%s\" has an invalid filename.";
|
|
||||||
|
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
<?php echo $page['title']; ?>
|
<?php echo $page['title']; ?>
|
||||||
<?php } ?></h1>
|
<?php } ?></h1>
|
||||||
<p class="explain border"><?php if(!isset($page['instructions'])){ ?>
|
<p class="explain border"><?php if(!isset($page['instructions'])){ ?>
|
||||||
Here you can create a new paste
|
<?php echo lang('paste_create_new_desc'); ?>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo $page['instructions']; ?>
|
<?php echo $page['instructions']; ?>
|
||||||
<?php } ?></p>
|
<?php } ?></p>
|
||||||
|
|
||||||
<div class="item_group">
|
<div class="item_group">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<label for="name">Author
|
<label for="name"><?php echo lang('paste_author'); ?>
|
||||||
<span class="instruction">What's your name?</span>
|
<span class="instruction"><?php echo lang('paste_author_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php $set = array('name' => 'name', 'id' => 'name', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
|
<?php $set = array('name' => 'name', 'id' => 'name', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
|
||||||
@ -26,16 +26,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<label for="title">Title
|
<label for="title"><?php echo lang('paste_title'); ?>
|
||||||
<span class="instruction">Give your paste a title.</span>
|
<span class="instruction"><?php echo lang('paste_title_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="50" />
|
<input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="50" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item last">
|
<div class="item last">
|
||||||
<label for="lang">Language
|
<label for="lang"><?php echo lang('paste_lang'); ?>
|
||||||
<span class="instruction">What language is your paste written in?</span>
|
<span class="instruction"><?php echo lang('paste_lang_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php $lang_extra = 'id="lang" class="select" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?>
|
<?php $lang_extra = 'id="lang" class="select" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?>
|
||||||
@ -43,9 +43,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<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_yourpaste_desc'); ?></span>
|
||||||
<span class="instruction"><a href="#" id="enable_codemirror">Enable syntax highlighting</a></span>
|
<span class="instruction"><a href="#" id="enable_codemirror"><?php echo lang('paste_syntaxhl'); ?></a></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<textarea id="code" name="code" cols="40" rows="20" tabindex="4"><?php if(isset($paste_set)){ echo $paste_set; }?></textarea>
|
<textarea id="code" name="code" cols="40" rows="20" tabindex="4"><?php if(isset($paste_set)){ echo $paste_set; }?></textarea>
|
||||||
@ -53,8 +53,8 @@
|
|||||||
|
|
||||||
<div class="item_group">
|
<div class="item_group">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<label for="snipurl">Create Shorturl
|
<label for="snipurl"><?php echo lang('paste_shorturl'); ?>
|
||||||
<span class="instruction">Create a shorter url that redirects to your paste?</span>
|
<span class="instruction"><?php echo lang('paste_shorturl_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
<div class="text_beside">
|
<div class="text_beside">
|
||||||
<?php
|
<?php
|
||||||
@ -65,8 +65,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<label for="private">Private
|
<label for="private"><?php echo lang('paste_private'); ?>
|
||||||
<span class="instruction">Private paste aren't shown in recent listings.</span>
|
<span class="instruction"><?php echo lang('paste_private_desc'); ?></span>
|
||||||
</label>
|
</label>
|
||||||
<div class="text_beside">
|
<div class="text_beside">
|
||||||
<?php
|
<?php
|
||||||
@ -81,20 +81,20 @@
|
|||||||
</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"';
|
||||||
$options = array(
|
$options = array(
|
||||||
"0" => "Keep Forever",
|
"0" => lang('exp_forever'),
|
||||||
"30" => "30 Minutes",
|
"30" => lang('exp_30min'),
|
||||||
"60" => "1 hour",
|
"60" => lang('exp_1h'),
|
||||||
"360" => "6 Hours",
|
"360" => lang('exp_6h'),
|
||||||
"720" => "12 Hours",
|
"720" => lang('exp_12h'),
|
||||||
"1440" => "1 Day",
|
"1440" => lang('exp_1d'),
|
||||||
"10080" => "1 Week",
|
"10080" => lang('exp_1w'),
|
||||||
"40320" => "4 Weeks"
|
"40320" => lang('exp_4w'),
|
||||||
);
|
);
|
||||||
echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
|
echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
|
||||||
</div>
|
</div>
|
||||||
@ -107,8 +107,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" />
|
||||||
@ -121,7 +121,7 @@
|
|||||||
echo form_input($set);
|
echo form_input($set);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div><button type="submit" value="submit" name="submit">Create</button></div>
|
<div><button type="submit" value="submit" name="submit"><?php echo lang('paste_create'); ?></button></div>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user