I'm trying to add this social-network button:
<a href="http://svejo.net/submit/?url=[your url]"
data-url="[your url]"
data-type="compact"
id="svejo-button">Add in Svejo</a>
<script type="text/javascript" src="http://svejo.net/javascripts/svejo-button.js"></script>
to my blog posts. But loading this in every post would really slow my page so I've try to implement it with wp_enqueue_script() inside my functions.php
function socialNetworks(){
$opentag = '<ul class="socials">';
$closetag = '</ul>';
$socials['svejonet'] =
'<a href="http://svejo.net/submit/?url=['.get_permalink().']" data-url="['.get_permalink().']" data-type="compact" id="svejo-button">Add in Svejo</a>'.
wp_enqueue_script( 'none', 'http://svejo.net/javascripts/svejo-button.js', array(), false, true);
echo $opentag;
foreach ( $socials as $key=>$val ){
echo '<li class="'.$key.'">'.$val.'</li>';
}
echo $closetag;
}
However the script does not load.
Appreciate any help.
socialNetworks()? Defining it in functions.php is not enough