foreach ($articulos as $key => $value) { ?> <article class="post clear-fix"> <?php echo Html::a(Html::img('@web/img/categories/' . $value->categoria->seo_slug . '.png', ['alt' => $value->categoria->categoria, 'class' => 'img-thumbnail']), ['/categoria/' . Html::encode("{$value->categoria->seo_slug}")], ['class' => 'thumb pull-left']); ?> <h3 class="post-title"> <?php echo Html::a(Html::encode("{$value->titulo}"), ['/articulo/' . Html::encode("{$value->seo_slug}")], ['title' => Html::encode("{$value->titulo}")]); ?> </h3> <div class="post-date"> <span class="glyphicon glyphicon-user"> </span><span class="post-author"><?php echo ucWords(HTml::encode("{$value->createdBy->name}")); ?> </span> | <span class="glyphicon glyphicon-calendar"> </span><?php echo strftime("%c", strtotime($value->created_at)); ?> </div> <p class="post-content"> <?php if (empty($value->resumen)) { echo HtmlPurifier::process(Helper::myTruncate($value->detalle, 300, " ", "...")); } else { echo $value->resumen; }
KarirAsset::register($this); $this->params['breadcrumbs'][] = 'Karir RajaMobil.com'; ?> <!--<div class="bgp">--> <div id="breadcrumb"> <?php echo \yii\widgets\Breadcrumbs::widget(['homeLink' => ['label' => Html::tag('span', 'Home', ['itemprop' => 'title']), 'url' => \Yii::$app->homeUrl, 'itemprop' => 'url'], 'itemTemplate' => "<li itemscope itemtype='http://data-vocabulary.org/Breadcrumb'>{link}</li><li>›</li>", 'activeItemTemplate' => "<li>{link}</li>", 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'encodeLabels' => false]); ?> </div> <div class="content karir"> <div style="margin-bottom: 10px; position:relative;"> <h1 title="Karir RajaMobil.com" class="h1">Karir RajaMobil.com</h1> <br /> <div style="position: absolute;top: 30px;right: 0px;"> <?php echo HTml::img($this->theme->getUrl('images/komponen/' . 'karir_gambar_cewe.png'), ['alt' => 'karir rajamobil']); ?> </div> <div class="font-oswald-light" style="font-size:14px;color: #404041;"> <p style="margin-bottom:15px;">Rajamobil.com adalah sebuah portal jual beli yang menyajikan kemudahan dalam proses jual mobil baru dan bekas yang dipaparkan secara eksklusif,<br /> dengan tampilan gambar yang baik serta informasi yang lengkap. Portal ini juga memiliki banyak fitur yang tentu saja berkaitan dengan<br /> bisnis otomotif. Seperti artikel berita, rubrik test drive, kalkulator perhitungan simulasi kredit dan asuransi serta fasilitas lainnya.<br /> Berita yang disajikan meliputi mobil terbaru, modifikasi mobil, bisnis dan industri otomotif, olahraga otomotif, komponen kendaraan,<br /> aktifitas komunitas hingga gaya hidup otomotif.</p> <div style="font-size:20px;"> Ingin Bergabung dengan Rajamobil.com?</div> <div style="font-size:16px; margin-bottom:15px;">Saat ini kami membutuhkan tambahan orang untuk mengisi posisi :</div> <div style="margin-bottom:10px;"> <p style="color:tomato; margin-bottom:5px; font-weight:bold">Senior Web Developer (Programmer)</p>
/** * Get the validation statistics * * @param $tID tickets id * * @return statistics array **/ static function getValidationStats($tID) { $tab = self::getAllStatusArray(); $nb = countElementsInTable(static::getTable(), "`" . static::$items_id . "` = " . $tID); $stats = array(); foreach ($tab as $status => $name) { $restrict = "`" . static::$items_id . "` = '" . $tID . "'\n AND `status` = '" . $status . "'"; $validations = countElementsInTable(static::getTable(), $restrict); if ($validations > 0) { if (!isset($stats[$status])) { $stats[$status] = 0; } $stats[$status] = $validations; } } $list = ""; foreach ($stats as $stat => $val) { $list .= $tab[$stat]; $list .= sprintf(__('%1$s (%2$d%%) '), " ", HTml::formatNumber($val * 100 / $nb)); } return $list; }
/** * @param \zhuravljov\yii\rest\models\ResponseRecord $record * @param \yii\web\View $view * @return string */ public function format($record, $view) { return Html::tag('pre', Html::tag('code', HTml::encode($record->content))); }
/** * Get the validation statistics * * @param $tID tickets id * * @return statistics array **/ static function getValidationStats($tID) { $tab = self::getAllStatusArray(); $nb = countElementsInTable(static::getTable(), [static::$items_id => $tID]); $stats = array(); foreach ($tab as $status => $name) { $validations = countElementsInTable(static::getTable(), [static::$items_id => $tID, 'status' => $status]); if ($validations > 0) { if (!isset($stats[$status])) { $stats[$status] = 0; } $stats[$status] = $validations; } } $list = ""; foreach ($stats as $stat => $val) { $list .= $tab[$stat]; $list .= sprintf(__('%1$s (%2$d%%) '), " ", HTml::formatNumber($val * 100 / $nb)); } return $list; }
use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use frontend\assets\AppAsset; use frontend\widgets\Alert; use yii\widgets\Menu; use yii\helpers\Url; use app\components\PencarianMobil; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #print_r($artikelList);die; $rajamobil_function = Yii::$app->rajamobil; if (!empty($artikelList)) { foreach ($artikelList as $value) { $url = 'http://www.rajamobil.com/' . $value['cat_slug'] . "/" . date("Y/m/d/", strtotime($value['created'])) . $value['slug'] . "-" . $value['id'] . ".htm"; $judul = $value['title']; /*$url = Yii::$app->urlManager->createUrl("mobil/detail",array( "condition" => strtolower($kondisi_kendaraan), "year" => $year, "month" => $month, "day" => $day, "slug" => $slug, "id"=>$value["id"]));*/ echo HTml::a($judul, $url, ['title' => $judul, 'target' => '_blank']) . '<br>'; } } else { echo 'Artikel yang anda cari tidak ada'; }
><?php echo HTml::a('Video Terkini', ['berita/video/video-sendiri.htm'], ['title' => 'Video Terkini']); ?> </li> <li <?php echo isset($subslug) && $subslug == "youtube" ? 'class="active"' : ''; ?> ><?php echo HTml::a('Youtube', ['berita/video/youtube.htm'], ['title' => 'Youtube']); ?> </li> <li <?php echo isset($subslug) && $subslug == "voa" ? 'class="active"' : ''; ?> ><?php echo HTml::a('VOA', ['berita/video/voa.htm'], ['title' => 'VOA']); ?> </li> <?php } ?> </ul> <div class="cleaner"></div> </div> <!-- begin konten kiri --> <div class="konten-kiri left"> <?php