From eb05fec6fbc1f3f7e2c51803ebf85214785ac490 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 3 Apr 2016 10:31:14 +0800 Subject: [PATCH] use text tip instead of base64 pic if not uploaded --- templates/preview.tpl.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/templates/preview.tpl.php b/templates/preview.tpl.php index c9072d21..6d782bf6 100644 --- a/templates/preview.tpl.php +++ b/templates/preview.tpl.php @@ -1,37 +1,32 @@
- -

Steve 模型的皮肤:getTexture('steve') != "") { - echo 'src = "../textures/'.$data['user']->getTexture('steve').'"'; + echo 'src = "../textures/'.$data['user']->getTexture('steve').'"/>

'; } else { - echo 'src = "'.$unuploaded_img.'"'; + echo '/> 未上传

'; } ?> - />

Alex 模型的皮肤:getTexture('alex') != "") { - echo 'src = "../textures/'.$data['user']->getTexture('alex').'"'; + echo 'src = "../textures/'.$data['user']->getTexture('alex').'"/>

'; } else { - echo 'src = "'.$unuploaded_img.'"'; + echo '/> 未上传

'; } ?> - />

披风:getTexture('cape') != "") { - echo 'src = "../textures/'.$data['user']->getTexture('cape').'"'; + echo 'src = "../textures/'.$data['user']->getTexture('cape').'"/>

'; } else { - echo 'src = "'.$unuploaded_img.'"'; + echo '/> 未上传

'; } ?> - />