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">&nbsp;</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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -