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 8504 to 8511

Definition

 
function canSeePreviewTools()
    {
    global 
$image_preview_zoom;

    
$visible_annotate_fields canSeeAnnotationsFields();

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

This article was last updated 18th April 2024 10:35 Europe/London time based on the source file dated 18th April 2024 10:05 Europe/London time.