Guest User

Untitled

a guest
Apr 15th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. public function getDocLayoutSetting($type)
  2.   {
  3.     $settings = $this->active_content->settings();
  4.  
  5.     if ($type === 'layout:single' && isset($settings['layoutSingle'])) {
  6.       return $settings['layoutSingle'];
  7.     }
  8.  
  9.     if ($type === 'layout:header' && isset($settings['layoutHeader'])) {
  10.       return $settings['layoutHeader'];
  11.     }
  12.  
  13.     if ($type === 'layout:footer' && isset($settings['layoutFooter'])) {
  14.       return $settings['layoutFooter'];
  15.     }
  16.  
  17.     return null;
  18.   }
Advertisement
Add Comment
Please, Sign In to add comment