本文整理汇总了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);
}