?> <tr class="variable_subscription_sync show_if_variable-subscription"> <td colspan="1" class="subscription_sync_week_month"<?php echo $display_week_month_select; ?> > <?php if (WC_Subscriptions::is_woocommerce_pre_2_3()) { ?> <label><?php _e('Synchronise Renewals', 'woocommerce-subscriptions'); ?> </label> <?php } woocommerce_wp_select(array('id' => 'variable' . WC_Subscriptions_Synchroniser::$post_meta_key . '[' . $loop . ']', 'class' => 'wc_input_subscription_payment_sync', 'wrapper_class' => '_subscription_payment_sync_field', 'label' => WC_Subscriptions_Synchroniser::$sync_field_label, 'options' => WC_Subscriptions_Synchroniser::get_billing_period_ranges($subscription_period), 'description' => WC_Subscriptions_Synchroniser::$sync_description, 'desc_tip' => true, 'value' => $payment_day)); ?> </td> <td colspan="1" class="subscription_sync_annual"<?php echo $display_annual_select; ?> > <label><?php _e('Synchronise Renewals', 'woocommerce-subscriptions'); ?> </label> <?php woocommerce_wp_text_input(array('id' => 'variable' . WC_Subscriptions_Synchroniser::$post_meta_key_day . '[' . $loop . ']', 'class' => 'wc_input_subscription_payment_sync', 'wrapper_class' => '_subscription_payment_sync_field', 'label' => WC_Subscriptions_Synchroniser::$sync_field_label, 'placeholder' => __('Day', 'woocommerce-subscriptions'), 'value' => $payment_day, 'type' => 'number', 'custom_attributes' => array('step' => '1', 'min' => '0', 'max' => '31'))); woocommerce_wp_select(array('id' => 'variable' . WC_Subscriptions_Synchroniser::$post_meta_key_month . '[' . $loop . ']', 'class' => 'wc_input_subscription_payment_sync', 'wrapper_class' => '_subscription_payment_sync_field', 'label' => '', 'options' => $wp_locale->month, 'description' => WC_Subscriptions_Synchroniser::$sync_description_year, 'desc_tip' => true, 'value' => $payment_month)); ?> </td>
?> ]"> <?php echo esc_html(WC_Subscriptions_Synchroniser::$sync_field_label); ?> : <a class="tips" data-tip="<?php echo esc_attr(WC_Subscriptions_Synchroniser::$sync_description); ?> " href="#">[?]</a> </label> <select name="variable_subscription_payment_sync_date[<?php echo esc_attr($loop); ?> ]" class="wc_input_subscription_payment_sync"> <?php foreach (WC_Subscriptions_Synchroniser::get_billing_period_ranges($subscription_period) as $key => $value) { ?> <option value="<?php echo esc_attr($key); ?> " <?php selected($key, $payment_day); ?> ><?php echo esc_html($value); ?> </option> <?php } ?> </select>