コード例 #1
0
ファイル: comments.php プロジェクト: besimhu/legacy
		<p class="nocomments"><?php 
            _e('Comments are closed.', 'comicpress');
            ?>
</p>
	<?php 
        }
        ?>
	<?php 
    }
}
?>

<?php 
if ('open' == $post->comment_status) {
    if (function_exists('in_members_category')) {
        if (in_members_category() && !comicpress_is_member()) {
            return;
        }
    }
    // comment_form(); not used based on our own required look and functionality.
    ?>
<div class="comment-wrapper-respond">
	<?php 
    $fields = array('author' => '<p class="comment-form-author">' . '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30" />' . ' <label for="author"><small>' . __('NAME &mdash;', 'comicpress') . ' <a href="http://gravatar.com">' . __('Get a Gravatar', 'comicpress') . '</a></small></label></p>', 'email' => '<p class="comment-form-email">' . '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30" /> <label for="email">' . __('EMAIL', 'comicpress') . '</label></p>', 'url' => '<p class="comment-form-url">' . '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /> <label for="url">' . __('Website URL', 'comicpress') . '</label></p>');
    if (comicpress_themeinfo('disable_comment_note')) {
        $args = array('fields' => apply_filters('comment_form_default_fields', $fields), 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment"></textarea></p>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'title_reply' => __('Comment &not;<br />', 'comicpress'), 'title_reply_to' => __('Reply to %s &not;<br />', 'comicpress'), 'cancel_reply_link' => __('<small>Cancel reply</small>', 'comicpress'), 'label_submit' => __('Post Comment', 'comicpress'));
    } else {
        $args = array('fields' => apply_filters('comment_form_default_fields', $fields), 'comment_notes_before' => '', 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment"></textarea></p>', 'comment_notes_after' => '<p class="comment-note">' . __('NOTE - You can use these ', 'comicpress') . sprintf('<abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:<br />%s', ' <code>' . allowed_tags() . '</code>') . '</p>', 'title_reply' => __('Comment &not;<br />', 'comicpress'), 'title_reply_to' => __('Reply to %s &not;<br />', 'comicpress'), 'cancel_reply_link' => __('<small>Cancel reply</small>', 'comicpress'), 'label_submit' => __('Post Comment', 'comicpress'));
    }
    comment_form($args);
    ?>
コード例 #2
0
ファイル: membersonly.php プロジェクト: besimhu/legacy
function comicpress_members_comment_filter($content)
{
    global $post;
    if (comicpress_themeinfo('enable_members_only_post_comments') && in_members_category()) {
        if (is_user_logged_in() && comicpress_is_member()) {
            return $content;
        } else {
            return '<div class="non-member"><p>' . __('There is Members Only content here.<br />To view this content you need to be a member of this site.', 'comicpress') . '</p></div>';
        }
    }
    return $content;
}