D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
epaji.com
/
public_html
/
hindiusa
/
views
/
teachers
/
Filename :
our-teachers.php
back
Copy
<?php use yii\helpers\Html; ?> <div class="main-wrapper teachers"> <!-- ==================================== ——— BREADCRUMB ===================================== --> <section class="breadcrumb-bg" style="background-image: url(/uploads/page-title-bg-img.jpg); "> <div class="container"> <div class="breadcrumb-holder"> <div> <h2 class="breadcrumb-title-school"><?= $school->name; ?></h2> <h1 class="breadcrumb-title">Our Volunteers</h1> </div> </div> </div> </section> <!-- ==================================== ——— OUR TEACHER 3 ===================================== --> <section class="py-10"> <div class="container"> <div class="section-title justify-content-center mb-4 mb-md-8"> <span class="shape shape-left bg-info"></span> <h2 class="text-danger">Our Volunteers</h2> <span class="shape shape-right bg-info"></span> </div> <div class="row"> <?php foreach ($teachers as $teacher) { ?> <div class="col-sm-4 col-xs-12 mb-7 mb-md-8 mb-lg-9"> <div class="media media-avator-view flex-column flex-sm-row"> <?php if($this->params['url'] == '/'){ ?> <a class="media-img mb-5 mb-sm-0 mr-md-5 mr-lg-6 rounded-sm shadow-sm" href="teacher-details?id=<?= $teacher->id; ?>"> <?php } else { ?> <a class="media-img mb-5 mb-sm-0 mr-md-5 mr-lg-6 rounded-sm shadow-sm" href="teacher-details?url=<?= $this->params['url']; ?>&id=<?= $teacher->id; ?>" > <?php } ?> <?php if ($teacher->photo_image != '') { ?> <?php echo Html::img(Yii::$app->request->baseUrl.'/'.$teacher->photo_image, ['class' => 'rounded-sm teacher-list-img','alt' => $teacher->name]); ?> <?php } else { ?> <?php echo Html::img('/uploads/user.jpg', ['class' => 'rounded-sm teacher-list-img','alt' => $teacher->name]); ?> <?php } ?> </a> <div class="media-body"> <?php if($this->params['url'] == '/'){ echo Html::a(Yii::t('app', $teacher->name), ['teachers/teacher-details','id'=>$teacher->id ], ['class' => 'font-size-20 font-weight-medium d-inline-block mb-1']); } else{ echo Html::a(Yii::t('app', $teacher->name), ['teachers/teacher-details', 'url' => $this->params['url'],'id'=>$teacher->id ], ['class' => 'font-size-20 font-weight-medium d-inline-block mb-1']); } ?> <span class="text-muted font-size-15 mb-1 d-block"><?= $teacher->designation; ?></span> <span class="text-muted font-size-15 mb-1 d-block"><b style="color:#ea7066">School:</b><?= $teacher->school->name; ?></span> <p><?= substr($teacher->description,0,150); ?> ....</p> <div class=""> <?php if($teacher->facebook != '') { ?> <a class="icon-rounded-circle-small bg-warning mr-2" href="<?= $teacher->facebook; ?>" target="_blank"> <i class="fa fa-facebook text-white" aria-hidden="true"></i> </a> <?php } if($teacher->twitter != '') { ?> <a class="icon-rounded-circle-small bg-success mr-2" href="<?= $teacher->twitter; ?>" target="_blank"> <i class="fa fa-twitter text-white" aria-hidden="true"></i> </a> <?php } if($teacher->linkdin != '') { ?> <a class="icon-rounded-circle-small bg-danger mr-2" href="<?= $teacher->linkdin; ?>" target="_blank"> <i class="fa fa-linkedin text-white" aria-hidden="true"></i> </a> <?php } if($teacher->youtube != '') { ?> <a class="icon-rounded-circle-small bg-info mr-2" href="<?= $teacher->youtube; ?>" target="_blank"> <i class="fa fa-youtube text-white" aria-hidden="true"></i> </a> <?php } ?> </div> </div> </div> </div> <?php } ?> </div> </div> </section> </div> <!-- element wrapper ends -->