added social links block

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-13 19:14:58 +02:00
parent 422322c96d
commit 2ca9694d84
478 changed files with 7317 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
/**
* @file
* social_links.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function social_links_context_default_contexts() {
$export = array();
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'social_links';
$context->description = '';
$context->tag = 'sitewide';
$context->conditions = array(
'sitewide' => array(
'values' => array(
1 => 1,
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'social_media_links-social-media-links' => array(
'module' => 'social_media_links',
'delta' => 'social-media-links',
'region' => 'headerblock_left',
'weight' => '-10',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('sitewide');
$export['social_links'] = $context;
return $export;
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* @file
* social_links.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function social_links_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}

View File

@@ -0,0 +1,16 @@
name = social links
core = 7.x
package = Materio
dependencies[] = context
dependencies[] = social_media_links
dependencies[] = strongarm
features[context][] = social_links
features[ctools][] = context:context:3
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:2
features[variable][] = social_media_links_appearance
features[variable][] = social_media_links_icon_style
features[variable][] = social_media_links_link_attributes
features[variable][] = social_media_links_platforms
features_exclude[dependencies][ctools] = ctools
project path = sites/all/modules/features

View File

@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the social links feature.
*/
include_once 'social_links.features.inc';

View File

@@ -0,0 +1,101 @@
<?php
/**
* @file
* social_links.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function social_links_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 = 'social_media_links_appearance';
$strongarm->value = array(
'orientation' => 'h',
'show_name' => 0,
);
$export['social_media_links_appearance'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'social_media_links_icon_style';
$strongarm->value = 'elegantthemes:32';
$export['social_media_links_icon_style'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'social_media_links_link_attributes';
$strongarm->value = array(
'target' => '<none>',
'rel' => '<none>',
);
$export['social_media_links_link_attributes'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'social_media_links_platforms';
$strongarm->value = array(
'facebook' => array(
'platform_value' => 'materiOparis',
'weight' => '-9',
),
'twitter' => array(
'platform_value' => 'materiOParis',
'weight' => '-8',
),
'googleplus' => array(
'platform_value' => '',
'weight' => '-7',
),
'tumblr' => array(
'platform_value' => '',
'weight' => '-6',
),
'instagram' => array(
'platform_value' => '',
'weight' => '-5',
),
'linkedin' => array(
'platform_value' => 'company/3017753',
'weight' => '-4',
),
'pinterest' => array(
'platform_value' => 'hello0691',
'weight' => '-3',
),
'vimeo' => array(
'platform_value' => 'materio',
'weight' => '-2',
),
'youtube' => array(
'platform_value' => '',
'weight' => '-1',
),
'youtube_channel' => array(
'platform_value' => '',
'weight' => '0',
),
'rss' => array(
'platform_value' => '/rss/feed',
'weight' => '1',
),
'contact' => array(
'platform_value' => '',
'weight' => '2',
),
'email' => array(
'platform_value' => '',
'weight' => '3',
),
);
$export['social_media_links_platforms'] = $strongarm;
return $export;
}