Commit 92d8f16742a15cf82b810370a9f487efc9d385b2
1 parent
b8498b43
add pdf to "Program of the event"
Showing
3 changed files
with
19 additions
and
2 deletions
Show diff stats
frontend/views/layouts/main.php
| ... | ... | @@ -144,7 +144,22 @@ JS; |
| 144 | 144 | <ul> |
| 145 | 145 | <?php foreach ($pageCategories as $category){?> |
| 146 | 146 | <li> |
| 147 | - <a href="#"><?=$category->language->title?></a> | |
| 147 | + <?php | |
| 148 | + if($category->id==4){ | |
| 149 | + echo Html::a( | |
| 150 | + $category->language->title, | |
| 151 | + '/pdf/Kyiv_-_EM_and_9th_Forum_-_OverviewHyper_MASTER_07-5_Clean.pdf', | |
| 152 | + [ "target" => '_blank',] | |
| 153 | + | |
| 154 | + | |
| 155 | + ); | |
| 156 | + } | |
| 157 | + else | |
| 158 | + { | |
| 159 | + echo Html::a($category->language->title,'#'); | |
| 160 | + } | |
| 161 | + ?> | |
| 162 | + | |
| 148 | 163 | <ul> |
| 149 | 164 | <?php foreach ($category->pages as $page){?> |
| 150 | 165 | <li><a href="<?=Url::to(['alias' => $page->alias])?>"><?=$page->language->title?></a></li> | ... | ... |
frontend/views/site/index.php
| ... | ... | @@ -21,7 +21,9 @@ |
| 21 | 21 | <div class="row first-home-links"> |
| 22 | 22 | <div class="hidden-xs col-sm-1 col-md-2"></div> |
| 23 | 23 | <div class="col-xs-6 col-sm-5 col-md-4 first-home-links-col"> |
| 24 | - <a class="first-home-program" href="#"><span> | |
| 24 | + | |
| 25 | + <a class="first-home-program" target="_blank" | |
| 26 | + href="/pdf/Kyiv_-_EM_and_9th_Forum_-_OverviewHyper_MASTER_07-5_Clean.pdf" ><span> | |
| 25 | 27 | <?=\Yii::t('app', 'Prog z')?></span></a> |
| 26 | 28 | </div> |
| 27 | 29 | <div class="col-xs-6 col-sm-5 col-md-4 first-home-links-col"> | ... | ... |
frontend/web/pdf/Kyiv_-_EM_and_9th_Forum_-_OverviewHyper_MASTER_07-5_Clean.pdf
0 → 100644
No preview for this file type