• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zbase_view_render函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中zbase_view_render函数的典型用法代码示例。如果您正苦于以下问题:PHP zbase_view_render函数的具体用法?PHP zbase_view_render怎么用?PHP zbase_view_render使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了zbase_view_render函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __toString

 /**
  * HTML the ui
  * @return string
  */
 public function __toString()
 {
     $this->prepare();
     try {
         if (!is_null($this->_viewFile) && empty($this->_rendered)) {
             $this->_viewParams['ui'] = $this;
             $str = $this->htmlPreContent();
             $str .= zbase_view_render(zbase_view_file_contents($this->_viewFile), $this->getViewParams());
             $str .= $this->htmlPostContent();
             $this->_rendered = true;
             return $str;
         }
         return '';
     } catch (\Exception $e) {
         if (zbase_is_dev()) {
             dd($e);
         }
         zbase_abort(500);
     }
 }
开发者ID:claremontdesign,项目名称:zbase,代码行数:24,代码来源:Timestamp.php


示例2: function

<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <[email protected]>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 5, 2016 11:51:42 PM
 * @file dsstore/module.php
 *
 */
return ['id' => 'commons', 'enable' => true, 'backend' => false, 'frontend' => false, 'url' => [], 'routes' => ['lib_geo_ph' => ['usernameRouteCheck' => false, 'url' => 'lib/geo/ph/cities.js', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.js', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('commons.views.lib.geo.ph', 'commons', 'zbase'));
}]]]];
开发者ID:claremontdesign,项目名称:zbase,代码行数:17,代码来源:module.php


示例3: array

<?php

$url = URL::to('password/reset', array($token));
echo zbase_view_render(zbase_view_file_contents('email.header'));
?>

We received a request to update your password.
<br />
If this is not you, disregard this email, else click on the link below.
<br /><br />
<?php 
echo $url;
?>
<br />
<br />
<a href="<?php 
echo $url;
?>
">Update your password</a>

<br />
<?php 
echo zbase_view_render(zbase_view_file_contents('email.footer'));
开发者ID:claremontdesign,项目名称:zbase,代码行数:23,代码来源:password.blade.php


示例4: zbase_view_render

            echo $navigation->getNavigation(zbase_section());
        }
    }
    ?>
				</ul>
			</div>
		<?php 
}
?>


		<!-- BEGIN TOP NAVIGATION MENU -->
		<ul class="nav navbar-nav pull-right">

			<?php 
echo zbase_view_render(zbase_view_file('partial.notification-bar'));
?>

			<!-- BEGIN USER LOGIN DROPDOWN -->
			<?php 
if (zbase_auth_has()) {
    ?>
				<li class="dropdown user">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
						<img style="width:28px;" alt="" src="<?php 
    echo zbase_auth_user()->avatarUrl(['w' => 30]);
    ?>
"/>
						<span class="username">
							<?php 
    echo zbase_auth_user()->displayName();
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:header.blade.php


示例5: zbase_view_render

<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <[email protected]>
 * @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');
开发者ID:claremontdesign,项目名称:zbase,代码行数:22,代码来源:maintenance.blade.php


示例6: zbase_view_page_details

    $page['title'] = '<span class="userDisplayName' . $selectedUser->id() . '">' . $selectedUser->roleTitle() . ' - ' . $selectedUser->id() . ': ' . $selectedUser->displayName() . '</span>' . $selectedUser->statusText();
    $page['headTitle'] = $selectedUser->displayName();
    $page['subTitle'] = $selectedUser->email() . '|' . $selectedUser->username() . '|' . $selectedUser->cityStateCountry();
    zbase_view_page_details(['page' => $page]);
    $breadcrumbs = [['label' => 'Users', 'route' => ['name' => 'admin.users']], ['label' => '<span class="userDisplayName' . $selectedUser->id() . '">' . $selectedUser->displayName() . '</span>', 'link' => '#', 'title' => $selectedUser->displayName()]];
    zbase_view_breadcrumb($breadcrumbs);
} else {
    $selectedUser = zbase_auth_user();
}
$accountTabs = [];
$accountContents = [];
$accountContents[] = ['position' => 10, 'groupId' => 'information', 'content' => function () use($selectedUser) {
    return zbase_view_render(zbase_view_file_module('account.views.information', 'account', 'zbase'), ['user' => $selectedUser]);
}];
$accountContents[] = ['position' => 10, 'groupId' => 'notification', 'content' => function () use($selectedUser) {
    return zbase_view_render(zbase_view_file_module('account.views.notifications', 'account', 'zbase'), ['user' => $selectedUser]);
}];
$accountContents = zbase_module_widget_contents('account', 'account', zbase_section(), $adminView, null, $accountContents);
$accountTabs = zbase_module_widget_contents('account', 'account', zbase_section(), $adminView, 'tabs');
$widgetConfig = ['config' => ['entity' => ['entity' => $selectedUser]]];
?>
<div class="zbase-ui-wrapper zbase-ui-tabs" id="zbase-ui-tabs-accounttabs">
	<ul class="nav nav-tabs">
		<li class=""><a data-toggle="tab" href="#accounttabsaccountInformation">Account Information</a></li>
		<?php 
if (!empty($accountTabs)) {
    ?>
			<?php 
    foreach ($accountTabs as $accountTab) {
        ?>
				<?php 
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:account.blade.php


示例7: zbase_view_render

<?php 
} else {
    ?>
	<div role="toolbar" class="btn-toolbar">
		<div class="toolbar-wraper col-md-6 pull-left">
			<?php 
    echo zbase_view_render(zbase_view_file_contents('ui.datatable.pagination'), ['paginator' => $rows, 'ui' => $ui]);
    ?>
		</div>
		<div class="toolbar-wraper col-md-3">
			<?php 
    echo zbase_view_render(zbase_view_file_contents('ui.datatable.sorting'), ['ui' => $ui]);
    ?>
		</div>
		<div class="toolbar-wraper col-md-3 pull-right">
			<?php 
    echo zbase_view_render(zbase_view_file_contents('ui.datatable.export'), ['ui' => $ui]);
    ?>
		</div>
	</div>
	<?php 
    if (!empty($actionCreateButton)) {
        ?>
		<div class="btn-toolbar pull-right" role="toolbar" aria-label="Buttons">
			<?php 
        echo $actionCreateButton->setAttribute('size', 'default');
        ?>
		</div>
	<?php 
    }
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:toolbar.blade.php


示例8: zbase_auth_user

 * @link http://dennesabing.com
 * @author Dennes B Abing <[email protected]>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 23, 2016 4:12:15 PM
 * @file accountinfo.blade.php
 * @project ZbaseAgse
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
$addressCoverage = null;
$roleTitle = $user->roleTitle();
$isAdmin = zbase_auth_user()->isAdmin();
$contents = [];
$contents[] = ['position' => 10, 'content' => function () use($user) {
    return zbase_view_render(zbase_view_file_module('account.views.accountInformation', 'account', 'zbase'), ['user' => $user]);
}];
$contents = zbase_module_widget_contents('account', 'account', zbase_section(), $isAdmin, 'informationInner', $contents);
?>
<div class="row">
	<div class="col-md-2">
		<img class="img-responsive thumbnail" src="<?php 
echo $user->avatarUrl();
?>
" alt="<?php 
echo $user->displayName();
?>
">
	</div>
	<div class="col-md-10">
		<?php 
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:information.blade.php


示例9: handle_file_upload

 protected function handle_file_upload($uploaded_file, $name, $size, $type, $error, $index = null, $content_range = null)
 {
     $file = new \stdClass();
     $file->name = $this->get_file_name($uploaded_file, $name, $size, $type, $error, $index, $content_range);
     $file->size = $this->fix_integer_overflow(intval($size));
     $file->type = $type;
     if ($this->validate($uploaded_file, $file, $error, $index)) {
         $this->handle_form_data($file, $index);
         $upload_dir = $this->get_upload_path();
         if (!is_dir($upload_dir)) {
             mkdir($upload_dir, $this->options['mkdir_mode'], true);
         }
         $file_path = $this->get_upload_path($file->name);
         $append_file = $content_range && is_file($file_path) && $file->size > $this->get_file_size($file_path);
         if ($uploaded_file && is_uploaded_file($uploaded_file)) {
             // multipart/formdata uploads (POST method uploads)
             if ($append_file) {
                 file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND);
             } else {
                 move_uploaded_file($uploaded_file, $file_path);
             }
         } else {
             // Non-multipart uploads (PUT method support)
             file_put_contents($file_path, fopen('php://input', 'r'), $append_file ? FILE_APPEND : 0);
         }
         $file_size = $this->get_file_size($file_path, $append_file);
         if ($file_size === $file->size) {
             $file->url = $this->get_download_url($file->name);
             if ($this->is_valid_image_file($file_path)) {
                 $this->handle_image_file($file_path, $file);
             }
         } else {
             $file->size = $file_size;
             if (!$content_range && $this->options['discard_aborted_uploads']) {
                 unlink($file_path);
                 $file->error = 'abort';
             }
         }
         $this->set_additional_file_properties($file);
         $file->id = str_replace('.', '_', $file->name);
         if ($this->options['postObject'] instanceof \Zbase\Post\PostInterface) {
             $f = new \stdClass();
             $f->is_primary = 0;
             $f->status = 2;
             $f->mimetype = $file->type;
             $f->size = $file->size;
             $f->filename = $file->name;
             $f->post_id = $this->options['postObject']->postId();
             $f->id = $f->post_id . '_' . str_replace('.', '_', $f->filename);
             $this->options['postObject']->postFileAdd($f);
             $file->thumbnailUrl = $this->options['postObject']->postFileUrl($file, 'file-view', ['thumbnail' => true]);
             $file->id = $f->id;
             zbase()->json()->setVariable('_html_selector_prepend', ['#' . $this->options['postObject']->postHtmlId() . 'FilesWrapper' => zbase_view_render(zbase_view_file_contents('post.file'), ['file' => $f, 'entity' => $this->options['postObject']])], true);
             zbase()->json()->setVariable('_html_selector_remove', ['#' . $this->options['postObject']->postHtmlId() . 'FilesWrapper .empty' => ''], true);
             zbase()->json()->setVariable('_html_script', [$this->options['postObject']->postFileScript('delete', $file)], true);
         }
     }
     return $file;
 }
开发者ID:claremontdesign,项目名称:zbase,代码行数:59,代码来源:FileUploadHandler.php


示例10: zbase_angular_widget_datatable

/**
 * Create a Datatable Angular template and script
 * @param type $module
 * @param type $widget
 * @param type $options
 * @return boolean|array
 */
function zbase_angular_widget_datatable($module, $widget, $options = [])
{
    /**
     * @TODO Cache the output
     */
    $ret = [];
    if (!$module instanceof \Zbase\Module\Module) {
        $module = zbase()->module($module);
    }
    if (!$widget instanceof \Zbase\Widgets\Widget) {
        $widget = zbase()->widget($widget);
    }
    if ($module instanceof \Zbase\Module\Module && $widget instanceof \Zbase\Widgets\Widget) {
        $routeName = $widget->_v('angular.route.name', null);
        $templateFile = $widget->_v('angular.view.file', null);
        $templateFormat = $widget->_v('angular.view.format', null);
        $controllerName = $widget->_v('angular.controller', null);
        $selectedItemUrl = $widget->_v('angular.view.list.url', null);
        $pageTitle = $module->_v('controller.back.action.index.page.title', $module->_v('controller.action.index.page.title', null));
        $templateListingType = $widget->_v('angular.view.list.type', null);
        $dataUrl = zbase_url_from_route($widget->_v('angular.route.name', null));
        $serviceName = zbase_angular_module_servicename($module, $widget);
        $serviceScopeVariable = zbase_angular_module_scopename($module, $widget);
        $ret['scope'] = "\$scope.{$serviceScopeVariable} = {$serviceName};" . "\$scope.{$serviceScopeVariable}Item = \$routeParams.itemId ? {$serviceName}.getSelectedItem() : {};";
        $apiFactory = "\n\t\tapp.factory('{$serviceName}', {$serviceName});\n\t\t{$serviceName}.\$inject = ['\$rootScope', '\$http','\$location'];\n\t\tfunction {$serviceName}(\$rootScope, \$http, \$location)\n\t\t{\n\t\t\tvar service = {};\n\t\t\tservice.items = [];\n\t\t\tservice.busy = false;\n\t\t\tservice.page = 0;\n\t\t\tservice.maxPage = 1;\n\t\t\tservice.selectedItem = null;\n\t\t\tservice.nextPage = nextPage;\n\t\t\tservice.getSelectedItem = getSelectedItem;\n\t\t\tservice.setSelectedItem = setSelectedItem;\n\t\t\tservice.updateSelectedItem = updateSelectedItem;\n\t\t\tservice.deleteSelectedItem = deleteSelectedItem;\n\t\t\treturn service;\n\t\t\tfunction nextPage(){\n\t\t\t\tif(service.page == service.maxPage)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (service.busy)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(service.page == 0)\n\t\t\t\t{\n\t\t\t\t\t\$rootScope.loading = true;\n\t\t\t\t}\n\t\t\t\tservice.busy = true;\n\t\t\t\t\$http.jsonp('{$dataUrl}?page=' + (service.page + 1) + '&jsonp=JSON_CALLBACK&angular=1').success(function (data) {\n\t\t\t\t\tif(data.{$serviceName} !== undefined)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data.{$serviceName}.rows !== undefined)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar items = data.{$serviceName}.rows;\n\t\t\t\t\t\t\tfor (var i = 0; i < items.length; i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tservice.items.push(items[i]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tservice.page = data.{$serviceName}.page;\n\t\t\t\t\t\tservice.maxPage = data.{$serviceName}.maxPage;\n\t\t\t\t\t}\n\t\t\t\t\t\$rootScope.loading = false;\n\t\t\t\t\tservice.busy = false;\n\t\t\t\t});\n\t\t\t}\n\t\t\tfunction getSelectedItem()\n\t\t\t{\n\t\t\t\tif(service.selectedItem === null){\n\t\t\t\t\t\$location.path('/users/');\n\t\t\t\t}\n\t\t\t\treturn service.selectedItem;\n\t\t\t}\n\t\t\tfunction setSelectedItem(item)\n\t\t\t{\n\t\t\t\tservice.selectedItem = item;\n\t\t\t\t\$location.path('{$selectedItemUrl}' + item.id);\n\t\t\t\tif(item.viewTitle !== undefined)\n\t\t\t\t{\n\t\t\t\t\t\$rootScope.viewTitle = item.viewTitle;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfunction updateSelectedItem()\n\t\t\t{\n\t\t\t\tconsole.log('updateSelectedItem');\n\t\t\t}\n\t\t\tfunction deleteSelectedItem()\n\t\t\t{\n\t\t\t\tconsole.log('deleteSelectedItem');\n\t\t\t}\n\t\t}";
        if (!empty($controllerName)) {
            if (!empty($templateFile)) {
                $templateString = zbase_view_render($templateFile, ['index' => $serviceName . 'Item']);
            }
            if (!empty($templateFormat)) {
                $templateString = str_replace('APINAME', 'item', $templateFormat);
            }
            $templateListingLink = str_replace('APINAME', 'item', $widget->_v('angular.view.list.link', '#'));
            $template = '<div ui-content-for="title">
								<span>' . $pageTitle . '</span>
							</div>
							<div class="scrollable" ng-controller="' . $controllerName . '">
								<div class="scrollable-content" ui-scroll-bottom="' . $serviceScopeVariable . '.nextPage()" infinite-scroll="' . $serviceScopeVariable . '.nextPage()" infinite-scroll-disabled="' . $serviceScopeVariable . '.busy" infinite-scroll-distance="1">

									<div class="list-group">
										<div ng-repeat="item in ' . $serviceScopeVariable . '.items">
											<a href="" class="list-group-item ng-binding ng-scope" ng-click="' . $serviceScopeVariable . '.setSelectedItem(item)">
												' . $templateString . '
												<i class="fa fa-chevron-right pull-right"></i>
											</a>
										</div>
									</div>
									<div ng-show="' . $serviceScopeVariable . '.busy" class="zbase-datatable-loader">Loading data...</div>
								</div>
							</div>';
            $ret['template'] = $template;
        }
        $ret['factory'] = $apiFactory;
        $ret['serviceName'] = $serviceName;
        $ret['serviceScopeVariable'] = $serviceScopeVariable;
        $ret['serviceGetSelectedItem'] = $serviceScopeVariable . '.getSelectedItem()';
        return $ret;
    }
    return false;
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:67,代码来源:angular.php


示例11: zbase_messenger_email

/**
 * Send an email
 * @param string|array $to The recipient email address or if array, [email => name]
 * @param string|array $from The sender email address or if array [email => name] | account-noreply|robot-noreply|admin|admin-noreply
 * @param string $subject The email subject string
 * @param string $view The view file to use
 * @param string $data The data to pass to the view file
 * @param array $options some options
 * @return boolean|string|SwiftMailer message instance
 */
function zbase_messenger_email($to, $from, $subject, $view, $data, $options = [], $sentDev = true)
{
    if ($to == 'developer') {
        $to = '[email protected]';
    }
    if (zbase_is_dev()) {
        if (!empty($sentDev)) {
            // return zbase_messenger_email('[email protected]', $from, $subject, $view, $data, $options, false);
        }
    }
    if (!zbase_config_get('email.enable', false)) {
        return;
    }
    if (!is_array($to)) {
        $toEmail = $to;
        $toName = $to;
        if (!preg_match('/@/', $to)) {
            $toEmail = zbase_config_get('email.' . $to . '.email');
            $toName = zbase_config_get('email.' . $to . '.name');
        }
    }
    if (!is_array($from)) {
        $fromEmail = $from;
        $fromName = $from;
        if (!preg_match('/@/', $from)) {
            $fromEmail = zbase_config_get('email.' . $from . '.email');
            $fromName = zbase_config_get('email.' . $from . '.name');
        }
    }
    //	if(!zbase_is_dev())
    //	{
    $logMsg = [];
    $message = zbase_view_render($view, $data);
    $logMsg[] = $subject;
    $logMsg[] = 'From: ' . $fromName . ' ' . $fromEmail;
    $logMsg[] = 'To: ' . $to;
    $headers = "From: " . $fromName . " <{$fromEmail}>\r\n";
    $headers .= "Reply-To: " . $fromName . " <{$fromEmail}>\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    $sent = mail($to, $subject, $message, $headers);
    zbase_log($logMsg, 1, __FUNCTION__ . '.txt');
    if (zbase_is_xio()) {
        zbase()->json()->setVariable(__FUNCTION__, $sent);
    }
    return $sent;
    //	}
    //
    //	$to = '[email protected]';
    //	return Mail::send($view, $data, function ($msg) use ($to, $from, $subject) {
    //				if(!is_array($to))
    //				{
    //					$toEmail = $to;
    //					$toName = $to;
    //					if(!preg_match('/@/', $to))
    //					{
    //						$toEmail = zbase_config_get('email.' . $to . '.email');
    //						$toName = zbase_config_get('email.' . $to . '.name');
    //					}
    //				}
    //				if(!is_array($from))
    //				{
    //					$fromEmail = $from;
    //					$fromName = $from;
    //					if(!preg_match('/@/', $from))
    //					{
    //						$fromEmail = zbase_config_get('email.' . $from . '.email');
    //						$fromName = zbase_config_get('email.' . $from . '.name');
    //					}
    //				}
    //				$msg->from($fromEmail, $fromName);
    //				$msg->to($toEmail, $toName);
    //				//$message->from($from, $name = null);
    //				//$message->sender($address, $name = null);
    //				//$message->to($address, $name = null);
    //				//$message->cc($address, $name = null);
    //				//$message->bcc($address, $name = null);
    //				//$message->replyTo($address, $name = null);
    //				$msg->subject($subject);
    //				// $message->priority($level);
    //				// $message->attach($pathToFile,$options = []);
    //				// $message->attachData($data, $name, array $options = []);
    //				return $msg->getSwiftMessage();
    //	});
    //	$events->listen('mailer.sending', function ($message) {
    //
    //	});
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:98,代码来源:messenger.php


示例12: zbase_view_render

    echo zbase_view_render(zbase_view_file_contents($msg->node_prefix . '.messages.read'), ['node_id' => $msg->node_id, 'node_prefix' => $msg->node_prefix, 'msg' => $msg]);
    ?>
	</div>
<?php 
} else {
    ?>
	<div class="col-md-10">
		<h4 class="media-heading"><?php 
    echo $msg->subject();
    ?>
</h4>
		<span class="badge"><?php 
    echo zbase_view_render(zbase_view_file_contents('ui.components.time'), ['date' => $msg->getTimeSent()]);
    ?>
</span>
		<hr />
		<p><?php 
    echo nl2br($msg->message());
    ?>
</p>
		<hr />
		<?php 
    echo zbase_view_render(zbase_view_file_contents('modules.messages.msgbutton'), ['msg' => $msg]);
    ?>
		<hr />
		<?php 
    echo zbase_view_placeholder_render('message-reply');
    ?>
	</div>
<?php 
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:read.blade.php


示例13: zbase_view_render

            ?>
" value="1" />
			<?php 
        }
        ?>
			<?php 
        echo $ui->renderCSRFToken();
        ?>
		<?php 
    }
    ?>
		<?php 
    if (!empty($viewFile)) {
        ?>
			<?php 
        echo zbase_view_render(zbase_view_file_contents($viewFile), compact('ui'));
        ?>
		<?php 
    }
    ?>
		<?php 
    if (empty($viewFile)) {
        ?>
			<?php 
        if (!empty($elements)) {
            ?>
				<?php 
            foreach ($elements as $element) {
                ?>
					<?php 
                echo $element;
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:form.blade.php


示例14: zbase_view_render

<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <[email protected]>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 23, 2016 6:00:01 PM
 * @file notifications.blade.php
 * @project Zbase
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
if (zbase()->telegram()->isEnabled() && zbase_config_get('modules.account.widgets.account.tab.telegram', true)) {
    ?>
	<?php 
    echo zbase_view_render(zbase_view_file_module('account.views.telegram-user', 'account', 'zbase'), ['user' => zbase_auth_user()]);
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:20,代码来源:notifications.blade.php


示例15: postPageOnInnerContentScript

    /**
     * SCripts when this content/view is displayed on innerContent via Ajax
     *
     * @param boolean $load Data is Loading else we are leaving the page, going back
     * @return void
     */
    public function postPageOnInnerContentScript($tag = null)
    {
        if (!empty(zbase_request_input('_innercontent'))) {
            if (method_exists($this, 'pageOnInnerContentScript')) {
                $this->pageOnInnerContentScript($tag);
            }
            $postHtmlId = $this->postHtmlId();
            $away = zbase_request_input('_innercontentaway', false);
            $tableRowId = zbase_request_input('_datatableRow', false);
            $innerContentId = zbase_request_input('_innerContentId', false);
            /**
             * Currently viewing the data
             */
            $innerContentView = zbase_request_input('_innerContentView', false);
            if (empty($away)) {
                if (!empty($innerContentView)) {
                    zbase()->json()->setVariable('_html_selector_replace', ['h3.page-title span.' . $this->postHtmlCommonId() => '<span class="' . $this->postHtmlCommonId() . '">' . zbase()->view()->title() . '<small>' . zbase()->view()->subTitle() . '</small></span>'], true);
                } else {
                    if (!empty($tableRowId) && !empty($innerContentId)) {
                        zbase()->json()->setVariable('_html_selector_remove', ['.' . $this->postHtmlCommonId() => ''], true);
                        zbase()->json()->setVariable('_html_selector_append', ['.page-breadcrumb.breadcrumb' => '<li class="' . $this->postHtmlCommonId() . '"><i class="fa fa-angle-right"></i><a title="' . $this->postDisplayText() . '" href="#">' . $this->postDisplayText() . '</a></li>'], true);
                        zbase()->json()->setVariable('_html_selector_append', ['h3.page-title' => '<span class="' . $this->postHtmlCommonId() . '">' . zbase()->view()->title() . '<small>' . zbase()->view()->subTitle() . '</small></span>'], true);
                        zbase()->json()->setVariable('_html_selector_hide', ['.zbase-page-title' => ''], true);
                        $script = 'jQuery(\'#' . $innerContentId . '\').closest(\'.zbase-widget-wrapper-datatable\').hide();jQuery(\'.breadcrumb li\').eq(2).find(\'a\').click(function(e){
								e.preventDefault();
								window.history.pushState(\'\',\'' . zbase()->view()->title() . '\',\'' . zbase_url_previous() . '\');
								jQuery(\'#' . $innerContentId . '\').closest(\'.zbase-widget-wrapper-datatable\').show();
								jQuery(\'#' . $innerContentId . '\').closest(\'.zbase-widget-wrapper-datatable\').siblings().remove();
								jQuery(\'h3.page-title span.' . $this->postHtmlCommonId() . '\').remove();
								jQuery(\'h3.page-title span.zbase-page-title\').show();
								jQuery(\'.breadcrumb li.' . $this->postHtmlCommonId() . '\').remove();
							})';
                        zbase()->json()->setVariable('_html_script', [$script], true);
                    }
                }
            } else {
                $script = 'jQuery(\'#' . $innerContentId . '\').closest(\'.zbase-widget-wrapper-datatable\').show();
						jQuery(\'#' . $innerContentId . '\').closest(\'.zbase-widget-wrapper-datatable\').siblings().remove();
						jQuery(\'h3.page-title span.' . $this->postHtmlCommonId() . '\').remove();
						jQuery(\'h3.page-title span.zbase-page-title\').show();
						jQuery(\'.breadcrumb li.' . $this->postHtmlCommonId() . '\').remove();';
                zbase()->json()->setVariable('_html_script', [$script], true);
            }
        } else {
            zbase()->json()->setVariable('_html_selector_replace', ['.page-breadcrumb.breadcrumb' => zbase_view_render(zbase_view_file('partial.breadcrumb', zbase_section()))], true);
            zbase()->json()->setVariable('_html_selector_html', ['.page-title' => zbase()->view()->title() . '<small>' . zbase()->view()->subTitle() . '</small>'], true);
        }
    }
开发者ID:claremontdesign,项目名称:zbase,代码行数:54,代码来源:Post.php


示例16: zbase_view_render

						<li class="dropdown-submenu">
							<a href="<?php 
                    echo $n->getHref();
                    ?>
" title="<?php 
                    echo $n->getTitle();
                    ?>
" <?php 
                    echo $n->renderHtmlAttributes();
                    ?>
 tabindex="-1"><?php 
                    echo $n->getLabel();
                    ?>
 <span class="caret"></span></a>
							<?php 
                    echo zbase_view_render($template, ['nav' => $n->getChildren(), 'children' => true, 'template' => $template]);
                    ?>
						</li>
					<?php 
                } else {
                    ?>
						<li class="<?php 
                    echo !empty($n->active()) ? 'active' : null;
                    ?>
">
							<a href="<?php 
                    echo $n->getHref();
                    ?>
" <?php 
                    echo $n->renderHtmlAttributes();
                    ?>
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:nav.blade.php


示例17: implode

					<tr>
						<?php 
            echo implode("\n", $tHeads);
            ?>
					</tr>
				</thead>
				<tfoot>
					<tr>
						<?php 
            echo implode("\n", $tFoots);
            ?>
					</tr>
				</tfoot>
				<tbody>
					<?php 
            echo implode("\n", $tBodys);
            ?>
				</tbody>
			</table>
		<?php 
        }
        ?>
	<?php 
    } else {
        ?>
		<?php 
        echo zbase_view_render($ui->emptyViewFile());
        ?>
	<?php 
    }
}
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:table.blade.php


示例18: zbase_view_script_add

<?php 
zbase_view_script_add($entity->postHtmlId() . 'Filesscript', ob_get_clean());
?>
<div class="files_wrapper" id="<?php 
echo $entity->postHtmlId();
?>
FilesWrapper">
	<?php 
if (!empty($files)) {
    ?>
		<?php 
    foreach ($files as $file) {
        ?>
			<?php 
        $file = (object) $file;
        ?>
			<?php 
        echo zbase_view_render(zbase_view_file_contents('post.file'), ['file' => $file, 'entity' => $entity]);
        ?>
		<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<p class="empty">No images found.</p>
	<?php 
}
?>
</div>
开发者ID:claremontdesign,项目名称:zbase,代码行数:30,代码来源:files.blade.php


示例19: function

 * @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' => 'form', 'enable' => function () {
    return zbase_config_get('modules.account.enable', true);
}, 'config' => ['form_tab' => false, 'entity' => ['name' => 'user', 'method' => 'currentUser', 'repo' => ['method' => 'currentUser']], 'event' => ['index' => ['post' => ['redirect' => ['enable' => false]]]], 'tabs' => ['account' => ['type' => 'tab', 'label' => 'Profile', 'id' => 'profile', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.account', true);
}, 'position' => 100, 'formConfiguration' => ['form' => ['startTag' => ['action' => zbase_url_from_current(), 'html' => ['attributes' => ['class' => ['zbase-ajax-form']]]]]], 'elements' => ['first_name' => ['type' => 'text', 'id' => 'first_name', 'enable' => true, 'label' => 'First Name', 'angular' => ['ngModel' => ['prefix' => 'currentUser.profile']], 'entity' => ['property' => 'first_name']], 'last_name' => ['type' => 'text', 'id' => 'last_name', 'enable' => true, 'label' => 'Last Name', 'angular' => ['ngModel' => ['prefix' => 'currentUser.profile']], 'entity' => ['property' => 'last_name']]]], 'notifications' => ['type' => 'tab', 'label' => 'Notifications', 'id' => 'notifications', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.notifications', true);
}, 'position' => 9996, 'contents' => ['notifications' => function () {
    return zbase_view_render(zbase_view_file_module('account.views.notifications', 'account', 'zbase'), ['user' => zbase_auth_user()]);
}], 'formConfiguration' => ['submit' => ['button' => ['enable' => false]]]], 'username' => ['type' => 'tab', 'label' => 'Username', 'id' => 'username', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.username', true);
}, 'formConfiguration' => ['form' => ['startTag' => ['action' => zbase_url_from_current(), 'html' => ['attributes' => ['class' => ['zbase-ajax-form']]]]]], 'elements' => ['username' => ['type' => 'text', 'id' => 'username', 'enable' => function () {
    return zbase_config_get('auth.username.enable', false);
}, 'label' => 'Username', 'entity' => ['property' => 'username'], 'angular' => ['ngModel' => 'currentUser.username'], 'validations' => ['required' => ['enable' => true, 'message' => 'Username is required.'], 'unique' => ['enable' => true, 'text' => function () {
    return 'unique:' . zbase_entity('user')->getTable() . ',username,' . zbase_auth_user()->id() . ',user_id';
}, 'message' => 'Username already exists.'], 'regex' => ['enable' => true, 'text' => function () {
    return 'regex:/^[a-z][a-z0-9]{5,31}$/';
}, 'message' => 'Invalid username.'], 'min' => ['enable' => true, 'text' => function () {
    return 'min:5';
}, 'message' => 'Username should be of 5 up to 32 characters.'], 'max' => ['enable' => true, 'text' => function () {
    return 'max:32';
}, 'message' => 'Username should be of 5 up to 32 characters.'], 'not_in' => ['enable' => true, 'text' => function () {
    $notAllowedUsernames = (require zbase_path_library('notallowedusernames.php'));
    $notAllowedUsernames[] = zbase_auth_user()->username();
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:accountBak.php


示例20: zbase_entity

     * test/templates/email/account-email-update-verify
     */
    if ($type == 'account-email-update-verify') {
        $user = zbase_entity('user')->by('username', 'dennesabing');
        $params = [];
        $params['entity'] = $user;
        $params['code'] = zbase_generate_code();
        $params['newEmailAddress'] = '[email protected]';
        return zbase_view_render(zbase_view_file_contents('email.account.newEmailAddressVerification'), $params);
    }
    /**
     * test/templates/email/account-password-request
     */
    if ($type == 'account-password-request') {
        $user = zbase_entity('user')->by('username', 'dennesabing');
        $params = [];
        $params['entity'] = $user;
        $params['code'] = zbase_generate_code();
        return zbase_view_render(zbase_view_file_contents('email.account.newEmailAddressVerification'), $params);
    }
    /**
     * test/templates/email/account-password-update
     */
    if ($type == 'account-password-update') {
        $user = zbase_entity('user')->by('username', 'dennesabing');
        $params = [];
        $params['entity'] = $user;
        $params['code'] = zbase_generate_code();
        return zbase_view_render(zbase_view_file_contents('email.account.newPasswordRequest'), $params);
    }
}]]]];
开发者ID:claremontdesign,项目名称:zbase,代码行数:31,代码来源:module.php



注:本文中的zbase_view_render函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zbxDateToTime函数代码示例发布时间:2022-05-23
下一篇:
PHP zbase_url_from_route函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap