Skip to content

Commit

Permalink
First commit to github.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeebsUK committed Nov 23, 2018
1 parent 3181c6f commit 096a530
Show file tree
Hide file tree
Showing 10 changed files with 999 additions and 0 deletions.
161 changes: 161 additions & 0 deletions cambridge_jobs.ds.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<?php
/**
* @file
* cambridge_jobs.ds.inc
*/

/**
* Implements hook_ds_field_settings_info().
*/
function cambridge_jobs_ds_field_settings_info() {
$export = array();

$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|job|full';
$ds_fieldsetting->entity_type = 'node';
$ds_fieldsetting->bundle = 'job';
$ds_fieldsetting->view_mode = 'full';
$ds_fieldsetting->settings = array(
'field_job_department' => array(
'formatter_settings' => array(
'ft' => array(
'func' => 'theme_ds_field_expert',
'fi' => TRUE,
'fi-el' => 'h2',
'fi-cl' => '',
'fi-at' => '',
'fi-def-at' => FALSE,
'fi-odd-even' => FALSE,
'fi-first-last' => FALSE,
),
),
),
);
$export['node|job|full'] = $ds_fieldsetting;

$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|job|news_listing_item';
$ds_fieldsetting->entity_type = 'node';
$ds_fieldsetting->bundle = 'job';
$ds_fieldsetting->view_mode = 'news_listing_item';
$ds_fieldsetting->settings = array(
'title' => array(
'weight' => '0',
'label' => 'hidden',
'format' => 'default',
'formatter_settings' => array(
'link' => '1',
'wrapper' => 'p',
'class' => 'campl-listing-title',
'ft' => array(),
),
),
'field_job_department' => array(
'formatter_settings' => array(
'ft' => array(
'func' => 'theme_ds_field_expert',
'fis' => TRUE,
'fis-el' => 'p',
'fis-cl' => '',
'fis-at' => '',
'fis-def-at' => FALSE,
'fi' => TRUE,
'fi-el' => 'strong',
'fi-cl' => '',
'fi-at' => '',
'fi-def-at' => FALSE,
'fi-odd-even' => FALSE,
'fi-first-last' => FALSE,
),
),
),
);
$export['node|job|news_listing_item'] = $ds_fieldsetting;

return $export;
}

/**
* Implements hook_ds_layout_settings_info().
*/
function cambridge_jobs_ds_layout_settings_info() {
$export = array();

$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|job|full';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'job';
$ds_layout->view_mode = 'full';
$ds_layout->layout = 'ds_1col';
$ds_layout->settings = array(
'regions' => array(
'ds_content' => array(
0 => 'field_job_department',
1 => 'body',
),
),
'fields' => array(
'field_job_department' => 'ds_content',
'body' => 'ds_content',
),
'classes' => array(
'layout_class' => array(
'campl-content-container' => 'campl-content-container',
),
),
'wrappers' => array(
'ds_content' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
'layout_link_attribute' => '',
'layout_link_custom' => '',
'layout_disable_css' => FALSE,
'hide_page_title' => '0',
'page_option_title' => '',
);
$export['node|job|full'] = $ds_layout;

$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|job|news_listing_item';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'job';
$ds_layout->view_mode = 'news_listing_item';
$ds_layout->layout = 'ds_1col';
$ds_layout->settings = array(
'regions' => array(
'ds_content' => array(
0 => 'title',
1 => 'field_job_department',
2 => 'body',
),
),
'fields' => array(
'title' => 'ds_content',
'field_job_department' => 'ds_content',
'body' => 'ds_content',
),
'classes' => array(
'layout_class' => array(
'campl-content-container' => 'campl-content-container',
),
),
'wrappers' => array(
'ds_content' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
'layout_link_attribute' => '',
'layout_link_custom' => '',
'layout_disable_css' => FALSE,
);
$export['node|job|news_listing_item'] = $ds_layout;

return $export;
}
42 changes: 42 additions & 0 deletions cambridge_jobs.features.fe_block_settings.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* @file
* cambridge_jobs.features.fe_block_settings.inc
*/

/**
* Implements hook_default_fe_block_settings().
*/
function cambridge_jobs_default_fe_block_settings() {
$export = array();

$export['version'] = '2.0';

$export['views-jobs-block'] = array(
'cache' => -1,
'custom' => 0,
'delta' => 'jobs-block',
'module' => 'views',
'node_types' => array(),
'pages' => '<front>',
'roles' => array(),
'themes' => array(
'cambridge_theme' => array(
'region' => 'sub_content',
'status' => 1,
'theme' => 'cambridge_theme',
'weight' => 0,
),
'seven' => array(
'region' => '',
'status' => 0,
'theme' => 'seven',
'weight' => 0,
),
),
'title' => '',
'visibility' => 1,
);

return $export;
}
35 changes: 35 additions & 0 deletions cambridge_jobs.features.field_base.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* @file
* cambridge_jobs.features.field_base.inc
*/

/**
* Implements hook_field_default_field_bases().
*/
function cambridge_jobs_field_default_field_bases() {
$field_bases = array();

// Exported field_base: 'field_job_department'.
$field_bases['field_job_department'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_job_department',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);

return $field_bases;
}
Loading

0 comments on commit 096a530

Please sign in to comment.