-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
60 lines (43 loc) · 1.36 KB
/
page.php
File metadata and controls
60 lines (43 loc) · 1.36 KB
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
54
55
56
57
58
59
60
<?php
get_header();
function cpc_shop_account_link_subtitle_breadcump($endpoints){
if(is_array($endpoints)){
}else{
return '<a class="" href="'.get_permalink(get_option('woocommerce_myaccount_page_id')).'">Mi cuenta</a> / <span class="">'.$endpoints.'</span>';
}
}
$title = get_the_title();
$subtitle = 'Certificate Project Control';
if( is_checkout() && !empty( is_wc_endpoint_url('order-received')) ) {
$title = '¡Muchas Gracias!';
$subtitle = '¡Su pedido ha sido recibido!';
}
if(is_account_page()){
$subtitle = 'Certificate Project Control';
if(is_wc_endpoint_url('orders')){
$title = 'Mis pedidos';
$subtitle = cpc_shop_account_link_subtitle_breadcump('Pedidos');
}
if( is_wc_endpoint_url('edit-address')){
$title = 'Dirección de facturación';
$subtitle = cpc_shop_account_link_subtitle_breadcump('Editar dirección');
}
if( is_wc_endpoint_url('edit-account')){
$title = 'Editar cuenta';
$subtitle = cpc_shop_account_link_subtitle_breadcump('Editar cuenta');
}
if( is_wc_endpoint_url('lost-password')){
$title = '¿Olvido su contraseña?';
$subtitle ="";
}
}
$args = array(
'title' => $title,
'subtitle' => $subtitle,
);
get_template_part('template-parts/section', 'title', $args);
the_content();
?>
<?php
get_footer();
?>