當前位置: 首頁>>代碼示例>>PHP>>正文


PHP VP_View類代碼示例

本文整理匯總了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());
 }
開發者ID:rku4er,項目名稱:vafpress-wp,代碼行數:7,代碼來源:html.php

示例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);
 }
開發者ID:silversite,項目名稱:silverwp,代碼行數:7,代碼來源:toggle.php

示例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());
 }
開發者ID:cntlscrut,項目名稱:bicyclepeddler2,代碼行數:7,代碼來源:portfoliogenerate.php

示例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;
 }
開發者ID:silversite,項目名稱:silverwp,代碼行數:7,代碼來源:taxonomy.php

示例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());
 }
開發者ID:kevintrogers,項目名稱:justbkause,代碼行數:8,代碼來源:builder.php

示例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());
 }
開發者ID:rku4er,項目名稱:vafpress-wp,代碼行數:10,代碼來源:menu.php

示例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());
 }
開發者ID:rku4er,項目名稱:vafpress-wp,代碼行數:14,代碼來源:section.php

示例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');
}
開發者ID:rku4er,項目名稱:vafpress-wp,代碼行數:19,代碼來源:textarea.php

示例9: render

 public function render()
 {
     // Setup data
     $data = array('set' => $this);
     return VP_View::instance()->load('option/set', $data);
 }
開發者ID:kevintrogers,項目名稱:justbkause,代碼行數:6,代碼來源:set.php

示例10: render

 public function render()
 {
     $this->_setup_data();
     return VP_View::instance()->load('option/offline', $this->get_data());
 }
開發者ID:Angelpm28,項目名稱:ong-canada,代碼行數:5,代碼來源:offline.php

示例11: instance

 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
開發者ID:cntlscrut,項目名稱:bicyclepeddler2,代碼行數:7,代碼來源:view.php


注:本文中的VP_View類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。