diff --git a/form-customizations/display-accepted-cards.php b/form-customizations/display-accepted-cards.php index f920079..2343db2 100644 --- a/form-customizations/display-accepted-cards.php +++ b/form-customizations/display-accepted-cards.php @@ -3,53 +3,52 @@ * Adds text or images before the Credit Card fields on the form * * Note: to style these images, use a CSS snippet like this: - * .my_custom_alert img { + * .my-give-accepted-card-images img { * margin: .2em .5em; * max-height: 35px; * } - * */ -function my_custom_alert_message() { +function my_give_display_accepted_card_images() { - $amex = GIVE_PLUGIN_URL . '/assets/images/amex.png'; - $diners = GIVE_PLUGIN_URL . '/assets/images/diners-club.png'; - $discover = GIVE_PLUGIN_URL . '/assets/images/discover.png'; - $jcb = GIVE_PLUGIN_URL . '/assets/images/jcb.png'; - $maestro = GIVE_PLUGIN_URL . '/assets/images/maestro.png'; - $mastercard = GIVE_PLUGIN_URL . '/assets/images/mastercard.png'; - $unionpay = GIVE_PLUGIN_URL . '/assets/images/unionpay.png'; - $visa = GIVE_PLUGIN_URL . '/assets/images/visa.png'; + $amex = GIVE_PLUGIN_URL . '/assets/dist/images/amex.png'; + $diners = GIVE_PLUGIN_URL . '/assets/dist/images/diners-club.png'; + $discover = GIVE_PLUGIN_URL . '/assets/dist/images/discover.png'; + $jcb = GIVE_PLUGIN_URL . '/assets/dist/images/jcb.png'; + $maestro = GIVE_PLUGIN_URL . '/assets/dist/images/maestro.png'; + $mastercard = GIVE_PLUGIN_URL . '/assets/dist/images/mastercard.png'; + $unionpay = GIVE_PLUGIN_URL . '/assets/dist/images/unionpay.png'; + $visa = GIVE_PLUGIN_URL . '/assets/dist/images/visa.png'; - $output = "
"; + $output = "
"; - //to display AMEX, leave this line as is. Otherwise, delete it. + // to display AMEX, leave this line as is. Otherwise, delete it. $output .= ""; - //to display Diners Club, leave this line as is. Otherwise, delete it. + // to display Diners Club, leave this line as is. Otherwise, delete it. $output .= ""; - //to display DISCOVER, leave this line as is. Otherwise, delete it. + // to display DISCOVER, leave this line as is. Otherwise, delete it. $output .= ""; - //to display JCB, leave this line as is. Otherwise, delete it. + // to display JCB, leave this line as is. Otherwise, delete it. $output .= ""; - //to display MAESTRO, leave this line as is. Otherwise, delete it. + // to display MAESTRO, leave this line as is. Otherwise, delete it. $output .= ""; - //to display MASTERCARD, leave this line as is. Otherwise, delete it. + // to display MASTERCARD, leave this line as is. Otherwise, delete it. $output .= ""; - //to display UNIONPAY, leave this line as is. Otherwise, delete it. + // to display UNIONPAY, leave this line as is. Otherwise, delete it. $output .= ""; - //to display VISA, leave this line as is. Otherwise, delete it. + // to display VISA, leave this line as is. Otherwise, delete it. $output .= ""; - $output .= "
"; + $output .= '
'; echo wp_kses_post( $output ); } -add_action( 'give_before_cc_fields', 'my_custom_alert_message' ); +add_action( 'give_before_cc_fields', 'my_give_display_accepted_card_images' );