WP LOYALTY by AD5

e( 'Shortcodes' ); ?>

[loyalty_button_register]

e( 'display sign-up button.' ); ?>

[loyalty_button_register text="e( 'Free Sign Up' ); ?>"]

e( 'To change button text, use [text] attribute.' ); ?>

[loyalty_button_register class="your-button-class"]

e( 'To change button style with your CSS, use [class] attribute.' ); ?>

[loyalty_button_login]

e( 'display sign-in button.' ); ?>

[loyalty_button_login text="e( 'Sign In And Checkout!' ); ?>" class="your-button-class"]

e( 'Attributes [text] and [class] are also available.' ); ?>

e( 'Use in theme' ); ?>

e( 'To display button in theme files, mark up a element with href and class attributes like below:' ); ?>

<a href="#ad5-loyalty-register" class="ad5-loyalty-button">e( 'Sign Up' ); ?></a>
<a href="#ad5-loyalty-signin" class="ad5-loyalty-button">e( 'Sign In' ); ?></a>

e( 'To display content only for members or guests, function is_user_logged_in() is available.' ); ?>

<? if( is_user_logged_in() ): ?>
//e( 'contents only for members' ); ?>
<? endif; ): ?>

<? if( ! is_user_logged_in() ): ?>
//e( 'contents only for guests' ); ?>
<? endif; ): ?>