php - Change the name of the button based in wordpress plugin upon a category condition -
the button here states rsvp; however, need state gift when category (honeymoon), category relevant, has been selected.
currently, looks this:
<?php if ( ! $campaign->is_endless() ) : ?> <p class="fixed-notice"> <?php if ( 'fixed' == $campaign->type() ) : ?> <?php printf( __( 'this project funded if @ least %1$s pledged %2$s.', 'crowdpress' ), $campaign->goal(), $end_date ); ?> <?php elseif ( 'flexible' == $campaign->type() ) : ?> <?php printf( __( 'all funds collected on %1$s.', 'crowdpress' ), $end_date ); ?> <?php else : ?> <?php printf( __( 'all pledges collected automatically until %1$s.', 'crowdpress' ), $end_date ); ?> <?php endif; ?> </p> <?php endif; ?> <p class="button"> <a href="#pledges" class="button-big"><?php _e('rsvp','crowdpress'); ?></a> </p> </div> <div class="cl"> </div> </div> <?php // calculate time left $days_left = $campaign->days_remaining();
in button have name'rsvp' string. if want change needs variable assigned in if honeymoon selected
the variable type need string objects name
Comments
Post a Comment