Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created July 30, 2014 15:49
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 jmertic/e934d9386658ed0ae32a to your computer and use it in GitHub Desktop.
Save jmertic/e934d9386658ed0ae32a to your computer and use it in GitHub Desktop.
./custom/clients/base/views/record/record.php for this blog post http://wp.me/p419c4-2SB
<?php
require_once('clients/base/layouts/record/record.php');
if(isset($viewdefs['base']['layout']['record']['components'])){
foreach($viewdefs['base']['layout']['record']['components'] as &$subArray){
if(isset($subArray['layout']['components'])){
foreach($subArray['layout']['components'] as &$subsubArray){
if(isset($subsubArray['layout']['components'])){
$subsubArray['layout']['components'][] = array(
'layout' => 'pm-record-logic',
);
}
break;
}
}
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment