Collections functions
General 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 8554 to 8561

Definition

 
function canSeePreviewTools()
    {
    global 
$image_preview_zoom;

    
$visible_annotate_fields canSeeAnnotationsFields();

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

This article was last updated 30th November 2023 09:35 Europe/London time based on the source file dated 21st November 2023 09:30 Europe/London time.