Skip to content

Check if page is panelized: $no_panels ? #152

@maxplus

Description

@maxplus

Hi,

In Kalatheme's template.php we have:

 // If panels arent being used at all.
  $variables['no_panels'] = !(module_exists('page_manager') && page_manager_get_current_page());

This is useful in your own page.tpl.php so can add a container class if you have a page that is not based on panels:
<div class="column <?php $no_panels ? print 'container' : ''; ?>">

My problem is that this does not work for a panelized page.
In my use case I would also like to detect that the current page is panelized and in that case don't add the container class.

Does anybody know how to detect that a page is panelized in the same way we do this for a page manager panels page?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions