SAAS-940: Provide usability hints to user

Customized hints depending on what page the user is on and what action
they just completed.
This commit is contained in:
drigato 2015-07-13 17:02:31 -04:00
parent 48547ee347
commit 25ef70767b
7 changed files with 131 additions and 1 deletions

View file

@ -71,6 +71,16 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<div class="wrapper" id="content">
<?php
$hint = Application_Common_UsabilityHints::getUsabilityHint();
Logging::info($hint);
if ($hint != "") { ?>
<div class="usability_hint"><?php echo $hint; ?></div>
<?php
}
?>
<!--
<?php if (Application_Common_UsabilityHints::zeroFilesUploaded()) { ?>
<div class="usability_hint">
<?php echo sprintf(_("It looks like you have not uploaded any audio files yet. %shere%s to upload a file."), "Click <a href='/plupload'>", "</a>"); ?>
@ -88,6 +98,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<?php echo sprintf(_("To start broadcasting click %shere%s to schedule a track into your show."), "<a href='/showbuilder'>", "</a>"); ?>
</div>
<?php } ?>
-->
<?php echo $this->layout()->content ?></div>