Ejemplo n.º 1
0
 /**
  * [get_instance description]
  * @return nc_ui [description]
  */
 public static function get_instance()
 {
     if (is_null(self::$obj)) {
         self::$obj = new self();
     }
     return self::$obj;
 }
Ejemplo n.º 2
0
    <!-- Favicons -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body class="nc-admin">

<?php 
//--------------------------------------------------------------------------
$run_time = microtime(TRUE);
//--------------------------------------------------------------------------
$components = array('buttons' => 'Кнопки', 'icons' => 'Иконки', 'labels' => 'Лэйблы', 'alerts' => 'Информационные сообщения', 'common' => 'Базовые стили', 'typo' => 'Типография', 'helpers' => 'Вспомогательные классы', 'navbar' => 'Панель навигации', 'tabs' => 'Вкладки', 'toolbar' => 'Панель инструментов', 'tables' => 'Таблицы', 'forms' => 'HTML-Формы', 'dashboard' => 'Виджеты главной страницы');
//--------------------------------------------------------------------------
define('NC', TRUE);
require_once '../../../../system/admin/ui/nc_ui.class.php';
$nc_core = new stdClass();
$nc_core->ui = $ui = nc_ui::get_instance();
$com_key = FALSE;
$com_path = dirname(__FILE__) . "/components/";
//--------------------------------------------------------------------------
function example($title = NULL)
{
    static $old_title;
    global $components, $com_key;
    if (ob_get_level() && $old_title) {
        $components[$com_key]->examples[$old_title] = ob_get_clean();
    }
    $old_title = $title;
    ob_start();
}
//--------------------------------------------------------------------------
foreach ($components as $key => $title) {
Ejemplo n.º 3
0
 /**
  *
  * @return nc_ui
  */
 public function ui()
 {
     require_once $this->SYSTEM_FOLDER . 'admin/ui/nc_ui.class.php';
     return nc_ui::get_instance();
 }