示例#1
0
  </div><!-- top 轮播 -->


  
  <!-- start content -->
  <div id="container cleard" style="margin-top:-30px; position:relative; z-index:10;" class="clearfix">
    <div class="content">
        <div class="cleard">
            <div style="float:left;padding:0;width:325px;height:320px;border:none;" class="p-ib">
                <div style="background:#066CB8;padding:10px 10px 0 10px;" class="lineTitleBox2">
                    <p class="">新闻动态<span>&nbsp;&nbsp;&nbsp;&nbsp;NEWS <i></i></span><a style="color:#fff;" href="/page/xinwendongtai">more >></a></p>
                </div>
                <div style="padding:8px 8px 10px;border:1px solid #D6D6D6;" class="p-ibb p-ibbox">
                    <ul>
                        <?php 
$news_page = Pages::getPageByAlias('工作信息简报');
?>
                        @foreach($news_page->posts()->limit(10)->get() as $new)
                        <li><i></i> <a href="/page/xinwendongtai/工作信息简报/{{ $new->title }}">{{$new->title}}</a></li>
                        @endforeach
                    </ul>
                </div>
            </div>
            <div class="topLeft">
                <div style="background:#E2610A;padding:10px 10px 0 10px;" class="lineTitleBox2">
                    <p class="">走进园区<span>&nbsp;&nbsp;&nbsp;&nbsp;PARK <i style="border-top:4px solid #E2610A;border-bottom:4px solid #E2610A;border-right:4px solid #E2610A;"></i></span><a style="color:#fff;" href="javascript:;">more >></a></p>
                </div>
                <div class="videoHome cleard">
                    <div class="news_img">
                        <div id="czjimgnews">
                            <div id="czjimgnewsContent">
示例#2
0
@extends('qz.layout')

@section('title')
<?php 
$page = Pages::getPageByAlias($alias);
if (!$child) {
    $child = Pages::getFirstSubPage($page->id);
} else {
    $child = Pages::getPageByAlias($child);
}
$hasChild = $child ? true : false;
if ($post) {
    $postRow = Posts::where('alias', $post)->first();
}
?>
{{ $post&&isset($postRow) ? $postRow->title : ''}}
{{$page->title}}
{{$hasChild ? $child->title : ''}}
@endsection

@section('links')

@endsection

@section('content')

  <div class="lunbo-box cleard">
        <img src="/vendor/qz/images/top-3.jpg" height="400" width="100%" alt="" />
        
  </div><!-- top 轮播 -->
<!-- start content -->
示例#3
0
 public function sitemap()
 {
     $pages = Pages::whereParentId(0)->where('published_at', '<', date('Y-m-d H:i:s'))->where('is_published', 1)->with('children')->get(['id', 'published_at', 'is_published', 'alias', 'menu_title', 'title']);
     View::share('model', Pages::getPageByAlias('karta-sajta'));
     return View::make('sitemap')->with('pages', $pages);
 }