• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_slot函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了get_slot函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
    }
}
开发者ID:noreiller,项目名称:sfPlopPlugin,代码行数:31,代码来源:sfPlopHelper.php


示例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);
}
开发者ID:nikitakit,项目名称:RevTK,代码行数:35,代码来源:WidgetsHelper.php


示例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');
开发者ID:bshaffer,项目名称:Donate-Nashville,代码行数:31,代码来源:layout.php


示例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()) {
                ?>
开发者ID:bshaffer,项目名称:Symplist,代码行数:31,代码来源:_tree.php


示例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));
开发者ID:balibali,项目名称:opAlbumPlugin,代码行数:31,代码来源:showSuccess.php


示例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;
开发者ID:sympal,项目名称:sympal,代码行数:31,代码来源:wordpress.php


示例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);
开发者ID:shotaatago,项目名称:OpenPNE3,代码行数:30,代码来源:_activityBox.php


示例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'));
开发者ID:silky,项目名称:littlesis,代码行数:28,代码来源:listSuccess.php


示例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'];
?>
">
开发者ID:te-koyama,项目名称:openpne,代码行数:30,代码来源:listSuccess.php


示例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);
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:30,代码来源:listSuccess.php


示例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">
开发者ID:richsage,项目名称:FLIP-django-facebook,代码行数:31,代码来源:dorateSuccess.php


示例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">
开发者ID:silky,项目名称:littlesis,代码行数:31,代码来源:_membershipview.php


示例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 
开发者ID:ndachez,项目名称:dacheznicolas,代码行数:30,代码来源:layout.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風ガジェット'));
开发者ID:upsilon,项目名称:opTwitterlikePlugin,代码行数:30,代码来源:_twitter.php


示例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);
开发者ID:limitium,项目名称:uberlov,代码行数:31,代码来源:layout.php


示例16: slot

    ?>
</div>
<?php 
}
?>

<?php 
slot('form_global_error');
foreach ($forms as $form) {
    if ($form->hasGlobalErrors()) {
        echo $form->renderGlobalErrors();
    }
}
end_slot();
if (get_slot('form_global_error')) {
    op_include_parts('alertBox', 'FormGlobalError', array('body' => get_slot('form_global_error')));
}
?>

<?php 
$hasRequiredField = false;
?>

<?php 
slot('form_table');
?>
<table>
<?php 
include_customizes($id, 'firstRow');
echo $options->getRaw('firstRow');
?>
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:_partsForm.php


示例17: include_slot

/**
 * Evaluates and echoes a slot.
 *
 * <b>Example:</b>
 * <code>
 *  include_slot('navigation');
 * </code>
 *
 * @param  string $name  slot name
 *
 * @see    has_slot, get_slot
 */
function include_slot($name)
{
    return ($v = get_slot($name)) ? print $v : false;
}
开发者ID:ajith24,项目名称:ajithworld,代码行数:16,代码来源:PartialHelper.php


示例18: count

echo count($queue);
?>
</strong> 件</p>
</div>
<ol>
<?php 
foreach ($queue as $job) {
    ?>
<li>
<?php 
    echo $job->File->original_filename;
    ?>
 
(アップロード: <?php 
    echo op_format_date($job->File->created_at, 'f');
    ?>
)
</li>
<?php 
}
?>
</ol>
<?php 
end_slot();
?>

<?php 
op_include_box('import_queue', get_slot('queue'), array('title' => 'インポート待ちのファイル'));
?>

开发者ID:upsilon,项目名称:opMTViewerPlugin,代码行数:29,代码来源:indexSuccess.php


示例19: __

</div>
<div id="whoami">
<p><strong><?php 
echo __('You are login to %1% as:', array('%1%' => $op_config['sns_name']));
?>
</strong></p>
<p class="photo">
<?php 
$imgParam = array('size' => '76x76', 'alt' => $sf_user->getMember()->getName());
if ($sf_user->getMember()) {
    echo op_image_tag_sf_image($sf_user->getMember()->getImageFileName(), $imgParam);
} else {
    echo op_image_tag('no_image.gif', $imgParam);
}
?>
</p>
<p class="text"><?php 
echo $sf_user->getMember()->getNameAndCount();
?>
</p>
</div>
<?php 
end_slot();
?>

<?php 
$sf_data->getRaw('options')->body = get_slot('_head') . $options->getRaw('body');
?>

<?php 
include_partial('global/partsYesNo', array('options' => $options));
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:_partsConsentForm.php


示例20: __

<li><input id="close_button" type="button" value="<?php 
    echo __('Close');
    ?>
" onclick="submit(false); false;" /></li>
</ul>
</div>
</div>
<?php 
} else {
    echo __('You don\'t have any %friend%.', array('%friend%' => $op_term['friend']->pluralize()));
}
end_slot();
?>

<?php 
op_include_box('inviteListBox', get_slot('invite_list_body'), array('title' => __('The invitation to this app is sent')));
javascript_tag();
?>
var member_ids = [];
var changePage = function (page) {
  new Ajax.Request("<?php 
echo url_for('@application_invite_list?id=' . $memberApplication->getId());
?>
?page=" + page, {
    method: 'get',
    onCreate: function() {
      $('member_list').innerHTML = '<tr><td colspan="2"><?php 
echo __('Loading');
?>
</td></tr>';
    },
开发者ID:rysk92,项目名称:opOpenSocialPlugin,代码行数:31,代码来源:inviteSuccess.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_slug函数代码示例发布时间:2022-05-15
下一篇:
PHP get_skin_select函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap