<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 22, 2016 4:02:17 PM
 * @file maintenance.blade.php
 * @project Zbase
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
echo zbase_view_render(zbase_view_file_module('system.views.maintenance-button', 'system', 'zbase'));
?>

<hr />

<?php 
echo zbase_widget('system-maintenance-form');
Example #2
0
if (!empty($username)) {
    ?>
			<?php 
    echo zbase_widget($moduleName . '-username', [], true, $widgetConfig);
    ?>
			<hr />
			<?php 
}
?>
			<?php 
if (!empty($email)) {
    ?>
			<?php 
    echo zbase_widget($moduleName . '-email', [], true, $widgetConfig);
    ?>
			<hr />
			<?php 
}
?>
			<?php 
if (!empty($password)) {
    ?>
			<?php 
    echo zbase_widget($moduleName . '-password', [], true, $widgetConfig);
    ?>
			<?php 
}
?>
		</div>
	</div>
</div>
Example #3
0
 /**
  * Javascript actiions
  */
 public function postHtmlContent()
 {
     if (method_exists($this, 'htmlContent')) {
         return $this->htmlContent();
     }
     return zbase_widget($this->postModuleName() . '-view', [], true)->render();
 }
Example #4
0
 /**
  * Return widgets by Index and IndexName
  * @param string $index
  * @param string $indexName
  */
 public function getWidgets($index, $indexName)
 {
     $section = zbase_section();
     $hasSection = $this->_v('widgets.' . $section, false);
     if (!empty($hasSection)) {
         $byAction = $this->_v('widgets.' . $section . '.controller.' . $index, []);
         if (!empty($byAction)) {
             $widgets = $this->_v('widgets.' . $section . '.controller.' . $index . '.' . $indexName, []);
         } else {
             $widgets = $this->_v('widgets.' . $section . '.controller.' . $indexName, []);
         }
         /**
          * If widgets are for this action,
          * then let;s look at if there is a "default" action to do.
          *
          * On the front/public pages, we have links like: node/action/nodeId
          *  but if there are no widgets on the given action,
          *  probably, the given action is the slug-name of an entity
          *  like:
          * 		node/node-slug-id
          * 		nodes/category-slug-id
          *  so if the module has a "default" index, then we will load that default widget
          */
         if (empty($widgets)) {
             $widgets = $this->_v('widgets.' . $section . '.controller.' . $index . '.default', $this->_v('widgets.' . $section . '.controller.default', []));
         }
     } else {
         $widgets = $this->_v('widgets.controller.' . $indexName, []);
     }
     if (is_array($widgets)) {
         foreach ($widgets as $name => $path) {
             if ($path instanceof \Closure) {
                 $path();
                 continue;
             }
             if (is_string($path) && zbase_file_exists($path)) {
                 $config = (require $path);
             }
             if (!empty($config) && is_array($config)) {
                 if (empty($config['id'])) {
                     $config['id'] = $name;
                 }
                 $widget = zbase_widget(['id' => $name, 'config' => $config]);
             }
             if (is_null($path)) {
                 $widget = zbase()->widget($name, [], true);
             }
             if ($widget instanceof \Zbase\Widgets\WidgetInterface) {
                 $widget->setModule($this);
                 $widgets[$name] = $widget;
             }
         }
         return $widgets;
     }
     return $widgets;
 }
Example #5
0
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'view', 'enable' => function () {
    return zbase_config_get('modules.users.widgets.admin-user', true);
}, 'config' => ['entity' => ['node' => ['enable' => true], 'name' => 'user', 'repo' => ['byId' => ['route' => 'id']]], 'html' => ['content' => ['pre' => ['enable' => true, 'html' => function () {
    return zbase_widget('admin-users', [], true, ['config' => ['searchable' => ['onload' => false]]]);
}]]], 'view' => ['layout' => 'default', 'file' => function () {
    return zbase_view_file_module('account.views.account', 'account', 'zbase');
}]]];