mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* add Markdown checkbox to settings
This commit is contained in:
parent
d913efb309
commit
1c0e07a156
4 changed files with 14 additions and 2 deletions
|
|
@ -144,6 +144,8 @@
|
|||
"set_timezone": "Time zone",
|
||||
"set_autotag": "Autotagging",
|
||||
"set_autotag_descr": "(automatically adds tag of current tag filter to newly created task)",
|
||||
"set_markdown": "Markdown",
|
||||
"set_markdown_descr": "(adds support of Markdown in notes, disable if you want to use old markup)",
|
||||
"set_firstdayofweek": "First day of week",
|
||||
"set_custom": "Custom",
|
||||
"set_date": "Date format",
|
||||
|
|
|
|||
|
|
@ -142,8 +142,10 @@
|
|||
"set_smartsyntax": "Smart syntax",
|
||||
"set_smartsyntax2_descr": "Пример синтаксиса: +1 Задача #Тэг1 #Тэг2",
|
||||
"set_timezone": "Часовой пояс",
|
||||
"set_autotag": "Autotagging",
|
||||
"set_autotag": "Автотеги",
|
||||
"set_autotag_descr": "(автодобавление текущего тега из фильтра в новую задачу)",
|
||||
"set_markdown": "Markdown",
|
||||
"set_markdown_descr": "(возможность использовать Markdown в заметках, выключите если хотите использовать старую разметку)",
|
||||
"set_firstdayofweek": "Первый день недели",
|
||||
"set_custom": "другой",
|
||||
"set_date": "Формат даты",
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class Config
|
|||
'duedateformat' => array('default'=>1, 'type'=>'i'),
|
||||
|
||||
# First day of week: 0-Sunday, 1-Monday, 2-Tuesday, .. 6-Saturday
|
||||
'firstdayofweek' => array('default'=>1, 'type'=>'i'),
|
||||
'firstdayofweek' => array('default'=>1, 'type'=>'i', 'options'=>array(0,1,2,3,4,5,6)),
|
||||
|
||||
# Date/time formats
|
||||
'clock' => array('default'=>24, 'type'=>'i', 'options'=>array(12,24)),
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ if(isset($_POST['save']))
|
|||
catch (Exception $e) {
|
||||
}
|
||||
Config::set('autotag', (int)_post('autotag'));
|
||||
Config::set('markup', (int)_post('markdown') == 0 ? 'v1' : 'markdown');
|
||||
Config::set('firstdayofweek', (int)_post('firstdayofweek'));
|
||||
Config::set('clock', (int)_post('clock'));
|
||||
Config::set('dateformat', removeNewLines(_post('dateformat')) );
|
||||
|
|
@ -175,6 +176,13 @@ header('Content-type:text/html; charset=utf-8');
|
|||
<label><input type="radio" name="autotag" value="0" <?php if(!_c('autotag')) echo 'checked="checked"'; ?> /><?php _e('set_disabled');?></label>
|
||||
</div></div>
|
||||
|
||||
<div class="tr">
|
||||
<div class="th"><?php _e('set_markdown');?>:<br/><span class="descr"><?php _e('set_markdown_descr');?></span></div>
|
||||
<div class="td">
|
||||
<label><input type="radio" name="markdown" value="1" <?php if (_c('markup') != 'v1') echo 'checked="checked"'; ?> /><?php _e('set_enabled');?></label> <br/>
|
||||
<label><input type="radio" name="markdown" value="0" <?php if (_c('markup') == 'v1') echo 'checked="checked"'; ?> /><?php _e('set_disabled');?></label>
|
||||
</div></div>
|
||||
|
||||
<div class="tr">
|
||||
<div class="th"><?php _e('set_timezone');?>:</div>
|
||||
<div class="td">
|
||||
|
|
|
|||
Loading…
Reference in a new issue