Commits

Nick Freear committed e2fb55d

Adding 'dev' to the Bookmarklet text-link for non-'live' servers

Comments (0)

Files changed (2)

application/config/toer_constants.php

 |--------------------------------------------------------------------------
 | Various URLs - mostly for application/views/site_layout/layout_ci.php
 */
+define('TRACKOER_LIVE_URL', 'http://track.olnet.org/');
+
 // The project blog.
 define('BLOG_URL', 'http://cloudworks.ac.uk/tag/view/TrackOER');
 

application/views/site_layout/bookmarklet.php

 <?php
 	$base_url = base_url();
 ?>
-<span id="bookmarklet" title="Drag the bookmarklet link to your bookmarks toolbar">Bookmarklet: <a href=
+<span id="bookmarklet" title="Drag the bookmarklet link to your bookmarks toolbar"
+><span>Bookmarklet </span><a href=
 "javascript:(function(){var d=document,s=d.createElement('script');s.type='text/javascript';s.src='<?php
 echo $base_url ?>public/js/toer-bookmarklet.js?x='+(Math.random());d.getElementsByTagName('head')[0].appendChild(s);d.trackoer_srvurl='<?php
 echo $base_url ?>'})();"
-	>Track OER</a></span>
+	>Track OER<?php if(TRACKOER_LIVE_URL != $base_url): ?> dev<?php endif; ?></a></span>
 
 <?php endif; ?>