Skip to content

Instantly share code, notes, and snippets.

@Spoygg
Created July 24, 2014 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spoygg/e9dcf157736c908e939b to your computer and use it in GitHub Desktop.
Save Spoygg/e9dcf157736c908e939b to your computer and use it in GitHub Desktop.
<?php
/*
Layout File, at least one main region must be added;
*/
// include 'header.php';
$main = upfront_create_region(array(
'name' => "main",
'title' => __("Main Area"),
'scope' => "local"
));
$main->add_element('ThisPage', array(
'id' => 'default-page-title',
'columns' => 22,
'rows' => 3,
'margin_top' => 3,
'options' => array(
'display' => 'title',
'disable_resize' => false,
'disable_drag' => false
),
'sticky' => true
));
$main->add_element('ThisPage', array(
'id' => 'default-page-content',
'columns' => 22,
'rows' => 20,
'margin_top' => 3,
'options' => array(
'display' => 'content',
'disable_resize' => false,
'disable_drag' => false
),
'sticky' => true
));
$regions->add($main);
// include 'footer.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment