Avoids displaying customizer options that can not be enabled if Tainacan Version does not offer support.
This commit is contained in:
parent
57f6cf1627
commit
c17cef05ad
|
@ -286,6 +286,7 @@ function tainacan_customize_register( $wp_customize ) {
|
|||
)
|
||||
) );
|
||||
|
||||
if (version_compare(TAINACAN_VERSION, '0.16') <= 0) {
|
||||
/**
|
||||
* Adds option to display Collection banner on the item single page.
|
||||
*/
|
||||
|
@ -324,6 +325,7 @@ function tainacan_customize_register( $wp_customize ) {
|
|||
'label' => __( 'Show "Documents" section: Document and Attachments grouped in one slider.', 'tainacan-interface' ),
|
||||
'description' => __( 'Toggle to show the document and attachments in the same list, a carousel with the current item on top.', 'tainacan-interface' )
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds option to configure Document section label.
|
||||
|
@ -452,6 +454,7 @@ function tainacan_customize_register( $wp_customize ) {
|
|||
'fallback_refresh' => true
|
||||
) );
|
||||
|
||||
if (version_compare(TAINACAN_VERSION, '0.16') <= 0) {
|
||||
/**
|
||||
* Adds options to display or not the document download button.
|
||||
*/
|
||||
|
@ -468,6 +471,7 @@ function tainacan_customize_register( $wp_customize ) {
|
|||
'label' => __( 'Hide Document download button', 'tainacan-interface' ),
|
||||
'description' => __( 'Toggle to never display a "Download" button when hovering the document.', 'tainacan-interface' )
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds options to display or not the thumbnail on items page.
|
||||
|
|
Loading…
Reference in New Issue