本文整理汇总了PHP中CMS::layout_view方法的典型用法代码示例。如果您正苦于以下问题:PHP CMS::layout_view方法的具体用法?PHP CMS::layout_view怎么用?PHP CMS::layout_view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMS
的用法示例。
在下文中一共展示了CMS::layout_view方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preview
public function preview()
{
CMS::layout_view()->use_scripts('/tao/scripts/admin/vars/image.js');
Core::load('CMS.Images');
$url = CMS_Images::modified_image('./' . $this['image'], '150x150');
$id = 'container-' . md5($this['image']);
return "<span class='var-image-preview' data-image='{$url}' data-container='{$id}'>[Image]</span>";
}
示例2: draw
public function draw($view, $content)
{
$_view = CMS::layout_view();
CMS::layout_view($view);
$content = CMS::process_insertions($content);
CMS::layout_view($_view);
return $content;
}
示例3: template
protected function template()
{
$template = CMS::layout_view();
if (!$template) {
$template = Templates_HTML::Template('empty');
}
return $template;
}
示例4: render_view
protected function render_view($template, array $parms = array(), $layout = '')
{
$t = parent::render_view($template, $parms, $layout);
CMS::layout_view($t);
return $t;
}
示例5: MAPS
static function MAPS($parms = false)
{
if (!CMS::layout_view()) {
return '';
}
Core::load('Templates.HTML.Helpers.Maps');
$parms = explode(';', $parms);
$type = trim($parms[0]);
$map_id = trim($parms[1]);
$name = trim($parms[2]);
$options = CMS::vars()->get($name);
return CMS::layout_view()->maps->map($type, $map_id, $name, $options);
}
示例6: process_navigation
/**
* @param string|false $uri
*/
static function process_navigation($uri = false)
{
if (!empty(self::$navigation)) {
return self::$navigation;
}
if (!$uri) {
$uri = WS::env()->request->path;
}
Core::load(self::$nav_module);
self::$navigation = Core::make(self::$nav_module);
self::$navigation->process($uri);
if (method_exists(self::$navigation, 'layout')) {
self::$navigation->layout(CMS::layout_view());
}
}