Commit ecfb8a15 authored by Liam Sharpe's avatar Liam Sharpe

Added panels to cookie consent page - Bug #1537444

behatnotneeded

Change-Id: I3f6c0e59347a817cbe62c752237edd76da4f6ad6
parent ed07c1f9
......@@ -150,6 +150,7 @@ CODE;
$data = array(
'social' => array(
'id' => '0',
'title' => get_string('cookietypessocial', 'cookieconsent'),
'item1' => get_string('instructiontext1', 'cookieconsent', get_string('cookietypessocial','cookieconsent'), get_string('example1social','cookieconsent')),
'item2' => get_string('instructiontext2-1', 'cookieconsent'),
......@@ -160,6 +161,7 @@ $data = array(
'help2' => get_string('itdidntwork2', 'cookieconsent', '<a href="http://sitebeam.net/cookieconsent/documentation/code-examples#examples-social" target="_blank">', '</a>', '<a href="http://www.linkedin.com/groups/Cookie-Consent-developers-4980594?trk=groups_management_submission_queue-h-dsc" target="_blank">', '</a>')
),
'analytics' => array(
'id' => '1',
'title' => get_string('cookietypesanalytics', 'cookieconsent'),
'item1' => get_string('instructiontext1', 'cookieconsent', get_string('cookietypesanalytics','cookieconsent'), get_string('example1analytics','cookieconsent')),
'item2' => get_string('instructiontext2-1', 'cookieconsent'),
......@@ -170,6 +172,7 @@ $data = array(
'help2' => get_string('itdidntwork2', 'cookieconsent', '<a href="http://sitebeam.net/cookieconsent/documentation/code-examples#examples-analytics" target="_blank">', '</a>', '<a href="http://www.linkedin.com/groups/Cookie-Consent-developers-4980594?trk=groups_management_submission_queue-h-dsc" target="_blank">', '</a>')
),
'advertising' => array(
'id' => '2',
'title' => get_string('cookietypesadvertising', 'cookieconsent'),
'item1' => get_string('instructiontext1', 'cookieconsent', get_string('cookietypesadvertising','cookieconsent'), get_string('example1advertising','cookieconsent')),
'item2' => get_string('instructiontext2-1', 'cookieconsent'),
......@@ -180,6 +183,7 @@ $data = array(
'help2' => get_string('itdidntwork2', 'cookieconsent', '<a href="http://sitebeam.net/cookieconsent/documentation/code-examples#examples-advertising" target="_blank">', '</a>', '<a href="http://www.linkedin.com/groups/Cookie-Consent-developers-4980594?trk=groups_management_submission_queue-h-dsc" target="_blank">', '</a>')
),
'necessary' => array(
'id' => '3',
'title' => get_string('cookietypesnecessary', 'cookieconsent'),
'item1' => get_string('instructiontext1', 'cookieconsent', get_string('cookietypesnecessary','cookieconsent'), get_string('example1necessary','cookieconsent')),
'item2' => get_string('instructiontext2-1', 'cookieconsent'),
......
{include file="header.tpl"}
<p>{$modifications|safe}</p>
{foreach from=$data item=item}
<h3>{$item.title}</h3>
<ol>
<li>{$item.item1|safe}</li>
<li>{$item.item2|safe}</li>
<li>{$item.item3|safe}</li>
</ol>
<table class="cb attachments fullwidth">
<thead class="expandable-head">
<tr>
<td><a class="toggle" href="#">{str tag=example section=cookieconsent}</a></td>
</tr>
</thead>
<tbody class="expandable-body">
<tr class="r1">
<td><p>{str tag=examplebefore section=cookieconsent}</p>
</tr>
<tr class="r0">
<td>{$item.code1|safe}</td>
</tr>
<tr class="r1">
<td><p>{str tag=exampleafter section=cookieconsent}</p></td>
</tr>
<tr class="r0">
<td>{$item.code2|safe}</td>
</tr>
</tbody>
</table>
<table class="cb attachments fullwidth">
<thead class="expandable-head">
<tr>
<td><a class="toggle" href="#">{str tag=itdidntwork section=cookieconsent}</a></td>
</tr>
</thead>
<tbody class="expandable-body">
<tr class="r1">
<td>
<p>{$item.help1|safe}</p>
<p>{$item.help2|safe}</p>
</td>
</tr>
</tbody>
</table>
{/foreach}
<p>{$modifications|safe}</p>
{include file="footer.tpl"}
{foreach from=$data item=item}
<h3>{$item.title}</h3>
<ol>
<li>{$item.item1|safe}</li>
<li>{$item.item2|safe}</li>
<li>{$item.item3|safe}</li>
</ol>
<div class="form-group collapsible-group">
<fieldset class="pieform-fieldset collapsible">
<legend>
<h4>
<a href="#example_{$item.id}" data-toggle="collapse" aria-expanded="true" class="collapsed">{str tag=example section=cookieconsent}
<span class="icon icon-chevron-down collapse-indicator right pull-right" role="presentation" aria-hidden="true"></span>
</a>
</h4>
</legend>
<div id="example_{$item.id}" class="fieldset-body collapse">
<p>{str tag=examplebefore section=cookieconsent}</p>
{$item.code1|safe}
{str tag=exampleafter section=cookieconsent}
{$item.code2|safe}
</div>
</fieldset>
</div>
<div class="last form-group collapsible-group">
<fieldset class="pieform-fieldset last collapsible">
<legend>
<h4>
<a href="#didnt_work_{$item.id}" data-toggle="collapse" aria-expanded="true" class="collapsed">{str tag=itdidntwork section=cookieconsent}
<span class="icon icon-chevron-down collapse-indicator right pull-right" role="presentation" aria-hidden="true"></span>
</a>
</h4>
</legend>
<div id="didnt_work_{$item.id}" class="fieldset-body collapse">
<p>{$item.help1|safe}</p>
<p>{$item.help2|safe}</p>
</div>
</fieldset>
</div>
{/foreach}
{include file="footer.tpl"}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment