| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Provide a admin area dashboard view for the plugin |
| 5 |
* |
| 6 |
* This file is used to markup the admin-facing aspects of the plugin. |
| 7 |
* |
| 8 |
* @link https://catchplugins.com |
| 9 |
* @since 1.0.0 |
| 10 |
* |
| 11 |
* @package Catch_Ids |
| 12 |
* @subpackage Catch_Ids/admin/partials |
| 13 |
*/ |
| 14 |
?> |
| 15 |
|
| 16 |
<?php $options = catch_gallery_get_options(); ?> |
| 17 |
|
| 18 |
<?php if( isset($_GET['settings-updated']) ) { ?> |
| 19 |
<div id="message" class="notice updated fade"> |
| 20 |
<p><strong><?php esc_html_e( 'Plugin Options Saved.', 'catch-gallery' ) ?></strong></p> |
| 21 |
</div> |
| 22 |
<?php } ?> |
| 23 |
|
| 24 |
<?php // Use nonce for verification. |
| 25 |
wp_nonce_field( basename( __FILE__ ), 'catch_gallery_nounce' ); |
| 26 |
?> |
| 27 |
|
| 28 |
<div id="catch-gallery" class="catch-gallery-main"> |
| 29 |
<div class="content-wrapper"> |
| 30 |
<div class="header"> |
| 31 |
<h2><?php esc_html_e( 'Settings', 'catch-gallery' ); ?></h2> |
| 32 |
</div> <!-- .Header --> |
| 33 |
<div class="content"> |
| 34 |
<form method="post" action="options.php"> |
| 35 |
<?php settings_fields( 'catch-gallery-group' ); ?> |
| 36 |
<div class="option-container"> |
| 37 |
<table class="form-table"> |
| 38 |
<tbody> |
| 39 |
|
| 40 |
<tr> |
| 41 |
<th scope="row"><?php esc_html_e( 'Enable Carousel', 'catch-gallery' ); ?></th> |
| 42 |
<td> |
| 43 |
<input name="catch_gallery_options[carousel_enable]" id="catch_gallery_options[carousel_enable]" type="checkbox" value="1" class="catch_gallery_options[carousel_enable]" <?php isset( $options['carousel_enable'] ) ? checked( $options['carousel_enable'], 1 ) : ''; ?>/> |
| 44 |
<span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Display images in full-size carousel slideshow', 'catch-gallery' ); ?>"></span> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
|
| 48 |
<tr> |
| 49 |
<th scope="row"><?php esc_html_e( 'Carousel Background Color', 'catch-gallery' ); ?></th> |
| 50 |
|
| 51 |
<td> |
| 52 |
<select id="catch_gallery_options[carousel_background_color]" name="catch_gallery_options[carousel_background_color]" class="carousel_background_color"> |
| 53 |
<option value="black" <?php selected( $options['carousel_background_color'], 'scroll' ); ?>><?php esc_html_e( 'Black', 'catch-gallery'); ?></option> |
| 54 |
<option value="white" <?php selected( $options['carousel_background_color'], 'scroll' ); ?>><?php esc_html_e( 'White', 'catch-gallery'); ?></option> |
| 55 |
</select> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
|
| 59 |
<tr> |
| 60 |
<th scope="row"><?php esc_html_e( 'Metadata', 'catch-gallery' ); ?></th> |
| 61 |
<td> |
| 62 |
<input name="catch_gallery_options[carousel_display_exif]" id="catch_gallery_options[carousel_display_exif]" type="checkbox" value="1" class="catch_gallery_options[carousel_display_exif]" <?php isset( $options['carousel_display_exif'] ) ? checked( $options['carousel_display_exif'], 1 ) : ''; ?>/> |
| 63 |
<p class="description"><?php printf( esc_html__( 'Show photo metadata (%1$sExif%2$s) in carousel, when available', 'catch-gallery' ), '<a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" target="_blank" rel="nofollow">', '</a>' ); ?></p> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
|
| 67 |
<tr> |
| 68 |
<th scope="row"><?php esc_html_e( 'Show Comments', 'catch-gallery' ); ?></th> |
| 69 |
<td> |
| 70 |
<input name="catch_gallery_options[comments_display]" id="catch_gallery_options[comments_display]" type="checkbox" value="1" class="catch_gallery_options[comments_display]" <?php isset( $options['comments_display'] ) ? checked( $options['comments_display'], 1 ) : ''; ?>/> |
| 71 |
<span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Show Comment box Below in the Slideshow', 'catch-gallery' ); ?>"></span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
|
| 75 |
<tr> |
| 76 |
<th scope="row"><?php esc_html_e( 'Show View Fullsize', 'catch-gallery' ); ?></th> |
| 77 |
<td> |
| 78 |
<input name="catch_gallery_options[fullsize_display]" id="catch_gallery_options[fullsize_display]" type="checkbox" value="1" class="catch_gallery_options[fullsize_display]" <?php isset( $options['fullsize_display'] ) ? checked( $options['fullsize_display'], 1 ) : ''; ?>/> |
| 79 |
<span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Display fill-size in carousel slideshow', 'catch-gallery' ); ?>"></span> |
| 80 |
</td> |
| 81 |
</tr> |
| 82 |
|
| 83 |
<tr> |
| 84 |
<th scope="row"><?php esc_html_e( 'Reset Options', 'catch-gallery' ); ?></th> |
| 85 |
<td> |
| 86 |
<?php |
| 87 |
echo '<input name="catch_gallery_options[reset]" id="catch_gallery_options[reset]" type="checkbox" value="1" class="catch_gallery_options[reset]" />' . esc_html__( 'Check to reset', 'catch-gallery' ); |
| 88 |
?> |
| 89 |
<span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Caution: Reset all settings to default', 'catch-gallery' ); ?>"></span> |
| 90 |
</td> |
| 91 |
</tr> |
| 92 |
</tbody> |
| 93 |
</table> |
| 94 |
|
| 95 |
<?php submit_button( esc_html__( 'Save Changes', 'catch-gallery' ) ); ?> |
| 96 |
</div><!-- .option-container --> |
| 97 |
</form> |
| 98 |
</div><!-- .content --> |
| 99 |
</div> <!-- .content-wrapper --> |
| 100 |
</div> <!-- Main Content--> |
| 101 |
|