本文整理汇总了PHP中pagetitle函数的典型用法代码示例。如果您正苦于以下问题:PHP pagetitle函数的具体用法?PHP pagetitle怎么用?PHP pagetitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pagetitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
/**
* Show the dashboard
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function getIndex()
{
pagetitle([trans('main.dashboard'), settings('server_name')]);
$online_players = 0;
foreach (DB::connection('account')->table('worlds')->get() as $world) {
$online_players += $world->online_user;
}
$releases = $this->github->api('repo')->releases()->all('huludini', 'aura-kingdom-web');
return view('admin.index', compact('online_players', 'releases'));
}
示例2: getIndex
public function getIndex()
{
pagetitle([trans('main.apps.voucher'), settings('server_name')]);
$voucher_logs = Auth::user()->voucher_logs;
return view('front.voucher.index', compact('voucher_logs'));
}
示例3: getIndex
public function getIndex()
{
pagetitle([trans('main.apps.news'), settings('server_name')]);
$articles = Article::orderBy('created_at', 'desc')->paginate(settings('news_items_per_page'));
return view('front.news.index', compact('articles'));
}
示例4: pagetitle
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<title><?php
echo pagetitle();
?>
</title>
<meta name="robots" content="noindex, nofollow" />
<meta name="description" content="LoudBlog" />
<meta name="author" content="ONLINETRUST new media" />
<link rel="stylesheet" type="text/css" href="backend/screen.css" />
<link rel="stylesheet" type="text/css" href="backend/autocomplete.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="backend/ie.css" />
<![endif]-->
<script src="backend/jquery.js" type="text/javascript"></script>
<script src="backend/functions.js" type="text/javascript"></script>
<script src="backend/autocomplete.js" type="text/javascript"></script>
示例5: getPermissions
/**
* Show the permissions page
*
* @param User $user
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function getPermissions(User $user)
{
pagetitle([trans('members.permissions', ['member' => $user->username]), trans('main.apps.members'), settings('server_name')]);
return view('admin.members.permissions', compact('user'));
}
示例6: getIndex
public function getIndex()
{
$releases = $this->github->api('repo')->releases()->all('huludini', 'pw-web');
pagetitle([trans('main.dashboard'), settings('server_name')]);
return view('admin.index', compact('version_info', 'releases'));
}
示例7: getSettings
public function getSettings()
{
pagetitle([trans('main.settings'), trans('main.apps.donate'), settings('server_name')]);
return view('admin.donate.settings');
}
示例8: getIndex
/**
* Return the index view
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function getIndex()
{
pagetitle([trans('main.apps.donate'), settings('server_name')]);
return view('front.donate.index');
}
示例9: edit
/**
* Show the form for editing the specified resource.
*
* @param VoteSite $site
* @return \Illuminate\Http\Response
*/
public function edit(VoteSite $site)
{
pagetitle([trans('vote.edit', ['name' => $site->name]), settings('server_name')]);
return view('admin.vote.edit', compact('site'));
}
示例10: getSettings
public function getSettings()
{
pagetitle([trans('main.settings'), settings('server_name')]);
return view('front.account.index');
}
示例11: getIndex
public function getIndex()
{
pagetitle([trans('main.apps.services'), settings('server_name')]);
$services = Service::all();
return view('front.services.index', compact('services'));
}
示例12: getFamily
/**
* Get family rankings based on type
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function getFamily(Request $request)
{
pagetitle([trans('ranking.player') . ' ' . trans('main.apps.ranking'), settings('server_name')]);
$families = Family::type($request->segment(3))->paginate();
return view('front.ranking.family', compact('families'));
}
示例13: getApps
public function getApps()
{
pagetitle([trans('system.apps'), trans('main.apps.system'), settings('server_name')]);
$apps = Application::all();
return view('admin.system.apps', compact('apps'));
}
示例14: getManage
public function getManage()
{
pagetitle([trans('members.manage'), trans('main.apps.members'), settings('server_name')]);
$users = User::paginate();
return view('admin.members.manage', compact('users'));
}
示例15: getMask
public function getMask($mask)
{
pagetitle([trans('main.apps.shop'), settings('server_name')]);
$items = ShopItem::where('mask', $mask)->paginate(settings('shop_items_per_page'));
return view('front.shop.index', compact('items'));
}