Navigation Menu

Skip to content

Commit

Permalink
Beta help links
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Mar 15, 2012
1 parent d1c80fa commit 3ae49c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webapp/_lib/view/plugins/insert.help_link.php
Expand Up @@ -42,8 +42,14 @@
*/
function smarty_insert_help_link($params, &$smarty) {
if (isset($smarty->_tpl_vars['help'][$params['id']])){
return '<a href="http://thinkupapp.com/docs/'.$smarty->_tpl_vars['help'][$params['id']].
'.html" title="Learn more" class="linkbutton help">Help</a>';
require_once THINKUP_WEBAPP_PATH.'install/version.php';
if (strpos('beta', $THINKUP_VERSION)) {
return '<a href="http://thinkupapp.com/docs/beta/'.$smarty->_tpl_vars['help'][$params['id']].
'.html" title="Learn more" class="linkbutton help">Help</a>';
} else {
return '<a href="http://thinkupapp.com/docs/'.$smarty->_tpl_vars['help'][$params['id']].
'.html" title="Learn more" class="linkbutton help">Help</a>';
}
} else {
return '';
}
Expand Down

0 comments on commit 3ae49c3

Please sign in to comment.