Collections functions
Encryption functions
General functions
Theme permission 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

void

Location

include/render_functions.php lines 2821 to 2835

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 16th July 2020 00:05 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.