Commit 5fe057e4 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX: change software placeholder image

Refs: #900
parent 90a63935
Pipeline #9762 passed with stage
in 3 minutes and 39 seconds
<div class="col-sm-6 col-md-4 col-lg-4 hidden-xs">
<div class="size-logo-overview">
<?php if (!$this->Software->hasLogo($software) || is_null($software->photo) || empty($software->photo)) : ?>
<?= $this->Html->link($this->Html->image("logos/Softwarelogo_placeholder.jpg",
["alt" => $software->softwarename, "class" => "img-responsive"]),
"/$selectedLanguage/softwares/$software->id",
['escape' => false]) ?>
<?= $this->Html->image("logos/placeholder_software.svg",
["alt" => $software->softwarename, "class" => "img-responsive img-placeholder"]) ?>
<?php else : ?>
<?= $this->Html->link($this->Html->image($software->logo_directory . DS . $software->photo,
["alt" => $software->softwarename, "class" => "img-responsive"]),
......
......@@ -116,7 +116,7 @@ class SoftwareHelper extends ListItemHelper
$this->Html->link(
$this->Html->image(
"logos/Softwarelogo_placeholder.jpg",
"logos/placeholder_software.svg",
[
"alt" => __d("Softwares", "Go to the {0}'s page", $software->softwarename),
"class" => "img-responsive",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment