Can HTML template with this code be hard rejected for quality standards?
As I know, template can/will not be hard rejected just because of the code. If some part is not correct, you will get soft reject with instructions what to improve.
Actually Hard Rejection reasons are always unknown. You can check some lasted trends and design to get some in-depth idea about the quality Envato looking.
Also your code CANNOT be the ONLY reason for rejection.