Hi, this is a great module!
Could you please should me how to use an image instead of the 'Stumble' text link.

Thanks.
Andrew

CommentFileSizeAuthor
#2 stumble-themelink.patch328 bytesChristefano-oldaccount

Comments

andrewjj’s picture

Sorry that should have read:
Could you please show me how to use an image instead of the 'Stumble' text link.

Thanks.

Christefano-oldaccount’s picture

Title: Using an image » Add "stumble-link" class to allow theming of the "Stumble" link (using an image)
Status: Active » Needs review
StatusFileSize
new328 bytes

This is untested but it should work. Replace the stumble_link() function in the Stumble module with this code (or apply the attached patch) and then add the appropriate CSS in your theme's CSS to theme the new "stumble-link" element.

function stumble_link($type, $node = NULL, $teaser = FALSE) {
  $links = array();

  if ($type == 'node' && !$teaser) {
    $links['stumble'] = array(
      'title' => t('Stumble'),
      'href' => 'node/'. stumble_get_nid(),
      'attributes' => array(
        'class' => 'stumble-link',
      ),
    );
  }

  return $links;
}
dave reid’s picture

Title: Add "stumble-link" class to allow theming of the "Stumble" link (using an image) » Add "stumble" class to allow theming of the "Stumble" link (using an image)
Assigned: Unassigned » dave reid
Status: Needs review » Fixed

Just pushed out a 5.x-1.1 release that adds a 'stumble' class to the link.

As for using an image, I'm not quite sure what CSS you'd use on your site's theme exactly, but I'm sure someone does know around here.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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