本文整理汇总了PHP中include_component_slot函数的典型用法代码示例。如果您正苦于以下问题:PHP include_component_slot函数的具体用法?PHP include_component_slot怎么用?PHP include_component_slot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了include_component_slot函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: include_component_slot
<?php
include_component_slot('tagList', array('entity' => $entity, 'page' => $page));
示例2: format_number
echo format_number($propuestasPager->getFirstIndice() + $idx, 'es_ES');
?>
.</td>
<td class="photo">
<?php
echo link_to(image_tag(S3Voota::getImagesUrl() . '/' . $propuesta->getImagePath() . '/cc_s_' . $propuesta->getImagen(), 'alt="' . __('Foto de %1%', array('%1%' => $propuesta)) . '"'), 'propuesta/show?id=' . $propuesta->getVanity());
?>
</td>
<td class="name">
<?php
echo link_to($propuesta->getTitulo(), 'propuesta/show?id=' . $propuesta->getVanity(), array('class' => 'tooltip_propuesta', 'title' => secureString(__('Sobre esta propuesta') . '|' . __('Creada el %1%', array('%1%' => format_date($propuesta->getCreatedAt()))) . '|' . cutToLength($propuesta->getDescripcion(), 200, '...', true))));
?>
</td>
<td class="voto">
<?php
include_component_slot('quickvote', array('entity' => $propuesta));
?>
</td>
<td class="positive-votes"><?php
echo sumu($propuesta);
?>
</td>
<td class="negative-votes"><?php
echo sumd($propuesta);
?>
</td>
<td class="date">
<?php
echo format_date($propuesta->getCreatedAt());
?>
</td>
示例3: removeTag
if (TagManager::isMine($etiqueta, $entity)) {
?>
<a href="#" class="remove" onclick="return removeTag(<?php
echo $etiqueta->getId();
?>
)">X</a>
<?php
}
?>
</li>
<?php
}
?>
<?php
include_component_slot('tagList', array('entity' => $entity, 'myCount' => count($myTags)));
?>
</ul>
<?php
} else {
?>
<p><?php
echo __('De momento sin etiquetas');
?>
</p>
<?php
}
?>
示例4: include_partial
</form>
<?php endif ?>
<?php include_partial('listPage', array('reviewsPager' => $reviewsPager, 'sfReviewType' => $sfReviewType, 'text' => $text)) ?>
</div>
<?php */
?>
<div id="content">
<div class="reviews">
<div id="tab-all-reviews">
<?php
//include_component_slot('reviews', array( 'page' => 1, 'sfReviewType' => $sfReviewType, 'filter' => $text, 'culture' => $culture ))
?>
<?php
include_component_slot('activities', array('page' => 1, 'sfReviewType' => $sfReviewType, 'filter' => $text, 'culture' => $culture));
?>
</div>
</div>
</div>
<div id="sidebar">
<div id="ultimos-usuarios">
<h3><?php
echo __('Últimos en llegar a Voota');
?>
</h3>
<ol>
<?php
foreach ($lastUsers as $user) {
示例5: __
<h3><?php
echo __('Voota sobre %1%', array('%1%' => $partido->getNombre()));
?>
</h3>
<div id="sf_review2">
<?php
if ($sf_user->isAuthenticated() && $sfr_status && $sfr_status['b'] == 'sf_review2') {
?>
<?php
include_component_slot('sfrForm', array('reviewId' => false, 'reviewEntityId' => $partido->getId(), 'reviewType' => Partido::NUM_ENTITY, 'reviewBox' => 'sf_review2', 'redirect' => false, 'reviewValue' => $sfr_status['v'], 'reviewText' => '', 'reviewToFb' => false));
?>
<?php
} else {
?>
<?php
include_component_slot('sfrPreview', array('reviewId' => false, 'reviewBox' => 'sf_review2', 'reviewType' => Partido::NUM_ENTITY, 'reviewEntityId' => $partido->getId()));
?>
<?php
}
?>
</div>
</div>
<?php
if ($partidosPager) {
?>
<?php
include_partial('general/entity_pagination', array('position' => 'bottom', 'pager' => $partidosPager, 'id' => $partido->getId()));
?>
<?php
}
示例6: include_component_slot
<?php
if ($obj instanceof sfGuardUser) {
?>
<?php
include_component_slot('usuarioResult', array('obj' => $obj, 'q' => $q));
?>
<?php
}
?>
<?php
if ($obj instanceof Convocatoria) {
?>
<?php
include_component_slot('convocatoriaResult', array('obj' => $obj, 'q' => $q));
?>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
<?php
}
?>
<?php
示例7: use_helper
<?php
use_helper('jQuery');
?>
<?php
foreach ($reviews->getResults() as $review) {
?>
<?php
include_component_slot('profileReview', array('review' => $review));
}
?>
<?php
if ($reviews->haveToPaginate() && $reviews->getLastPage() > $reviews->getPage()) {
?>
<div id="<?php
echo "more_reviews_" . $reviews->getPage();
?>
">
<?php
echo jq_form_remote_tag(array('update' => "more_reviews_" . $reviews->getPage(), 'url' => "@profile_more_comments", 'before' => "\$('#frm_more_reviews" . $reviews->getPage() . "').hide();re_loading('more_reviews_" . $reviews->getPage() . "');"), array('id' => "frm_more_reviews" . $reviews->getPage()));
?>
<div><input type="hidden" name="username" value="<?php
echo $user->getProfile()->getVanity();
?>
" /></div>
<div><input type="hidden" name="page" value="<?php
echo isset($page) ? $page : '1';
?>
" /></div>
示例8: include_component_slot
echo $sf_content;
?>
<?php
if ($module != 'landing') {
?>
</section>
</section>
<?php
}
?>
<?php
if (has_component_slot('site_bottom')) {
?>
<?php
include_component_slot('site_bottom');
?>
<?php
} else {
?>
<?php
include_partial('global/bottom');
?>
<?php
}
?>
<section class="learn-moreTab">
示例9: use_helper
<?php
use_helper('I18N');
/** @var Array of menu items */
$items = $sf_data->getRaw('items');
/** @var Array of categories, each containing an array of menu items and settings */
$categories = $sf_data->getRaw('categories');
?>
<div id="sf_admin_dashboard_slot">
<?php
include_component_slot('sf_admin_dashboard_slot');
?>
</div>
<div id="sf_admin_container">
<h1><?php
echo __('Dashboard', null, 'sf_admin_dash');
?>
</h1>
<?php
if (count($items)) {
?>
<?php
include_partial('dash_list', array('items' => $items));
?>
<?php
}
?>
<?php
if (count($categories)) {
示例10: __
echo $entity->getType();
?>
" />
<p>
<input type="text" id="nueva-etiqueta" name="texto" value="" title="<?php
echo __('Tú dirás...');
?>
" />
<input type="submit" id="nueva-etiqueta-submit" value="+" />
</p>
</form>
<?php
} else {
?>
<p><a href="<?php
echo url_for('sfGuardAuth/signin');
?>
"><?php
echo __('(Pero primero haz login, ¿eh?)');
?>
</a></p>
<?php
}
?>
<div id="taglist">
<?php
include_component_slot('tags', array('entity' => $entity));
?>
</div>
示例11: link_to
<?php
echo link_to(__($opts['tab_name']), '@' . $so);
?>
</li>
<?php
}
?>
</ul>
</div>
</div>
<div id="bd">
<div id="bd-top">
<?php
if ($sf_params->get('searchForm')) {
include_component_slot('searchForm');
}
?>
</div>
<div id="bd-content">
<?php
echo $sf_content;
?>
</div>
</div>
</body>
</html>
示例12: __
<a href="#" onclick="$('#<?php
echo "sf_review_sr_c{$listValue}_" . $review->getId();
?>
').slideUp();$('#<?php
echo "ver_sr_c{$listValue}_" . $review->getId();
?>
').show();$('#<?php
echo "ocultar_sr_c{$listValue}_" . $review->getId();
?>
').hide();return false;"><?php
echo __('ocultar');
?>
</a>
</span>)
<?php
}
?>
</p>
<div <?php
if (sfContext::getInstance()->getUser()->getAttribute('sfr_lastvoted_review_id', '') != $review->getId()) {
?>
style="display: none" <?php
}
?>
class="subreviews-wrapper" id="<?php
echo "sf_review_sr_c{$listValue}_" . $review->getId();
?>
" ><?php
include_component_slot('subreviews', array('id' => $review->getId(), 'listValue' => $listValue));
?>
</div>
示例13: foreach
</form>
<?php
}
?>
<?php
if ($reviewsPager->getPage() == 1) {
?>
<ol class="sf-reviews-list-brief"><?php
}
?>
<?php
foreach ($reviewsPager->getResults() as $review) {
?>
<?php
include_component_slot('review_for_list', array('review' => $review));
?>
<?php
}
if ($reviewsPager->getPage() == 1) {
?>
</ol><?php
}
?>
<?php
if ($reviewsPager->getPage() == 1) {
?>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('.reviews ol:first').reviews_pagination({
示例14: include_less_stylesheets
" />
<?php
include_less_stylesheets();
?>
<?php
include_javascripts();
?>
</head>
<body>
<div class="wrapper">
<?php
include_component_slot('menu');
?>
<div class="container">
<?php
include_component_slot('messages_flash');
?>
<?php
echo $sf_content;
?>
</div>
<div class="push"><!--//--></div>
</div>
<?php
include_component_slot('footer');
?>
</body>
</html>
示例15: image_tag
echo image_tag(S3Voota::getImagesUrl() . '/' . $politico->getImagePath() . '/cc_s_' . $politico->getImagen(), 'alt="' . __('Foto de %1%', array('%1%' => $politico)) . '"');
?>
</td>
<td class="name"><a href="<?php
echo url_for('politico/show?id=' . $politico->getVanity());
?>
"><?php
echo $politico;
?>
</a></td>
<?php
if (!$convocatoria->getClosedAt()) {
?>
<td class="voto">
<?php
include_component_slot('quickvote', array('entity' => $politico));
?>
</td><?php
}
?>
<td class="positive-votes">
<?php
if ($convocatoria->getClosedAt()) {
echo $politico->getLCSumu($curGeo);
} else {
echo $politico->getSumu();
}
?>
</td>
<td class="negative-votes"><?php
if ($convocatoria->getClosedAt()) {