本文整理汇总了PHP中Check::Image方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::Image方法的具体用法?PHP Check::Image怎么用?PHP Check::Image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::Image方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
extract((array) $post);
$status = !$post_status ? 'style="background: #fffed8"' : '';
?>
<article<?php
if ($posti % 2 == 0) {
echo ' class="right" ';
}
?>
<?php
echo $status;
?>
>
<div class="img thumb_small">
<?php
echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70);
?>
</div>
<h1><a target="_blank" href="../artigo/<?php
echo $post_name;
?>
" title="Ver Post"><?php
echo Check::Words($post_title, 5);
?>
</a></h1>
<ul class="info post_actions">
<li><strong>Data:</strong> <?php
echo date('d/m/Y H:i', strtotime($post_date));
?>
Hs</li>
示例2:
?>
/uploads/<?php
echo $gallery_image;
?>
" rel="shadowbox[<?php
echo $post_id;
?>
]" title="Imagem <?php
echo $gb;
?>
do post <?php
echo $post_title;
?>
">
<?php
echo Check::Image('uploads' . DIRECTORY_SEPARATOR . $gallery_image, "Imagem {$gb} do post {$post_title}", 120, 80);
?>
</a>
</div>
</li>
<?php
}
?>
</ul>
<div class="clear"></div>
</section>
<?php
}
?>
</div>
示例3: WsPostsGallery
$Gallery = new WsPostsGallery();
$Gallery->setPost_id($postid);
$Gallery->Execute()->Query("#post_id#");
if ($Gallery->Execute()->getResult()) {
foreach ($Gallery->Execute()->getResult() as $gb) {
$gbi++;
?>
<li<?php
if ($gbi % 5 == 0) {
echo ' class="right"';
}
?>
>
<div class="img thumb_small">
<?php
echo Check::Image('../uploads/' . $gb->gallery_image, $gbi, 146, 100);
?>
</div>
<a href="painel.php?exe=posts/update&postId=<?php
echo $postid;
?>
&gbdel=<?php
echo $gb->gallery_id;
?>
#gbfoco" class="del">Deletar</a>
</li>
<?php
}
}
?>
</ul>
示例4:
$city = $cityObj->getResult() ? $cityObj->getResult()[0]->cidade_nome : 'NULL';
?>
<article<?php
if ($empi % 2 == 0) {
echo ' class="right"';
}
?>
<?php
echo $status;
?>
>
<header>
<div class="img thumb_small">
<?php
echo Check::Image('../uploads/' . $empresa_capa, $empresa_title, 120, 70);
?>
</div>
<hgroup>
<h1><a target="_blank" href="../empresa/<?php
echo $empresa_name;
?>
" title="Ver Empresa"><?php
echo $empresa_title;
?>
</a></h1>
<h2><?php
echo $city . ' / ' . $state;
?>
</h2>
示例5: header
header('Location: ' . HOME . DIRECTORY_SEPARATOR . '404');
}
?>
<!--HOME CONTENT-->
<div class="site-container">
<article class="empresa_article">
<div class="emp_content">
<!--CABEÇALHO GERAL-->
<header>
<div class="img capa">
<!--w = 578px [ CRIAR THUMB ]-->
<?php
echo Check::Image('uploads' . DIRECTORY_SEPARATOR . $empresa_capa, $empresa_title, 578, 288);
?>
</div>
<hgroup>
<div class="views"><span><?php
echo $empresa_views;
?>
</span></div>
<h1><?php
echo $empresa_title;
?>
</h1>
<h2><?php
echo $empresa_ramo;
?>