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 8549 to 8556

Definition

 
function canSeePreviewTools()
    {
    global 
$image_preview_zoom;

    
$visible_annotate_fields canSeeAnnotationsFields();

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

This article was last updated 8th May 2024 21:35 Europe/London time based on the source file dated 8th May 2024 11:40 Europe/London time.