<?php $this->beginWidget('system.web.widgets.CClipWidget', array('id' => 'top-banner')); ?> <div style="position: relative" class="hidden-xs"> <div id="service-slider" class="royalSlider heroSlider rsMinW"> <?php foreach (OurService::getMainCategories() as $k => $category) { ?> <?php if ($category->id == $model->id) { $startSlideId = $k; } ?> <div class="rsContent"> <?php echo InputHelper::holderImage($category->getImageUrl(1903, 407), 1903, 407, array('class' => 'rsImg')); ?> <span class="rsTmb"><?php echo $category->name; ?> </span> </div> <?php } ?> </div> <div class="service-tab"> <div class="container"><div class="table-responsive"><!-- content added by js --></div></div> </div> </div>
<?php if ($banner) { $allImg = ''; ?> <div class="bn-advers-2 banner_middle_fix"> <?php foreach ($banner as $item) { ?> <?php if ($item->link != "") { $img = InputHelper::holderImage($item->getImageUrl(263, 220), 263, 220); $allImg .= sprintf('<a href="%s" target="_blank">%s</a>', $item->link, $img); } else { $allImg .= InputHelper::holderImage($banner->getImageUrl(263, 220), 263, 220); } ?> <?php } ?> <?php echo $allImg; ?> <?php Yii::app()->clientScript->registerScript('middle-banner', "\n\t\t\$('.banner_middle_fix').bxSlider({\n\t\t\tmode: 'fade',\n\t\t\tauto: true,\n\t\t\tpager: false,\n\t\t\tcontrols: false,\n\t\t\tpause: 15000\n\t\t}); \n\t"); ?> </div> <?php }
if ($index % 4 == 0) { ?> <div class="row"> <?php } ?> <div class="col-md-3"> <div class="item"> <h4><?php echo $forum['name']; ?> </h4> <div style="padding: 10px"> <p class="image"><?php echo InputHelper::holderImage($forum['image'], 258, 141); ?> </p> <p><?php echo $forum['desc']; ?> </p> </div> <a href="<?php echo $forum['link']; ?> " target="_blank" class="read-more">READ MORE</a> </div> </div> <?php
<?php /* @var $banner Banner */ if ($banner) { ?> <?php Yii::app()->clientScript->registerScript('top-banner', "\r\t\t\$('#bn-list').bxSlider({\r\t\t\tmode: 'fade',\r\t\t\tauto: true,\r\t\t\tpager: false,\r\t\t\tcontrols: false,\r\t\t\tpause: 3000,\r\t\t\tpreloadImages: 'visible'\r\t\t});\r\t"); $Allbanner = Banners::getAdsBannerByType(TOP); $allImg = ''; if (count($Allbanner) > 0 && is_array($Allbanner)) { foreach ($Allbanner as $key => $banner) { $i = $key + 1; $img = InputHelper::holderImage($banner->getImageUrl2(728, 90), 728, 90); $allImg .= sprintf('<a href="%s" target="_blank">%s</a>', $banner->link, $img); } } ?> <div class="bn-advers"> <div id="bn-list"><?php echo $allImg; ?> </div> </div> <?php }
<?php foreach ($photoList as $key => $item) { if ($key == 0) { $img = $item->getImageUrl(633, 390, true); } ?> <li> <a class="fancybox thumb" rel="gallery1" custom="<?php echo InputHelper::holderUrl($item->getImageUrl(1024, 768, true), 1024, 768); ?> " href="<?php echo InputHelper::holderUrl($item->getImageUrl(633, 390, true), 633, 390); ?> " > <?php echo InputHelper::holderImage($item->getImageUrl(77, 47, true), 77, 47); ?> </a> </li> <?php } ?> </ul> </div> <a href="#" class="jcarousel-control-prev"> </a> <a href="#" class="jcarousel-control-next"> </a> </div> <div class="big-photo"> <?php
<?php /* Author : Pham Duy Toan * Email :ghostkissboy12@gmail.com and open the template in the editor. */ ?> <div class="item-releated"> <div class="img"> <?php $imgDefautl = Listing::getDefaultImgListing($data->id, 'image'); echo InputHelper::holderImage($data->getDefaultImageUrl(120, 96), 120, 96); $check = ''; if ($data->releated) { if ($data->releated->listing_releated == $data->id) { $check = 'checked'; } } ?> </div> <div class="clear"></div> <input type="checkbox" class="checkphoto-releated" name="releated[<?php echo $data->id; ?> ]" value="<?php echo $data->id; ?> " <?php echo $check; ?> />
<?php if ($allBanner) { ?> <?php $allImg = ''; if (count($allBanner) > 0 && is_array($allBanner)) { foreach ($allBanner as $key => $banner) { $i = $key + 1; if ($banner->link != "") { $img = InputHelper::holderImage($banner->getImageUrl(728, 90), 728, 90); $allImg .= sprintf('<a href="%s" target="_blank">%s</a>', $banner->link, $img); } else { $allImg .= InputHelper::holderImage($banner->getImageUrl(728, 90), 728, 90); } } } ?> <div class="bn-advers bn-ads-bottom"> <div id="bn-list-bottom"> <?php echo $allImg; ?> </div> </div> <?php Yii::app()->clientScript->registerScript('bottom-banner', "\r\t\t\$('#bn-list-bottom').bxSlider({\r\t\t\tmode: 'fade',\r\t\t\tauto: true,\r\t\t\tpager: false,\r\t\t\tcontrols: false,\r\t\t\tpause: 15000,\r\t\t\tpreloadImages: 'visible'\r\t\t});\r\t"); ?> <?php }
Yii::app()->clientScript->registerScript('featured_agent_roundabout', "\rjQuery(document).ready(function() {\r jQuery('#featured-agents').roundabout({ \r\t\tautoplay:true, \r\t\tautoplayDuration: 5000,\r\t\tautoplayPauseOnHover: true\r\t});\r});\r"); ?> <p class="text-center visible-sm-block visible-xs-block"> <a href="<?php echo $this->createUrl('agent/index'); ?> " class="btn btn-orange btn-ourteam">Our Team</a> </p> <div class="green-tab visible-md-block visible-lg-block"> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li role="presentation" class="active"><a href="javascript:void(0)">Our Team</a> </li> </ul> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane active"> <a href="<?php echo $this->createUrl('agent/index'); ?> " class="btn btn-alpha pull-right" style="margin-top: 10px">View All</a> <div class="roundabout-wrap"> <ul id="featured-agents" class="roundabout-holder"> <?php foreach ($models as $model) { ?> <li class="roundabout-moveable-item roundabout-in-focus agent-item"> <a href="<?php echo $this->createUrl('/agent/view', array('slug' => $model->slug));
echo (int) $model->view_count; ?> views</div> <div class="col-xs-7"> <div class="addthis_native_toolbox" data-title="<?php echo CHtml::encode($propName); ?> " data-url="<?php echo $propUrl; ?> "></div> </div> </div> </div> <div class="author">Posted by: <span class="author-image"> <?php echo InputHelper::holderImage($model->rUser->getAvatarUrl(27, 27), 27, 27); ?> </span> <a href="<?php echo $linkAgent; ?> "><?php echo $sp->first_name . " " . $sp->last_name; ?> </a></div> </div> </div> </div>
<?php /* @var $model ProAgent */ /* @var $this AgentController */ $this->breadcrumbs = array('Our Team' => array('index'), $model->name_for_slug); $phone = substr($model->phone, 0, 4) . ' ' . substr($model->phone, 4, 4); // add this button Yii::app()->clientScript->registerScriptFile("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56133df5326f44f0", CClientScript::POS_END, array('async' => 'async')); ?> <div class="agent-detail"> <div class="row" style="margin-bottom: 30px"> <div class="col-sm-5"> <div class="image"> <?php echo InputHelper::holderImage($model->getAvatarUrl(286, 286), 286, 286); ?> <div class="listing-count"><strong><?php echo $model->listingCount; ?> </strong><br/>Listings</div> <div class="caption">OneHome's Agent</div> </div> </div> <div class="col-sm-7"> <h3 class="agent-title"><?php echo $model->name_for_slug; ?> </h3> <p style="color: #aaa9b7">CEA Reg No: <span class="cea"><?php echo $model->agent_cea; ?>
// add this button Yii::app()->clientScript->registerScriptFile("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56133df5326f44f0", CClientScript::POS_END, array('async' => 'async')); // fontawesome Yii::app()->clientScript->registerCssFile("https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"); if ($index % 2 == 0) { ?> <div class="grid"> <?php } ?> <?php $cmsFormater = new CmsFormatter(); $linkImage = $data->getDefaultImageUrl(120, 96); ?> <div class="item"> <div class="image"> <div class="img-box"> <?php echo InputHelper::holderImage($linkImage, 120, 96); ?> </div> <?php $urlReturn = "http://" . $_SERVER['HTTP_HOST'] . Yii::app()->request->requestUri; $link = Yii::app()->createAbsoluteUrl('site/login', array('returnUrl' => $urlReturn)); if (!isset(Yii::app()->user->role_id) || Yii::app()->user->role_id == ROLE_REGISTER_MEMBER) { ?> <p><a next="<?php echo $link; ?>
$phone = substr($data->phone, 0, 4) . ' ' . substr($data->phone, 4, 4); if ($index % 4 == 0) { ?> <div class="row"> <?php } ?> <div class="col-md-3 col-sm-6"> <div class="agent-thumb"> <div class="image"> <a href="<?php echo $link; ?> "><?php echo InputHelper::holderImage($data->getAvatarUrl(278, 199), 278, 199); ?> </a> <div class="listing-count"><strong><?php echo $data->listingCount; ?> </strong><br/>Listings</div> <div class="caption">OneHome's Agent</div> </div> <div class="desc"> <div class="row"> <div class="col-xs-6"> <h3><a href="<?php echo $link; ?>
<?php if ($index % 2 == 0) { ?> <div class="row"> <?php } ?> <div class="col-sm-6"> <div class="prop-item-2"> <div class="row"> <div class="image col-md-4"> <div class="img-box"> <?php echo InputHelper::holderImage($linkImage, 266, 161); ?> </div> <div class="description"> <?php $urlReturn = "http://" . $_SERVER['HTTP_HOST'] . Yii::app()->request->requestUri; $link = Yii::app()->createAbsoluteUrl('site/login', array('returnUrl' => $urlReturn)); if (!isset(Yii::app()->user->role_id) || Yii::app()->user->role_id == ROLE_REGISTER_MEMBER) { ?> <p><a next="<?php echo $link; ?> " href="javascript:void(0);" data-listing-id="<?php echo $data->id; ?> " class="ico-star shortlist">Shortlist</a></p>
<div class="bn-small"> <div class="slider-ads"> <?php if ($banner) { $allImg = ''; ?> <?php foreach ($banner as $item) { ?> <?php if ($item->link != "") { $img = InputHelper::holderImage($item->getImageUrl(265, 365), 265, 365); $allImg .= sprintf('<a href="%s" target="_blank">%s</a>', $item->link, $img); } else { $allImg .= InputHelper::holderImage($item->getImageUrl(265, 365), 265, 365); } ?> <?php } ?> <?php echo $allImg; ?> <?php Yii::app()->clientScript->registerScript('right-banner', "\r\t\t\t\t\$('.slider-ads').bxSlider({\r\t\t\t\t\tmode: 'fade',\r\t\t\t\t\tauto: true,\r\t\t\t\t\tpager: false,\r\t\t\t\t\tcontrols: false,\r\t\t\t\t\tpause: 15000\r\t\t\t\t});\r\t\t\t"); ?> <?php } ?> </div>
<?php if ($banner) { ?> <div id="banner-slider"> <?php foreach ($banner as $item) { $allImg = ""; if ($item->link != "") { $img = InputHelper::holderImage($item->getSlideshowImageUrl(1519, 350), 1519, 350); $allImg .= sprintf('<a href="%s" target="_blank">%s</a>', $item->link, $img); } else { $allImg .= InputHelper::holderImage($item->getSlideshowImageUrl(1519, 350), 1519, 350); } echo $allImg; } ?> </div> <?php Yii::app()->clientScript->registerScript('homepage-banner', "\r\t\t\$('#banner-slider').bxSlider({ \r\t\t\tpager: true,\r\t\t\tcontrols: false,\r\t\t\tauto: true,\r\t\t\tmode: 'fade',\r\t\t\tpause: 10000,\r\t\t\tpreloadImages: 'visible'\r\t\t});\r\t"); }