Commit 58ed2c4bd14cb6f41a951ef903d6bf5df05b288a
1 parent
00330fac
doctor page
Showing
1 changed file
with
17 additions
and
9 deletions
Show diff stats
frontend/views/site/doctor.php
... | ... | @@ -11,9 +11,17 @@ use artbox\core\helpers\ImageHelper; |
11 | 11 | ?> |
12 | 12 | |
13 | 13 | |
14 | - | |
15 | - | |
16 | - | |
14 | +<style> | |
15 | + .doctor_long_img { | |
16 | + width: 340px; | |
17 | + height: 440px; | |
18 | + } | |
19 | + | |
20 | + .doctor_short_img { | |
21 | + width: 165px; | |
22 | + height: 165px; | |
23 | + } | |
24 | +</style> | |
17 | 25 | <section class="section-breadcrumb"> |
18 | 26 | <div class="container"> |
19 | 27 | <div class="row"> |
... | ... | @@ -51,15 +59,15 @@ use artbox\core\helpers\ImageHelper; |
51 | 59 | $docSurname = ($docFio[1]) ?? ''; |
52 | 60 | $docPosition = $doc->language->position; |
53 | 61 | $docDescription = $doc->language->description; |
54 | - $docImg1 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/doc/doc-big-1.png"; | |
55 | - $docImg2 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/doc/doc-big-1.png"; | |
56 | - $docImg3 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/doc/doc-min-1.png"; | |
62 | + $docImg1 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/no-image.png"; | |
63 | + $docImg2 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/no-image.png"; | |
64 | + $docImg3 = (isset($doc->image->fileName)) ? "/images/" . $doc->image->fileName : "/images/no-image.png"; | |
57 | 65 | |
58 | 66 | |
59 | 67 | $first .= ' <div class="slider-doc-items"> |
60 | 68 | <div class="slider-doc-img-wr"> |
61 | 69 | <!-- 340x440px--> |
62 | - <img src="' . $docImg1 . '" alt=""> | |
70 | + <img src="' . $docImg1 . '" alt="" class="doctor_long_img"> | |
63 | 71 | </div> |
64 | 72 | </div>'; |
65 | 73 | |
... | ... | @@ -67,7 +75,7 @@ use artbox\core\helpers\ImageHelper; |
67 | 75 | $second .= ' <div class="active slider-doc-main-items" style="display: none;"> |
68 | 76 | <div class="slider-doc-main-item-img"> |
69 | 77 | <div> |
70 | - <img src="' . $docImg2 . '" alt=""> | |
78 | + <img src="' . $docImg2 . '" alt="" class="doctor_long_img"> | |
71 | 79 | </div> |
72 | 80 | </div> |
73 | 81 | <div class="slider-doc-main-item-txt"> |
... | ... | @@ -95,7 +103,7 @@ use artbox\core\helpers\ImageHelper; |
95 | 103 | <div class="col-xs-12 col-sm-4 doctor-img-wr"> |
96 | 104 | <div class="doctor-img"> |
97 | 105 | <!--165x165px--> |
98 | - <img src="' . $docImg2 . '" alt=""> | |
106 | + <img src="' . $docImg2 . '" alt="" class="doctor_short_img"> | |
99 | 107 | </div> |
100 | 108 | </div> |
101 | 109 | <div class="col-xs-12 col-sm-8"> | ... | ... |