/var/www/html_us/wp-content/plugins/woocommerce/src/Blocks/Templates/ComingSoonTemplate.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Automattic\WooCommerce\Blocks\Templates;

/**
 * ComingSoonTemplate class.
 *
 * @internal
 */
class ComingSoonTemplate extends AbstractPageTemplate {

    
/**
     * The slug of the template.
     *
     * @var string
     */
    
const SLUG 'coming-soon';

    
/**
     * Returns the title of the template.
     *
     * @return string
     */
    
public function get_template_title() {
        return 
_x'Page: Coming soon''Template name''woocommerce' );
    }

    
/**
     * Returns the description of the template.
     *
     * @return string
     */
    
public function get_template_description() {
        return 
__'Let your shoppers know your site or part of your site is under construction.''woocommerce' );
    }

    
/**
     * Returns the page object assigned to this template/page.
     *
     * @return \WP_Post|null Post object or null.
     */
    
protected function get_placeholder_page() {
        return 
null;
    }

    
/**
     * True when viewing the coming soon page.
     *
     * @return boolean
     */
    
protected function is_active_template() {
        return 
false;
    }
}