echo $url; ?> " onClick="return CentralSpaceLoad(this,true);" <?php if (!$infobox) { ?> title="<?php echo str_replace(array("\"", "'"), "", htmlspecialchars(i18n_get_translated($value))); ?> "<?php } //end if infobox ?> ><?php } //end link echo format_display_field($value); if ($show_extension_in_search) { echo " " . str_replace_formatted_placeholder("%extension", $result[$n]["file_extension"], $lang["fileextension"]); } if ($x == 0) { // add link if necessary ?> </a><?php } //end link ?> </div></div> <?php } /* end hook replaceresourcepanelinfolarge */ ?>
function HookInplaceeditAllReplaceresourcepanelinfolarge() { global $x, $value, $show_extension_in_search, $infobox, $url, $result, $ref, $df, $in_place_editable, $n; if (!in_array($df[$x]['ref'], $in_place_editable)) { return false; } # Should this field be displayed? if (!in_array($df[$x]['ref'], $in_place_editable) || checkperm("F*") && !checkperm("F-" . $df[$x]["ref"]) && !($ref < 0 && checkperm("P" . $df[$x]["ref"])) || checkperm("F" . $df[$x]["ref"]) || $ref < 0 && $df[$x]["hide_when_uploading"] && $df[$x]["required"] == 0) { return false; } ?> <div class="ResourcePanelInfo"><div class="extended"> <a class="editablefield" olddata-pk="<?php echo htmlspecialchars($value); ?> " data-pk="<?php echo $df[$x]['ref']; ?> " rel="<?php echo urlencode($ref); ?> " id="title<?php echo htmlspecialchars($ref); ?> " href="#"> <?php echo format_display_field($value); if ($show_extension_in_search) { echo " " . str_replace_formatted_placeholder("%extension", $result[$n]["file_extension"], $lang["fileextension-inside-brackets"]); } ?> </a></div></div> <?php return true; }