本文整理汇总了PHP中get_slot函数的典型用法代码示例。如果您正苦于以下问题:PHP get_slot函数的具体用法?PHP get_slot怎么用?PHP get_slot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_slot函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: use_plop_theme
/**
* Set the theme
* @param Mixed $css String or array
*/
function use_plop_theme($class = '', $theme = null)
{
if (!$theme) {
$theme = sfPlop::get('sf_plop_theme');
}
if (preg_match('/\\s/', $theme) !== false) {
$subthemes = explode(' ', $theme);
$theme = array_shift($subthemes);
$class .= ' ' . implode(' ', $subthemes);
}
$themes = sfPlop::get('sf_plop_loaded_themes');
if ($theme != false && is_string($theme) && isset($themes[$theme])) {
if (isset($themes[$theme]['css'])) {
use_plop_stylesheet($themes[$theme]['css']);
}
if (isset($themes[$theme]['js'])) {
use_plop_javascript($themes[$theme]['js']);
}
} else {
$theme = '';
}
if (has_slot('sf_plop_theme') && $theme == sfPlop::get('sf_plop_theme')) {
slot('sf_plop_theme', get_slot('sf_plop_theme') . $theme . ' ' . $class);
} else {
slot('sf_plop_theme', $theme . ' ' . $class);
}
}
示例2: ui_select_pager
/**
* Set a slot and returns the HTML for a uiSelectPager.
*
* The slot allows to re-print the pager at the top and bottom of a table by
* running the pager template only once.
*
* Examples:
*
* echo ui_select_pager($pager)
* => Set and print the pager slot with the default slot name
* echo ui_select_pager()
* => Print the HTML for previously set slot
* echo ui_select_pager($pager, 'pager2')
* => Print and set a pager with a custom slot name
* (allows different pagers on one template)
* echo ui_select_pager(false, 'pager2')
* => Print previously set pager with custom slot name
*
* @param mixed $pager uiSelectPager object or false
* @param string $slot Slot name, leave out to use the default
*
* @return string HTML representation
*/
function ui_select_pager($pager = false, $slot = 'widgets.ui.pager')
{
if ($pager !== false) {
slot($slot);
$view = new coreView(coreContext::getInstance());
$view->getParameterHolder()->add(array('pager' => $pager));
$view->setTemplate(dirname(__FILE__) . '/templates/ui_select_pager.php');
echo $view->render();
end_slot();
}
return get_slot($slot);
}
示例3: include_http_metas
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php
include_http_metas();
?>
<?php
include_metas();
?>
<?php
if (has_slot('title')) {
?>
<title><?php
echo get_slot('title');
?>
| DonateNashville.org</title>
<?php
} else {
?>
<?php
include_title();
?>
<?php
}
?>
<link rel="shortcut icon" href="/favicon.ico" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" charset="utf-8">
google.load('jquery','1.4');
google.load('jqueryui', '1.8');
示例4: isset
}
if (count($items) > 0) {
?>
<ul <?php
echo isset($class) ? "class='{$class}'" : '';
?>
<?php
echo isset($id) ? "id='{$id}'" : '';
?>
>
<?php
foreach ($items as $item) {
if ($item->isAuthenticated()) {
?>
<?php
if ($item->isActive(get_slot('active-navigation'))) {
?>
<li class="active"><a href="#"><?php
echo $item->getName();
?>
</a>
<?php
} elseif ($item->isActiveBranch()) {
?>
<li class="active-parent"><?php
echo link_to($item->getName(), $item->getRoute());
?>
</a>
<?php
} elseif ($item->getRoute()) {
?>
示例5: __
<tr>
<th><?php
echo __('Description');
?>
</th><td><?php
echo $albumImage->getDescription();
?>
</td>
</tr>
</table>
<?php
end_slot();
?>
<?php
echo op_include_box('albumImageDetailBox', get_slot('_album_detail_table'), array('title' => __('View this photo')));
?>
<div class="dparts albumImageLikeList"><div class="parts">
<div class="block likeUnlikeLine">
<?php
if ($albumImageLike = $albumImage->isLiked($sf_user->getMemberId())) {
echo link_to(__('Unlike'), 'album_image_like_delete', $albumImageLike);
} else {
echo link_to(__('Like'), 'album_image_like_create', $albumImage);
}
?>
</div>
<div class="block likeListDetail">
<?php
include_component('albumImageLike', 'list', array('albumImage' => $albumImage));
示例6: get_sympal_menu
<div id="content">
<div id="left">
<?php
echo $sf_content;
?>
</div>
<?php
$menu = get_sympal_menu('primary');
?>
<div id="sidebar">
<?php
if (has_slot('sympal_right_sidebar')) {
?>
<?php
echo get_slot('sympal_right_sidebar');
?>
<?php
}
?>
<h2><?php
echo __('Navigation');
?>
</h2>
<?php
if ($menu) {
?>
<?php
echo $menu;
示例7: url_for
", "<?php
echo url_for('member/updateActivity');
?>
");
</script>
<?php
}
?>
<div class="box_list">
<ol id="<?php
echo $id;
?>
_timeline" class="activities">
<?php
foreach ($activities as $activity) {
include_partial('default/activityRecord', array('activity' => $activity));
}
?>
</ol>
</div>
<?php
end_slot();
?>
<?php
$params = array('title' => isset($title) ? $title : __('%activity% of %my_friend%', array('%activity%' => $op_term['activity']->titleize(), '%my_friend%' => $op_term['my_friend']->titleize()->pluralize())), 'class' => 'activityBox homeRecentList');
if (isset($gadget)) {
$params['moreInfo'] = array(link_to(__('More'), isset($moreUrl) ? $moreUrl : 'friend/showActivity'));
}
op_include_box($id, get_slot('activities'), $params);
示例8: slot
<?php
slot('header_text', 'Tags');
slot('header_link', 'tag/list');
?>
<?php
slot('pointer');
?>
Users can use tags to organically attach keywords to entities, relationships, or images.
If you're unfamiliar with tags, read more about them on <?php
echo link_to('Wikipedia', 'http://en.wikipedia.org/wiki/Tag_(metadata)');
?>
.
<?php
end_slot();
?>
<?php
include_partial('global/pointer', array('text' => get_slot('pointer')));
?>
<?php
include_partial('global/section', array('title' => 'Tags', 'pager' => $tag_pager));
?>
<?php
include_partial('global/table', array('columns' => array('Name', 'Count', 'Latest Addition'), 'pager' => $tag_pager, 'row_partial' => 'tag/listrow'));
示例9: __
}
echo $form->renderFormTag(url_for('@confirmation_decision?id=' . $item['id'] . '&category=' . $category));
echo $form->renderHiddenFields();
?>
<input type="submit" name="accept" value="<?php
echo __('Accept');
?>
" class="input_submit" />
<input type="submit" value="<?php
echo __('Reject');
?>
" class="input_submit" />
</form>
<?php
end_slot();
$list_html[] = get_slot('_list_html');
}
op_include_list('confirmList', $list_html, array('border' => true));
?>
<?php
} else {
echo __('You don\'t have any pending requests', array('title' => __($config[$category])));
}
?>
<hr color="<?php
echo $op_color['core_color_11'];
?>
">
示例10: __
<?php
echo !isset($keyword) ? __('There are no diaries.') : __('Your search "%1%" did not match any diaries.', array('%1%' => $keyword));
?>
<?php
}
?>
<?php
slot('diarySearchForm');
?>
<form action="<?php
echo url_for('@diary_search');
?>
">
<input type="text" name="keyword" value="<?php
if (isset($keyword)) {
echo $keyword;
}
?>
">
<input type="submit" value="<?php
echo __('Search');
?>
">
</form>
<?php
end_slot();
$options = array('title' => __('Diary Search'));
op_include_box('diarySearchForm', get_slot('diarySearchForm'), $options);
示例11: get_slot
<div id="module_wrapper">
<div id="module">
<div class="isprite module_header">
<fb:profile-pic uid="<?php
echo $friendID;
?>
"></fb:profile-pic>
<h3><?php
echo get_slot("fbUsername");
?>
</h3>
<ul id="module_breadcrumb">
<li><a class="isprite prog1 one active" href="#"></a></li>
<li><a class="isprite prog2 two" href="#"></a></li>
<li><a class="isprite prog3 three" href="#"></a></li>
<li><a class="isprite prog4 four" href="#"></a></li>
<li><a class="isprite prog5 five" href="#"></a></li>
</ul>
</div><!-- END #module_header -->
<form id="frmQuestions" name="frmQuestions" method="post" action="<?php
echo url_for("@canvas_dorate");
?>
">
<?php
echo $form->renderHiddenFields();
?>
<div id="slider-pane">
<div id="slider">
示例12: use_helper
use_helper('LsNumber');
?>
<span class="text_big">
<?php
slot('share_text');
echo entity_link($relationship['Entity1']);
?>
<?php
echo $current === NULL ? "is/was" : ($current == '1' ? "is" : "was");
?>
a member of <?php
echo entity_link($relationship['Entity2']);
end_slot();
echo get_slot('share_text');
slot('share_text', RelationshipTable::formatSentenceForShare(get_slot('share_text')));
?>
</span>
<br />
<br />
<?php
$data = array('Title' => $relationship['description1'], 'Start date' => Dateable::convertForDisplay($relationship['start_date']), 'End date' => Dateable::convertForDisplay($relationship['end_date']), 'Is current' => LsLogic::nullOrBoolean($relationship['is_current']), 'Dues' => readable_number($relationship['dues'], '$'), 'Notes' => $relationship['notes'] ? nl2br($relationship['notes']) : null);
?>
<?php
include_partial('global/section', array('title' => 'Details'));
?>
<div class="padded">
示例13: get_slot
<meta name="description" content="<?php
if (!include_slot('description', peanutConfig::get('meta_description'))) {
get_slot('description');
}
?>
">
<meta name="keywords" content="<?php
if (!include_slot('keywords', peanutConfig::get('meta_keywords'))) {
get_slot('keywords');
}
?>
">
<meta name="robots" content="<?php
if (!include_slot('robots', peanutConfig::get('meta_robots'))) {
get_slot('robots');
}
?>
">
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
示例14: foreach
">
<span id="count">
<span id="count_num">140</span>
<span id="count_plus" title="もう少し入力できます"></span>
</span>
<?php
echo $form->renderHiddenFields();
echo $form['body'];
?>
<input type="submit" id="submit" value="送信" />
<?php
echo $form['twitter'] . $form['twitter']->renderLabel();
?>
</form>
<ol id="timeline" class="activities">
<?php
foreach ($activities as $activity) {
include_partial('default/activityRecord', array('activity' => $activity));
}
?>
</ol>
</div>
<?php
end_slot();
?>
<?php
op_include_box('twitter_' . $gadget->id, get_slot('body'), array('title' => 'Twtter風ガジェット'));
示例15: image_path
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="shortcut icon" href="<?php
echo image_path('/images/favicon.ico');
?>
"/>
<?php
include_http_metas();
?>
<?php
include_metas();
?>
<title><?php
echo get_slot('title', 'Uberлов — Узнай, где ловить рыбу!');
?>
</title>
<!-- --><?php
//include_stylesheets()
?>
<?php
include_combined_stylesheets();
?>
<script type="text/javascript">
baseUrl = "<?php
echo substr(url_for('@homepage'), 0, strlen(url_for('@homepage')) - 1);
?>
";
baseUrlFull = "<?php
echo substr(url_for('@homepage', true), 0, strlen(url_for('@homepage', true)) - 1);