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