2014-12-24 16:47:24 +01:00
< div class = " page-header " >
2016-10-02 04:24:33 +02:00
< h2 >< ? php echo $title ?> </h2>
2015-01-13 22:03:24 +01:00
< nav >
< ul >
2016-10-02 04:24:33 +02:00
< li >< a href = " ?action=config " >< ? php echo t ( 'general' ) ?> </a></li>
2016-12-26 15:44:53 +01:00
< li >< a href = " ?action=profile " >< ? php echo t ( 'profile' ) ?> </a></li>
< ? php if ( Miniflux\Helper\is_admin ()) : ?>
< li >< a href = " ?action=users " >< ? php echo t ( 'users' ) ?> </a></li>
< ? php endif ?>
2016-10-02 04:24:33 +02:00
< li class = " active " >< a href = " ?action=services " >< ? php echo t ( 'external services' ) ?> </a></li>
< li >< a href = " ?action=api " >< ? php echo t ( 'api' ) ?> </a></li>
< li >< a href = " ?action=help " >< ? php echo t ( 'help' ) ?> </a></li>
< li >< a href = " ?action=about " >< ? php echo t ( 'about' ) ?> </a></li>
2015-01-13 22:03:24 +01:00
</ ul >
</ nav >
2014-12-24 16:47:24 +01:00
</ div >
< section >
2014-12-24 19:50:20 +01:00
2015-01-29 03:57:34 +01:00
< form method = " post " action = " ?action=services " autocomplete = " off " id = " config-form " >
2014-12-24 16:47:24 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_hidden ( 'csrf' , $values ) ?>
2016-11-30 04:49:45 +01:00
2016-10-02 04:24:33 +02:00
< h3 >< ? php echo t ( 'Pinboard' ) ?> </h3>
2015-01-29 03:57:34 +01:00
< div class = " options " >
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_checkbox ( 'pinboard_enabled' , t ( 'Send bookmarks to Pinboard' ), 1 , isset ( $values [ 'pinboard_enabled' ]) && $values [ 'pinboard_enabled' ] == 1 ) ?> <br />
2014-12-24 16:47:24 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Pinboard API token' ), 'pinboard_token' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'pinboard_token' , $values , $errors ) ?> <br/>
2014-12-24 16:47:24 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Pinboard tags' ), 'pinboard_tags' ) ?>
2017-06-12 23:59:51 +02:00
< ? php echo Miniflux\Helper\form_text ( 'pinboard_tags' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_checkbox ( 'pinboard_mark_unread' , t ( 'Mark bookmarks as unread' ), 1 , isset ( $values [ 'pinboard_mark_unread' ]) && $values [ 'pinboard_mark_unread' ] == 1 ) ?>
2015-01-29 03:57:34 +01:00
</ div >
2014-12-24 19:50:20 +01:00
2016-10-02 04:24:33 +02:00
< h3 >< ? php echo t ( 'Instapaper' ) ?> </h3>
2015-01-29 03:57:34 +01:00
< div class = " options " >
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_checkbox ( 'instapaper_enabled' , t ( 'Send bookmarks to Instapaper' ), 1 , isset ( $values [ 'instapaper_enabled' ]) && $values [ 'instapaper_enabled' ] == 1 ) ?> <br />
2014-12-24 19:50:20 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Instapaper username' ), 'instapaper_username' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'instapaper_username' , $values , $errors ) ?> <br/>
2014-12-24 16:47:24 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Instapaper password' ), 'instapaper_password' ) ?>
< ? php echo Miniflux\Helper\form_password ( 'instapaper_password' , $values , $errors ) ?> <br/>
2015-01-29 03:57:34 +01:00
</ div >
2016-11-30 04:49:45 +01:00
< h3 >< ? php echo t ( 'Wallabag' ) ?> </h3>
< div class = " options " >
< ? php echo Miniflux\Helper\form_checkbox ( 'wallabag_enabled' , t ( 'Send bookmarks to Wallabag' ), 1 , isset ( $values [ 'wallabag_enabled' ]) && $values [ 'wallabag_enabled' ] == 1 ) ?> <br />
2017-01-18 13:32:40 +01:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Wallabag URL' ), 'wallabag_url' ) ?>
2016-11-30 04:49:45 +01:00
< ? php echo Miniflux\Helper\form_text ( 'wallabag_url' , $values , $errors ) ?> <br/>
2016-12-29 02:52:58 +01:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Wallabag Client ID' ), 'wallabag_client_id' ) ?>
2016-11-30 04:49:45 +01:00
< ? php echo Miniflux\Helper\form_text ( 'wallabag_client_id' , $values , $errors ) ?> <br/>
2016-12-29 02:52:58 +01:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Wallabag Client Secret' ), 'wallabag_client_secret' ) ?>
2016-11-30 04:49:45 +01:00
< ? php echo Miniflux\Helper\form_text ( 'wallabag_client_secret' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_label ( t ( 'Wallabag username' ), 'wallabag_username' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'wallabag_username' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_label ( t ( 'Wallabag password' ), 'wallabag_password' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'wallabag_password' , $values , $errors ) ?> <br/>
</ div >
2017-06-11 16:12:29 +02:00
< h3 >< ? php echo t ( 'Shaarli' ) ?> </h3>
< div class = " options " >
< ? php echo Miniflux\Helper\form_checkbox ( 'shaarli_enabled' , t ( 'Send bookmarks to Shaarli' ), 1 , isset ( $values [ 'shaarli_enabled' ]) && $values [ 'shaarli_enabled' ] == 1 ) ?> <br />
< ? php echo Miniflux\Helper\form_label ( t ( 'Shaarli URL' ), 'shaarli_url' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'shaarli_url' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_label ( t ( 'Shaarli secret' ), 'shaarli_secret' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'shaarli_secret' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_label ( t ( 'Shaarli tags' ), 'shaarli_tags' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'shaarli_tags' , $values , $errors ) ?> <br/>
< ? php echo Miniflux\Helper\form_checkbox ( 'shaarli_private' , t ( 'Private Bookmarks' ), 1 , isset ( $values [ 'shaarli_private' ]) && $values [ 'shaarli_private' ] == 1 ) ?> <br />
</ div >
2014-12-24 16:47:24 +01:00
< div class = " form-actions " >
2016-10-02 04:24:33 +02:00
< input type = " submit " value = " <?php echo t('Save') ?> " class = " btn btn-blue " />
2014-12-24 16:47:24 +01:00
</ div >
</ form >
2016-08-25 03:17:58 +02:00
</ section >