function socialmedia_widgets_default_sets in Social media 7
File
- ./
socialmedia.widgets.inc, line 1223 - Functions needed to execute image elements provided by Image module.
Code
function socialmedia_widgets_default_sets() {
$sets = array();
$sets['socialmedia_profile-default'] = socialmedia_widgets_set_profile_default();
$sets['socialmedia_share-default'] = socialmedia_widgets_set_share_default();
$sets['socialmedia_profile-urls'] = array(
'data' => array(
'style' => 'plain-linebreaks',
'cache' => array(
'scope' => 'author',
),
),
'elements' => array(
array(
'name' => 'socialmedia_socialmedia-twitter-profile-url',
'data' => array(),
'weight' => 1,
),
array(
'name' => 'socialmedia_socialmedia-facebook-profile-url',
'data' => array(),
'weight' => 1,
),
array(
'name' => 'socialmedia_socialmedia-linkedin-profile-url',
'data' => array(),
'weight' => 1,
),
array(
'name' => 'socialmedia_socialmedia-googleplus-profile-url',
'data' => array(),
'weight' => 1,
),
array(
'name' => 'socialmedia_socialmedia-youtube-profile-url',
'data' => array(),
'weight' => 1,
),
),
);
$sets['socialmedia_profile-buttons'] = array(
'data' => array(
'style' => 'horizontal',
'cache' => array(
'scope' => 'author',
),
),
'elements' => array(
array(
'name' => 'socialmedia_socialmedia-twitter-profile-button',
'data' => array(),
'weight' => 1,
),
array(
'name' => 'socialmedia_socialmedia-facebook-profile-button',
'data' => array(),
'weight' => 2,
),
array(
'name' => 'socialmedia_socialmedia-linkedin-profile-button',
'data' => array(),
'weight' => 3,
),
array(
'name' => 'socialmedia_socialmedia-googleplus-profile-button',
'data' => array(),
'weight' => 4,
),
array(
'name' => 'socialmedia_socialmedia-youtube-profile-button',
'data' => array(),
'weight' => 5,
),
array(
'name' => 'socialmedia_socialmedia-rss-feed-button',
'data' => array(),
'weight' => 6,
),
),
);
$sets['addthis-share'] = array(
'data' => array(
'style' => 'horizontal',
'cache' => array(
'scope' => 'page',
),
),
'elements' => array(
array(
'name' => 'socialmedia_addthis-tweet',
'data' => array(
'count' => ' tw:count="vertical"',
),
'weight' => 1,
),
array(
'name' => 'socialmedia_addthis-facebook-like',
'data' => array(
'layout' => ' fb:like:layout="box_count"',
),
'weight' => 2,
),
array(
'name' => 'socialmedia_addthis-google-plusone',
'data' => array(
'size' => ' g:plusone:size="tall"',
),
'weight' => 3,
),
array(
'name' => 'socialmedia_addthis-addthis-counter',
'data' => array(),
'weight' => 4,
),
),
);
$sets['facebook-like-box'] = array(
'data' => array(
//'cache' => array(
// 'scope' => 'author',
//),
'socialmedia' => array(
'profile_context' => 'site',
),
),
'elements' => array(
array(
'name' => 'socialmedia_facebook-like-box',
'weight' => 1,
'data' => array(),
),
),
);
$sets['twitter-user-timeline-widget'] = array(
'data' => array(
//'cache' => array(
// 'scope' => 'author',
//),
'socialmedia' => array(
'profile_context' => 'site',
),
),
'elements' => array(
array(
'name' => 'socialmedia_twitter-user-timeline-widget',
'weight' => 1,
'data' => array(
'preferences' => array(),
'dimensions' => array(),
'appearance' => array(),
'settings' => array(),
),
),
),
);
$sets['twitter-profile-widget'] = array(
'data' => array(
'cache' => array(
'scope' => 'author',
),
),
'elements' => array(
array(
'name' => 'socialmedia_twitter-profile-widget',
'weight' => 1,
'data' => array(
'preferences' => array(),
'dimensions' => array(),
'appearance' => array(),
'settings' => array(),
),
),
),
);
return $sets;
}