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