<?php
if(!defined('__XE__')) exit();

/**
 * @file resize_image.addon.php
 * @author NHN (developers@xpressengine.com)
 * @brief Add-on to resize images in the body
 **/

if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
	if(Mobile::isFromMobilePhone()) {
		Context::loadFile('./addons/resize_image/css/resize_image.mobile.css', true);
	} else {
		Context::loadJavascriptPlugin('ui');
		Context::loadFile(array('./addons/resize_image/js/resize_image.min.js', 'body', '', null), true);
	}
}
?>
