diff --git a/socialmedia.widgets.inc b/socialmedia.widgets.inc index ba9491c..82cbf62 100644 --- a/socialmedia.widgets.inc +++ b/socialmedia.widgets.inc @@ -9,7 +9,7 @@ * Implements hook_widgets_element_info(). */ function socialmedia_widgets_element_info() { - //$addthis_js = ''; + //$addthis_js = ''; $elements = array( 'socialmedia_twitter-tweet-no-count' => array( 'label' => t('Twitter tweet button (no count)'), @@ -101,8 +101,8 @@ function socialmedia_base_platforms() { ); $title = t("Bookmark on Del.icio.us"); $platforms['delicious']['templates'] = array( - 'share-text-link' => '[?link-text=' . $title . '?]', - 'share-button' => 'Del.icio.us icon', + 'share-text-link' => '[?link-text=' . $title . '?]', + 'share-button' => 'Del.icio.us icon', ); $platforms['digg'] = array( @@ -111,8 +111,8 @@ function socialmedia_base_platforms() { ); $title = t("Post to Digg"); $platforms['digg']['templates'] = array( - 'share-text-link' => '[?link-text=' . $title . '?]', - 'share-button' => 'Digg icon', + 'share-text-link' => '[?link-text=' . $title . '?]', + 'share-button' => 'Digg icon', ); $platforms['facebook'] = array( @@ -125,8 +125,8 @@ function socialmedia_base_platforms() { 'profile-url' => "[?profile_url=[socialmedia:sm-facebook_url]?]", 'profile-text-link' => '[?profile_username=[socialmedia:sm-facebook_username]?]', 'profile-button' => 'Facebook icon', - 'share-text-link' => '[?link-text=' . $title . '?]', - 'share-button' => 'Facebook icon', + 'share-text-link' => '[?link-text=' . $title . '?]', + 'share-button' => 'Facebook icon', ); $platforms['flickr'] = array( @@ -145,8 +145,8 @@ function socialmedia_base_platforms() { 'group' => t('Social media: Google'), ); $platforms['google']['templates'] = array( - 'share-text-link' => '[?link-text=Bookmark on Google?]', - 'share-button' => 'Google icon', + 'share-text-link' => '[?link-text=Bookmark on Google?]', + 'share-button' => 'Google icon', ); $platforms['googleplus'] = array( @@ -181,8 +181,8 @@ function socialmedia_base_platforms() { 'profile-url' => "[?profile_url=[socialmedia:sm-linkedin_url]?]", 'profile-text-link' => '[?profile_username=[socialmedia:sm-linkedin_username]?]', 'profile-button' => 'LinkedIn icon', - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'LinkedIn icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'LinkedIn icon', ); $platforms['myspace'] = array( @@ -191,8 +191,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Share on MySpace"); $platforms['myspace']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'MySpace icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'MySpace icon', ); $platforms['newsvine'] = array( @@ -201,8 +201,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Post on Newsvine"); $platforms['newsvine']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'Newsvine icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'Newsvine icon', ); $platforms['pinterest'] = array( @@ -215,8 +215,8 @@ function socialmedia_base_platforms() { 'profile-url' => "[?profile_url=[socialmedia:sm-pinterest_url]?]", 'profile-text-link' => '[?profile_username=[socialmedia:sm-pinterest_username]?]', 'profile-button' => 'Pinterest icon', - //'share-text-link' => '[?link-text=Pin It?]', - 'share-button' => 'Pinterest icon', + //'share-text-link' => '[?link-text=Pin It?]', + 'share-button' => 'Pinterest icon', ); // note: code from: http://www.brandaiddesignco.com/blog/add-a-custom-pinterest-pin-it-button-to-your-website/375/ @@ -226,8 +226,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Post to Reddit"); $platforms['reddit']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'Reddit icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'Reddit icon', ); $platforms['rss'] = array( @@ -259,8 +259,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Stumble this on StumbleUpon"); $platforms['stumbleupon']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'StumbleUpon icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'StumbleUpon icon', ); $platforms['technorati'] = array( @@ -269,8 +269,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Favorite on Technorati"); $platforms['technorati']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'Technorati icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'Technorati icon', ); $platforms['twitter'] = array( @@ -281,11 +281,11 @@ function socialmedia_base_platforms() { $stitle = t("Tweet this"); $platforms['twitter']['templates'] = array( 'profile-url' => "[?profile_url=[socialmedia:sm-twitter_url]?]", - 'profile-text-link' => '@[?profile_username=[socialmedia:sm-twitter_username]?]', - 'profile-button' => 'Twitter icon', - 'share-text-link' => '[?link-text=' . $stitle . '?]', - //'share-button' => 'Twitter icon', - 'share-button' => 'Twitter icon', + 'profile-text-link' => '@[?profile_username=[socialmedia:sm-twitter_username]?]', + 'profile-button' => 'Twitter icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + //'share-button' => 'Twitter icon', + 'share-button' => 'Twitter icon', ); @@ -306,8 +306,8 @@ function socialmedia_base_platforms() { ); $stitle = t("Bookmark on Yahoo!"); $platforms['yahoo']['templates'] = array( - 'share-text-link' => '[?link-text=' . $stitle . '?]', - 'share-button' => 'Yahoo! icon', + 'share-text-link' => '[?link-text=' . $stitle . '?]', + 'share-button' => 'Yahoo! icon', ); $platforms['youtube'] = array( @@ -378,8 +378,8 @@ function socialmedia_widgets_element_form_alter(&$form, $set, $element) { } function socialmedia_widgets_element_addthis_js() { - return ''; - //return ''; + return ''; + //return ''; } function socialmedia_widgets_element_addthis_addthis_counter() { @@ -648,7 +648,7 @@ function socialmedia_widgets_element_facebook_like_box() { } function socialmedia_widgets_element_alter_facebook_like_box(&$form, $set, $element) { - $form['facebook_page_url']['#description'] = t('The URL of the Facebook Page for this Like box. (example: http://www.facebook.com/platform) ') . $form['facebook_page_url']['#description']; + $form['facebook_page_url']['#description'] = t('The URL of the Facebook Page for this Like box. (example: https://www.facebook.com/platform) ') . $form['facebook_page_url']['#description']; $form['height']['#description'] = t('Leave blank to not set a height. Use [socialmedia:sm-default_height] to use the social media widget default.'); $options = array( 'true' => t('Yes'), @@ -760,7 +760,7 @@ function socialmedia_widgets_element_linkedin_share_button() { $elements['socialmedia_linkedin-share-button'] = array( 'label' => t('LinkedIn share button'), 'group' => t('Social media: LinkedIn'), - 'template' => '', + 'template' => '', 'form callback' => 'widgets_template_auto_form', ); return $elements; @@ -791,7 +791,7 @@ function socialmedia_widgets_element_rss_button() { function socialmedia_widgets_element_twitter_profile_widget() { $template = << + ', + 'template' => '', 'form callback' => 'widgets_template_auto_form', ); return $elements;