You are here

function naked in Brainstorm profile 7

@file Implimentation of an Adaptivetheme Page Layout plugin

This is an example of a Page Layout plugin for Adaptivetheme. If enabled this will be picked up by the Plugin system and added as a page layout option for the specified 'device_groups'.

You can enable the "naked" example layout plugin by uncommenting the info file entry in your subthemes info file. Look for: Custom Page Layout Plugins: plugins[page_layout][layouts] = custom_layouts

Where "custom_layouts" is the directory holding this file. Remember to clear the cache after you make changes to your info file.

The three_col_grail.inc AT Core layout holds extensive documentation on Page Layout plugins, its well worth reviewing that file.

NOTE: when making changes to layout plugins you must clear cache all - plugin data is cached in the database!

@SEE adaptivetheme/at_core/layouts/core/three_col_grail/three_col_grail.inc @SEE at_subtheme.info (Custom Page Layout Plugins).

File

themes/brainstorm_theme/layouts/page/naked/naked.inc, line 28
Implimentation of an Adaptivetheme Page Layout plugin

Code

function naked() {
  $page_layout['naked'] = [
    'title' => t('Naked'),
    'category' => t('AT Subtheme Custom Page Layout'),
    'method' => 'naked',
    'type' => 'page_layout',
    'admin css' => 'naked.admin.css',
    'device_groups' => [
      'bigscreen',
      'tablet_landscape',
      'tablet_portrait',
      'smalltouch_landscape',
    ],
  ];
  return $page_layout;
}