forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from AlexanderBlanchardAC/cookie_management_db…
…_cleanup Cookie management db cleanup
- Loading branch information
Showing
35 changed files
with
1,009 additions
and
298 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
code/web/interface/themes/responsive/AJAX/cookieManagement.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{if $loggedIn} | ||
<script> | ||
cookieValues = { | ||
Essential: {$profile->userCookiePreferenceEssential}, | ||
Analytics: {$profile->userCookiePreferenceAnalytics}, | ||
UserEvents: {$profile->userCookiePreferenceEvents}, | ||
UserOpenArchives: {$profile->userCookiePreferenceOpenArchives}, | ||
UserWebsite: {$profile->userCookiePreferenceWebsite}, | ||
UserExternalSearchServices: {$profile->userCookiePreferenceExternalSearchServices}, | ||
}; | ||
</script> | ||
<div> | ||
<form method="post" name="cookieManagementPreferencesForm" id="cookieManagementPreferencesForm" class="form"> | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieEssential" id="cookieEssential" checked disabled> Essential Cookies | ||
</label> | ||
</div> | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieAnalytics" id="cookieAnalytics"> Analytics Cookies | ||
</label> | ||
</div> | ||
{if array_key_exists('Axis 360', $enabledModules) || array_key_exists('EBSCO EDS', $enabledModules) || array_key_exists('EBSCOhost', $enabledModules) || array_key_exists('Summon', $enabledModules) || array_key_exists('OverDrive', $enabledModules) | ||
|| array_key_exists('Palace Project', $enabledModules) || array_key_exists('Hoopla', $enabledModules) || array_key_exists('Side Loads', $enabledModules) || array_key_exists('Cloud Library', $enabledModules) || array_key_exists('Web Indexer', $enabledModules)} | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieUserExternalSearchServices" id="cookieUserExternalSearchServices"> External Search Services <i class="fas fa-question-circle" onclick="return displayCookieExplanation()"></i> | ||
</label> | ||
</div> | ||
<div id="cookieExplanation" style="display:none; margin-top:10px;"> | ||
By checking this box you are giving consent to the tracking of your usage of: | ||
<ul> | ||
{if array_key_exists('Axis 360', $enabledModules)} | ||
<li>Axis 360</li> | ||
{/if} | ||
{if array_key_exists('Cloud Library', $enabledModules)} | ||
<li>Cloud Library</li> | ||
{/if} | ||
{if array_key_exists('EBSCO EDS', $enabledModules)} | ||
<li>Ebsco Eds</li> | ||
{/if} | ||
{if array_key_exists('EBSCOhost', $enabledModules)} | ||
<li>Ebsco Host</li> | ||
{/if} | ||
{if array_key_exists('Hoopla', $enabledModules)} | ||
<li>Hoopla</li> | ||
{/if} | ||
{if array_key_exists('OverDrive', $enabledModules)} | ||
<li>Overdrive</li> | ||
{/if} | ||
{if array_key_exists('Palace Project', $enabledModules)} | ||
<li>Palace Project</li> | ||
{/if} | ||
{if array_key_exists('Side Loads', $enabledModules)} | ||
<li>Side Loaded eContent</li> | ||
{/if} | ||
{if array_key_exists('Summon', $enabledModules)} | ||
<li>Summon</li> | ||
{/if} | ||
</ul> | ||
</div> | ||
{/if} | ||
{if array_key_exists('Events', $enabledModules)} | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieUserEvents" id="cookieUserEvents"> Events | ||
</label> | ||
</div> | ||
{/if} | ||
{if array_key_exists('Open Archives', $enabledModules)} | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieUserOpenArchives" id="cookieUserOpenArchives"> Open Archives | ||
</label> | ||
</div> | ||
{/if} | ||
{if array_key_exists('Web Indexer', $enabledModules)} | ||
<div> | ||
<label> | ||
<input type="checkbox" name="cookieUserWebsite" id="cookieUserWebsite"> Website | ||
</label> | ||
</div> | ||
{/if} | ||
</div> | ||
{/if} | ||
|
||
<script type="text/javascript"> | ||
{literal} | ||
function displayCookieExplanation() { | ||
var explanationDiv = document.getElementById("cookieExplanation"); | ||
if (explanationDiv.style.display === "none") { | ||
explanationDiv.style.display = "block"; | ||
} else { | ||
explanationDiv.style.display = "none"; | ||
} | ||
return false; | ||
} | ||
$("#cookieManagementPreferencesForm").validate({ | ||
submitHandler: function(){ | ||
AspenDiscovery.CookieConsent.cookieManagementPreferences(); | ||
} | ||
}); | ||
{/literal} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.