Last active
August 29, 2015 14:24
-
-
Save carter2422/8cda84dbf4f40dea138c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="rcp_subscription_fieldset"> | |
<?php $levels = rcp_get_subscription_levels( 'active' ); | |
if( $levels ) : ?> | |
<h4 class="signup--fieldset__title">Subscription Options</h4> | |
<p>Memberships are auto-renewing, though can be cancelled at any time through your dashboard.</p> | |
<ul id="rcp_subscription_levels"> | |
<?php foreach( $levels as $key => $level ) : ?> | |
<?php if( rcp_show_subscription_level( $level->id ) ) : ?> | |
<li id="rcp_subscription_level_<?php echo $level->id; ?>" class="rcp_subscription_level"> | |
<input id="<?php echo 'rcp-level-'.$level->id;?>" type="radio" class="required rcp_level" <?php if( $key == 0 || ( isset( $_GET['level'] ) && $_GET['level'] == $key ) ) { echo 'checked="checked"'; } ?> name="rcp_level" rel="<?php echo esc_attr( $level->price ); ?>" value="<?php echo esc_attr( absint( $level->id ) ); ?>" <?php if( $level->duration == 0 ) { echo 'data-duration="forever"'; } ?>/> | |
<label for="<?php echo 'rcp-level-'.$level->id;?>" class="rcp_subscription_level_name"> | |
<span><?php echo rcp_get_subscription_name( $level->id ); ?></span> | |
<span class="rcp_level_description"> <?php echo rcp_get_subscription_description( $level->id ); ?></span> | |
</label> | |
<!--<span class="rcp_price" rel="<?php echo esc_attr( $level->price ); ?>"></span> Don't delete this or fiery rocks will reign down upon you from the heavens above. --> | |
</li> | |
<?php endif; ?> | |
<?php endforeach; ?> | |
</ul> | |
<?php else : ?> | |
<p><strong><?php _e( 'You have not created any subscription levels yet', 'rcp' ); ?></strong></p> | |
<?php endif; ?> | |
</fieldset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment