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 8468 to 8475

Definition

 
function canSeePreviewTools()
    {
    global 
$image_preview_zoom;

    
$visible_annotate_fields canSeeAnnotationsFields();

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

This article was last updated 19th March 2024 07:35 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.