-1
首先感謝所有的幫助。顯示自定義頁面內容
我試圖在收件箱頁面上顯示自定義內容。我的代碼如下所示:
<?php
$page = basename($_SERVER['REQUEST_URI']);
if ($page == 'messages' || $page == "/" || $page == 'inbox') {
?>
@if ($buttons or $showSearchBox)
<div class="toolbar top">
{!! $buttons !!}
@if ($showSearchBox)
<div class="model-search-box">
@if (user()->countMessages() > 0)
<div class="inbox-notify">
You have unread messages, please read that!
</div>
@endif
{!! Form::open(['url' => URL::current().'/search']) !!}
{!! Form::text('search', $searchString, array('placeholder'=>'Search in messages), ['class' => 'search-string']) !!}
{!! Form::submit(trans('app.search'), ['class' => 'button-search']) !!}
{!! Form::close() !!}
</div>
@endif
</div>
@endif
<?php } ?>
但是,此代碼僅適用於「消息/收件箱」頁面。我怎樣才能在「信息/發件箱」頁面上添加此內容?對不起英語不好。我是新手:)