Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_trash()

Description

Renders the trash bin. This is used to delete dash tiles and remove resources from collections

Parameters

ColumnTypeDefaultDescription
$type string type of trash_bin
$deletetext
$forjs false

Return

string|void

Location

include/render_functions.php lines 3318 to 3332

Definition

 
function render_trash($type$deletetext,$forjs=false)
    {
    
$trash_html '<div id="' $type '_bin" class="trash_bin ui-droppable ui-droppable-active ui-state-hover"><span class="trash_bin_text"><i class="fa fa-trash" aria-hidden="true"></i></span></div>
    <div id="trash_bin_delete_dialog" style="display:none;"></div>
    <div id="delete_permanent_dialog" style="display:none;text-align:left;">'  
$deletetext '</div>
'
;
    if(
$forjs)
        {
        return 
str_replace(array("\r","\n"),"",$trash_html);
        }
    else
        {
        echo 
$trash_html;
        }
    }

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 3rd December 2024 11:55 Europe/London time.