I don't know of any direct way of getting that information but you could do it indirectly with JavaScript detecting the presence of the privacy message and adding a corresponding class to the welcome message so you could display an appropriate privacy message with CSS.
1) Modify
welcome.pstpl something like this. Note that I have changed the .surveywelcome element from a <p> to a <div> (which I think should be done in all templates) and added a script to assign a anonymity-dependent class to that element.
Code:
<div class="row" id="welcome-container">
<div class="col-sm-12 ">
<h1>{SURVEYNAME}</h1><br />
<p class='surveydescription text-info'>{SURVEYDESCRIPTION}</p>
</div>
</div>
<!-- Survey Welcome -->
<div class="row survey-welcome">
<div class="col-sm-12 ">
<div class='surveywelcome'>
{WELCOME}
</div>
</div>
</div>
<!-- Question number -->
<div class="row questions-number">
<div class="col-sm-12">
<p class="x-questions">{THEREAREXQUESTIONS}</p>
</div>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
if($('.row.privacy').length > 0) {
$('.row.survey-welcome').addClass('anonymous');
}
else {
$('.row.survey-welcome').addClass('non-anonymous');
}
});
</script>
2) Add something like this to the end of
template.css. It will hide the core privacy statement and display the appropriate element in the welcome message.
Code:
.row.privacy,
.survey-welcome.non-anonymous .privacy-anonymous,
.survey-welcome.anonymous .privacy-non-anonymous {
display: none;
}
3) Add something like this to the welcome message. Note the different classes on th <p> elements.
Code:
<p class="privacy-anonymous">
Some privacy statement for the anonymous survey...
</p>
<p class="privacy-non-anonymous">
Some privacy statement for the non-anonymous survey...
</p>