Warns user whether Tainacan plugin is not activated
This commit is contained in:
parent
21bcf67db4
commit
8cae10339b
|
@ -2435,6 +2435,10 @@ add_action( 'wp_head', 'tainacan_single_item_metadata_columns_count_output');
|
|||
* @see wp_add_inline_style()
|
||||
*/
|
||||
function tainacan_items_page_filters_fixed_on_scroll_output() {
|
||||
if (!defined('TAINACAN_VERSION')) {
|
||||
_e('Tainacan plugin not activated!', 'tainacan-interface');
|
||||
return;
|
||||
}
|
||||
$should_use_fixed_filters_logic = (version_compare(TAINACAN_VERSION, '0.17RC') >= 0) && get_theme_mod( 'tainacan_items_page_filters_fixed_on_scroll', false );
|
||||
|
||||
if (!$should_use_fixed_filters_logic)
|
||||
|
|
Loading…
Reference in New Issue