2013-02-18 03:48:21 +01:00
< div class = " page-header " >
2016-10-02 04:24:33 +02:00
< h2 >< ? php echo t ( 'New subscription' ) ?> </h2>
2015-01-15 02:18:24 +01:00
< nav >
< ul >
2016-10-02 04:24:33 +02:00
< li class = " active " >< a href = " ?action=add " >< ? php echo t ( 'add' ) ?> </a></li>
< li >< a href = " ?action=feeds " >< ? php echo t ( 'feeds' ) ?> </a></li>
< li >< a href = " ?action=import " >< ? php echo t ( 'import' ) ?> </a></li>
< li >< a href = " ?action=export " >< ? php echo t ( 'export' ) ?> </a></li>
2015-01-15 02:18:24 +01:00
</ ul >
</ nav >
2013-02-18 03:48:21 +01:00
</ div >
2013-09-05 02:45:06 +02:00
< form method = " post " action = " ?action=subscribe " autocomplete = " off " >
2014-11-08 03:44:20 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_hidden ( 'csrf' , $values ) ?>
2014-11-08 03:44:20 +01:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Website or Feed URL' ), 'url' ) ?>
< ? php echo Miniflux\Helper\form_text ( 'url' , $values , array (), array ( 'required' , 'autofocus' , 'placeholder="' . t ( 'http://website/' ) . '"' )) ?> <br/><br/>
2014-10-20 01:14:33 +02:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_checkbox ( 'rtl' , t ( 'Force RTL mode (Right-to-left language)' ), 1 , $values [ 'rtl' ]) ?> <br/>
< ? php echo Miniflux\Helper\form_checkbox ( 'download_content' , t ( 'Download full content' ), 1 , $values [ 'download_content' ]) ?> <br/>
< ? php echo Miniflux\Helper\form_checkbox ( 'cloak_referrer' , t ( 'Cloak the image referrer' ), 1 , $values [ 'cloak_referrer' ]) ?> <br />
2014-10-20 01:14:33 +02:00
2016-10-02 04:24:33 +02:00
< p class = " form-help " >< ? php echo t ( 'Downloading full content is slower because Miniflux grab the content from the original website. You should use that for subscriptions that display only a summary. This feature doesn\'t work with all websites.' ) ?> </p>
2015-08-05 01:01:21 +02:00
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_label ( t ( 'Groups' ), 'groups' ); ? >
2015-08-05 01:01:21 +02:00
< div id = " grouplist " >
< ? php foreach ( $groups as $group ) : ?>
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_checkbox ( 'feed_group_ids[]' , $group [ 'title' ], $group [ 'id' ], in_array ( $group [ 'id' ], $values [ 'feed_group_ids' ]), 'hide' ) ?>
2015-08-05 01:01:21 +02:00
< ? php endforeach ?>
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\form_text ( 'create_group' , $values , array (), array ( 'placeholder="' . t ( 'add a new group' ) . '"' )) ?>
2015-08-05 01:01:21 +02:00
</ div >
2013-02-18 03:48:21 +01:00
< div class = " form-actions " >
2016-10-02 04:24:33 +02:00
< button type = " submit " class = " btn btn-blue " >< ? php echo t ( 'Add' ) ?> </button>
< ? php echo t ( 'or' ) ?> <a href="?action=feeds"><?php echo t('cancel') ?></a>
2013-02-18 03:48:21 +01:00
</ div >
2013-06-10 16:23:48 +02:00
</ form >