Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move Social Bookmarks (OFFICAL RESOURCE)


OSC-Sevilla

Recommended Posts

Move your Social bookmarks anywhere with this code. add on products_info.php, (LINE 220 or anywhere you like)

 

<?php

 

$sbm_array = explode(';', MODULE_SOCIAL_BOOKMARKS_INSTALLED);

 

$social_bookmarks = array();

 

foreach ( $sbm_array as $sbm ) {

$class = substr($sbm, 0, strrpos($sbm, '.'));

 

if ( !class_exists($class) ) {

include(DIR_WS_LANGUAGES . $language . '/modules/social_bookmarks/' . $sbm);

include(DIR_WS_MODULES . 'social_bookmarks/' . $class . '.php');

}

 

$sb = new $class();

 

if ( $sb->isEnabled() ) {

$social_bookmarks[] = $sb->getOutput();

}

}

 

if ( !empty($social_bookmarks) ) {

$data = '<h3>' . implode( $social_bookmarks) . '</h3>';}

 

echo $data;

 

 

?>

 

---------------------------------

 

ENJOY

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...