当前位置: 首页>>代码示例>>PHP>>正文


PHP showThumb函数代码示例

本文整理汇总了PHP中showThumb函数的典型用法代码示例。如果您正苦于以下问题:PHP showThumb函数的具体用法?PHP showThumb怎么用?PHP showThumb使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了showThumb函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: use_helper

<?php

use_helper('Date');
use_helper('Thumb');
?>

<section id="presentation" class="box clearfix">

  <div id="author" class="clearfix">
    
    <?php 
if ($author['image'] && $author['show_image']) {
    ?>
      <?php 
    echo showThumb($author['image'], 'images', $options = array('class' => 'picture', 'width' => '48', 'height' => '48', 'alt' => 'Photographie de ' . ($author['name'] && $author['show_name']) ? $author['name'] : 'l\'auteur'), $resize = 'scale', $default = '177x168_default.jpg');
    ?>
    <?php 
}
?>
    
    <div class="description">
      <h1>
        <?php 
if ($author['name'] && $author['show_name']) {
    ?>
          <a href="<?php 
    echo url_for('author_show', array('slug' => $author['slug'], 'sf_format' => 'html'));
    ?>
">
            <?php 
    echo $author['name'];
开发者ID:ndachez,项目名称:dachez,代码行数:31,代码来源:_author.php

示例2: ago

     }
     echo '<h1>Photo album ' . $album->name . ' by ' . UserLink::render($this->child) . '</h1>';
     echo 'Created ' . ago($album->time_created) . '<br/>';
     // shows album content
     $images = File::getByCategory(USER, $this->child2, $this->child);
     if (!$images && $album->owner) {
         echo '&raquo; ' . ahref('u/album/delete/' . $this->child2, 'Delete empty album') . '<br/>';
     }
     if ($session->id == $this->child) {
         echo '&raquo; ' . ahref('u/album/upload/' . $this->child2, 'Add photos') . '<br/>';
     }
     foreach ($images as $im) {
         $a = new XhtmlComponentA();
         $a->href = getThumbUrl($im->id, 0, 0);
         $a->rel = 'lightbox[album]';
         $a->content = showThumb($im->id, $im->name, 150, 150);
         echo $a->render();
         echo ahref('u/photo/show/' . $im->id, 'Details');
         echo '<br/><br/>';
     }
     $lb = new YuiLightbox();
     echo $lb->render();
     break;
 case 'delete':
     $session->requireLoggedIn();
     if ($this->child && confirmed('Are you sure you want to delete this photo album?')) {
         // verify that the owner of the album is current session id
         $album = PhotoAlbum::get($this->child);
         if (!$album->owner || $album->owner != $session->id) {
             dp('HACK: tried to delete photo album ' . $this->child . ' which is not owned by user ' . $session->id);
             return;
开发者ID:martinlindhe,项目名称:core_dev,代码行数:31,代码来源:album.php

示例3: foreach

  <?php 
if ($abonnements && $abonnements->count() > 0) {
    ?>
  <ul class="thumbnails">
    <?php 
    foreach ($abonnements as $abonnement) {
        ?>
    <li class="span3">
      <div class="thumbnail">
        <div class="media">
          <a class="pull-left" href="<?php 
        echo url_for('asso/show?login=' . $abonnement['assoName']);
        ?>
">
            <?php 
        echo showThumb($abonnement['assoLogo'], 'assos', array('width' => 32, 'height' => 32, 'class' => 'media-object'), 'center');
        ?>
          </a>
          <div class="media-body">
            <?php 
        if ($abonnement['article'] == 'event') {
            ?>
              <h5 class="media-heading">
                <a href="<?php 
            echo url_for('event/show?id=' . $abonnement['id']);
            ?>
">
                  <?php 
            echo $abonnement['name'];
            ?>
                </a>
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:_myFlux.php

示例4: foreach

    <?php 
    foreach ($articles2 as $article) {
        ?>

      <div class="four columns">				
        <div class="module">						
          <div class="module-img">							
            <a title="Lire la suite de l'article : <?php 
        echo $article['name'];
        ?>
" class="smallthumbnail-link" href="<?php 
        echo url_for('article_show', array('day' => format_date($article['created_at'], 'dd'), 'month' => format_date($article['created_at'], 'MM'), 'year' => format_date($article['created_at'], 'yyyy'), 'slug' => $article['slug'], 'sf_format' => 'html'));
        ?>
">
              <?php 
        echo showThumb($article['on_home_image'], 'articles', $options = array('width' => '220', 'height' => '157', 'alt' => 'Illustration de ' . $article['name'], 'itemprop' => 'image'), $resize = 'center', $default = 'default_illustration_article.png');
        ?>
            </a>													    
          </div>
          <div class="module-meta">
            <h5><?php 
        echo $article['name'];
        ?>
</h5>

            <?php 
        $longueur = '230';
        if (strlen($article['name']) > 30) {
            $longueur = '190';
        }
        ?>
开发者ID:ndachez,项目名称:acb,代码行数:31,代码来源:_smallthumbnails.php

示例5: showUserdataField

/**
 * Helper to display userdata content
 */
function showUserdataField($userId, $settingName, $defaultValue = '')
{
    global $db;
    if (!is_numeric($userId)) {
        return false;
    }
    if (!is_numeric($settingName)) {
        $userdata = getUserdataFieldByName($settingName);
        if (!$userdata) {
            return $defaultValue;
        }
    }
    $q = 'SELECT settingValue FROM tblSettings WHERE ownerId=' . $userId . ' AND settingType=' . SETTING_USERDATA . ' AND settingName="' . $userdata['fieldId'] . '"';
    $result = $db->getOneItem($q);
    switch ($userdata['fieldType']) {
        case USERDATA_TYPE_RADIO:
        case USERDATA_TYPE_SELECT:
        case USERDATA_TYPE_GENDER:
        case USERDATA_TYPE_THEME:
            $val = getCategoryName(CATEGORY_USERDATA, $result);
            break;
        case USERDATA_TYPE_IMAGE:
            if (!$result) {
                return false;
            }
            // TODO: Make this an optional setting
            if (isInQueue($result, MODERATION_PRES_IMAGE)) {
                return false;
            }
            $val = showThumb($result, $settingName, 270, 200);
            break;
        default:
            $val = $result;
    }
    return $val;
}
开发者ID:martinlindhe,项目名称:core_dev,代码行数:39,代码来源:functions_userdata.php

示例6: while

}
$this->need('header.php');
?>
<div class="main-container">
    <?php 
if ($this->have()) {
    ?>
    <?php 
    while ($this->next()) {
        ?>
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
    		<?php 
        if (!empty($this->options->listStyle) && in_array('thumb', $this->options->listStyle)) {
            ?>
    		  <?php 
            showThumb($this);
            ?>
    		<?php 
        }
        ?>
    		<h2 class="post-title" itemprop="name headline"><a itemtype="url" href="<?php 
        $this->permalink();
        ?>
"><?php 
        $this->title();
        ?>
</a></h2>
    		 <ul class="post-meta">
    		    <li><?php 
        _e('<i class="fa fa-book"></i> ');
        $this->category(',');
开发者ID:Tony1Q84,项目名称:Ants,代码行数:31,代码来源:archive.php

示例7: foreach

  <?php 
if (count($services) > 0) {
    ?>
    <ul class="thumbnails">
      <?php 
    foreach ($services as $service) {
        ?>
        <li class="span3">
          <div class="thumbnail">
            <div class="media">
              <a class="pull-left" href="<?php 
        echo $service->getService()->getUrl();
        ?>
">
                <?php 
        echo showThumb($service->getService()->getLogo(), 'services', array('width' => 32, 'height' => 32, 'class' => 'media-object'), 'center');
        ?>
              </a>
              <div class="media-body">
                <h5 class="media-heading"><a href="<?php 
        echo $service->getService()->getUrl();
        ?>
"><?php 
        echo $service->getService()->getNom();
        ?>
</a></h5>
              </div>
            </div>
          </div>
        </li>
      <?php 
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:_myServicesFavoris.php

示例8: url_for

        ?>
                </div>
            </div>
            <div class="item">
                <div class="row-fluid">
            <?php 
    }
    ?>
                    <div class="event span4">
                        <div class="media">
                            <a class="pull-left" href="<?php 
    echo url_for('event/show?id=' . $event->getId());
    ?>
">
                                <?php 
    echo showThumb($event->getAffiche(), 'events', array('width' => 112, 'height' => 112, 'class' => 'media-object'), 'center');
    ?>
                            </a>
                            <div class="media-body">
                                <h4 class="media-heading"><a href="<?php 
    echo url_for('event/show?id=' . $event->getId());
    ?>
"><?php 
    echo $event->getName();
    ?>
</a></h4>
                                <p><?php 
    echo $event->getSummary();
    ?>
</p>
                                <p>
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:_carousel.php

示例9: foreach

  <?php 
if ($assos && $assos->count() > 0) {
    ?>
      <ul class="thumbnails">
      <?php 
    foreach ($assos as $asso) {
        ?>
      <li class="span3">
        <div class="thumbnail">
          <div class="media">
              <a class="pull-left" href="<?php 
        echo url_for('assos_show', $asso);
        ?>
">
                  <?php 
        echo showThumb($asso->getLogo(), 'assos', array('width' => 32, 'height' => 32, 'class' => 'media-object'), 'center');
        ?>
              </a>
              <div class="media-body">
                  <h5 class="media-heading"><a href="<?php 
        echo url_for('assos_show', $asso);
        ?>
"><?php 
        echo $asso->getName();
        ?>
</a></h5>
              </div>
          </div>
        </div>
      </li>
      <?php 
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:_myAssosSidebar.php

示例10: foreach

  </ul>
  <h1> Les Services de la Ville</h1>
  <ul id="services_list">
    <?php 
foreach ($services as $service) {
    ?>
      <?php 
    if ($service->getTypeId() == '3') {
        ?>
        <li>
          <a href="<?php 
        echo $service->getUrl();
        ?>
" style="float:left;">
            <?php 
        echo showThumb($service->getLogo(), 'services', array('width' => 85, 'height' => 85, 'class' => 'logo'), 'center');
        ?>
          </a>
          <a href="<?php 
        echo $service->getUrl();
        ?>
">
            <h3><?php 
        echo $service->getNom();
        ?>
</h3>
          </a>
          <div class="desc">
            <?php 
        echo $service->getResume();
        ?>
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:indexSuccess.php

示例11: foreach

  <div class="row-fluid">
    <ul class="thumbnails events">
      <?php 
    foreach ($events as $event) {
        ?>
        <li class="span3">
          <div class="eventbox" style="background: <?php 
        echo $event->getPole()->getCouleur();
        ?>
">
            <a href="<?php 
        echo url_for('event_show', $event);
        ?>
">
              <?php 
        echo showThumb($event->getAffiche(), 'events', array('width' => 196, 'height' => 120), 'center');
        ?>
            </a>
            <h4><a href="<?php 
        echo url_for('event_show', $event);
        ?>
"><?php 
        echo $event->getName();
        ?>
</a></h4>
            <p>
              Par <?php 
        echo linkTo($event->getAsso());
        ?>
<br/>
              Le <?php 
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:_eventbox.php

示例12: foreach

                <?php 
foreach ($social as $rs) {
    ?>
                  <?php 
    if ($rs['header'] == '1') {
        ?>
                    <li>
                      <a target="_blank" href="<?php 
        echo $rs['url'];
        ?>
" title="<?php 
        echo $rs['name'];
        ?>
">
                        <?php 
        echo showThumb($rs['image'], 'social', $options = array('width' => '24', 'height' => '24', 'class' => '', 'alt' => 'Illustration pour : ' . $rs['name'], 'itemprop' => 'image'), $resize = 'center', $default = 'default_illustration_social.png');
        ?>
                      </a>
                    </li>
                  <?php 
    }
    ?>
                <?php 
}
?>
 
              </ul>
            </div>			
            <hr class="remove-top"/>
          </div>	
         	
开发者ID:ndachez,项目名称:acb,代码行数:30,代码来源:_mainMenu.php

示例13: showPhotoToString

function showPhotoToString($currentPhoto)
{
    global $featuredClass;
    global $currentpath;
    global $currentPhotoCounter;
    $num = $currentPhotoCounter + 1;
    //write out the html
    $output = '<a href="' . $currentpath . '/' . $currentPhoto . '" class="fancybox';
    if (is_featured($currentPhoto)) {
        $output .= ' ' . $featuredClass;
    }
    $output .= '" rel="fancy-group" id="img' . $num . '">' . showThumb($currentPhoto) . '</a>' . "\n\t\t";
    return $output;
}
开发者ID:joeybaker,项目名称:iomhas,代码行数:14,代码来源:page.php

示例14: header

            if (!$_GET['nohead']) {
                header('Content-Type: image/png');
            }
            echo file_get_contents($md5file);
        } else {
            if (!$_GET['nohead']) {
                header('Content-Type: image/png');
            }
            echo file_get_contents($md5file);
        }
    }
} else {
    if ($mx) {
        if (!$_GET['nohead']) {
            header('Content-Type: image/png');
        }
        showThumb($p, $mx, $mx, $md5file);
    } else {
        if ($mxw && $mxh) {
            if (!$_GET['nohead']) {
                header('Content-Type: image/png');
            }
            showThumb($p, $mxw, $mxh, $md5file);
        } else {
            if (!$_GET['nohead']) {
                header('Content-Type: image/png');
            }
            showThumb($p, 1000, 1000, $md5file);
        }
    }
}
开发者ID:juslee,项目名称:e27,代码行数:31,代码来源:image.php

示例15: urlencode

echo urlencode(url_for('event_show', $event, true));
?>
&t=<?php 
echo urlencode($event->getName());
?>
" target="_blank" class="facebook">
          Partager sur Facebook
        </a>
      </p>
    </div>
    <div class="span4">
      <?php 
if ($event->getAffiche()) {
    ?>
        <?php 
    echo showThumb($event->getAffiche(), 'events', array('width' => 350, 'height' => 250, 'class' => 'pull-right img-polaroid'), 'scale');
    ?>
<br />
      <?php 
}
?>
    </div>
  </div>
</div>
<?php 
if ($galeries->count() > 0 || $isPhotographer) {
    ?>
  <div class="part" id="galerie">
    <h1>Galerie Photo
      <?php 
    if ($isPhotographer) {
开发者ID:TheoJD,项目名称:portail,代码行数:31,代码来源:showSuccess.php


注:本文中的showThumb函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。