2014-03-25 1 views
0

버튼의 내용은 RSVP입니다. 그러나 관련된 특정 범주 인 특정 범주 (허니문)가 선택되었을 때 Gift을 명시해야합니다.카테고리 조건에 따라 WordPress 플러그인을 기반으로 버튼의 이름을 변경하십시오.

현재는 다음과 같습니다

<?php if (! $campaign->is_endless()) : ?> 
        <p class="fixed-notice"> 
        <?php if ('fixed' == $campaign->type()) : ?> 
        <?php printf(__('This project will only be funded if at least %1$s is pledged by %2$s.', 'crowdpress'), $campaign->goal(), $end_date); ?> 
        <?php elseif ('flexible' == $campaign->type()) : ?> 
        <?php printf(__('All funds will be collected on %1$s.', 'crowdpress'), $end_date); ?> 
        <?php else : ?> 
        <?php printf(__('All pledges will be 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(); 

답변

0

당신이 문자열로 name'RSVP '를이 버튼에. 변경하고자하는 경우는

변수 유형을 선택한 경우 신혼 여행에 할당 된 변수가 될하기 위해 문자열 될 필요가 필요가 이름

객체
관련 문제