diff --git a/3.0/modules/social_share/controllers/admin_social_share.php b/3.0/modules/social_share/controllers/admin_social_share.php index cf330fcc..3f247cff 100644 --- a/3.0/modules/social_share/controllers/admin_social_share.php +++ b/3.0/modules/social_share/controllers/admin_social_share.php @@ -27,6 +27,7 @@ class Admin_Social_Share_Controller extends Admin_Controller { $form = $this->_get_form(); if ($form->validate()) { + module::set_var("social_share", "general_impage_only", $form->general_settings->general_impage_only->value); module::set_var("social_share", "facebook_share_enabled", $form->facebook_share_settings->facebook_share_enabled->value); module::set_var("social_share", "facebook_share_layout", $form->facebook_share_settings->facebook_share_layout->value); module::set_var("social_share", "facebook_share_link_text", $form->facebook_share_settings->facebook_share_link_text->value); @@ -69,7 +70,7 @@ class Admin_Social_Share_Controller extends Admin_Controller { $group_general->checkbox("general_impage_only")->label(t("Display the enabled buttons on image and movie pages only")) ->checked(module::get_var("social_share", "general_impage_only", true) == 1); -/// Facebook settings +/// Facebook share settings $group_facebook_share = $form->group("facebook_share_settings")->label(t("Facebook Share Button Settings")); $group_facebook_share->checkbox("facebook_share_enabled")->label(t("Display the button")) ->checked(module::get_var("social_share", "facebook_share_enabled", false) == 1); @@ -81,7 +82,8 @@ class Admin_Social_Share_Controller extends Admin_Controller { ->selected(module::get_var("social_share", "facebook_share_layout")); $group_facebook_share->input("facebook_share_link_text")->label(t('Enter the text to place next to the Facebook icon.')) ->value(module::get_var("social_share", "facebook_share_link_text", "Share")); - + +/// Facebook like settings $group_facebook_like = $form->group("facebook_like_settings")->label(t("Facebook Like Button Settings")); $group_facebook_like->checkbox("facebook_like_enabled")->label(t("Display the button")) ->checked(module::get_var("social_share", "facebook_like_enabled", false) == 1); diff --git a/3.0/modules/social_share/views/facebook_like.html.php b/3.0/modules/social_share/views/facebook_like.html.php index 5758472f..a2c28ad1 100644 --- a/3.0/modules/social_share/views/facebook_like.html.php +++ b/3.0/modules/social_share/views/facebook_like.html.php @@ -17,7 +17,6 @@ if (module::get_var("social_share", "facebook_like_send")) { $send = "false"; } ?> -
@@ -28,14 +27,13 @@ if (module::get_var("social_share", "facebook_like_send")) { &show_faces= &width=180 &locale= -&action= +&action= &colorscheme=light&height=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:180px; height:px;" allowTransparency="true">
\ No newline at end of file diff --git a/3.0/modules/social_share/views/pinterest.html.php b/3.0/modules/social_share/views/pinterest.html.php index 59d3d66f..8d40d42a 100644 --- a/3.0/modules/social_share/views/pinterest.html.php +++ b/3.0/modules/social_share/views/pinterest.html.php @@ -1,13 +1,14 @@ item()) { + $url = urlencode(url::abs_current(true)); $item = $theme->item(); - $media = $item->thumb_url(true); + $media = urlencode($item->thumb_url(true)); + $description=urlencode($item->description); ?> - -"> - - +
+ "> + + + +
\ No newline at end of file