Closed ChrisFrench closed 11 years ago
The way I ended up writing this was to do this
echo DSCSocial::getInstance('facebook')->customsharebutton();
echo DSCSocial::getInstance('facebook')->sharebutton();
the reason was because now we could put useful static functions in DSCSocial that apply to all of them like
DSCSocail::makeshorturl(); or something like that
Ideas
DSCSocial is a base file in the /library folder of the DSC Lib then there is also a /library/social folder in which there are facebook.php, twitter.php, linkedin.php, etc
class names then are DSCSocialFacebook
$button = new DSCSocial();
echo $button->get('Facebook')->button( $options=array() );
echo $button->get('Twitter')->button( $options );