-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
62 lines (48 loc) · 2.43 KB
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* @package WordPress
* @subpackage PulsePress
*/
?>
<?php get_header(); ?>
<div class="sleeve_main">
<div id="main">
<?php pulse_press_breadcrumbs(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<h1 id="page-title"><?php the_title(); ?></h1>
<?php the_content(); ?>
<div class="bottom_of_entry"> </div>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'pulse_press' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'pulse_press' ), '<span class="edit-link">', '</span>' ); ?>
<?php if ( ! pulse_press_is_ajax_request() ) : ?>
<?php comments_template(); ?>
<?php $pc = 0; ?>
<?php if ( pulse_press_show_comment_form() && $pc == 0 && ! post_password_required() ) : ?>
<?php $pc++; ?>
<div class="respond-wrap"<?php if ( ! is_singular() ): ?> style="display: none; "<?php endif; ?>>
<?php
$pulse_press_comment_args = array(
'title_reply' => __( 'Reply', 'pulse_press' ),
'comment_field' => '<div class="form"><textarea id="comment" class="expand50-100" name="comment" cols="45" rows="3"></textarea></div> <label class="post-error" for="comment" id="commenttext_error"></label>',
'comment_notes_before' => '<p class="comment-notes">' . ( get_option( 'require_name_email' ) ? sprintf( ' ' . __('Required fields are marked %s','pulse_press'), '<span class="required">*</span>' ) : '' ) . '</p>',
'comment_notes_after' => sprintf(
'<span class="progress"><img src="%1$s" alt="%2$s" title="%2$s" /></span>',
str_replace( WP_CONTENT_DIR, content_url(), locate_template( array( "i/indicator.gif" ) ) ),
esc_attr( 'Loading...', 'pulse_press' )
),
'label_submit' => __( 'Reply', 'pulse_press' ),
'id_submit' => 'comment-submit',
);
if( pulse_press_get_option( 'limit_comments' ) )
$pulse_press_comment_args['comment_field'] = '<div class="form"><textarea id="comment" class="expand50-100" name="comment" maxlength="140" cols="45" rows="3"></textarea></div> <label class="post-error" for="comment" id="commenttext_error"></label>';
comment_form( $pulse_press_comment_args );
?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div> <!-- main -->
</div> <!-- sleeve -->
<?php get_footer(); ?>