本文整理汇总了PHP中text_helper::alternate方法的典型用法代码示例。如果您正苦于以下问题:PHP text_helper::alternate方法的具体用法?PHP text_helper::alternate怎么用?PHP text_helper::alternate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类text_helper
的用法示例。
在下文中一共展示了text_helper::alternate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: timelineNoticesUpdate
<?php
view::load('header');
?>
<section class="plugin-timeline notices-index" id="timeline-notices-container">
<ul class="unstyled content-list <?php
echo text_helper::alternate();
?>
">
<?php
view::load('timeline/notices/items', array('notices' => $notices));
?>
</ul>
</section>
<script type="text/javascript">
function timelineNoticesUpdate(url,last_id)
{
runAjax(url,{'last_id':last_id}, function(content, args){
$('#timeline-notices-container li.loader').remove();
$('#timeline-notices-container > ul').append(content);
}, '', 'ajax-timeline-load', 'icon-system-ajax');
}
function timelineDeleteAction(url, params, question)
{
var is_confirmed = confirm(question);
示例2: __
view::load('cp/system/elements/template/header');
?>
<section class="plugin-timeline message-edit">
<?php
echo form_helper::openForm();
?>
<fieldset class="form <?php
echo text_helper::alternate();
?>
">
<div class="row <?php
echo text_helper::alternate('odd', 'even');
?>
" id="input_row_message_edit_message">
<label for="input_edit_message_edit_message">
<?php
echo __('message', 'timeline');
?>
<span class="required">*</span>
</label>
<div class="field">
<?php
view::load('system/elements/field/edit', array('prefix' => 'message_edit', 'field' => array('keyword' => 'message', 'type' => 'textarea'), 'value' => $message));
?>
示例3: foreach
</div>
<?php
}
?>
<ul class="unstyled content-gallery clearfix <?php
echo text_helper::alternate();
?>
">
<?php
foreach ($users as $user) {
?>
<li class="<?php
echo text_helper::alternate('one', 'two', 'three');
?>
" id="row-helper-<?php
echo $user['user_id'];
?>
">
<figure class="image users-image">
<?php
view::load('users/profile/elements/picture', array_merge($user, array('picture_file_suffix' => 'l')));
?>
<figcaption class="image-caption">
<span class="nowrap nooverflow"><?php
$user['name'] = utf8::str_replace(' ', '<br/>', $user['name']);
echo users_helper::anchor($user, array('title' => $user['name']));