当前位置: 首页>>代码示例>>PHP>>正文


PHP zmf::filterOutput方法代码示例

本文整理汇总了PHP中zmf::filterOutput方法的典型用法代码示例。如果您正苦于以下问题:PHP zmf::filterOutput方法的具体用法?PHP zmf::filterOutput怎么用?PHP zmf::filterOutput使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在zmf的用法示例。


在下文中一共展示了zmf::filterOutput方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

$_uname = Users::getUserInfo($data['uid'], 'truename');
?>
<div class="media zmf-border-bottom" id="comment_<?php 
echo $data['id'];
?>
"> 
    <div class="media-body">
        <p><?php 
echo CHtml::link($_uname, array('index/media', 'id' => $data['uid']), array('target' => '_blank'));
if ($data['tocommentid'] > 0) {
    $cominfo = Posts::getSimpleInfo($data['tocommentid'], 'comments');
    $_cuname = Users::getUserInfo($cominfo['uid'], 'truename');
    ?>
&nbsp;回复&nbsp;<?php 
    $this->renderPartial('/common/_user', array('uid' => $cominfo['uid'], 'uname' => $_cuname, 'type' => 'l'));
}
?>
</p>
      <p><?php 
echo zmf::filterOutput($data['content'], true);
?>
</p>
      <p class="color-grey"><?php 
echo tools::formatTime($data['cTime']);
?>
</p>
    </div>
</div>
开发者ID:ph7pal,项目名称:naodong,代码行数:30,代码来源:_comment.php

示例2: array

    echo '<p><span class="color-bold">邮箱:</span>' . CHtml::encode($info['email']) . '</p>';
}
?>
                  <?php 
if ($info['fax'] != '') {
    echo '<p><span class="color-bold">传真:</span>' . CHtml::encode($info['fax']) . '</p>';
}
?>
                  <?php 
if ($info['traffic'] != '') {
    echo '<p><span class="color-bold">交通:</span>' . CHtml::encode($info['traffic']) . '</p>';
}
?>
                  <?php 
if ($info['content'] != '') {
    echo '<p><span class="color-bold">描述</span></p><p id="poi-content-sub-' . $info['id'] . '">' . zmf::subStr($info['content'], 140, 0, '...' . CHtml::link('<span class="icon-double-angle-down"></span> 展开', 'javascript:;', array('onclick' => '$("#poi-content-sub-' . $info['id'] . '").hide();$("#poi-content-' . $info['id'] . '").show();'))) . '</p><p id="poi-content-' . $info['id'] . '" style="display:none">' . zmf::filterOutput($info['content']) . CHtml::link('<span class="icon-double-angle-up"></span> 收起', 'javascript:;', array('onclick' => '$("#poi-content-' . $info['id'] . '").hide();$("#poi-content-sub-' . $info['id'] . '").show();')) . '</p>';
}
?>
      
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane" id="poi-posts-container"></div>
        <div role="tabpanel" class="tab-pane" id="poi-poipost-container"></div>
        <div role="tabpanel" class="tab-pane" id="poi-map-container">
            <?php 
$this->renderPartial('/position/map', array('info' => $info, 'faceimg' => $info['faceimg']));
?>
        </div>
        <div role="tabpanel" class="tab-pane" id="poi-images-container"></div>
    </div>
开发者ID:ph7pal,项目名称:wedding,代码行数:31,代码来源:view.php

示例3: foreach

<h2 class="item-title">提醒</h2>
<?php 
if (!empty($posts)) {
    foreach ($posts as $row) {
        ?>
 
<p class="help-block" <?php 
        if ($row['new']) {
            ?>
style="font-weight: bold" <?php 
        }
        ?>
>
    <span><?php 
        echo zmf::filterOutput($row['content']);
        ?>
</span>
    <span class="pull-right">
        <?php 
        echo tools::formatTime($row['cTime']);
        ?>
        <?php 
        echo CHtml::link('<span class="icon-remove"></span>', 'javascript:', array('onclick' => 'deletePost("' . $row['id'] . '","notice","' . Yii::app()->createUrl('users/notice') . '")'));
        ?>
    </span>
</p>
<?php 
    }
    $this->renderPartial('//common/pager', array('pages' => $pages));
} else {
    ?>
开发者ID:ph7pal,项目名称:naodong,代码行数:31,代码来源:notice.php

示例4: foreach

<?php 
    }
    ?>

<?php 
    if (!empty($topPosts)) {
        ?>
<h2><?php 
        echo zmf::t('topRecommend');
        ?>
</h2>
<div class="list-group">
  <?php 
        foreach ($topPosts as $tp) {
            ?>
  
    <?php 
            echo CHtml::link(zmf::filterOutput($tp['title'], true), array('posts/index', 'id' => $tp['id']), array('class' => 'list-group-item'));
            ?>
  <?php 
        }
        ?>
</div>
<?php 
    }
    ?>
 
<?php 
}
?>
  
开发者ID:ph7pal,项目名称:wedding,代码行数:30,代码来源:aside.php

示例5: array

?>
<div class="media zmf-border-bottom"><?php 
if ($data['faceimg']) {
    ?>
<div class="media-left"><a href="<?php 
    echo Yii::app()->createUrl('posts/view', array('id' => $data['id']));
    ?>
"><img src="<?php 
    echo zmf::lazyImg();
    ?>
" class="lazy" width="66" height="50" data-original="<?php 
    echo $data['faceimg'];
    ?>
" alt="<?php 
    echo $title;
    ?>
的封面图"/></a></div><?php 
}
?>
<div class="media-body post-body"><p class="title"><?php 
echo CHtml::link(zmf::filterOutput($title, true), array('posts/view', 'id' => $data['id']));
?>
</p><p class="color-grey"><?php 
if ($data['top']) {
    ?>
<span class="icon-bookmark" style="color:#FE852A" title="推荐文章"></span><?php 
}
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'userInfo' => $_userInfo, 'type' => 'l'));
echo CHtml::link($formatTime, array('posts/view', 'id' => $data['id']));
?>
</p></div></div>
开发者ID:ph7pal,项目名称:wedding,代码行数:31,代码来源:_travel_simple.php


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