<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="author" contents="dev4living.com"> <?php $systemDatas = \App\System::getSystemDatas(); ?> <meta name="keywords" contents="{{ $systemDatas->site_keywords }}"> <meta name="description" contents="{{ $systemDatas->site_description }}"> <title> @section('title') {{ $systemDatas->site_name }} @show </title> <link href="{{ asset('/bowerAssets/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet"> <link href="{{ asset('/bowerAssets/fontawesome/css/font-awesome.min.css') }}" rel="stylesheet"> <link href="{{ asset('/assets/style/style.min.css') }}" rel="stylesheet"> <script src="{{ asset('bowerAssets/jquery/dist/jquery.min.js') }}"></script> <script src="{{ asset('bowerAssets/bootstrap/dist/js/bootstrap.min.js') }}"></script> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head>
/** * Display the specified resource. * * @param int $id * @return Response */ public function showTarget($article) { $href = $article->href; if (substr($article->href, 0, 7) !== 'http://') { $href = 'http://' . $href; } if ($article->target_type == Article::TYPE_TARGET_ORIGIN) { return redirect()->to($href); } else { if ($article->target_type == Article::TYPE_TARGET_IFRAME) { $article->href = $href; $siteName = \App\System::getSystemDatas()->site_name; return view('layouts.frame', ['content' => $article, 'siteName' => $siteName]); } } }