I find myself constantly putting HTML gpanels into my content. Does anyone else do this? Would the project benefit to having HTML examples along site the PHP examples:
<!-- Two column 2x50 Gpanel -->
<?php if ($page['two_50_first'] || $page['two_50_second']): ?>
<div class="two-50 gpanel clearfix">
<?php print render($page['two_50_first']); ?>
<?php print render($page['two_50_second']); ?>
</div>
<?php endif; ?>
<!-- Two column 2x50 Gpanel -->
<div class="two-50 clearfix gpanel">
<div class="region">
<!-- First Column Content -->
</div>
<div class="region">
<!-- Second Column Content -->
</div>
</div>
Comments
Comment #1
Jeff Burnz commentedWell I am not sure, this is the first time I have seen someone do this, its an interesting approach.
Lets leave this open and see what people say, I mean its a great idea.
BTW, are you really using 7.x-3.x, sorry but I wince every time I see that, knowing how much in dev this version is...
Comment #2
Jeff Burnz commentedI think this will work as documentation.
I would suggest using Display Suite to those looking for a robust way to layout node content - AT 7.x-3.x Responsive Panels Layouts work perfectly with Display Suite.
Comment #3
Jeff Burnz commentedI've realized a very easy way to do this in 7.x-3.x - you can copy paste the code out of any Panels layout that is included with the core theme, the markup is exactly the same as what gets generated by Gpanels, except the markup for panels is in the actual template - so just copy paste it and remove the PHP snippets, and you're done. Simple.
I have added notes on this to the Gpanels README in the theme.