Skip to content

Commit

Permalink
Evarisk#845 [SaturneMediaLib] add: zoom icon on picture we can zoom on
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-charles committed Feb 21, 2024
1 parent f0b360f commit 08d4600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/medias.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ function saturne_show_medias_linked(string $modulepart = 'ecm', string $sdir, $s
if (empty($nolink)) {
$relativefile = preg_replace("/'/", "\\'", $relativefile);
$urladvanced = getAdvancedPreviewUrl($modulepart, $relativefile, 0, 'entity=' . $conf->entity);
$return .= '<div class="wpeo-button button-transparent button-square-' . $maxWidth . '">';
$return .= '<i style="color: black;" class="fas fa-search-plus button-add"></i>';
if ($urladvanced) $return .= '<a class="clicked-photo-preview" href="' . $urladvanced . '">';
else $return .= '<a href="' . DOL_URL_ROOT . '/viewimage.php?modulepart=' . $modulepart . '&entity=' . $conf->entity . '&file=' . urlencode($pdir . $photo) . '" class="aphoto" target="_blank">';
}
Expand Down Expand Up @@ -256,6 +258,7 @@ function saturne_show_medias_linked(string $modulepart = 'ecm', string $sdir, $s
}

if (empty($nolink)) $return .= '</a>';
$return .= '</div>';
$return .= "\n";
if ($showfilename) $return .= '<br>' . $viewfilename;
if ($showaction) {
Expand Down

0 comments on commit 08d4600

Please sign in to comment.