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 3301 to 3315

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 17th November 2024 15:05 Europe/London time based on the source file dated 13th November 2024 14:05 Europe/London time.