Exemple #1
0
 public static function current_seo_layout()
 {
     /* Since the SEO templates are only at a certain level, checking the real layout against the SEO templates would not work. */
     $layout_hierarchy = HeadwayLayout::get_current_hierarchy();
     if (count($layout_hierarchy) === 1) {
         return $layout_hierarchy[0];
     } elseif (count($layout_hierarchy) > 1) {
         return $layout_hierarchy[1];
     }
     return null;
 }