To test:
1. Add this to the bottom of index.tpl:
<h1 id="putithere">Test: </h1> {include file="footer.tpl"} <script> jQuery(function() { jQuery('#putithere').append(get_string_ajax('youhaveviews','view','5')); }); </script>
2. Log out of Mahara 3. View the Mahara home page
Expected result: At the bottom of the page, you'll see: "Test: You have 5 pages." Actual result: At the bottom of the page you just see "Test:"
To test:
1. Add this to the bottom of index.tpl:
<h1 id="putithere" >Test: </h1> '#putithere' ).append( get_string_ ajax('youhavevi ews','view' ,'5'));
{include file="footer.tpl"}
<script>
jQuery(function() {
jQuery(
});
</script>
2. Log out of Mahara
3. View the Mahara home page
Expected result: At the bottom of the page, you'll see: "Test: You have 5 pages."
Actual result: At the bottom of the page you just see "Test:"