SHARE
TWEET

Untitled

a guest Nov 11th, 2018 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * BuddyPress - Members Activate
  4.  */
  5.  
  6. ?>
  7.  
  8. <?php global $Logy; ?>
  9.  
  10. <?php $attributes = $Logy->login->attributes(); ?>
  11.  
  12. <div class="logy logy-page-box">
  13.    
  14.     <div class="<?php echo $Logy->form->get_form_class( $attributes ); ?>">
  15.    
  16.     <?php $Logy->form->get_form_header( 'activate' ); ?>
  17.     <?php $Logy->form->get_form_messages( $attributes ); ?>
  18.  
  19.     <?php
  20.  
  21.     /**
  22.      * Fires before the display of the member activation page.
  23.      *
  24.      * @since 1.1.0
  25.      */
  26.     do_action( 'bp_before_activation_page' ); ?>
  27.  
  28.     <div class="page" id="activate-page">
  29.  
  30.         <div id="template-notices" role="alert" aria-atomic="true">
  31.             <?php
  32.  
  33.             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
  34.             do_action( 'template_notices' ); ?>
  35.  
  36.         </div>
  37.  
  38.         <?php
  39.  
  40.         /**
  41.          * Fires before the display of the member activation page content.
  42.          *
  43.          * @since 1.1.0
  44.          */
  45.         do_action( 'bp_before_activate_content' ); ?>
  46.  
  47.         <?php if ( bp_account_was_activated() ) : ?>
  48.  
  49.         <div id="template-notices" class="logy-form-message logy-success-msg" role="alert" aria-atomic="true" style="margin-bottom: 35px;">
  50.             <?php if ( isset( $_GET['e'] ) ) : ?>
  51.                 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'youzer' ); ?></p>
  52.             <?php else : ?>
  53.                 <p><?php printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'youzer' ), logy_page_url( 'login' ) ); ?></p>
  54.             <?php endif; ?>
  55.         </div>
  56.  
  57.         <?php else : ?>
  58.  
  59.             <form action="" method="get" class="standard-form" id="activation-form">
  60.  
  61.                 <p class="logy-field-info"><?php _e( 'Please provide a valid activation key.', 'youzer' ); ?></p>
  62.  
  63.                 <?php $elements = $Logy->form->get_form_elements( 'activate' ); ?>
  64.  
  65.                 <?php $Logy->form->generate_form_fields( $elements['fields'], $attributes ); ?>
  66.                 <?php $Logy->form->generate_form_actions( $elements['actions'], $attributes ); ?>
  67.                
  68.                 <?php do_action( 'logy_after_activate_buttons' ); ?>
  69.                
  70.             </form>
  71.  
  72.         <?php endif; ?>
  73.  
  74.         <?php
  75.  
  76.         /**
  77.          * Fires after the display of the member activation page content.
  78.          *
  79.          * @since 1.1.0
  80.          */
  81.         do_action( 'bp_after_activate_content' ); ?>
  82.  
  83.     </div><!-- .page -->
  84.  
  85.     <?php
  86.  
  87.     /**
  88.      * Fires after the display of the member activation page.
  89.      *
  90.      * @since 1.1.0
  91.      */
  92.     do_action( 'bp_after_activation_page' ); ?>
  93.  
  94.     </div>
  95.  
  96. </div><!-- .logy-page -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top