-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-wall-widget.php
51 lines (51 loc) · 2.45 KB
/
wp-wall-widget.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
<!-- WP Wall -->
<?php
echo $before_widget;
echo $before_title . $wall_title. $after_title;
?>
<div id="wp_wall">
<div class="wallnav">
<i alt="Previous" id="img_left" class="iconfont ico-interface-up-open-big"></i>
<i alt="Next" id="img_right" class="iconfont ico-arrowdown"></i>
<?php if ( $show_all ) : ?>
<a href="<?php echo get_permalink($pageId) ?>"><?php _e('All','wp-wall') ?></a>
<?php endif; ?>
</div>
<div id="wallcomments">
<?php echo WPWall_ShowComments(); ?>
</div>
<?php if ( $rss_feed ): ?>
<p><a href="<?php echo get_post_comments_feed_link($pageId); ?>" id="wall_rss"><img src="<?php echo $wp_wall_plugin_url; ?>/i/feed.png" /> <?php echo $wall_title; ?><?php _e('RSS feed','wp-wall') ?></a></p>
<?php endif; ?>
<?php if ( ! $disable_new ) : ?>
<?php if ( $only_registered && !$user_ID) : ?>
<p><a href="wp-login.php"><?php _e('Log in to post a comment.','wp-wall') ?></a></p>
<?php else : ?>
<p><a id="wall_post_toggle" class="btn btn--xs btn--message"><span class="btn__text"><?php echo $wall_reply; ?></span></a></p>
<?php endif; ?>
<?php endif; ?>
<div id="wall_post">
<form action="<?php echo $wp_wall_plugin_url.'wp-wall-ajax.php'; ?>" method="post" id="wallform" class="form--square form--no-labels form--active">
<?php if ( $user_ID ) : ?>
<p><?php _e('Logged in as','wp-wall') ?><a href="<?php echo get_bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.</p>
<?php else : ?>
<p>
<div class="input-with-icon"><i class="icon iconfont ico-male"></i><input type="text" name="wpwall_author" id="wpwall_author" value="" placeholder="<?php _e('Name','wp-wall') ?>" tabindex="11" class="validate-required" /></div>
</p>
<?php if ( $show_email ) : ?>
<p>
<div class="input-with-icon"><i class="icon iconfont ico-mail"></i><input type="text" name="wpwall_email" id="wpwall_email" value="" placeholder="<?php _e('Email','wp-wall') ?>" tabindex="12" class="validate-required validate-email" /></div>
</p>
<?php endif; ?>
<?php endif; ?>
<p>
<label for="wpwall_comment"><h4><?php _e('Comment','wp-wall') ?></h4></label>
<textarea name="wpwall_comment" placeholder="<?php _e('Start typing here...','wp-wall') ?>" id="wpwall_comment" class="rounded text_input" rows="3" tabindex="13" ></textarea>
</p>
<p><input name="submit_wall_post" type="submit" id="submit_wall_post" class="button ie6fix" tabindex="14" value="<?php _e('Submit','wp-wall') ?>" /></p>
</form>
</div>
<div id="wallresponse"></div>
</div>
<br />
<?php echo $after_widget; ?>