此处的按钮说明RSVP
;但是,如果选择了某个类别(蜜月),这是唯一相关的类别,我需要它来陈述Gift
。
目前,它看起来像这样:
<?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"> </div>
</div>
<?php // Calculate Time Left
$days_left = $campaign->days_remaining();
答案 0 :(得分:0)
在按钮中,您有名称&#39; RSVP&#39;作为一个字符串。如果你想改变那么它需要是一个变量,它是在选择蜜月时分配的
变量类型需要是字符串对象名称