本文整理汇总了PHP中VP_View类的典型用法代码示例。如果您正苦于以下问题:PHP VP_View类的具体用法?PHP VP_View怎么用?PHP VP_View使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VP_View类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
public function render($is_compact = false)
{
// Setup Data
$this->_setup_data();
$this->add_data('is_compact', $is_compact);
return VP_View::instance()->load('control/html', $this->get_data());
}
示例2: render
public function render($is_compact = false)
{
$this->_setup_data();
$this->add_data('is_compact', $is_compact);
$data = $this->get_data();
return VP_View::instance()->load('control/toggle', $data);
}
示例3: render
public function render($is_compact = false)
{
// Setup Data
$this->_setup_data();
$this->add_data('portfolio_count', VP_PF_Portfolio::instance()->count());
return VP_View::instance()->load('portfoliogenerate', $this->get_data());
}
示例4: render
public function render($is_compact = false)
{
$this->_setup_data();
$this->add_data('is_compact', $is_compact);
$view = VP_View::instance()->load('control/taxonomy', $this->get_data());
return $view;
}
示例5: render
public function render($is_compact = true)
{
$this->_setup_data();
$this->add_data('is_compact', $is_compact);
$this->add_data('header_data', $this->get_data());
$this->add_data('alchemy', $this->_alchemy);
return VP_View::instance()->load('builder', $this->get_data());
}
示例6: render
public function render($extra = array())
{
// Setup data
$this->_setup_data();
$this->add_data('menu', $this);
foreach ($extra as $key => $value) {
$this->add_data($key, $value);
}
return VP_View::instance()->load('option/menu', $this->get_data());
}
示例7: render
public function render($extra = array())
{
// Setup data
$this->_setup_data();
if ($this->is_hidden()) {
$this->add_container_extra_classes('vp-hide');
}
$this->add_data('section', $this);
$this->add_data('container_extra_classes', implode(' ', $this->get_container_extra_classes()));
foreach ($extra as $key => $value) {
$this->add_data($key, $value);
}
return VP_View::instance()->load('option/section', $this->get_data());
}
示例8: esc_attr
<?php
if (!$is_compact) {
echo VP_View::instance()->load('control/template_control_head', $head_info);
}
?>
<textarea class="vp-input" name="<?php
echo $name;
?>
"><?php
echo esc_attr($value);
?>
</textarea>
<?php
if (!$is_compact) {
echo VP_View::instance()->load('control/template_control_foot');
}
示例9: render
public function render()
{
// Setup data
$data = array('set' => $this);
return VP_View::instance()->load('option/set', $data);
}
示例10: render
public function render()
{
$this->_setup_data();
return VP_View::instance()->load('option/offline', $this->get_data());
}
示例11: instance
public static function instance()
{
if (is_null(self::$_instance)) {
self::$_instance = new self();
}
return self::$_instance;
}