2013-02-18 03:48:21 +01:00
< div class = " page-header " >
2013-04-13 03:08:55 +02:00
< h2 >< ? = t ( 'Preferences' ) ?> </h2>
2013-02-18 03:48:21 +01:00
</ div >
2013-03-27 02:54:26 +01:00
< section >
2013-03-24 15:33:20 +01:00
< form method = " post " action = " ?action=config " autocomplete = " off " >
2013-02-18 03:48:21 +01:00
2013-04-13 03:08:55 +02:00
< ? = Helper\form_label ( t ( 'Username' ), 'username' ) ?>
2013-02-18 03:48:21 +01:00
< ? = Helper\form_text ( 'username' , $values , $errors , array ( 'required' )) ?> <br/>
2013-04-13 03:08:55 +02:00
< ? = Helper\form_label ( t ( 'Password' ), 'password' ) ?>
2013-03-27 02:54:26 +01:00
< ? = Helper\form_password ( 'password' , $values , $errors ) ?> <br/>
2013-02-18 03:48:21 +01:00
2013-04-13 03:08:55 +02:00
< ? = Helper\form_label ( t ( 'Confirmation' ), 'confirmation' ) ?>
2013-02-18 03:48:21 +01:00
< ? = Helper\form_password ( 'confirmation' , $values , $errors ) ?> <br/>
2013-04-13 03:08:55 +02:00
< ? = Helper\form_label ( t ( 'Language' ), 'language' ) ?>
< ? = Helper\form_select ( 'language' , $languages , $values , $errors ) ?> <br/>
2013-02-18 03:48:21 +01:00
2013-05-26 19:09:34 +02:00
< ? = Helper\form_label ( t ( 'Remove automatically read items' ), 'autoflush' ) ?>
< ? = Helper\form_select ( 'autoflush' , $autoflush_options , $values , $errors ) ?> <br/>
2013-05-23 13:44:45 +02:00
2013-07-06 16:50:37 +02:00
< ? = Helper\form_label ( t ( 'Items per page' ), 'items_per_page' ) ?>
< ? = Helper\form_select ( 'items_per_page' , $paging_options , $values , $errors ) ?> <br/>
2013-09-19 03:02:46 +02:00
< ? = Helper\form_label ( t ( 'Default sorting order for items' ), 'items_sorting_direction' ) ?>
< ? = Helper\form_select ( 'items_sorting_direction' , $sorting_options , $values , $errors ) ?> <br/>
2013-12-23 19:33:16 +01:00
< ? = Helper\form_label ( t ( 'When there is nothing to read, redirect me to this page' ), 'redirect_nothing_to_read' ) ?>
< ? = Helper\form_select ( 'redirect_nothing_to_read' , $redirect_nothing_to_read_options , $values , $errors ) ?> <br/>
2013-07-17 03:58:11 +02:00
< ? = Helper\form_label ( t ( 'Theme' ), 'theme' ) ?>
< ? = Helper\form_select ( 'theme' , $theme_options , $values , $errors ) ?> <br/>
2013-07-06 02:21:10 +02:00
< ? = Helper\form_checkbox ( 'nocontent' , t ( 'Do not fetch the content of articles' ), 1 , isset ( $values [ 'nocontent' ]) ? $values [ 'nocontent' ] : false ) ?> <br />
2013-06-06 17:54:22 +02:00
2013-09-07 04:57:09 +02:00
< ul >
< li >
< ? php if ( $values [ 'auth_google_token' ]) : ?>
< ? = t ( 'Your Google Account is linked to Miniflux' ) ?> , <a href="?action=unlink-account-provider&type=google"><?= t('remove') ?></a>
< ? php else : ?>
< a href = " ?action=google-redirect-link " >< ? = t ( 'Link Miniflux to my Google account' ) ?> </a>
< ? php endif ?>
</ li >
< li >
< ? php if ( $values [ 'auth_mozilla_token' ]) : ?>
< ? = t ( 'Your Mozilla Persona Account is linked to Miniflux' ) ?> , <a href="?action=unlink-account-provider&type=mozilla"><?= t('remove') ?></a>
< ? php else : ?>
< a href = " # " data - action = " mozilla-link " >< ? = t ( 'Link Miniflux to my Mozilla Persona account' ) ?> </a>
< ? php endif ?>
</ li >
</ ul >
2013-02-18 03:48:21 +01:00
< div class = " form-actions " >
2013-06-15 02:42:09 +02:00
< input type = " submit " value = " <?= t('Save') ?> " class = " btn btn-blue " />
2013-02-18 03:48:21 +01:00
</ div >
2013-03-24 15:33:20 +01:00
</ form >
2013-03-27 02:54:26 +01:00
</ section >
2013-03-24 15:33:20 +01:00
< div class = " page-section " >
2013-04-13 03:08:55 +02:00
< h2 >< ? = t ( 'More informations' ) ?> </h2>
2013-03-24 15:33:20 +01:00
</ div >
2013-03-27 02:54:26 +01:00
< section >
2013-07-28 21:44:51 +02:00
< div class = " alert alert-normal " >
2013-08-15 03:08:01 +02:00
< h3 id = " api " >< ? = t ( 'API' ) ?> </h3>
2013-07-28 21:44:51 +02:00
< ul >
2013-09-05 02:45:06 +02:00
< li >
< ? = t ( 'Bookmarklet:' ) ?>
< a href = " javascript:location.href='<?= Helper \ get_current_base_url() ?>?action=subscribe&url='+encodeURIComponent(location.href) " >< ? = t ( 'Subscribe with Miniflux' ) ?> </a> (<?= t('Drag and drop this link to your bookmarks') ?>)
< li >
< ? = t ( 'Bookmarks RSS Feed:' ) ?>
2013-08-10 04:23:57 +02:00
< a href = " <?= Helper \ get_current_base_url().'feed.php?token='.urlencode( $values['feed_token'] ) ?> " target = " _blank " >< ? = Helper\get_current_base_url () . 'feed.php?token=' . urlencode ( $values [ 'feed_token' ]) ?> </a>
</ li >
2013-07-28 21:44:51 +02:00
< li >< ? = t ( 'API endpoint:' ) ?> <strong><?= Helper\get_current_base_url().'jsonrpc.php' ?></strong></li>
< li >< ? = t ( 'API username:' ) ?> <strong><?= Helper\escape($values['username']) ?></strong></li>
< li >< ? = t ( 'API token:' ) ?> <strong><?= Helper\escape($values['api_token']) ?></strong></li>
2013-08-15 03:08:01 +02:00
< li >< a href = " ?action=generate-tokens " >< ? = t ( 'Generate new tokens' ) ?> </a></li>
2013-07-28 21:44:51 +02:00
</ ul >
</ div >
2013-04-04 03:18:30 +02:00
< div class = " alert alert-normal " >
2013-04-13 03:08:55 +02:00
< h3 >< ? = t ( 'Database' ) ?> </h3>
2013-04-04 03:18:30 +02:00
< ul >
2013-07-28 21:44:51 +02:00
< li >< ? = t ( 'Database size:' ) ?> <strong><?= Helper\format_bytes($db_size) ?></strong></li>
2013-04-13 03:08:55 +02:00
< li >< a href = " ?action=optimize-db " >< ? = t ( 'Optimize the database' ) ?> </a> <?= t('(VACUUM command)') ?></li>
< li >< a href = " ?action=download-db " >< ? = t ( 'Download the entire database' ) ?> </a> <?= t('(Gzip compressed Sqlite file)') ?></li>
2013-04-04 03:18:30 +02:00
</ ul >
</ div >
2013-07-21 17:11:41 +02:00
< ? = \PicoTools\Template\load ( 'keyboard_shortcuts' ) ?>
2013-04-04 03:18:30 +02:00
< div class = " alert alert-normal " >
2013-04-13 03:08:55 +02:00
< h3 >< ? = t ( 'About' ) ?> </h3>
2013-04-04 03:18:30 +02:00
< ul >
2013-04-13 03:08:55 +02:00
< li >< ? = t ( 'Miniflux version:' ) ?> <strong><?= APP_VERSION ?></strong></li>
< li >< ? = t ( 'Official website:' ) ?> <a href="http://miniflux.net" target="_blank">http://miniflux.net</a></li>
2013-08-30 01:34:11 +02:00
< li >< a href = " ?action=console " >< ? = t ( 'Console' ) ?> </a></li>
2013-04-04 03:18:30 +02:00
</ ul >
</ div >
2013-09-07 04:57:09 +02:00
</ section >
< script type = " text/javascript " src = " assets/js/persona.js " async ></ script >