XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
addons
resize_image
resize_image.addon.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
4
if
(!defined(
'__XE__'
))
5
{
6
exit();
7
}
8
14
if
($called_position ==
'after_module_proc'
&&
Context::getResponseMethod
() ==
"HTML"
&& !
isCrawler
())
15
{
16
if
(
Mobile::isFromMobilePhone
())
17
{
18
Context::loadFile
(
'./addons/resize_image/css/resize_image.mobile.css'
,
true
);
19
}
20
else
21
{
22
Context::loadJavascriptPlugin
(
'ui'
);
23
Context::loadFile
(array(
'./addons/resize_image/js/resize_image.min.js'
,
'body'
,
''
, null),
true
);
24
}
25
}
26
27
/* End of file resize_image.addon.php */
28
/* Location: ./addons/resize_image/resize_image.addon.php */
Context\loadFile
loadFile($args)
Definition:
Context.class.php:2191
Context\loadJavascriptPlugin
loadJavascriptPlugin($plugin_name)
Definition:
Context.class.php:2449
Context\getResponseMethod
getResponseMethod()
Definition:
Context.class.php:1163
Mobile\isFromMobilePhone
isFromMobilePhone()
Definition:
Mobile.class.php:38
isCrawler
isCrawler($agent=NULL)
Definition:
func.inc.php:1538
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5