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_fc_actions()

Parameters

ColumnTypeDefaultDescription
$id
$tools

Location

include/render_functions.php lines 5165 to 5217

Definition

 
function render_fc_actions($id$tools)
{
    
?>
    <div class="DashTileActions" id="fc_tile_actions_ echo md5($id); ?>">
        
        
foreach($tools as $tool) {
            if(isset(
$tool['custom_onclick']) && trim($tool['custom_onclick']) != '') {
                
$onclick "{$tool['custom_onclick']}";
            } else {
                
$href sanitise_url(isset($tool['href']) && trim($tool['href']) != '' $tool['href'] : '#');
                
$onclick = (isset($tool['modal_load']) && $tool['modal_load'])
                    ? 
"return ModalLoad('{$href}', true);"
                    
"return CentralSpaceLoad('{$href}', true);";
            }
            
?>
            <div class="tool">               
                <div href=" echo $href ?? "#"?>
                onclick=" echo $onclick?>"
                title=" echo $tool['text']; ?>"
                >
                    <i class=" echo $tool['icon']; ?>"></i>
                </div>
            </div>
            
        
}
        
?>
        <script>
            jQuery(document).ready(function() {
                var usertileidname = "#FeaturedSimpleTile_ echo md5($id); ?>";
                var tilehref; //Used to switch off and on tile link to stop issue clicking on tool bar but opening tile link
                var tileonclick; //Used to switch off and on tile link to stop issue clicking on tool bar but opening tile link

                var fcactionsid = "#fc_tile_actions_ echo md5($id); ?>";

                jQuery(fcactionsid).hover(
                    function(e) {
                        tilehref = jQuery(usertileidname).attr("href");
                        tileonclick = jQuery(usertileidname).attr("onclick");
                        jQuery(usertileidname).attr("href", "#");
                        jQuery(usertileidname).attr("onclick", "return false;");
                    },
                    function(e) {
                        jQuery(usertileidname).attr("href", tilehref);
                        jQuery(usertileidname).attr("onclick", tileonclick);
                        tilehref = '';
                        tileonclick = '';
                    }
                );
            })
        </script>
    </div>
    
}

This article was last updated 1st June 2026 13:05 Europe/London time based on the source file dated 1st June 2026 11:40 Europe/London time.