It would be handy to have a wrapper (.sharethis-wrapper) around the span images. If it is preferred for the mod to not have a wrapper could someone point out to me where in the module the code could be added to achieve this and I'll add it myself.

Many thanks

Comments

jvalencia’s picture

sharethis_get_button_HTML function in sharethis.module

robloach’s picture

Status: Active » Needs review

Doesn't it usually get wrapped by ".sharethis-buttons"? Where does it not get that class?

robloach’s picture

Status: Needs review » Postponed (maintainer needs more info)
kingfisher64’s picture

StatusFileSize
new12.38 KB

When placed in the block in omega theme there's no wrapper directly around the span icons. In the screenshot attached there's .content however I was hoping for something more specific to the module to reference.

Quarath’s picture

The most simple solution:
in \modules\sharethis\sharethis.module
line 369

-  return $st_spans . $st_js;
+  return '<div class="sharethis-wrapper">' . $st_spans . $st_js . '</div>';
bcobin’s picture

@Quarath,

Thank you for this! It should definitely go into the module... you're a lifesaver!

neochief’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new467 bytes

Somebody, please review the patch.

robloach’s picture

Looks pretty good to me! Are there any outside wrappers that we implement? Like for the block?

robloach’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
kingfisher64’s picture

Perfect.

I don't think we need an outside wrapper. There's the block and now the sharethis-wrapper. For me that's good enough. :)

neochief’s picture

Status: Needs review » Reviewed & tested by the community
robloach’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.