<?php $this->pageTitle .= ' - ' . tt("FAQ") . ' - ' . $model['page_title']; $this->breadcrumbs = array(tt("FAQ") => array('index'), truncateText(CHtml::encode($model->getStrByLang('page_title')), 10)); ?> <h1><?php echo tt("FAQ"); ?> </h1> <?php if ($articles) { echo '<ul class="apartment-description-ul">'; foreach ($articles as $article) { echo '<li>' . CHtml::link($article['page_title'], $article->getUrl(), array('class' => 'title')) . '</li>'; } echo '</ul>'; } if (!empty($model)) { ?> <h2><?php echo $model['page_title']; ?> </h2> <p><?php echo $model['page_body']; ?> </p> <?php }
<?php if (is_array($ads) && count($ads) > 0) { $i = 0; foreach ($ads as $item) { if ($i == 4) { return; } echo '<div class="similarhr-ads-adv">'; echo '<a href="#card-object" role="button" data-toggle="modal" class="image">'; $res = Images::getMainThumb(297, 198, $item->images); echo CHtml::image($res['thumbUrl'], '', array('title' => $item->{'title_' . Yii::app()->language}, 'width' => 297, 'height' => 198)); echo '<span>' . Apartment::getNameByType($item->type) . ' ' . $item->bt_getPriceMod() . '</span></a>'; echo '<div class="similarhr-ads-desc"> <a href="#card-object" role="button" data-toggle="modal">' . truncateText(CHtml::encode($item->getStrByLang('title')), 6) . '</a> <ul> <li>м. Савёловская</li> <li>ул. Раздельная, д.12</li> </ul> </div> '; echo '</div>'; $i++; } } ?>
} else { $paginate .= "<a href='{$targetpage}?display={$limit}&az={$az_letter}&page={$counter}'>{$counter}</a>"; } } } } // Next if ($page < $counter - 1) { $paginate .= "<a href='{$targetpage}?display={$limit}&az={$az_letter}&page={$next}'>next</a>"; } else { $paginate .= "<span class='disabled'>next</span>"; } $paginate .= "</div>"; } // ------------------------------------------------------------ // ECHO OUT THE TABLE DATA // ------------------------------------------------------------ $i = 1; $row_color = 1; while ($row = mysqli_fetch_array($roleNames)) { // alternating row color $row_color = 1 - $row_color; // row number $rowNumber = $i++; // create some variables $role_id = $row['RoleId']; $role_name = $row['RoleName']; $role_description = $row['Description']; $user_count = $row['userCount']; echo '<tr class="tr' . $row_color . '">' . '<td id="column0r">' . $rowNumber . '</td>' . '<td id="column1r"><input type="checkbox" name="checked[]" value=' . $role_id . ' class="checkbox" /></td>' . '<td id="column2r" title="Click to view/edit in modal window..."><a href="role-details.php?rid=' . $role_id . '" class="arrow_icon modal3">' . $role_name . '</a></td>' . '<td id="column3r">' . truncateText($role_description, 120) . '</td>' . '<td id="column4r">' . $user_count . '</td>' . '</tr>'; }
<?php $this->pageTitle .= ' - ' . tt("FAQ"); $this->breadcrumbs = array(tt("FAQ")); ?> <h1><?php echo tt("FAQ"); ?> </h1> <?php if ($articles) { foreach ($articles as $article) { ?> <div class="articles-index"> <?php echo CHtml::link($article['page_title'], $article->getUrl(), array('class' => 'title')); ?> <p class="desc"> <?php echo truncateText($article['page_body'], param('module_articles_truncateAfterWords', 50), CHtml::link(Yii::t('module_articles', 'Read more »'), $article->getUrl())); ?> </p> </div> <?php } } if ($pages) { $this->widget('itemPaginator', array('pages' => $pages, 'header' => '')); }
" title="See detail"> <div class="thumbnail"><?php echo $CI->media_m->showMedia($m); ?> </div> <div class="vote"><?php echo $m['media_vote_total']; ?> votes</div> <div class="owner"><?php $graph = mobile_getGraph($m['uid']); echo $graph['first_name']; ?> </div> <p><?php echo truncateText($m['media_description'], 5); ?> </p> </a> </li> <?php } ?> </ul> <div id="pagination" data-role="controlgroup"> <?php if (isset($pagination['linkTagsRaw']['next']['url'])) { ?> <li><a href="<?php echo $pagination['linkTagsRaw']['next']['url']; ?>
function vmn_compileTextNews($news, $readmore, $ctext) { $compilebody = ''; $h2t =& new vmn_class_html2text(); if (count($news)) { foreach ($news as $newsitem) { $h2t->set_html($newsitem->fulltext); $h2t->set_base_url(JURI::root()); $bodytext = $h2t->get_text(); $h2t->set_html($newsitem->introtext); $h2t->set_base_url(JURI::root()); $introtext = $h2t->get_text(); $compiledtext = stripslashes($ctext); truncateText($readmore, $introtext, $bodytext, $newsitem); if ($compiledtext == "") { $compiledtext = "[title] (by [author], published [publishdatetime])\r\n[introtext]\r\n[bodytext]\r\n_______________________________________________________________\r\n\r\n"; } $h2t->set_html($newsitem->title); $h2t->set_base_url(JURI::root()); $compiledtext = str_replace("[title]", $h2t->get_text(), $compiledtext); $compiledtext = str_replace("[introtext]", $introtext, $compiledtext); $compiledtext = str_replace("[publishdatetime]", JHTML::date($newsitem->publish_up, JTEXT::_('DATE_FORMAT_LC2')), $compiledtext); $h2t->set_html(vmn_getAuthorName($newsitem)); $h2t->set_base_url(JURI::root()); $compiledtext = str_replace("[author]", $h2t->get_text(), $compiledtext); $compiledtext = str_replace("[bodytext]", $bodytext, $compiledtext); $compilebody .= $compiledtext; } } return $compilebody; }
<?php $this->breadcrumbs = array(Yii::t('common', 'Apartment search') => array('/quicksearch/main/mainsearch'), truncateText(CHtml::encode($apartment->getStrByLang('title')), 8) => $apartment->getUrl(), tt('Booking apartment')); $this->pageTitle = tt('Booking apartment') . ' - ' . CHtml::encode($apartment->getStrByLang('title')); ?> <div class="form min-fancy-width <?php echo $isFancy ? 'max-fancy-width' : ''; ?> "> <?php $form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->controller->createUrl('/booking/main/bookingform', array('id' => $apartment->id)), 'id' => $this->modelName . '-form', 'enableAjaxValidation' => false)); ?> <h2 class="title highlight-left-right"> <span><?php echo tt('Booking apartment') . ': ' . CHtml::encode($apartment->getStrByLang('title')); ?> </span> </h2> <div class="clear"></div><br /> <?php /*if(Yii::app()->user->isGuest && param('useUserRegistration')){ echo Yii::t('module_booking', 'Already have site account? Please <a title="Login" href="{n}">login</a>', Yii::app()->controller->createUrl('/site/login')).'<br /><br />'; }*/ ?> <p class="note"><?php echo Yii::t('common', 'Fields with <span class="required">*</span> are required.'); ?> </p>
<?php $this->pageTitle .= ' - ' . BlogModule::t('Blog') . ' - ' . CHtml::encode($model->getStrByLang('title')); $this->breadcrumbs = array(BlogModule::t('Blog') => array('/blog/main/index'), truncateText(CHtml::encode($model->getStrByLang('title')), 10)); ?> <!--<h1 class="title highlight-left-right"> <span><?php echo CHtml::encode($model->getStrByLang('title')); ?> </span> </h1>--> <!-- One article page --> <section class="container-full"> <div class="one-article"> <h2><?php echo CHtml::encode($model->getStrByLang('title')); ?> </h2> <div class="clearfix"> <span class="pull-left"><?php echo $model->dateCreatedLong; ?> </span> <span class="pull-right">Автор: <a href="">Сергей Есенин</a></span> </div>
echo CHtml::image(Yii::app()->getBaseUrl() . '/uploads/news/' . $src, $news->getStrByLang('title'), array('align' => 'left')); } } ?> <div class="<?php echo $class; ?> "> <?php if ($class == 'text') { //echo truncateText($announce, 10); echo truncateText($announce, 25); } else { //echo truncateText($announce, 15); echo truncateText($announce, 40); } ?> </div> </div> <?php if ($counter != $total) { ?> <div class="dotted_line"></div> <?php } ?> <?php } ?>
<div class="clear"></div><br /> </h2> <div class="clear"></div><br /> </div> <table class="table compare"> <thead class="goods"> <tr> <td> </td> <?php foreach ($apartments as $item) { ?> <td> <div class="compare-title"> <?php $title = truncateText($item->getStrByLang('title'), 10); echo CHtml::link($title, $item->getUrl()); ?> </div> <div class="compare-photo"> <div style="position: relative;"> <div class="compare-delete-icon"> <?php echo CHtml::link('<img src="' . Yii::app()->theme->baseUrl . '/images/delete_22x22.png">', Yii::app()->createUrl('/comparisonList/main/del', array('apId' => $item->id)), array('title' => tc('Delete'))); ?> </div> <?php $res = Images::getMainThumb(150, 100, $item->images); $img = CHtml::image($res['thumbUrl'], $item->getStrByLang('title'), array('title' => $item->getStrByLang('title'), 'class' => 'apartment_type_img')); echo CHtml::link($img, $item->getUrl(), array('title' => $item->getStrByLang('title')));
$owner = $data->user; //echo '<h3>'.tc('Listing provided by').'</h3>'; echo '<div class="user-info-ava">'; echo $owner->renderAva(); echo $owner->getNameForType(); echo '</div>'; echo '<div class="user-info-right">'; echo '<ul class="user-info-ul">'; if ($data->canShowInView('phone')) { $icon = CHtml::image(Yii::app()->baseUrl . '/images/design/phone-16.png'); echo '<li>' . $icon . ' <span id="owner-phone">' . CHtml::link(tc('Show phone'), 'javascript: void(0);', array('onclick' => 'generatePhone();')) . '</span>' . '</li>'; } if (param('use_module_request_property') && $data->owner_id != Yii::app()->user->id) { $icon = CHtml::image(Yii::app()->baseUrl . '/images/design/email-16.png') . ' '; echo '<li>' . $icon . CHtml::link(tt('request_for_property'), $data->getUrlSendEmail(), array('class' => 'fancy')) . '</li>'; } $icon = CHtml::image(Yii::app()->baseUrl . '/images/design/ads-16.png') . ' '; echo '<li>' . $icon . $owner->getLinkToAllListings() . '</li>'; echo '</ul>'; echo '</div>'; echo '<div class="clear"></div>'; $additionalInfo = 'additional_info_' . Yii::app()->language; if (isset($data->user->{$additionalInfo}) && !empty($data->user->{$additionalInfo})) { echo '<div class="clear"></div>'; echo CHtml::encode(truncateText($data->user->{$additionalInfo}, 20)); } Yii::app()->clientScript->registerScript('generate-phone', ' function generatePhone(){ $("span#owner-phone").html(\'<img src="' . Yii::app()->controller->createUrl('/apartments/main/generatephone', array('id' => $data->id)) . '" />\'); } ', CClientScript::POS_END);
if ($articles) { ?> <div class="b_news"> <?php foreach ($articles as $article) { ?> <div class="b_news__item b_news__item_no_src"> <div class="b_news__item_post b_news__item_post_no_src"> <div class="title"> <?php echo CHtml::link($article['page_title'], $article->getUrl(), array('class' => 'title')); ?> </div><br /> <div class="new_desc"> <?php echo truncateText($article['page_body'], 50); ?> </div> <?php echo CHtml::link(Yii::t('module_articles', 'Read more »'), $article->getUrl(), array('class' => 'read_more')); ?> </div> </div> <div class="clear"></div> <?php } ?> </div> <?php } ?>
<?php $this->pageTitle .= ' - ' . $model->getStrByLang('title'); if (isset($model->city) && isset($model->city->name)) { $this->pageTitle .= ', ' . tc('City') . ' ' . $model->city->name; } if ($model->getStrByLang('description')) { $this->pageDescription = truncateText($model->getStrByLang('description'), 20); } $searchUrl = Yii::app()->user->getState('searchUrl'); if ($searchUrl) { $this->breadcrumbs = array(Yii::t('common', 'Apartment search') => $searchUrl, truncateText(CHtml::encode($model->getStrByLang('title')), 10)); } else { $this->breadcrumbs = array(Yii::t('common', 'Apartment search') => array('/quicksearch/main/mainsearch'), truncateText(CHtml::encode($model->getStrByLang('title')), 10)); } ?> <div class='div-pdf-fix'> <?php echo '<div class="floatleft printicon">'; if ($searchUrl) { echo CHtml::link('<img src="' . Yii::app()->baseUrl . '/images/design/back2search.png" alt="' . tc('Go back to search results') . '" title="' . tc('Go back to search results') . '" />', $searchUrl); } echo CHtml::link('<img src="' . Yii::app()->baseUrl . '/images/design/print.png" alt="' . tc('Print version') . '" title="' . tc('Print version') . '" />', $model->getUrl() . '?printable=1', array('target' => '_blank')); $editUrl = $model->getEditUrl(); if ($editUrl) { echo CHtml::link('<img src="' . Yii::app()->baseUrl . '/images/design/edit.png" alt="' . tt('Update apartment') . '" title="' . tt('Update apartment') . '" />', $editUrl); }
<p class="meta"> <span><?php echo '<span>' . CHtml::link(tt('Send message', 'messages'), Yii::app()->createUrl('/messages/main/read', array('id' => $model->id))) . '</span>'; ?> </span> </p> <?php } ?> <p> <?php $model->renderAva(false, '', true); $additionalInfo = 'additional_info_' . Yii::app()->language; if (isset($model->{$additionalInfo}) && !empty($model->{$additionalInfo})) { echo CHtml::encode(truncateText($model->{$additionalInfo}, 40)); } ?> </p> </div> <div class="clear"></div> <br> <?php $this->widget('application.modules.apartments.components.ApartmentsWidget', array('criteria' => $criteria, 'widgetTitle' => tt('all_member_listings', 'apartments') . ' ' . $userName)); Yii::app()->clientScript->registerScript('generate-phone', ' function getPhoneNum(elem, id){ $(elem).closest("span").html(\'<img src="' . Yii::app()->controller->createUrl('/users/main/generatephone') . '?id=\' + id + \'" />\'); }
<?php $this->pageTitle .= ' - ' . NewsModule::t('News') . ' - ' . CHtml::encode($model->getStrByLang('title')); $this->breadcrumbs = array(NewsModule::t('News') => array('/news/main/index'), truncateText(CHtml::encode($model->getStrByLang('title')), 10)); ?> <!--<h1 class="title highlight-left-right"> <span><?php echo CHtml::encode($model->getStrByLang('title')); ?> </span> </h1>--> <!-- One article page --> <section class="container-full"> <div class="one-article"> <h2><?php echo CHtml::encode($model->getStrByLang('title')); ?> </h2> <div class="clearfix"> <span class="pull-left"><?php echo $model->dateCreatedLong; ?> </span> <span class="pull-right">Автор: <a href="">Сергей Есенин</a></span> </div>
<?php if (is_array($ads) && count($ads) > 0) { echo '<div class="similar-ads" id="similar-ads">'; echo '<span class="viewapartment-subheader">' . tt('Similar ads', 'similarads') . '</span>'; echo '<ul id="mycarousel" class="jcarousel-skin-tango">'; foreach ($ads as $item) { echo '<li>'; echo '<a href="' . $item->getUrl() . '">'; $res = Images::getMainThumb(150, 100, $item->images); echo CHtml::image($res['thumbUrl'], '', array('title' => $item->{'title_' . Yii::app()->language}, 'width' => 150, 'height' => 100)); echo '</a>'; if ($item->getStrByLang('title')) { echo '<div class="similar-descr">' . truncateText(CHtml::encode($item->getStrByLang('title')), 6) . '</div>'; } echo '<div class="similar-price">' . tt('Price from', 'apartments') . ': ' . $item->getPrettyPrice() . '</div>'; echo '</li>'; } echo '</ul>'; echo '</div>'; if (count($ads) > 5) { Yii::app()->clientScript->registerScript('similar-ads-slider', ' $("#mycarousel").jcarousel({ visible: 5}); ', CClientScript::POS_READY); } else { Yii::app()->clientScript->registerScript('similar-ads-slider', ' $("#mycarousel").jcarousel({ visible: 5, buttonNextHTML: null, buttonPrevHTML: null}); ', CClientScript::POS_READY); } }
<div class="pagination"><?php echo pagination_links(); ?> </div> <?php foreach (loop('NeatlineExhibit') as $e) { ?> <h2 style="font-weight:300;"> <?php echo nl_getExhibitLink($e, 'fullscreen', nl_getExhibitField('title'), array('class' => 'neatline'), true); ?> </h2> <h3 style="font-weight:300;"> <?php $description = truncateText(nl_getExhibitField('narrative'), 100); ?> <?php echo $description; ?> </h3> <?php } ?> <div class="pagination"><?php echo pagination_links(); ?> </div> <?php
foreach ($newsIndex as $news) { ?> <div class="last-news-item"> <div class="last-news-date"> <p class="ns-label"> <?php echo '<div class="news_date">' . date("d", strtotime($news->date_created)) . '</div>'; $month = date("F", strtotime($news->date_created)); $cut_month = mb_substr(Yii::t('date', $month), 0, 3, "utf-8"); echo '<div class="cut_month">' . $cut_month . '</div>'; ?> </p> </div> <div class="last-news-title"> <?php echo CHtml::link(truncateText($news->getStrByLang('title'), 8), $news->getUrl()); ?> </div> </div> <?php } ?> </div> </div> <div class="allnew"> <?php echo CHtml::link(tt('All news', 'news'), 'news/main/index', array('class' => 'btnsrch')); ?> </div> <div class="katalogy shadow">
<?php /** * @var $apartment Apartment */ ?> <?php $this->pageTitle .= ' - ' . tt("Message for the listing's owner №", 'notifier') . ' ' . $apartment->id; $this->breadcrumbs = array(Yii::t('common', 'Apartment search') => array('/quicksearch/main/mainsearch'), truncateText(CHtml::encode($apartment->getStrByLang('title')), 8) => $apartment->getUrl(), tt("Message for the listing's owner №", 'notifier') . ' ' . $apartment->id); ?> <h2 class="title highlight-left-right"> <span><?php echo tt("Message for the listing's owner №", 'notifier') . ' ' . CHtml::link($apartment->id, $apartment->getUrl()); ?> </span> </h2> <div class="clear"></div><br /> <?php if (!Yii::app()->user->isGuest) { if (!$model->senderName) { $model->senderName = Yii::app()->user->username; } if (!$model->senderPhone) { $model->senderPhone = Yii::app()->user->phone; } if (!$model->senderEmail) { $model->senderEmail = Yii::app()->user->email; } } ?>
<?php $this->pageTitle .= ' - ' . $model->getStrByLang('title'); $page = isset($_GET) && isset($_GET['page']) ? $_GET['page'] : ''; if (isset($model->menuPageOne) && isset($model->menuPageOne->parent) && $model->menuPageOne->parent && $model->menuPageOne->parent->type == Menu::LINK_NEW_INFO) { $this->breadcrumbs = array(truncateText($model->menuPageOne->parent->getStrByLang('title'), 10) => $model->menuPageOne->parent->getUrl(), truncateText($model->getStrByLang('title'), 10)); } else { $this->breadcrumbs = array(truncateText($model->getStrByLang('title'), 10)); } ?> <!--Убираем заголовок <h1 class="title highlight-left-right"> <span><?php echo $model->getStrByLang('title'); ?> </span> </h1> <div class="clear"></div><br /> !Убираем заголовок--> <!--Выводи банер--> <section class="slider container-full"> <div class="carousel slide carousel-fade" id="slider-main"> <div class="carousel-inner"> <div class="active item"> <?php if ($model->getStrByLang('title') == 'Тарифы') { ?>
<?php $this->pageTitle .= ' - ' . tt('do_complain', 'apartmentsComplain'); $this->breadcrumbs = array(Yii::t('common', 'Apartment search') => array('/quicksearch/main/mainsearch'), truncateText(CHtml::encode($modelApartment->getStrByLang('title')), 8) => $modelApartment->getUrl(), tt('do_complain', 'apartmentsComplain')); ?> <?php if (!Yii::app()->user->isGuest) { if (!$model->name) { $model->name = Yii::app()->user->username; } if (!$model->email) { $model->email = Yii::app()->user->email; } } ?> <div class="form min-fancy-width max-fancy-width"> <?php $form = $this->beginWidget('CustomForm', array('action' => Yii::app()->controller->createUrl('/apartmentsComplain/main/complain', array('id' => $apId)), 'id' => $this->modelName . '-form', 'enableAjaxValidation' => false)); ?> <p class="note"><?php echo Yii::t('common', 'Fields with <span class="required">*</span> are required.'); ?> </p> <?php echo $form->errorSummary($model); ?>
<?php $this->pageTitle .= ' - ' . CHtml::encode($model->getStrByLang('title')); if (isset($model->menuPageOne) && isset($model->menuPageOne->parent) && $model->menuPageOne->parent && $model->menuPageOne->parent->type == Menu::LINK_NEW_INFO) { $this->breadcrumbs = array(truncateText(CHtml::encode($model->menuPageOne->parent->getStrByLang('title')), 10) => $model->menuPageOne->parent->getUrl(), truncateText(CHtml::encode($model->getStrByLang('title')), 10)); } else { $this->breadcrumbs = array(truncateText(CHtml::encode($model->getStrByLang('title')), 10)); } if ($model->widget && $model->widget_position == InfoPages::POSITION_TOP) { $this->renderPartial('_view_widget', array('model' => $model)); echo '<div class="clear"></div>'; } ?> <h1><?php echo CHtml::encode($model->getStrByLang('title')); ?> </h1> <?php echo $model->body; ?> <div class="clear"></div> <?php /*if (isset($model->menuPage) && $model->menuPage) { foreach ($model->menuPage as $menuPage) { $levelItem = $menuPage->getItemLevel(); if ($levelItem == 2 && isset($menuPage->activeChilds) && $menuPage->activeChilds) { echo '<div class="block-childs-links">';