Skip to content

Commit

Permalink
Add some filters so more fields can be added to the top bar programma…
Browse files Browse the repository at this point in the history
…tically.
  • Loading branch information
dannyvankooten committed Sep 3, 2015
1 parent 44b36a4 commit 09c2bb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,12 @@ public function output_html() {
<div class="mctb-bar" style="display: none">
<?php echo $this->get_response_message(); ?>
<form method="post">
<?php do_action( 'mctb_before_label' ); ?>
<label><?php echo $this->options->get( 'text_bar' ); ?></label>
<?php do_action( 'mctb_before_email_field' ); ?>
<input type="email" name="email" placeholder="<?php echo esc_attr( $this->options->get( 'text_email_placeholder' ) ); ?>" class="mctb-email" />
<input type="text" name="email_confirm" placeholder="Confirm your email" value="" class="mctb-email-confirm" />
<?php do_action( 'mctb_before_submit_button' ); ?>
<input type="submit" value="<?php echo esc_attr( $this->options->get('text_button') ); ?>" class="mctb-button" />
<input type="hidden" name="_mctb" value="1" />
<input type="hidden" name="_mctb_no_js" value="1" />
Expand Down

0 comments on commit 09c2bb9

Please sign in to comment.