fix(submit): keep sidebar visible on front submit page
This commit is contained in:
@@ -43,8 +43,6 @@ class FrontSubmit {
|
||||
|
||||
add_filter('body_class', [$this, 'body_class']);
|
||||
add_filter('wp_robots', [$this, 'robots_noindex']);
|
||||
add_filter('aksrt_floating_buttons_enabled', [$this, 'disable_chrome_on_submit']);
|
||||
add_filter('aksrt_footer_tabbar_enabled', [$this, 'disable_chrome_on_submit']);
|
||||
}
|
||||
|
||||
public function register_rest_routes(): void {
|
||||
@@ -515,8 +513,6 @@ class FrontSubmit {
|
||||
public function body_class(array $classes): array {
|
||||
if ($this->is_submit_template()) {
|
||||
$classes[] = 'aksrt-page-submit';
|
||||
$classes[] = 'aksrt-hide-float';
|
||||
$classes[] = 'aksrt-hide-tabbar';
|
||||
}
|
||||
return $classes;
|
||||
}
|
||||
@@ -533,17 +529,6 @@ class FrontSubmit {
|
||||
return $robots;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $enabled
|
||||
* @return mixed
|
||||
*/
|
||||
public function disable_chrome_on_submit($enabled) {
|
||||
if ($this->is_submit_template()) {
|
||||
return false;
|
||||
}
|
||||
return $enabled;
|
||||
}
|
||||
|
||||
public function is_submit_template(): bool {
|
||||
return is_page_template('templates/pages/page-submit.php');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user