<?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'];
} 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 '» ' . ahref('u/album/delete/' . $this->child2, 'Delete empty album') . '<br/>'; } if ($session->id == $this->child) { echo '» ' . 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;
<?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='******'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>
<?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'; } ?>
/** * 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; }
} $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(',');
<?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
?> </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>
<?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
</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(); ?>
<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
<?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>
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; }
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); } } }
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) {
<i class="icon-edit icon-white"></i> <a href="<?php echo url_for('article/edit?id=' . $article->getId()); ?> ">Éditer</a> </span> <?php } ?> </h1> <?php if ($article->getImage()) { ?> <?php echo showThumb($article->getImage(), 'articles', array('width' => 350, 'height' => 250, 'class' => 'pull-right img-polaroid'), 'scale'); ?> <br/> <?php } ?> <p> Publié par <a href="<?php echo url_for('assos_show', $article->getAsso()); ?> " title="Voir la page de <?php echo $article->getAsso()->getName(); ?> ">
?> <li> <?php if ($banner['link']) { ?> <a href="<?php echo $banner['link']; ?> "><?php } ?> <?php echo showThumb($banner['picture'], 'banner', $options = array('width' => '940', 'height' => '392', 'alt' => $banner['title']), $resize = 'center', $default = 'default_banner.jpg'); ?> <?php if ($banner['link']) { ?> </a><?php } ?> <?php if ($banner['description']) { ?> <div class="flex-caption"><?php echo html_entity_decode($banner['description']);
if ($this->have()) { ?> <?php while ($this->next()) { ?> <div class="box-bar"></div> <article class="post box" itemscope itemtype="http://schema.org/BlogPosting"> <h2 class="post-title"><a href="<?php $this->permalink(); ?> "><?php $this->title(); ?> </a></h2> <?php $thumb = showThumb($this, null, true); if (!empty($thumb)) { ?> <div class="post-thumb"> <a class="thumb" href="<?php $this->permalink(); ?> " style="background-image:url(<?php echo $thumb; ?> )"></a> </div> <?php } ?> <div class="post-content">
<?php $interface = unserialize(peanutConfig::get('interface')); ?> <h1 class="nohidden"><?php echo __('Administration interface'); ?> | <?php echo $interface['title']; ?> </h1> <div class="logo"> <?php echo showThumb($interface['logo'], 'admin', $options = array('width' => '500', 'height' => '150', 'alt' => $interface['title'], 'itemprop' => 'image'), $resize = 'center', $default = 'default_logo.png'); ?> </div> <form class="box login" action="<?php echo url_for('@sf_guard_signin'); ?> " method="post"> <fieldset class="boxBody"> <label><?php echo __('Username'); ?> </label><?php echo $form['username']->render(); ?> <label><?php echo __('Password');
<?php use_helper('Thumb'); echo showThumb($photo->getImage(), 'galeries', array('width' => sfConfig::get('app_portail_photos_thumb_res_x'), 'height' => sfConfig::get('app_portail_photos_thumb_res_y'), 'class' => 'galery-thumbnail', 'alt' => $photo->getTitle(), 'title' => $photo->getTitle()), 'center');
<?php use_helper('Thumb'); ?> <h1>Editer une photo</h1> <div class = "row-fluid"> <div class="span12"> <div class="media"> <div class="pull-left"> <?php echo showThumb($photo->getImage(), 'galeries', array('width' => 80, 'height' => 80), 'center'); ?> </div> <div class="media-body"> <?php include_partial('formEdit', array('form' => $form)); ?> </div> </div> </div> </div>
?> </a> <?php } elseif ('video' == $object['type']) { ?> <a href="<?php echo $url; ?> " title="<?php echo $object['name']; ?> "> <?php echo showThumb($object['caption'], 'videos/captions', $options = array('width' => '200', 'height' => '200', 'alt' => $object['name'], 'itemprop' => 'image'), $resize = 'center', $default = 'default_portfolio.jpg'); ?> </a> <?php } ?> <?php } ?> </div> <div class="nav"> <a id="prev<?php echo $i; ?>
<section id="author" class="box clearfix"> <div class="clearfix"> <?php if ($author['image'] && $author['show_image']) { ?> <?php echo showThumb($author['image'], 'images', $options = array('class' => 'picture floatLeft', 'width' => '70', 'height' => '70', 'alt' => 'Photographie de ' . ($author['name'] && $author['show_name']) ? $author['name'] : 'l\'auteur'), $resize = 'scale', $default = '70x70_default.jpg'); ?> <?php if ($author['movie'] && $author['show_movie']) { echo '<a class="video" href="#" title="Voir la vidéo de présentation">'; echo showThumb($author['movie_cover'], 'movies_cover', $options = array('class' => '', 'width' => '16', 'height' => '16', 'alt' => ''), $resize = 'scale', $default = '16x16_default.png'); echo '</a>'; } ?> <?php } ?> <div class="description floatLeft"> <h1> <?php if ($author['name'] && $author['show_name']) { ?> <?php echo $author['name'];
echo 'User level: ' . UserHandler::getUserLevel($user_id) . '<br/>'; $gender_id = UserSetting::get($user_id, 'gender'); $gender = Setting::getById(USERDATA_OPTION, $gender_id); echo 'Gender: ' . $gender . '<br/>'; $pres = UserSetting::get($user_id, 'presentation'); if ($pres) { echo 'Presentation: ' . $pres . '<br/>'; } $pic_id = UserSetting::get($user_id, 'picture'); if ($pic_id) { echo 'Profile picture:<br/>'; $a = new XhtmlComponentA(); $a->href = getThumbUrl($pic_id, 0, 0); $a->content = showThumb($pic_id, 'Profilbild', 150, 150); echo $a->render(); } else { $avatar_opt = UserSetting::get($user_id, 'avatar'); // get pic id from avatar_id $avatar_id = UserDataFieldOption::getById($avatar_opt); if ($avatar_id) { echo 'Avatar:<br/>'; $a = new XhtmlComponentA(); $a->href = getThumbUrl($avatar_id, 0, 0); $a->content = showThumb($avatar_id, 'Avatar', 150, 150); echo $a->render(); } } break; default: echo 'No handler for view ' . $this->owner; }
<?php if (!$asso->isPole()) { ?> <li> <h3><a href="<?php echo url_for('asso/show?login='******'asso/show?login='******'assos', array('width' => 85, 'height' => 85, 'class' => 'logo'), 'center'); ?> </a> <div class="desc"> <?php echo $asso->getSummary(); ?> </br> <a class="website" href="<?php echo $asso->getUrlSite(); ?> "><?php echo $asso->getUrlSite(); ?> </a> - <a class="email" href="mailto:<?php echo $asso->getLogin();
} else { ?> <a class="sidebar-advert" href="<?php echo url_for('partner_show', array('slug' => $sidebarAdvertising['Partners']['slug'], 'sf_format' => 'html')); ?> " title="Voir la fiche du <strong>partenaire</strong> de la publicité : <?php echo $sidebarAdvertising['name']; ?> "> <?php } ?> <?php echo showThumb($sidebarAdvertising['image_square'], 'ads', $options = array('width' => '125', 'height' => '125', 'class' => '', 'alt' => 'Illustration pour : ' . $sidebarAdvertising['name'], 'itemprop' => 'image'), $resize = 'center', $default = 'default_illustration_partners.png'); ?> </a> <?php $i++; ?> <?php } ?> <?php while ($i < $numberAds) { ?> <a href="#contact" title="Vous voulez devenir partenaire ? Contactez-nous !" class="sidebar-advert"><img src="/images/demo-images/125.jpg" alt="advert" /></a> <?php $i++;
?> en bref <?php if ($sf_user->isAuthenticated() && $sf_user->getGuardUser()->hasAccess($asso->getLogin(), 0x1)) { ?> <span class="pull-right"><i class="icon-edit icon-white"></i> <a href="<?php echo url_for('asso_edit', $asso); ?> ">Éditer</a></span> <?php } ?> </h1> <div id="topbar"> <div class="logo_asso"><?php echo showThumb($asso->getLogo(), 'assos', array('width' => 150, 'height' => 150), 'scale'); ?> </div> <div class="desc"> <?php echo nl2br($asso->getDescription(ESC_XSSSAFE)); ?> </div> <a class="website" href="<?php echo $asso->getUrlSite(); ?> "><?php echo $asso->getUrlSite(); ?> </a><br />
</div> <?php } ?> <h1>Le Carnet Avantage 2.0</h1> <div class="row-fluid"> <ul class="thumbnails"> <?php foreach ($carnetAvantages as $carnetAvantage) { ?> <li class="span4"> <div class="thumbnail list"> <div class="media"> <a class="pull-left" href="#"> <?php echo showThumb($carnetAvantage->getLogo(), 'carnetavantages', array('width' => 32, 'height' => 32, 'class' => 'media-object'), 'center'); ?> </a> <h3 class="media-heading"><?php echo $carnetAvantage->getNom(); ?> </h3> </div> <p><?php echo $carnetAvantage->getDescription(); ?> </p> <?php if ($carnetAvantage->getAdresse()) { ?> <i class="fa fa-home"></i> <?php