mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
#19639708 fixed resize image addon for mobile
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8198 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a9f9dbbbd
commit
e763329237
2 changed files with 7 additions and 2 deletions
1
addons/resize_image/css/resize_image.mobile.css
Normal file
1
addons/resize_image/css/resize_image.mobile.css
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.xe_content img { max-width:100%; height:auto; }
|
||||||
|
|
@ -8,7 +8,11 @@
|
||||||
**/
|
**/
|
||||||
|
|
||||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
|
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
|
||||||
|
if(Mobile::isFromMobilePhone()) {
|
||||||
|
Context::addCssFile('./addons/resize_image/css/resize_image.mobile.css');
|
||||||
|
} else {
|
||||||
Context::loadJavascriptPlugin('ui');
|
Context::loadJavascriptPlugin('ui');
|
||||||
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false, '',null, 'body');
|
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false, '',null, 'body');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue