mirror of
https://github.com/Frumph/comicpress.git
synced 2026-01-31 02:05:17 +01:00
127 lines
4.7 KiB
PHP
127 lines
4.7 KiB
PHP
<div id="comicpress-comments">
|
|
|
|
<form method="post" id="myForm-general" enctype="multipart/form-data" action="?page=comicpress-options">
|
|
<?php wp_nonce_field( 'update-options' ); ?>
|
|
|
|
<div class="comicpress-options">
|
|
|
|
<table class="widefat">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3">
|
|
<?php _e( 'Comments', 'comicpress' ); ?>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="alternate">
|
|
<th scope="row">
|
|
<label for="disable_comment_note">
|
|
<?php _e( 'Disable the comment notes?', 'comicpress' ); ?>
|
|
</label>
|
|
</th>
|
|
<td>
|
|
<input id="disable_comment_note" name="disable_comment_note" type="checkbox" value="1" <?php checked( true, $comicpress_options['disable_comment_note'] ); ?> />
|
|
</td>
|
|
<td>
|
|
<?php _e( 'Enable this option if you do not want to display the note text. The note text includes additional options for adding comments (HTML).', 'comicpress' ); ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="disable_comment_javascript">
|
|
<?php _e( 'Disable Comment Javascript?', 'comicpress' ); ?>
|
|
</label>
|
|
</th>
|
|
<td>
|
|
<input id="disable_comment_javascript" name="disable_comment_javascript" type="checkbox" value="1" <?php checked( true, $comicpress_options['disable_comment_javascript'] ); ?> />
|
|
</td>
|
|
<td>
|
|
<?php _e( 'Enable this option if you want the comment form to not use javascript to be displayed directly below the person being responded to. (increases pageviews/hits)', 'comicpress' ); ?>
|
|
</td>
|
|
</tr>
|
|
<tr class="alternate">
|
|
<th scope="row">
|
|
<label for="enable_comments_on_homepage">
|
|
<?php _e( 'Enable the Comments on Home Page?', 'comicpress' ); ?>
|
|
</label>
|
|
</th>
|
|
<td>
|
|
<input id="enable_comments_on_homepage" name="enable_comments_on_homepage" type="checkbox" value="1" <?php checked( true, $comicpress_options['enable_comments_on_homepage'] ); ?> />
|
|
</td>
|
|
<td>
|
|
<?php _e( 'Enable this option if you want to show comments on your home page in the posts. This will ONLY work if you have set: to show only 1 post on the home page. The number of posts and that must work.', 'comicpress' ); ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
$current_avatar_directory = $comicpress_options['avatar_directory'];
|
|
if ( empty( $current_avatar_directory ) )
|
|
$current_avatar_directory = 'default';
|
|
$avatar_directories = array();
|
|
$dirs_to_search = array_unique( array( get_template_directory(), get_stylesheet_directory() ) );
|
|
foreach ( $dirs_to_search as $avdir ) {
|
|
if ( is_dir( $avdir . '/images/avatars' ) ) {
|
|
$thisdir = null;
|
|
$thisdir = array();
|
|
$thisdir = glob( $avdir . '/images/avatars/*' );
|
|
$avatar_directories = array_merge( $avatar_directories, $thisdir );
|
|
}
|
|
}
|
|
?>
|
|
|
|
<tr>
|
|
<th scope="row" colspan="2">
|
|
<label for="avatar_directory">
|
|
<?php _e( 'Avatar Directory', 'comicpress' ); ?>
|
|
</label>
|
|
<select name="avatar_directory" id="avatar_directory">
|
|
<option class="level-0" value="none" <?php if ( $current_avatar_directory == "none" ) { ?>selected="selected"<?php } ?>>
|
|
<?php _e( 'none', 'comicpress' ); ?>
|
|
</option>
|
|
<?php
|
|
foreach ( $avatar_directories as $avatar_dirs ) {
|
|
if ( is_dir( $avatar_dirs ) ) {
|
|
$avatar_dir_name = basename( $avatar_dirs );
|
|
?>
|
|
<option class="level-0" value="<?php echo $avatar_dir_name; ?>" <?php if ( $current_avatar_directory == $avatar_dir_name ) { ?>selected="selected"<?php } ?>>
|
|
<?php echo $avatar_dir_name; ?>
|
|
</option>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</th>
|
|
<td>
|
|
<?php _e( 'Choose a directory to get the avatars for default gravatars if someone does not have one. You will have to make these images yourself, or download them from avatar providers. Then make a new directory on your site server to upload them to and select that directory here. Setting this to <strong>none</strong> will disable it from using any special avatar sets.', 'comicpress' ); ?>
|
|
<br />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<div class="comicpress-options-save">
|
|
|
|
<div class="comicpress-major-publishing-actions">
|
|
|
|
<div class="comicpress-publishing-action">
|
|
|
|
<input name="comicpress_save_general" type="submit" class="button-primary" value="<?php _e( 'Save Settings', 'comicpress' ); ?>" />
|
|
<input type="hidden" name="action" value="comicpress_save_comments" />
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|