Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Holla holla
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Apr 30, 2014
1 parent f5de304 commit 69de79e
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 193 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ This app is a Fieldable Panel Pane with responsive imaging. This FPP will go 1/

Things you will need to do:
<ol>
<li>After enabling this app is go to Appearance and scan your default theme for breakpoints.</li>
<li>After enabling this app is go to Appearance and scan your default theme for breakpoints.</li>
<li>You can also check to make sure your breakpoints worked here: admin/config/media/breakpoints</li>
<li>Go to admin/structure/fieldable-panels-panes/manage/hot-primary-tout-quarter/display</li>
<li>Go to admin/structure/fieldable-panels-panes/manage/hot-primary-tout-third/display</li>
<li>Make sure the Format for the 1/3 Picture = Picture</li>
<li>Make sure the Picture Group is Picture Third & The Fallback Picture is Picture Third</li>
</ol>
Expand Down
14 changes: 7 additions & 7 deletions hot_primary_tout.default_breakpoint_group.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ function hot_primary_tout_default_breakpoint_group() {

// Breakpoints.
$breakpoints = array();
$breakpoints[] = 'breakpoints.hot_primary_tout_4.screen-xxs';
$breakpoints[] = 'breakpoints.hot_primary_tout_4.screen-xs';
$breakpoints[] = 'breakpoints.hot_primary_tout_4.screen-sm';
$breakpoints[] = 'breakpoints.hot_primary_tout_4.screen-md';
$breakpoints[] = 'breakpoints.hot_primary_tout_4.screen-lg';
$breakpoints[] = 'breakpoints.hot_primary_tout_3.screen-xxs';
$breakpoints[] = 'breakpoints.hot_primary_tout_3.screen-xs';
$breakpoints[] = 'breakpoints.hot_primary_tout_3.screen-sm';
$breakpoints[] = 'breakpoints.hot_primary_tout_3.screen-md';
$breakpoints[] = 'breakpoints.hot_primary_tout_3.screen-lg';

// Breakpoint group.
$breakpoint_group = new stdClass();
$breakpoint_group->disabled = FALSE; /* Edit this to true to make a default breakpoint_group disabled initially */
$breakpoint_group->api_version = 1;
$breakpoint_group->machine_name = 'hot_primary_tout_4';
$breakpoint_group->machine_name = 'hot_primary_tout_3';
$breakpoint_group->name = 'Picture Third (4/12)';
$breakpoint_group->breakpoints = $breakpoints;
$breakpoint_group->type = 'custom';
$breakpoint_group->overridden = 0;
$export['hot_primary_tout_4'] = $breakpoint_group;
$export['hot_primary_tout_3'] = $breakpoint_group;

return $export;
}
20 changes: 10 additions & 10 deletions hot_primary_tout.default_breakpoints.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function hot_primary_tout_default_breakpoints() {
$breakpoint = new stdClass();
$breakpoint->disabled = FALSE; /* Edit this to true to make a default breakpoint disabled initially */
$breakpoint->api_version = 1;
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_4.screen-lg';
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_3.screen-lg';
$breakpoint->name = 'screen-lg';
$breakpoint->breakpoint = '(min-width: 1200px)';
$breakpoint->source = 'hot_primary_tout';
Expand All @@ -24,12 +24,12 @@ function hot_primary_tout_default_breakpoints() {
'1x' => '1x',
'2x' => '2x',
);
$export['breakpoints.hot_primary_tout_4.screen-lg'] = $breakpoint;
$export['breakpoints.hot_primary_tout_3.screen-lg'] = $breakpoint;

$breakpoint = new stdClass();
$breakpoint->disabled = FALSE; /* Edit this to true to make a default breakpoint disabled initially */
$breakpoint->api_version = 1;
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_4.screen-md';
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_3.screen-md';
$breakpoint->name = 'screen-md';
$breakpoint->breakpoint = '(min-width: 992px)and (max-width: 1199px)';
$breakpoint->source = 'hot_primary_tout';
Expand All @@ -40,12 +40,12 @@ function hot_primary_tout_default_breakpoints() {
'1x' => '1x',
'2x' => '2x',
);
$export['breakpoints.hot_primary_tout_4.screen-md'] = $breakpoint;
$export['breakpoints.hot_primary_tout_3.screen-md'] = $breakpoint;

$breakpoint = new stdClass();
$breakpoint->disabled = FALSE; /* Edit this to true to make a default breakpoint disabled initially */
$breakpoint->api_version = 1;
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_4.screen-sm';
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_3.screen-sm';
$breakpoint->name = 'screen-sm';
$breakpoint->breakpoint = '(min-wdith: 768px) and (max-width: 991px)';
$breakpoint->source = 'hot_primary_tout';
Expand All @@ -56,12 +56,12 @@ function hot_primary_tout_default_breakpoints() {
'1x' => '1x',
'2x' => '2x',
);
$export['breakpoints.hot_primary_tout_4.screen-sm'] = $breakpoint;
$export['breakpoints.hot_primary_tout_3.screen-sm'] = $breakpoint;

$breakpoint = new stdClass();
$breakpoint->disabled = FALSE; /* Edit this to true to make a default breakpoint disabled initially */
$breakpoint->api_version = 1;
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_4.screen-xs';
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_3.screen-xs';
$breakpoint->name = 'screen-xs';
$breakpoint->breakpoint = '(min-width: 480px)and (max-width: 767px)';
$breakpoint->source = 'hot_primary_tout';
Expand All @@ -72,12 +72,12 @@ function hot_primary_tout_default_breakpoints() {
'1x' => '1x',
'2x' => '2x',
);
$export['breakpoints.hot_primary_tout_4.screen-xs'] = $breakpoint;
$export['breakpoints.hot_primary_tout_3.screen-xs'] = $breakpoint;

$breakpoint = new stdClass();
$breakpoint->disabled = FALSE; /* Edit this to true to make a default breakpoint disabled initially */
$breakpoint->api_version = 1;
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_4.screen-xxs';
$breakpoint->machine_name = 'breakpoints.hot_primary_tout_3.screen-xxs';
$breakpoint->name = 'screen-xxs';
$breakpoint->breakpoint = '(max-width: 479px)';
$breakpoint->source = 'hot_primary_tout';
Expand All @@ -88,7 +88,7 @@ function hot_primary_tout_default_breakpoints() {
'1x' => '1x',
'2x' => '2x',
);
$export['breakpoints.hot_primary_tout_4.screen-xxs'] = $breakpoint;
$export['breakpoints.hot_primary_tout_3.screen-xxs'] = $breakpoint;

return $export;
}
38 changes: 19 additions & 19 deletions hot_primary_tout.default_picture_mapping.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* kalapicture.default_picture_mapping.inc
* hot_primary_tout.default_picture_mapping.inc
*/

/**
Expand All @@ -13,31 +13,31 @@ function hot_primary_tout_default_picture_mapping() {
$picture_mapping = new stdClass();
$picture_mapping->disabled = FALSE; /* Edit this to true to make a default picture_mapping disabled initially */
$picture_mapping->api_version = 1;
$picture_mapping->machine_name = 'hot_primary_tout_4';
$picture_mapping->breakpoint_group = 'hot_primary_tout_4';
$picture_mapping->machine_name = 'hot_primary_tout_3';
$picture_mapping->breakpoint_group = 'hot_primary_tout_3';
$picture_mapping->mapping = array(
'breakpoints.kalapicture.screen-xxs' => array(
'1x' => 'hot_primary_tout_4_breakpoints_screen-xxs_1x',
'2x' => 'hot_primary_tout_4_breakpoints_screen-xxs_2x',
'breakpoints.hot_primary_tout_3.screen-xxs' => array(
'1x' => 'hot_primary_tout_3_breakpoints_screen-xxs_1x',
'2x' => 'hot_primary_tout_3_breakpoints_screen-xxs_2x',
),
'breakpoints.kalapicture.screen-xs' => array(
'1x' => 'hot_primary_tout_4_breakpoints_screen-xs_1x',
'2x' => 'hot_primary_tout_4_breakpoints_screen-xs_2x',
'breakpoints.hot_primary_tout_3.screen-xs' => array(
'1x' => 'hot_primary_tout_3_breakpoints_screen-xs_1x',
'2x' => 'hot_primary_tout_3_breakpoints_screen-xs_2x',
),
'breakpoints.kalapicture.screen-sm' => array(
'1x' => 'hot_primary_tout_4_breakpoints_screen-sm_1x',
'2x' => 'hot_primary_tout_4_breakpoints_screen-sm_2x',
'breakpoints.hot_primary_tout_3.screen-sm' => array(
'1x' => 'hot_primary_tout_3_breakpoints_screen-sm_1x',
'2x' => 'hot_primary_tout_3_breakpoints_screen-sm_2x',
),
'breakpoints.kalapicture.screen-md' => array(
'1x' => 'hot_primary_tout_4_breakpoints_screen-md_1x',
'2x' => 'hot_primary_tout_4_breakpoints_screen-md_2x',
'breakpoints.hot_primary_tout_3.screen-md' => array(
'1x' => 'hot_primary_tout_3_breakpoints_screen-md_1x',
'2x' => 'hot_primary_tout_3_breakpoints_screen-md_2x',
),
'breakpoints.kalapicture.screen-lg' => array(
'1x' => 'hot_primary_tout_4_breakpoints_screen-lg_1x',
'2x' => 'hot_primary_tout_4_breakpoints_screen-lg_2x',
'breakpoints.hot_primary_tout_3.screen-lg' => array(
'1x' => 'hot_primary_tout_3_breakpoints_screen-lg_1x',
'2x' => 'hot_primary_tout_3_breakpoints_screen-lg_2x',
),
);
$export['hot_primary_tout_4'] = $picture_mapping;
$export['hot_primary_tout_3'] = $picture_mapping;

return $export;
}
84 changes: 20 additions & 64 deletions hot_primary_tout.features.defaultconfig.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function hot_primary_tout_defaultconfig_features() {
return array(
'hot_primary_tout' => array(
'field_default_fields' => 'field_default_fields',
'strongarm' => 'strongarm',
'user_default_permissions' => 'user_default_permissions',
),
);
Expand All @@ -23,8 +22,8 @@ function hot_primary_tout_defaultconfig_features() {
function hot_primary_tout_defaultconfig_field_default_fields() {
$fields = array();

// Exported field: 'fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_caption'.
$fields['fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_caption'] = array(
// Exported field: 'fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_caption'.
$fields['fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_caption'] = array(
'field_config' => array(
'active' => 1,
'cardinality' => 1,
Expand All @@ -51,13 +50,13 @@ function hot_primary_tout_defaultconfig_field_default_fields() {
'type' => 'text_long',
),
'field_instance' => array(
'bundle' => 'hot_primary_tout_quarter',
'bundle' => 'hot_primary_tout_third',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
Expand Down Expand Up @@ -88,8 +87,8 @@ function hot_primary_tout_defaultconfig_field_default_fields() {
),
);

// Exported field: 'fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_image'.
$fields['fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_image'] = array(
// Exported field: 'fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_image'.
$fields['fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_image'] = array(
'field_config' => array(
'active' => 1,
'cardinality' => 1,
Expand Down Expand Up @@ -119,18 +118,18 @@ function hot_primary_tout_defaultconfig_field_default_fields() {
'type' => 'image',
),
'field_instance' => array(
'bundle' => 'hot_primary_tout_quarter',
'bundle' => 'hot_primary_tout_third',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'picture',
'settings' => array(
'colorbox' => 'hot_primary_tout_4',
'fallback_image_style' => 'hot_primary_tout_4',
'colorbox' => 'hot_primary_tout_3',
'fallback_image_style' => 'hot_primary_tout_3',
'image_link' => '',
'picture_group' => 'hot_primary_tout_4',
'picture_group' => 'hot_primary_tout_3',
),
'type' => 'picture',
'weight' => 0,
Expand Down Expand Up @@ -172,72 +171,29 @@ function hot_primary_tout_defaultconfig_field_default_fields() {
return $fields;
}

/**
* Implements hook_defaultconfig_strongarm().
*/
function hot_primary_tout_defaultconfig_strongarm() {
$export = array();

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'field_bundle_settings_fieldable_panels_pane__hot_primary_tout_quarter';
$strongarm->value = array(
'view_modes' => array(
'full' => array(
'custom_settings' => FALSE,
),
'diff_standard' => array(
'custom_settings' => FALSE,
),
'token' => array(
'custom_settings' => FALSE,
),
),
'extra_fields' => array(
'form' => array(
'title' => array(
'weight' => '-5',
),
),
'display' => array(
'title' => array(
'default' => array(
'weight' => '-5',
'visible' => TRUE,
),
),
),
),
);
$export['field_bundle_settings_fieldable_panels_pane__hot_primary_tout_quarter'] = $strongarm;

return $export;
}

/**
* Implements hook_defaultconfig_user_default_permissions().
*/
function hot_primary_tout_defaultconfig_user_default_permissions() {
$permissions = array();

// Exported permission: 'create fieldable hot_primary_tout_quarter'.
$permissions['create fieldable hot_primary_tout_quarter'] = array(
'name' => 'create fieldable hot_primary_tout_quarter',
// Exported permission: 'create fieldable hot_primary_tout_third'.
$permissions['create fieldable hot_primary_tout_third'] = array(
'name' => 'create fieldable hot_primary_tout_third',
'roles' => array(),
'module' => 'fieldable_panels_panes',
);

// Exported permission: 'delete fieldable hot_primary_tout_quarter'.
$permissions['delete fieldable hot_primary_tout_quarter'] = array(
'name' => 'delete fieldable hot_primary_tout_quarter',
// Exported permission: 'delete fieldable hot_primary_tout_third'.
$permissions['delete fieldable hot_primary_tout_third'] = array(
'name' => 'delete fieldable hot_primary_tout_third',
'roles' => array(),
'module' => 'fieldable_panels_panes',
);

// Exported permission: 'edit fieldable hot_primary_tout_quarter'.
$permissions['edit fieldable hot_primary_tout_quarter'] = array(
'name' => 'edit fieldable hot_primary_tout_quarter',
// Exported permission: 'edit fieldable hot_primary_tout_third'.
$permissions['edit fieldable hot_primary_tout_third'] = array(
'name' => 'edit fieldable hot_primary_tout_third',
'roles' => array(),
'module' => 'fieldable_panels_panes',
);
Expand Down
22 changes: 11 additions & 11 deletions hot_primary_tout.features.field_instance.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
function hot_primary_tout_field_default_field_instances() {
$field_instances = array();

// Exported field_instance: 'fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_caption'
$field_instances['fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_caption'] = array(
'bundle' => 'hot_primary_tout_quarter',
// Exported field_instance: 'fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_caption'
$field_instances['fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_caption'] = array(
'bundle' => 'hot_primary_tout_third',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
Expand Down Expand Up @@ -48,20 +48,20 @@ function hot_primary_tout_field_default_field_instances() {
),
);

// Exported field_instance: 'fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_image'
$field_instances['fieldable_panels_pane-hot_primary_tout_quarter-field_hot_primary_tout_image'] = array(
'bundle' => 'hot_primary_tout_quarter',
// Exported field_instance: 'fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_image'
$field_instances['fieldable_panels_pane-hot_primary_tout_third-field_hot_primary_tout_image'] = array(
'bundle' => 'hot_primary_tout_third',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'picture',
'settings' => array(
'colorbox' => 'hot_primary_tout_4',
'fallback_image_style' => 'hot_primary_tout_4',
'colorbox' => 'hot_primary_tout_3',
'fallback_image_style' => 'hot_primary_tout_3',
'image_link' => '',
'picture_group' => 'hot_primary_tout_4',
'picture_group' => 'hot_primary_tout_3',
),
'type' => 'picture',
'weight' => 0,
Expand Down
Loading

0 comments on commit 69de79e

Please sign in to comment.