diff options
author | M.Gergo | 2019-01-20 11:48:48 +0100 |
---|---|---|
committer | M.Gergo | 2019-01-20 11:48:48 +0100 |
commit | f70027ffbedce10f412868a7bf9b0b67b113f1b1 (patch) | |
tree | fbcc48049f1e66fe3ec66a0f3d8eee47bb400cdb /mayor-orig/www/skin/classic/module-portal | |
parent | e6988247360fa98b85915a38803d018dd353df00 (diff) | |
download | mayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.tar.gz mayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.zip |
Rev: 4423
Diffstat (limited to 'mayor-orig/www/skin/classic/module-portal')
-rw-r--r-- | mayor-orig/www/skin/classic/module-portal/css/portal.css | 16 | ||||
-rw-r--r-- | mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml | 39 |
2 files changed, 30 insertions, 25 deletions
diff --git a/mayor-orig/www/skin/classic/module-portal/css/portal.css b/mayor-orig/www/skin/classic/module-portal/css/portal.css index 60c89501..8aeb0838 100644 --- a/mayor-orig/www/skin/classic/module-portal/css/portal.css +++ b/mayor-orig/www/skin/classic/module-portal/css/portal.css @@ -55,24 +55,18 @@ div.doboz:hover div.dobozCim { opacity: 0.8; } -/* - div.doboz div.dobozCim , div.doboz div.dobozCim { border-bottom: solid 1px black; } - div.doboz div.dobozCim tr th {color:white; font-weight:bold; text-align: left; font-size:10px;} -*/ - table.kerdoiv { font-size:10px; } div.kerdes { text-align: center; font-weight:bold; } table.kerdoiv tr td.j { text-align: right } div.egyHir {position:relative;} + div.egyHir.asPrivate div.hirCim { color: #e91e63;} + div.egyHir.asPrivate div.hirCim a { color: #e91e63;} div.egyHir div.hir a { color:#325C99; } - div.egyHir div.hir a:hover { color:#1E90FF; } -/* -div.egyHir div.hirCim:after {position:absolute; display:block; content:""; background-color:#eeeeee; height:1px; width:100%; -bottom:0px; right:0px; } -*/ -/*Az a hr mindig a halálom volt :) */ + div.egyHir span.tag { background-color: #bbb; padding: 0px 4px; margin: 0px 2px; border-radius:2px; color:white;} + + div.egyHir:after { clear: both; height: 0px; diff --git a/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml b/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml index a8baff0f..651cc104 100644 --- a/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml +++ b/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml @@ -4,22 +4,25 @@ if (count($ADAT['hirek']['szovegek'])==0) { - if (_POLICY=='public') echo '<div style="width:100%; color:#eee; text-align:center;margin-top:40px;margin-bottom:40px;"><span style="font-size:120px;" class="icon-eye-close"></span> - <br/>Nincs aktuális hír</div>'; -/* - echo '<div class="egyHir"><div class="hirCim">'; - echo 'MaYoR elektronikus napló'; - echo '</div><div class="hir">'; - echo 'Szabadszoftver a közoktatási intézmények napi adminisztrációjához.'; - echo '<ul><li><a href="http://www.mayor.hu">www.mayor.hu</a></li></ul>'; - echo '</div></div>'; -*/ + if (_POLICY=='public') { + echo '<div style="width:100%; color:#eee; text-align:center;margin-top:40px;margin-bottom:40px;"><span style="font-size:120px;" class="icon-eye-close"></span><br/>Nincs aktuális hír</div>'; + } + } else { - for ($i=0; $i<count($ADAT['hirek']['szovegek']); $i++) { - echo '<div class="egyHir">'; + for ($i=0; $i<count($ADAT['hirek']['szovegek']); $i++) { + $D = $ADAT['hirek']['szovegek'][$i]; + $_class = ($D['class']==6 && _POLICY!='public') ? 'asPrivate':''; list ($a,$b) = explode('<!-- more -->',$D['txt']); - echo '<div class="hirCim"><a href="'.href('index.php?page=portal&sub=portal&f=hir&hirId='.$D['id']).'">'.$D['cim'].'</a></div>'; + + echo '<div class="egyHir '.$_class.'">'; + echo '<div class="hirCim">'; + if ($D['class']==6) { + echo '<span title="Védett hír" class="icon-lock-alt" style="padding-right:4px;"></span>'; + } + echo '<a href="'.href('index.php?page=portal&sub=portal&f=hir&hirId='.$D['id']).'">'.$D['cim'].'</a>'; + + echo '</div>'; echo '<div class="hir">'; echo $a; if ($b!="") echo ' <a href="'.href('index.php?page=portal&sub=portal&f=hir&hirId='.$D['id']).'">Tovább...</a>'; @@ -29,9 +32,17 @@ echo $ADAT['hirek']['linkek'][$D['id']][$j]['szoveg']; echo '</a>'; } + + if ($D['csoport']!='') { + $CSOPORT = explode(',',$D['csoport']); + echo '<div style="margin-top:10px">'; + for ($j=0; $j<count($CSOPORT); $j++) echo '<span class="tag">'.$CSOPORT[$j].'</span>'; + echo '</div>'; + } + echo '<hr style="clear:both; height:0px; margin-top:2em; margin-bottom:2em; width:80%; background-color: #777777; border-style: solid; border-color: #eeeeee; border-width: 0px 0px 1px 0px;" />'; echo '</div>'; - } + } } } |