Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource 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 3276 to 3290

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 19th March 2024 04:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.