public static function signup() { $module = static::$module; $dialogs = $module::model()->components->dialogs; $dialog = forward_static_call_array(array($dialogs, __FUNCTION__), array()); if (!SessionStore::is($dialog->session_store_key)) { SessionStore::set($dialog->session_store_key, $dialog->session_store_setup); } $dialog_store = SessionStore::get($dialog->session_store_key); $step = $dialog->steps[$dialog_store->step]; $_o = (object) null; $_o->icon_background = 'users-icon-background'; $_o->size = 'small'; if ($dialog_store->step != 0 && $dialog_store->step < count($dialog->steps) - 1) { $_o->menu = (object) null; $_o->menu->items = array(); $_o->menu->items[] = CardKit::onTapEventsXHRCallMenuItem('Start Over', 'operations/account/' . __FUNCTION__, array(FormComponent::jsQuotedValue('{"reset":"1"}'))); } $_o->head = ' Create Account'; $_o->body = array(''); if (isset($step->content)) { if (isset($step->content->head)) { $_o->body[] = '<div class="subline">' . $step->content->head . '</div>'; } if (isset($step->content->head)) { $_o->body[] = $step->content->body; } } if (isset($step->forms)) { foreach ($step->forms as $form) { $_o->body = array_merge($_o->body, ModuleForm::render($module::$registry_key, $form)); } } if ($dialog_store->step != 0 && $dialog_store->step < count($dialog->steps) - 1) { $_o->body[] = CardKit::resetDialogButton('operations/register/' . __FUNCTION__); } $_o->body[] = (object) array('js' => '$(\'.focus-input\').focus(); $(\'.focus-input\').select();'); return $_o; }
public static function search() { $module = static::$module; $modeler = $module::model()->modeler; $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model)); $_o = (object) null; $_o->size = 'fullscreen'; $_o->icon_type = 'menu-icon'; $_o->icon_background = 'user-icon-background'; $_o->menu = (object) null; $_o->menu->items = array(); $search_components_array = ModuleForm::render($module::$registry_key, 'search'); $_o->head = $search_components_array[0]; array_shift($search_components_array); foreach ($search_components_array as $key => $object) { $_o->menu->items[] = array('css_classes' => 'automagic-card-menu-item noSelect', 'contents' => $object->html, 'js_action' => $object->js); } $_o->body = array(); $_o->body[] = CardKit::collectionCard((object) array('collection' => 'user_search', 'icon' => 'user', 'card_route' => 'cards/user/search', 'details_route' => 'cards/user/details')); return $_o; }
public static function myTile($user_model = null) { if ($user_model == null) { $user_model = \Sequode\Application\Modules\Account\Modeler::model(); } $_o = (object) null; $_o->head = 'Tokens'; $_o->size = 'xsmall'; $_o->icon_type = 'menu-icon'; $_o->icon_background = 'atom-icon-background'; $_o->menu = (object) null; $_o->menu->items = array(); $_o->menu->item[] = CardKit::onTapEventsXHRCallMenuItem('New Token', 'operations/token/newToken'); $_o->body = array(); $_o->body[] = ''; $_o->body[] = CardKit::ownedItemsCollectionTile('Token', 'Tokens Created : ', $user_model); return $_o; }
public static function myTile($user_model = null) { $module = static::$module; $context = $module::model()->context; if ($user_model == null) { $user_model = \Sequode\Application\Modules\Account\Modeler::model(); } $_o = (object) null; $_o->head = 'Sequodes'; $_o->size = 'xsmall'; $_o->icon_type = 'menu-icon'; $_o->icon_background = 'sequode-icon-background'; $_o->menu = (object) null; $_o->menu->items = array(); $_o->menu->item[] = CardKit::onTapEventsXHRCallMenuItem('New Sequode', 'operations/' . $context . '/newSequence'); $_o->body = array(); $_o->body[] = ''; $_o->body[] = CardKit::ownedItemsCollectionTile($module::$registry_key, 'Sequodes : ', $user_model); return $_o; }
public static function menuItems() { return array(CardKit::onTapEventsXHRCallMenuItem('Logout', 'operations/authed/logout')); }