| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPDeveloper\BetterDocs\Editors\Elementor\Conditions; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly |
| 7 |
} |
| 8 |
|
| 9 |
use ElementorPro\Modules\ThemeBuilder\Conditions\Condition_Base; |
| 10 |
|
| 11 |
class DocsPage extends Condition_Base { |
| 12 |
|
| 13 |
public static function get_type() { |
| 14 |
return 'archive'; |
| 15 |
} |
| 16 |
|
| 17 |
public function get_name() { |
| 18 |
return 'docs_page'; |
| 19 |
} |
| 20 |
|
| 21 |
public static function get_priority() { |
| 22 |
return 40; |
| 23 |
} |
| 24 |
|
| 25 |
public function get_label() { |
| 26 |
return __( 'Docs Page', 'betterdocs' ); |
| 27 |
} |
| 28 |
|
| 29 |
public function check( $args ) { |
| 30 |
return is_post_type_archive( 'docs' ); |
| 31 |
} |
| 32 |
} |
| 33 |
|