Files
carpseeds.pl/wp-content/plugins/jet-theme-core/includes/conditions/archive-all.php
2024-07-15 11:28:08 +02:00

56 lines
855 B
PHP

<?php
/**
* Is front page condition
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! class_exists( 'Jet_Theme_Core_Conditions_Archive_All' ) ) {
/**
* Define Jet_Theme_Core_Conditions_Archive_All class
*/
class Jet_Theme_Core_Conditions_Archive_All extends Jet_Theme_Core_Conditions_Base {
/**
* Condition slug
*
* @return string
*/
public function get_id() {
return 'archive-all';
}
/**
* Condition label
*
* @return string
*/
public function get_label() {
return __( 'All Archives', 'jet-theme-core' );
}
/**
* Condition group
*
* @return string
*/
public function get_group() {
return 'archive';
}
/**
* Condition check callback
*
* @return bool
*/
public function check( $args ) {
return is_archive();
}
}
}