Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

canSeePreviewTools()

Description

Helper function for Preview tools feature. Checks all necessary permissions or options
in order to tell the system whether PreviewTools panel should be displayed

Parameters

This function accepts no parameters.

Return

boolean

Location

include/resource_functions.php lines 8536 to 8543

Definition

 
function canSeePreviewTools()
    {
    global 
$image_preview_zoom;

    
$visible_annotate_fields canSeeAnnotationsFields();

    return 
count($visible_annotate_fields) > || $image_preview_zoom;
    }

This article was last updated 22nd May 2024 14:35 Europe/London time based on the source file dated 20th May 2024 14:55 Europe/London time.