1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- use yii\helpers\Url;
- use common\fm\Opencc;
- $module = Yii::$app->hostserver->module['module'];
- if (!empty(Yii::$app->request->get('hid'))) {
- $name = \common\models\House::findOne(Yii::$app->request->get('hid'))['name'];
- $housenews = (new \common\models\News())->getHouseNews($name);
- }
- ?>
- <!-- 楼盘导航 -->
- <div style="height:25px;"></div>
- <div class="y_lpnav">
- <div class="y_lpnavmain puic_wid puic_color c">
- <ul class="c">
- <li <?php $id = Yii::$app->request->get('hid'); if (strpos($_SERVER['REQUEST_URI'], 'house/' . $id) > 0) echo 'class="on"' ?>>
- <a href="/house/<?= $hid ?>">
- <span><?= Opencc::ConvertHn('楼盘首页') ?></span>
- </a>
- </li>
- <li <?php if (strpos($_SERVER['REQUEST_URI'], 'house/details') > 0) echo 'class="on"' ?>>
- <a href="/house/details/<?= $hid ?>">
- <span><?= Opencc::ConvertHn('楼盘信息') ?></span>
- </a>
- </li>
- <?php if (!empty($housenews)) { ?>
- <li <?php if (strpos($_SERVER['REQUEST_URI'], 'house/news') > 0) echo 'class="on"' ?>>
- <a href="/house/news/<?= $hid ?>">
- <span><?= Opencc::ConvertHn('楼盘动态') ?></span>
- </a>
- </li>
- <?php } ?>
- <li <?php if (strpos($_SERVER['REQUEST_URI'], 'house/type') > 0) echo 'class="on"' ?>>
- <a href="/house/type/<?= $hid ?>">
- <span><?= Opencc::ConvertHn('楼盘户型') ?></span>
- </a>
- </li>
- <li <?php if (strpos($_SERVER['REQUEST_URI'], 'house/album') > 0) echo 'class="on"' ?>>
- <a href="/house/album/<?= $hid ?>">
- <span><?= Opencc::ConvertHn('楼盘相册') ?></span>
- </a>
- </li>
- </ul>
- </div>
- </div>
|