Skip to content

Commit

Permalink
Fixed issue with image links and improved CSS for the new news header…
Browse files Browse the repository at this point in the history
… portal mode
  • Loading branch information
dziudek committed Nov 2, 2015
1 parent 558dd3e commit 8e4f17f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
1 change: 1 addition & 0 deletions mod_news_pro_gk5/tmpl/com_easyblog/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static function image($config, $item, $only_url = false, $pm = false, $links = f
$IMG_SOURCE = '';
$item['title'] = str_replace('"', """, $item['title']);
$uri = JURI::getInstance();
$IMG_LINK = static::itemLink($item, $config);
//
if(trim($item['image']) != ''){
$image_path = str_replace(array('user:', 'post:'), '', $item['image']);
Expand Down
1 change: 1 addition & 0 deletions mod_news_pro_gk5/tmpl/com_k2/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static function image($config, $item, $only_url = false, $pm = false, $links = f
}

$IMG_SOURCE = '';
$IMG_LINK = static::itemLink($item, $config);
$item['title'] = str_replace('"', """, $item['title']);
$uri = JURI::getInstance();
$IMG_SOURCE = static::originalImage($config, $item);
Expand Down
1 change: 1 addition & 0 deletions mod_news_pro_gk5/tmpl/com_solidres/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ static function image($config, $item, $only_url = false, $pm = false, $links = f
$IMG_SOURCE = static::originalImage($config, $item);
//
$full_size_img = $IMG_SOURCE;
$IMG_LINK = static::itemLink($item, $config);
//
if($config['create_thumbs'] == 1 && $IMG_SOURCE != ''){
// try to override standard image
Expand Down
1 change: 1 addition & 0 deletions mod_news_pro_gk5/tmpl/jomsocial/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ static function image($config, $item, $only_url = false, $pm = false, $links = f
}

$IMG_SOURCE = '';
$IMG_LINK = static::itemLink($item, $config);
$uri = JURI::getInstance();
//
if(JFile::exists(JPATH_SITE.DS . $item['image'])) {
Expand Down
48 changes: 22 additions & 26 deletions mod_news_pro_gk5/tmpl/portal_modes/new_news_header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,25 +143,23 @@
}

.gkNspPM-NewNewsHeader .gkImage:hover .gkImageArea {
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
-ms-transform: scale(1.2);
-o-transform: scale(1.2);
transform: scale(1.2);
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-ms-transform: scale(1.1);
-o-transform: scale(1.1);
transform: scale(1.1);
}

.gkNspPM-NewNewsHeader .gkImageArea:after {
background: fade(@primary_color, 0);
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.36) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(50%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.36)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.36) 100%);
background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.36) 100%);
background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.36) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.36) 100%);
.gkNspPM-NewNewsHeader .gkImageArea:after {
background: -moz-linear-gradient(5deg, #002f4b, #000);
background: -webkit-linear-gradient(5deg, #002f4b, #000);
background: -o-linear-gradient(5deg, #002f4b, #000);
background: -ms-linear-gradient(5deg, #002f4b, #000);
background: linear-gradient(5deg, #002f4b, #000);
bottom: 0;
content: "";
left: 0;
opacity: 1;
opacity: 0.5;
pointer-events: none;
position: absolute;
right: 0;
Expand All @@ -173,12 +171,12 @@
transition: all .3s ease-out;
}

.gkNspPM-NewNewsHeader[data-layout="main_2cols_2cols"] .gkImage1 .gkImageArea:after,
.gkNspPM-NewNewsHeader[data-layout="4cols_2cols"] .gkImage3 .gkImageArea:after,
.gkNspPM-NewNewsHeader[data-layout="4rows"] .gkImage5 .gkImageArea:after {
.gkNspPM-NewNewsHeader[data-layout="main_2cols_2cols"] .gkImage1 .gkImageArea:after {
display: none;
}

.gkNspPM-NewNewsHeader .gkImageArea:hover:after {
opacity: 0;
}
.gkNspPM-NewNewsHeader .gkBlankImage {
width: 50%;
}
Expand All @@ -191,11 +189,11 @@
.gkNspPM-NewNewsHeader .gkTitle {
bottom: 10%;
color: #fff;
font-size: 16px;
left: 10%;
font-size: 1.5rem;
line-height: 1.3;
left: 2.5rem;
margin: 0;
max-width: 500px;
right: 10%;
max-width: 500px;
will-change: font-size;
position: absolute;
z-index: 1;
Expand All @@ -209,9 +207,7 @@
color: rgba(255, 255, 255, .75);
}

.gkNspPM-NewNewsHeader[data-layout="main_2rows_2rows"] .gkImage1 .gkTitle,
.gkNspPM-NewNewsHeader[data-layout="4cols_2cols"] .gkImage5 .gkTitle,
.gkNspPM-NewNewsHeader[data-layout="4cols_2cols"] .gkImage6 .gkTitle {
.gkNspPM-NewNewsHeader[data-layout="main_2rows_2rows"] .gkImage1 .gkTitle {
background: rgba(66, 165, 245, .75);
bottom: 0;
font-size: 30px;
Expand All @@ -228,7 +224,7 @@
.gkNspPM-NewNewsHeader[data-layout="4cols_2cols"] .gkImage5 .gkTitle,
.gkNspPM-NewNewsHeader[data-layout="4cols_2cols"] .gkImage6 .gkTitle {
font-size: 20px!important;
padding: 20px!important;

}
}

Expand Down

0 comments on commit 8e4f17f

Please sign in to comment.