本文整理匯總了PHP中modX::regClientStartupHTMLBlock方法的典型用法代碼示例。如果您正苦於以下問題:PHP modX::regClientStartupHTMLBlock方法的具體用法?PHP modX::regClientStartupHTMLBlock怎麽用?PHP modX::regClientStartupHTMLBlock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類modX
的用法示例。
在下文中一共展示了modX::regClientStartupHTMLBlock方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: includeScriptAssets
/**
* Render supporting javascript to try and help it work with MIGX etc
*/
public function includeScriptAssets()
{
$vers = $this->modx->getVersionData();
if ($vers['major_version'] >= 3) {
$this->modx->regClientCSS($this->options['assetsUrl'] . 'mgr/css/imageplus.css');
} else {
$this->modx->regClientCSS($this->options['assetsUrl'] . 'mgr/css/imageplus-22.css');
}
$this->modx->regClientCSS($this->options['assetsUrl'] . 'mgr/css/jquery/jquery.jcrop.min.css');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/imageplus.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/imageplus.panel.input.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/imageplus.window.editor.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/imageplus.migx_renderer.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/tools/JSON2.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/jquery/jquery.min.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/jquery/jquery.jcrop.min.js');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/imageplus.jquery.imagecrop.js');
$this->modx->regClientStartupHTMLBlock('<script type="text/javascript">' . ' ImagePlus.config = ' . json_encode($this->options) . ';' . ' var $jIP = jQuery.noConflict();' . '</script>');
}
示例2: regClientStartupHTMLBlock
/**
* @param $html
*/
public function regClientStartupHTMLBlock($html)
{
$this->modx->regClientStartupHTMLBlock($html);
}
示例3: regClientScripts
/**
* Register the client scripts
*/
public function regClientScripts()
{
$this->modx->regClientStartupHTMLBlock('<script type="text/javascript">' . 'var ToggleTVSet = {"options": ' . json_encode(array('debug' => $this->getOption('debug'), 'toggletvs' => $this->getOption('toggletvs'))) . '};' . '</script>');
$this->modx->regClientStartupScript($this->options['assetsUrl'] . 'mgr/js/toggletvset.js?v=v' . $this->version);
}