mejpark

Drupal Panels 7.x-3.0-dev node template export

Mar 19th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.76 KB | None | 0 0
  1. $handler = new stdClass;
  2. $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
  3. $handler->api_version = 1;
  4. $handler->name = 'node_view_panel_context_5';
  5. $handler->task = 'node_view';
  6. $handler->subtask = '';
  7. $handler->handler = 'panel_context';
  8. $handler->weight = 4;
  9. $handler->conf = array(
  10.   'title' => 'Courses',
  11.   'no_blocks' => 0,
  12.   'pipeline' => 'standard',
  13.   'css_id' => 'panel-courses',
  14.   'css' => '',
  15.   'contexts' => array(),
  16.   'relationships' => array(),
  17.   'access' => array(
  18.     'plugins' => array(
  19.       0 => array(
  20.         'name' => 'node_type',
  21.         'settings' => array(
  22.           'type' => array(
  23.             'course' => 'course',
  24.           ),
  25.         ),
  26.         'context' => 'argument_entity_id:node_1',
  27.         'not' => FALSE,
  28.       ),
  29.     ),
  30.     'logic' => 'and',
  31.   ),
  32. );
  33. $display = new panels_display;
  34. $display->layout = 'twocol';
  35. $display->layout_settings = array();
  36. $display->panel_settings = array(
  37.   'style_settings' => array(
  38.     'default' => NULL,
  39.     'left' => NULL,
  40.     'right' => NULL,
  41.   ),
  42. );
  43. $display->cache = array();
  44. $display->title = '';
  45. $display->content = array();
  46. $display->panels = array();
  47.   $pane = new stdClass;
  48.   $pane->pid = 'new-1';
  49.   $pane->panel = 'left';
  50.   $pane->type = 'token';
  51.   $pane->subtype = 'node:field_course_about';
  52.   $pane->shown = TRUE;
  53.   $pane->access = array();
  54.   $pane->configuration = array(
  55.     'sanitize' => 1,
  56.     'context' => 'argument_entity_id:node_1',
  57.     'override_title' => 0,
  58.     'override_title_text' => '',
  59.   );
  60.   $pane->cache = array();
  61.   $pane->style = array(
  62.     'settings' => NULL,
  63.     'style' => 'block',
  64.   );
  65.   $pane->css = array();
  66.   $pane->extras = array();
  67.   $pane->position = 0;
  68.   $pane->locks = array();
  69.   $display->content['new-1'] = $pane;
  70.   $display->panels['left'][0] = 'new-1';
  71.   $pane = new stdClass;
  72.   $pane->pid = 'new-2';
  73.   $pane->panel = 'left';
  74.   $pane->type = 'token';
  75.   $pane->subtype = 'node:field_course_entry_requirements';
  76.   $pane->shown = TRUE;
  77.   $pane->access = array();
  78.   $pane->configuration = array(
  79.     'sanitize' => 1,
  80.     'context' => 'argument_entity_id:node_1',
  81.     'override_title' => 0,
  82.     'override_title_text' => '',
  83.   );
  84.   $pane->cache = array();
  85.   $pane->style = array(
  86.     'settings' => NULL,
  87.     'style' => 'block',
  88.   );
  89.   $pane->css = array();
  90.   $pane->extras = array();
  91.   $pane->position = 1;
  92.   $pane->locks = array();
  93.   $display->content['new-2'] = $pane;
  94.   $display->panels['left'][1] = 'new-2';
  95.   $pane = new stdClass;
  96.   $pane->pid = 'new-3';
  97.   $pane->panel = 'left';
  98.   $pane->type = 'token';
  99.   $pane->subtype = 'node:field_course_duration';
  100.   $pane->shown = TRUE;
  101.   $pane->access = array();
  102.   $pane->configuration = array(
  103.     'sanitize' => 1,
  104.     'context' => 'argument_entity_id:node_1',
  105.     'override_title' => 0,
  106.     'override_title_text' => '',
  107.   );
  108.   $pane->cache = array();
  109.   $pane->style = array(
  110.     'settings' => NULL,
  111.     'style' => 'block',
  112.   );
  113.   $pane->css = array();
  114.   $pane->extras = array();
  115.   $pane->position = 2;
  116.   $pane->locks = array();
  117.   $display->content['new-3'] = $pane;
  118.   $display->panels['left'][2] = 'new-3';
  119.   $pane = new stdClass;
  120.   $pane->pid = 'new-4';
  121.   $pane->panel = 'left';
  122.   $pane->type = 'token';
  123.   $pane->subtype = 'node:field_course_career_options';
  124.   $pane->shown = TRUE;
  125.   $pane->access = array();
  126.   $pane->configuration = array(
  127.     'sanitize' => 1,
  128.     'context' => 'argument_entity_id:node_1',
  129.     'override_title' => 0,
  130.     'override_title_text' => '',
  131.   );
  132.   $pane->cache = array();
  133.   $pane->style = array(
  134.     'settings' => NULL,
  135.     'style' => 'block',
  136.   );
  137.   $pane->css = array();
  138.   $pane->extras = array();
  139.   $pane->position = 3;
  140.   $pane->locks = array();
  141.   $display->content['new-4'] = $pane;
  142.   $display->panels['left'][3] = 'new-4';
  143.   $pane = new stdClass;
  144.   $pane->pid = 'new-5';
  145.   $pane->panel = 'right';
  146.   $pane->type = 'entity_field';
  147.   $pane->subtype = 'node:field_course_image';
  148.   $pane->shown = TRUE;
  149.   $pane->access = array();
  150.   $pane->configuration = array(
  151.     'label' => 'title',
  152.     'formatter' => 'image',
  153.     'formatter_settings' => array(
  154.       'image_style' => '',
  155.       'image_link' => '',
  156.     ),
  157.     'context' => 'argument_entity_id:node_1',
  158.     'override_title' => 1,
  159.     'override_title_text' => '',
  160.   );
  161.   $pane->cache = array();
  162.   $pane->style = array(
  163.     'settings' => NULL,
  164.     'style' => 'block',
  165.   );
  166.   $pane->css = array(
  167.     'css_id' => '',
  168.     'css_class' => 'img-border',
  169.   );
  170.   $pane->extras = array();
  171.   $pane->position = 0;
  172.   $pane->locks = array();
  173.   $display->content['new-5'] = $pane;
  174.   $display->panels['right'][0] = 'new-5';
  175. $display->hide_title = PANELS_TITLE_FIXED;
  176. $display->title_pane = '0';
  177. $handler->conf['display'] = $display;
Advertisement
Add Comment
Please, Sign In to add comment