本文整理匯總了PHP中Banner::imprimir方法的典型用法代碼示例。如果您正苦於以下問題:PHP Banner::imprimir方法的具體用法?PHP Banner::imprimir怎麽用?PHP Banner::imprimir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Banner
的用法示例。
在下文中一共展示了Banner::imprimir方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Banner
<li><i class="icon-eye"></i>{{ $articulo->visitas }} visitas</li>
@if (Sentry::check() && Sentry::getUser()->hasAccess('admin'))
<li><a href="/articulos/{{$articulo->id}}/edit">Editar</a></li>
@endif
</ul>
<h2 class="h4"><a href="/articulos/show/{{ $articulo->url_seo }}" class="pi-link-no-style">{{ $articulo->articulo }}</a>
</h2>
<p>{{ $texto }}...</p>
</div>
</div>
</div>
<?php
$banner = new Banner();
$imagen = $banner->imprimir('homesmall');
if ($imagen[0] != "") {
?>
<div class="pi-col-sm-4 pi-col-xs-6 isotope-item">
<div class="pi-img-w pi-img-round-corners pi-img-hover-zoom">
<?php
if ($imagen[1] != "") {
?>
<a href="{{$imagen[1]}}">
<?php
}
?>
<img src="{{$imagen[0]}}" alt="">
</a>
</div>
示例2: Banner
@extends('layouts.default')
@section('content')
<div id="page"><!-- - - - - - - - - - SECTION - - - - - - - - - -->
<div class="pi-section-w pi-section-white">
<?php
$banner = new Banner();
$imagen = $banner->imprimir('homebig');
?>
@if ($imagen[0]<>"")
<!-- Title bar -->
<div class="pi-row">
<div class="pi-section-w pi-center-text-xs pi-text-center">
<a href="{{$imagen[1]}}"><img src="{{$imagen[0]}}" alt=""></a>
</div>
</div>
<!-- End title bar -->
@endif
</div>
</div>
<br>