= 4 ) { $year = $val; } } } $date = $a . '-' . $b . '-' . $year; $strtotime = strtotime( $date ); if( empty( $strtotime ) ) { $date = $b . '-' . $a . '-' . $year; $strtotime = strtotime( $date ); } } return $strtotime; } } if( ! function_exists( 'wpaf_coupon_print_link' ) ) { function wpaf_coupon_print_link( $coupon_unic_attr ) { if( ! $coupon_unic_attr ) return ''; $wpaf_frontend_style_url = WPAF_Assets::wpaf_frontend_css_url_get(); echo '
'; echo ''; echo esc_html__( 'Click To Print', 'affcoupon' ); echo ''; echo '
'; } } // generation uniq string if( ! function_exists( 'wpaf_uniq_attr' ) ) { function wpaf_uniq_attr( $length = 10 ) { if ( function_exists( 'random_bytes' ) ) { $bytes = random_bytes( ceil( $length / 2 ) ); } elseif ( function_exists( 'openssl_random_pseudo_bytes' ) ) { $bytes = openssl_random_pseudo_bytes( ceil( $length / 2 ) ); } else { return false; } return substr( bin2hex( $bytes ), 0, $length ); } }