I just finished configuring our internal map gallery using the 1.4 template and functionality is very good. However, this is template is for our internal use only and our web admins get very concerned about employees inadvertently pushing links outside of our domain. Therefore I need to supress or remove the Tweet, Facebook and Google+ links that magically appeared in the template overnight. Since I'm new at this game I need to ask - is this something I control from within the template? If yes, how? Until I get this problem solved I don't really feel comfortable deploying this gallery within my organization.
[ATTACH=CONFIG]11848[/ATTACH]
As always, thanks in advance!
Brian
Hi Brian,That's a good suggestion. I may put in an option to easily turn these on and off.You can remove them in the index.html and map.html files.In index.html, remove this code:<div class="socialButtons">
<div class="item first"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div>
<div class="item">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=154863967938949&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div>
</div>
<div class="item">
<!-- Place this tag where you want the +1 button to render -->
<div class="g-plusone" data-size="medium" data-annotation="none"></div>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
<div class="clear"></div>
</div>
In map.html, remove this code:<div class="item first"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
<div class="item">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=154863967938949&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div>
</div>
<div class="item">
<!-- Place this tag where you want the +1 button to render -->
<div class="g-plusone" data-size="medium" data-annotation="none"></div>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
That should do it for you.Thanks