| 1 |
<div class="wrap"> |
| 2 |
<h2><?php echo esc_html( PostLockdown_OptionsPage::PAGE_TITLE ); ?></h2> |
| 3 |
<form action="options.php" method="post"> |
| 4 |
<?php settings_fields( PostLockdown::KEY ); ?> |
| 5 |
<p> |
| 6 |
<?php |
| 7 |
esc_html_e( |
| 8 |
'Select locked and protected posts by adding them to the boxes on the right. Use the search field to filter the list of posts.', |
| 9 |
'postlockdown' |
| 10 |
); |
| 11 |
?> |
| 12 |
</p> |
| 13 |
<table class="form-table"> |
| 14 |
<tbody> |
| 15 |
<?php foreach ( $blocks as $block ) { ?> |
| 16 |
<tr> |
| 17 |
<th><?php echo esc_html( $block['heading'] ); ?></th> |
| 18 |
<td> |
| 19 |
<div class="pl-posts-container"> |
| 20 |
<div class="pl-posts pl-posts-available"> |
| 21 |
<div class="pl-searchbox"> |
| 22 |
<input type="text" autocomplete="off" class="pl-autocomplete" |
| 23 |
placeholder="<?php esc_attr_e( 'Search...', 'postlockdown' ); ?>"/> |
| 24 |
</div> |
| 25 |
<span class="spinner"></span> |
| 26 |
<ul class="pl-multiselect"> |
| 27 |
</ul> |
| 28 |
</div> |
| 29 |
<div class="pl-posts pl-posts-selected"> |
| 30 |
<ul class="pl-multiselect" |
| 31 |
data-key="<?php echo esc_attr( $block['key'] ); ?>" |
| 32 |
data-input_name="<?php echo esc_attr( PostLockdown::KEY ); ?>[<?php echo esc_attr( $block['input_name'] ); ?>]" |
| 33 |
> |
| 34 |
</ul> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
<p class="description"><?php echo esc_html( $block['description'] ); ?></p> |
| 38 |
</td> |
| 39 |
</tr> |
| 40 |
<?php } ?> |
| 41 |
</tbody> |
| 42 |
</table> |
| 43 |
<input name="submit" type="submit" class="button button-primary" |
| 44 |
value="<?php esc_attr_e( 'Save Changes' ); ?>"/> |
| 45 |
</form> |
| 46 |
</div> |
| 47 |
|