Beispiel #1
0
">
    <div class="media-left">
        <?php 
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'uname' => $_uname, 'type' => 'a'));
?>
        <br/>
        <?php 
echo CHtml::link($data['favor'], 'javascript:;', array('title' => '此点评对我有帮助', 'class' => 'btn btn-xs btn-' . ($_favored ? 'success' : 'default') . ' btn-block', 'action' => 'favor', 'action-data' => $data['id'], 'action-type' => $type, 'id' => 'favor-' . $type . '-' . $data['id']));
?>
    </div>
    <div class="media-body poi-tips-body">
        <p class="title"><?php 
if ($from == 'poipost') {
} else {
    if ($data['poiTitle']) {
        echo '<span class="pull-left">' . CHtml::link($data['poiTitle'], array('position/view', 'id' => $data['logid'])) . '</span>' . zmf::starCss($data['score']);
    }
}
?>
</p>
        <p class="author"><?php 
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'uname' => $_uname, 'type' => 'l', 'lcss' => ''));
?>
</p>        
        <div class="content-detail hidden">
            <?php 
echo zmf::text(array(), $data['content']);
?>
        </div>
        <div class="content-substr">
            <div class="toggle-area">
Beispiel #2
0
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="home">
            <div class="media poi-info">
                <div class="media-body" style="width: 100%;">    
                    <h1><?php 
echo CHtml::decode($_title);
?>
</h1>
                    <p><?php 
echo CHtml::decode($_address);
?>
</p>
                    <p><?php 
echo zmf::starCss($info['score']);
?>
<span class="pull-right poi-btn"></span></p>
                  <div class="clearfix"></div>
                  <?php 
if ($info['title_en'] != '' && $_titleEn) {
    echo '<p><span class="color-bold">英文名:</span>' . CHtml::encode($info['title_en']) . '</p>';
}
?>
                  <?php 
if ($info['title_local'] != '' && $_titleLocal) {
    echo '<p><span class="color-bold">当地名:</span>' . CHtml::encode($info['title_local']) . '</p>';
}
?>
                  <?php 
if ($info['address_en'] != '' && $_addEn) {
Beispiel #3
0
$_address = '';
if ($data['address_cn'] != '') {
    $_address = $data['address_cn'];
} elseif ($data['address_en'] != '') {
    $_address = $data['address_en'];
} else {
    $_address = $data['address_local'];
}
$faceimg = Attachments::faceImg($data, 170);
$url = array('position/view', 'id' => $data['id']);
?>
<div class="media poi-list"><?php 
$this->renderPartial('/common/_faceimg', array('img' => $faceimg, 'title' => $_title, 'id' => $data['id'], 'acss' => 'media-object lazy', 'lcss' => 'media-left', 'classify' => $data['classify'], 'width' => 170, 'url' => $url));
?>
<div class="media-body"><h4 class="media-heading"><?php 
echo CHtml::link(CHtml::encode($_title), array('position/view', 'id' => $data['id']));
?>
</h4><p class="color-grey"><?php 
echo $_secondTitle;
?>
</p><p class="color-grey"><?php 
echo CHtml::encode($_address);
if ($data['lat'] && $data['long']) {
    echo CHtml::link('(地图)', array('position/map', 'id' => $data['id']), array('title' => $_title . '的地图'));
}
?>
</p><p><?php 
echo zmf::starCss($data['score']);
echo CHtml::link($data['scorer'] . ' 点评', array('position/view', 'id' => $data['id']), array('class' => 'poi-list-a')) . CHtml::link($data['attach'] . ' 图片', array('position/view', 'id' => $data['id']), array('class' => 'poi-list-a'));
?>
</p></div></div>