16 $monLibrary = dirname(__FILE__) .
"/../library";
17 require_once(
"$monLibrary/cu_top.i");
18 require_once(
"$monLibrary/ck_hticket.i");
19 require_once(
"$sharedLibrary/hcuTranslate.i");
20 require_once(
"$sharedLibrary/cu_flagconst.i");
21 require_once(
"$sharedLibrary/cu_data.i");
23 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
26 header(
"Location: /hcuadm/hcu_noperm.prg");
30 $loadedFromTemplate =
false;
31 $loadedFromProduction =
false;
42 $settingsFileStatus =
'';
45 $string = array(
"filter" => FILTER_SANITIZE_STRING);
46 $parameters = array();
47 HCU_ImportVars($parameters,
"", array(
'user_name' => $string,
'loadSettings' => $string));
48 $username = HCU_array_key_value(
"user_name", $parameters);
49 $username = $username ===
false ?
"" : trim($username);
50 $loadSettings = HCU_array_key_value(
"loadSettings", $parameters);
51 $loadSettings = $loadSettings ===
false ?
"" : trim($loadSettings);
52 $loadSettings = $loadSettings ==
"" ?
"production" : $loadSettings;
54 $cuStyleFileName =
"brand.css";
55 $cuStyleFileProdName =
"brand.$username.css";
56 $cuStyleFileTemplateName = $cuStyleFileName;
58 $cuSettingsDir =
"/home/{$username}/public_html/bankingIncludes/";
59 $cuPublicDir =
"/home/{$username}/public_html/";
62 $templateSettingsDir =
"/home/homecu/public_html/bankingIncludes/css/";
64 if ($loadSettings ==
'production') {
65 $cuSaveSettingsFilePath = $loadSettings .
'/css/' . $cuStyleFileProdName;
66 $cuLoadSettingsFilePath = $loadSettings .
'/css/' . $cuStyleFileProdName;
67 } elseif ($loadSettings ==
'preview' || $loadSettings ==
'previewreload') {
69 $cuSaveSettingsFilePath =
'preview/css/' . $cuStyleFileName;
70 if ($loadSettings ==
'preview' && is_readable($cuSettingsDir . $loadSettings .
'/css/' . $cuStyleFileName)) {
71 $cuLoadSettingsFilePath = $loadSettings .
'/css/' . $cuStyleFileName;
74 $cuLoadSettingsFilePath =
'production/css/' . $cuStyleFileProdName;
75 $loadedFromTemplate =
true;
79 throw new Exception(
'Invalid parameter setting', 903);
81 $cuSaveSettingsFilePath = $loadSettings ==
"production" ? $loadSettings .
'/' . $cuStyleFileProdName : $loadSettings .
'/' . $cuStyleFileName;
82 $templateFilePath = $templateSettingsDir .
'/' . $cuStyleFileName;
86 $fileIsReadable = is_readable($cuSettingsDir . $cuLoadSettingsFilePath);
87 if (is_readable($cuSettingsDir . $cuSaveSettingsFilePath) && !is_writable($cuSettingsDir . $cuSaveSettingsFilePath)) {
89 throw new Exception(
'Credit Union settings file not configured with correct permission. Unable to save brand.css file in $loadSettings.', 903);
91 } elseif (is_writable($templateSettingsDir)) {
94 if ($fileIsReadable) {
95 $settingsFileStatus =
"<strong>Colors Found</strong><br/>Loaded From {$cuStyleFileName}";
96 } elseif (is_readable($templateSettingsDir . $cuStyleFileName)) {
98 $settingsFileStatus =
'<strong>Settings Not Found</strong><br/>Loaded From Template';
99 $loadedFromTemplate =
true;
102 throw new Exception(
'Credit Union configuration error', 901);
105 } elseif (!is_dir($cuSettingsDir) && is_writable($cuPublicDir)) {
108 throw new Exception(
"Credit Union not configured with correct permission or directory. {$cuSettingsDir}", 900);
109 } elseif (is_writable($cuSettingsDir) && $templateIsReadable) {
113 $settingsFileStatus =
'<strong>Settings Not Found</strong><br/>Loaded From Template';
116 throw new Exception(
'Credit Union configuration error', 901);
120 $loadSettings = ($loadSettings ==
'previewreload' ?
'preview' : $loadSettings);
129 $styleDefaults = array(
130 "fontFamily" =>
"Helvetica, \"Helvetica Neue\", Arial, sans-serif",
131 "headerBackground" =>
"#24417A",
132 "headerForeground" =>
"#FFFFFF",
133 "headerBorder" =>
"#2A2D33",
134 "footerBackground" =>
"#E7E8EA",
135 "footerForeground" =>
"#777777",
136 "menuGroupBackground" =>
"#1B8DD6",
137 "menuGroupBackgroundLighter" =>
"#2198E3",
138 "menuGroupForeground" =>
"#FFFFFF",
139 "menuForeground" =>
"#337AB7",
140 "menuForegroundHover" =>
"#23527C",
141 "menuBackgroundHover" =>
"#EEEEEE",
142 "menuBackground" =>
"#F8F8F8",
143 "slideinBackground" =>
"#808080",
144 "slideinForeground" =>
"#FFFFFF",
145 "contentBackground" =>
"#FFFFFF",
146 "contentForeground" =>
"#333333",
147 "logoHeightDesktop" =>
"75px",
148 "logoHeightMobile" =>
"35px",
149 "logoBackground" =>
"transparent",
150 "contentBorderWidth" =>
"0px",
151 "contentBorderStyle" =>
"solid",
152 "contentBorderColor" =>
"#000000",
153 "navBadgeColor" =>
"#777777",
154 "navIconColor" =>
"#9D9D9D",
155 "navIconColorHover" =>
"#FFFFFF",
156 "navBackground" =>
"transparent",
157 "navForeground" =>
"#FFFFFF",
158 "navActiveBorder" =>
"#FF0000",
159 "bannerBackground" =>
"#161620",
160 "bannerHeight" =>
"60px",
161 "bannerWidth" =>
"100%" 164 $styleType = array(
"fontFamily" =>
"other",
"logoHeightDesktop" =>
"number",
"logoHeightMobile" =>
"number",
165 "contentBorderStyle" =>
"other",
"contentBorderWidth" =>
"number",
"bannerHeight" =>
"number",
166 "bannerHeight" =>
"number",
"bannerWidth" =>
"number");
168 $styleValues = array();
170 if ($fileIsReadable) {
171 $styleContent = file_get_contents($cuSettingsDir . $cuLoadSettingsFilePath);
173 $styleValues = array();
176 $pattern =
'/\s*((transparent)|(#[0-9A-Fa-f]{6})|(\d+px)|(100%)|([^:;\!]+))(\s+\!important)?;\s*\/\*\s*([A-Za-z]+)\s*\*\//';
178 $result = preg_match_all($pattern, $styleContent, $matches, PREG_SET_ORDER);
181 foreach($matches as $matchSet) {
183 $value = $matchSet[1];
184 $type = HCU_array_key_value($key, $styleType);
185 $type = $type ===
false ? $type =
"color" : $type;
190 $valid = !empty($matchSet[2]) || !empty($matchSet[3]);
193 $valid = !empty($matchSet[4]) || !empty($matchSet[5]);
196 $valid = !empty($matchSet[6]);
203 $styleValues[$key] = $value;
207 foreach($styleDefaults as $key => $value) {
208 if (!HCU_array_key_exists($key, $styleValues)) {
209 $styleValues[$key] = $value;
213 $styleContent = file_get_contents($templateSettingsDir . $cuStyleFileTemplateName);
214 $styleValues = $styleDefaults;
217 $customContent = explode(
'/* customBranding */', $styleContent, 2);
218 $customContent = count($customContent) > 1 ? trim($customContent[1]) :
"";
220 $styleContent = file_get_contents($templateSettingsDir . $cuStyleFileTemplateName);
222 foreach($styleValues as $key => $value) {
223 $styleContent = str_replace(
'{{' . $key .
'}}', $value, $styleContent);
224 $type = HCU_array_key_value($key, $styleType);
227 if ($value ==
"100%" || $value ==
"transparent") {
228 $styleValues[$key] =
null;
230 }
else if (strpos($value,
"px") !==
false) {
231 if ($type ==
"number") {
232 $value = floatval(explode(
"px", $value)[0]);
233 $styleValues[$key] = $value;
239 $styleContent = explode(
'/* customBranding */', $styleContent, 2);
240 $styleContent = trim($styleContent[0]);
241 if ($customContent !=
"") {
242 $styleContent .=
"\n\n" .
'/* customBranding */' .
"\n" . $customContent;
243 $styleValues[
"customBranding"] = $customContent;
245 $styleValues[
"customBranding"] =
"";
250 $cuLoadSettingsFile =
"/home/{$username}/public_html/bankingIncludes/{$loadSettings}/hcuSettings.i";
252 if (!is_readable($cuLoadSettingsFile)) {
253 $cuLoadSettingsFile =
"/home/{$username}/public_html/bankingIncludes/production/hcuSettings.i";
255 if (is_readable($cuLoadSettingsFile)) {
257 $settingsContent = file_get_contents($cuLoadSettingsFile);
258 $isEmpty = trim($settingsContent) ==
"";
261 $cuSettings = HCU_JsonDecode($settingsContent);
262 if (!$isEmpty && count($cuSettings) == 0) {
264 throw new Exception(
'Unable to parse settings file',
'902');
268 $contentTheme = HCU_array_key_value(
"contentTheme", $cuSettings);
269 $contentTheme = $contentTheme ===
false ?
"" : trim($contentTheme);
270 if ($contentTheme ==
'') {
271 $contentTheme = GetMonitorDefaultKendoStyle();
273 $logoURL = HCU_array_key_value(
"imageLocations", $cuSettings);
274 $logoURL = $logoURL ===
false ?
"" : HCU_array_key_value(
"desktopCULogoLocation", $logoURL);
275 $logoURL = $logoURL ===
false ?
"" : trim($logoURL);
280 $SYSENV[
"Cu"] = strtoupper($username);
281 $SYSENV[
"Cn"] =
"nouser";
284 $sql =
"select flagset2 from cuadmin where lower(cu) = '" . prep_save($username, 10) .
"'";
285 $sth = db_query($sql, $dbh);
287 throw new exception (
"Flagset query failed.", 903);
289 $SYSENV[
"Fset2"] = db_num_rows($sth) > 0 ? intval(db_fetch_row($sth, 0) [0]) : 0;
292 if ((HCU_array_key_value(
'Fset2', $SYSENV) & GetFlagsetValue(
"CU2_SHOWBANNER"))) {
294 $aryBanner = Get_BannerText($dbh, $SYSENV, $MC,
'D');
295 if ($aryBanner[
'status'][
'code'] !=
'000') {
298 $aryBannerData = Translate_BannerText($SYSENV,$aryBanner[
'banner'][
'bannertext']);
299 if ($aryBannerData[
'status'][
'code'] !=
'000') {
302 $txtBannerData = $aryBannerData[
'banner'][
'bannertext'];
305 if ($txtBannerData !=
'') {
306 $bannerBodyClass =
'showHomecuBanner';
308 <div id='homecuBannerArea'> 315 PrintOdysseyHTMLContainer($styleValues, $styleContent, $loadSettings, $loadedFromTemplate, $username, $settingsFileStatus,
316 $contentTheme, $logoURL, $SYSENV[
'devmode'], $bannerDiv);
318 }
catch (Exception $e) {
332 PrintErrorMessage($SYSENV[
'devmode']);
341 function PrintErrorMessage($devmode) {
342 $cloudFrontDomainName = GetCloudFrontDomainName ();
343 $homecuKendoVersion = GetHomecuKendoVersion ();
344 $bootstrapVersion = GetHomecuBootstrapVersion ();
345 $fontAwesomeVersion = GetFontawesomeVersion (); ?>
349 <title>Sample Credit Union Name</title>
350 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
351 <meta name=
"robots" content=
"noindex,nofollow" />
352 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
354 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
356 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/reset.css' />
358 <!-- BASE BOOTSTRAP -->
359 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/bootstrap/<?php echo $bootstrapVersion; ?>/css/bootstrap.css' rel=
'stylesheet'/>
361 <!-- KENDO BOOTSTRAP COMMON STYLES - REPLACES kendo.common.css -->
362 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.common-bootstrap.min.css' rel=
'stylesheet'/>
365 <link href=
'/banking/static/css/metisMenu.css' rel=
'stylesheet'/>
368 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/homecu-custom-kendo-boot.css' />
371 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/hcuLayout.css' />
372 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/banking/static/css/layout.css' />
375 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/font-awesome/<?php echo $fontAwesomeVersion; ?>/css/font-awesome.css' rel=
'stylesheet'/>
377 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/monitor/css/monitor-core.css' />
382 <script type=
'text/javascript' src=
'https://<?php echo $cloudFrontDomainName; ?>/jquery/js/jquery-1.10.2.js'></script>
385 <script src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.web.js'></script>
387 <script src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/bootstrap/<?php echo $bootstrapVersion; ?>/js/bootstrap.js'></script>
390 <script type=
'text/javascript' src=
'/static/js/jquery-timeout-dialog.js'></script>
393 <script type=
'text/javascript' src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/jquery.cookie.js'></script>
396 <script type=
'text/javascript' src=
'/shared/static/js/hcuFormError.js'></script>
399 <script type=
'text/javascript' src=
'/banking/static/js/hcuFormNotice.js'></script>
402 <script type=
'text/javascript' src=
'/shared/static/js/kendo.homecu.custom.js'></script>
405 <script type=
'text/javascript' src=
'/banking/static/js/metisMenu.js'></script>
409 <header
id=
"commonMonitorHeader" class=
"<?php echo $devmode ? 'dev' : 'prod'; ?>">
410 <div
class=
"header-title">Home
Banking CU Branding</div>
411 <?php
if (!$devmode) { ?><div
id=
"environmentMsg">(Production)</div><?php } ?>
413 <div
class=
"container-fluid">
414 <div
class=
"row"> </div>
416 <div
class=
"col-xs-12">
417 <div
class=
'k-block k-error-colored'>
418 Please see a programmer<br/>
419 This is an unexpected error
for this script.
438 function PrintSiteBranding($styleValues, $username, $loadSettings, $settingsFileStatus, $loadedFromTemplate) {
451 .settingStatus .section,
452 .settingStatus .section-clean,
453 .settingStatus .section-dirty {
456 #currentStatus.dirty .section-dirty { 459 #currentStatus.clean .section-clean { 473 #panelBrand span.k-link { 476 #panelBrand li:nth-child(even) { 477 background-color: #FAFAFA;
480 #panelBrand li:nth-child(odd) { 481 background-color: #EFEFEF;
484 #panelBrand .k-numeric-wrap { 488 font-family: helvetica, verdana, sans-serif;
491 .panelBrandContainer {
492 max-height: 450px; <?php ?>
498 #homecuBannerArea + #body-wrapper .desk-lang-select { 502 .imageNote, .imageNote .k-link {
507 [name=
'customBranding'] {
510 line-height: initial;
521 <script type=
"text/javascript">
524 var brandData = <?php echo HCU_JsonEncode($styleValues); ?>,
527 var activeWindows = [];
528 $(document).ready(
function() {
529 $(
"body").on(
"click",
".k-overlay",
function() {
if (activeWindows.length > 0) activeWindows[activeWindows.length-1].close();
return false; });
530 $(
"<div id='editBrandWindow'></div>").appendTo(
"body").kendoWindow({
536 title:
'Credit Union Brand Settings',
539 template: $(
"#editBrandWindowTemplate").html()
546 brandObservable =
new kendo.data.ObservableObject(brandData);
547 kendo.bind($(
'#panelBrand'), brandObservable);
548 brandObservable.bind(
'change',
function(e) {
549 AdjustScreenStyles(e.field);
553 $(
".brandColorPick[data-role='colorpicker']").each(
function() {
554 var picker = $(
this).data(
"kendoColorPicker");
555 $(picker.wrapper).click(
function() {
556 OpenColorPicker(
this);
562 $(
'#selectFileSettings').kendoDropDownList({
563 change: selectSettings
565 var selFileSettings = $(
'#selectFileSettings').data(
'kendoDropDownList');
566 selFileSettings.value(
'<?php echo $loadSettings; ?>');
568 $(
'#panelBrand').kendoPanelBar({
572 $(
'.brandSizePick').each(
function() {
573 $(
this).kendoNumericTextBox({
580 $(
'#brandContentBorderStyle').kendoDropDownList({
590 dataTextField:
"value",
591 dataValueField:
"value" 594 homecuTooltip.reset();
595 $(
".detailsTip").kendoTooltip(homecuTooltip.custom);
597 $(
'#btnUpdate').click(
function(e) {
602 $(
'#btnSaveToProd').click(
function(e) {
604 $(
'#loadSettings').val(
'savetoproduction');
610 if ($loadedFromTemplate): ?>
625 function OpenColorPicker(control) {
626 var cpWindow = $(
"#cpWindow").data(
"kendoWindow");
627 var flatColorPicker =
null;
629 if (cpWindow ==
null) {
630 cpWindow = $(
"<div id='cpWindow'></div>").appendTo(
"body").kendoWindow({
638 template: $(
"#colorPickerWindowTemplate").html()
640 activate:
function() {
641 flatColorPicker.focus();
644 if (window.activeWindows !=
null) {
645 window.activeWindows.push(
this);
647 $(
"#cpWindow").data(
"cancelled",
true);
648 var startingColor = $(
"#cpWindow").data(
"startingColor");
649 if (startingColor ==
"transparent") {
650 $(
"#flatColorDiv").hide();
651 $(
"#transparentCheckbox").prop(
"checked",
true);
653 $(
"#flatColorDiv").show();
654 $(
"#transparentCheckbox").prop(
"checked",
false);
655 $(
"#flatColorPicker").data(
"kendoFlatColorPicker").value(startingColor);
659 if (window.activeWindows !=
null) {
660 window.activeWindows.pop();
662 var cancelled = $(
"#cpWindow").data(
"cancelled");
664 var control = $($(
"#cpWindow").data(
"control"));
665 var name = $(control).find(
".brandColorPick").attr(
"name");
666 var startingColor = $(
"#cpWindow").data(
"startingColor");
668 if (startingColor ==
"transparent") {
669 $(control).find(
".k-selected-color").css(
"backgroundColor",
"#ffffff").append(
"<span class='k-icon k-i-line'></span>");
670 brandObservable[name] =
null;
671 AdjustScreenStyles(name);
673 $(control).find(
".k-selected-color").css(
"backgroundColor", startingColor).empty();
674 brandObservable[name] = startingColor;
675 AdjustScreenStyles(name);
683 }).data(
"kendoWindow");
685 flatColorPicker = $(
"#flatColorPicker").kendoFlatColorPicker({
688 change:
function(e) {
689 var isOpening = $(
"#cpWindow").data(
"isOpening");
690 var control = $($(
"#cpWindow").data(
"control"));
691 var name = $(control).find(
".brandColorPick").attr(
"name");
692 if (!isOpening) { <?php
693 $(control).find(
".k-selected-color").css(
"backgroundColor", e.value);
694 brandObservable[name] = e.value;
695 AdjustScreenStyles(name);
697 $(
"#cpWindow").data(
"isOpening",
false);
700 }).data(
"kendoFlatColorPicker");
702 $(
"#transparentDiv").click(
function() {
703 var control = $($(
"#cpWindow").data(
"control"));
704 var name = $(control).find(
".brandColorPick").attr(
"name");
705 if ($(
"#transparentCheckbox").prop(
"checked")) {
706 $(
"#flatColorDiv").hide();
707 $(control).find(
".k-selected-color").css(
"backgroundColor",
"#ffffff").append(
"<span class='k-icon k-i-line'></span>");
708 brandObservable[name] =
null;
709 AdjustScreenStyles(name);
711 var color = $(
"#flatColorPicker").data(
"kendoFlatColorPicker").value();
712 $(control).find(
".k-selected-color").css(
"backgroundColor", color).empty();
713 brandObservable[name] = color;
714 AdjustScreenStyles(name);
715 $(
"#flatColorDiv").show();
719 $(
"#cpWindow").on(
"click",
".applyBtn",
function() {
720 $(
"#cpWindow").data(
"cancelled",
false);
724 $(
"#cpWindow").on(
"click",
".cancelBtn",
function() {
725 $(
"#cpWindow").data(
"cancelled",
true);
729 $(
"#cpWindow").data(
"isOpening",
true);
731 $(
"#cpWindow").data(
"isOpening",
false);
734 flatColorPicker = $(
"#flatColorPicker").data(
"kendoFlatColorPicker");
735 $(
"#cpWindow").data(
"isOpening",
false);
736 $(
"#cpWindow").data(
"control", $(control));
738 var isTransparent = $(control).find(
".k-selected-color .k-icon.k-i-line:visible").length > 0;
740 $(
"#cpWindow").data(
"startingColor",
"transparent");
742 $(
"#cpWindow").data(
"startingColor", $(control).find(
".k-selected-color").css(
"backgroundColor"));
745 cpWindow.open().center();
756 function AdjustScreenStyles(field) {
757 var fullCss = $(
"#brandCssStyle").html();
759 if (field !=
"customBranding") {
761 var pattern1 =
'\\s*[^:;!]*\\s*calc\\s*\\(\\s*100%\\s*-\\s*\\(\\s*\\S+\\s*\\+\\s*(\\S+)\\s*\\)\\s*\\)\\s*;\\s*\\/\\*\\s*CALC\\s*' + field +
'\\s*\\*\\/';
762 var regex1 =
new RegExp (pattern1,
'g');
763 var pattern2 =
'\\s*[^:;!]*(\\s+\\!important)?;\\s*\\/\\*\\s*' + field +
'\\s*\\*\\/';
764 var regex2 =
new RegExp (pattern2,
'g');
765 var value = brandObservable[field];
766 var isNumberField = $(
"[name='" + field +
"']").hasClass(
"brandSizePick");
767 value = value ==
null ? (isNumberField ?
"100%" :
"transparent") : (isNumberField ? Number(value) +
"px" : value);
768 fullCss = fullCss.replace(regex1,
" calc(100% - (" + value +
" + $1)); /* CALC " + field +
" */");
769 fullCss = fullCss.replace(regex2,
" " + value +
"$1; /* " + field +
" */");
771 fullCss = fullCss.split(
'/* customBranding */')[0];
772 fullCss = fullCss +
'/* customBranding */\n' + brandObservable[field];
775 $(
"#brandCssStyle").html(fullCss);
786 function formDirtyFlag(dirtyAction) {
791 if (!formDirty && dirtyAction) {
794 $(
'#currentStatus').removeClass(
'clean');
795 $(
'#currentStatus').addClass(
'dirty');
796 $(
'#currentStatus').removeClass(
'k-error-colored');
797 $(
'#currentStatus').removeClass(
'k-success-colored');
798 $(
'#currentStatus').addClass(
'k-info-colored');
799 $(
'.section-response').hide();
800 }
else if(dirtyAction ===
false) {
801 $(
'#currentStatus').removeClass(
'dirty');
802 $(
'#currentStatus').addClass(
'clean');
803 $(
'#currentStatus').removeClass(
'k-info-colored');
804 $(
'#currentStatus').removeClass(
'k-info-colored');
805 $(
'#currentStatus').removeClass(
'k-error-colored');
806 $(
'#currentStatus').removeClass(
'k-success-colored');
811 function selectSettings(e) {
813 var value = $(
'#selectFileSettings').data(
'kendoDropDownList').value()
814 document.location =
'<?php echo $_SERVER['PHP_SELF
']; ?>?user_name=<?php echo $username; ?>&loadSettings=' + value;
823 function PostChanges() {
825 kendo.ui.progress($(
"#serverResponseSpinner"),
true);
829 var json = brandObservable.toJSON();
830 for (var field in json) {
831 var value = json[field];
832 var isNumberField = $(
"[name='" + field +
"']").hasClass(
"brandSizePick");
833 value = value ==
null ? (isNumberField ?
"100%" :
"transparent") : (isNumberField ? Number(value) +
"px" : value);
837 $(
'#postStyleSettings').val(JSON.stringify(json));
840 var randUrl = Math.floor((Math.random()*10000)+1);
841 postUrl =
'siteSetColor.data?randUrl=' + randUrl;
842 postData = $(
'#formSettings').serialize();
844 $.post(postUrl, postData,
function(result) {
847 var responseResult = result.Results[0];
848 if (responseResult.homecuErrors) {
849 if (responseResult.homecuErrors.length > 0) {
851 throw responseResult.homecuErrors;
855 formDirtyFlag(false);
856 var serverResponse =
'Credit union branding updated';
857 if (responseResult.homecuInfo) {
858 if (responseResult.homecuInfo.length > 0) {
859 serverResponse = responseResult.homecuInfo;
863 $(
'#currentStatusResponse').text(serverResponse);
864 $(
'#currentStatus').addClass(
'k-success-colored');
865 $(
'.section-response').show();
870 throw "While attempting to save, the server responded with an unexpected result. Please reload the screen and start over.";
875 $(
'#currentStatusResponse').text(err);
876 $(
'#currentStatus').addClass(
'k-error-colored');
877 $(
'.section-response').show();
882 var errMsg =
"While attempting to save, the server responded with an unexpected result. Please reload the screen and start over.";
883 $(
'#currentStatusResponse').text(errMsg);
884 $(
'#currentStatus').addClass(
'k-error-colored');
885 $(
'.section-response').show();
887 }).always(
function() {
888 kendo.ui.progress($(
"#serverResponseSpinner"),
false);
892 <script type=
"text/x-kendo-template" id=
"editBrandWindowTemplate">
893 <div
class=
"panelBrandContainer">
894 <div
class=
"container-fluid">
896 <div
id=
"currentStatus" class=
'k-block settingStatus clean col-xs-12'>
897 <div
class=
"section">
898 <select
id=
"selectFileSettings">
899 <option value=
"production">Production</option>
900 <option value=
"preview">Preview</option>
901 <option value=
"previewreload">Reload preview</option>
903 <span
class=
"fa fa-question-circle-o detailsTip" title=
'Which settings file to modify. 904 Choose "Reload preview" to start preview with production settings.'></span>
906 <div
class=
'section'>
907 <?php echo $settingsFileStatus; ?>
909 <div
class=
'section-clean'>
910 <strong>No Changes made</strong>
911 <?php
if ($loadSettings ==
'preview'): ?>
912 <button name=
'btnSaveToProd' id=
'btnSaveToProd' class=
'k-button'>Save to Production</button>
915 <div
class=
'section-dirty'>
916 <strong>Changes Have been made</strong><Br/>
917 <button name=
"btnUpdate" id=
"btnUpdate" class=
'k-button'>Save Changes</button>
919 <div
class=
'section-response'>
920 <strong>Response from the server:</strong><Br/>
921 <div
id=
'currentStatusResponse'></div>
923 <div
id=
'serverResponseSpinner'></div>
928 <div
class=
"col-xs-12">
934 <label>Font Text</label>
935 <input type=
"text" name=
"fontFamily" data-bind=
"value: fontFamily" class=
"k-textbox" style=
'width:300px;'/>
943 <label>background color</label>
944 <input type=
"color" class=
'brandColorPick' name=
"bannerBackground" data-bind=
"value: bannerBackground" 945 data-role=
"colorpicker" data-clear-button=
"true" />
948 <label>banner height</label>
949 <input type=
'text' class=
'brandSizePick' name=
'bannerHeight' data-bind=
'value: bannerHeight'/>
952 <label>banner width</label>
953 <input type=
'text' class=
'brandSizePick' name=
'bannerWidth' data-bind=
'value: bannerWidth'/>
961 <label>background color</label>
962 <input type=
"color" class=
'brandColorPick' name=
"headerBackground" data-bind=
"value: headerBackground" 963 data-role=
"colorpicker" data-clear-button=
"true" />
966 <label>font color</label>
967 <input type=
"color" class=
'brandColorPick' name=
"headerForeground" data-bind=
"value: headerForeground" data-role=
"colorpicker" />
970 <label>border color</label>
971 <input type=
"color" class=
'brandColorPick' name=
"headerBorder" data-bind=
"value: headerBorder" data-role=
"colorpicker" />
979 <label>background color</label>
980 <input type=
"color" class=
'brandColorPick' name=
"navBackground" data-bind=
"value: navBackground" data-role=
"colorpicker" data-clear-button=
"true" />
983 <label>font color</label>
984 <input type=
"color" class=
'brandColorPick' name=
"navForeground" data-bind=
"value: navForeground" data-role=
"colorpicker" />
987 <label>icon color</label>
988 <input type=
"color" class=
'brandColorPick' name=
"navIconColor" data-bind=
"value: navIconColor" data-role=
"colorpicker" />
991 <label>hover icon color</label>
992 <input type=
"color" class=
'brandColorPick' name=
"navIconColorHover" data-bind=
"value: navIconColorHover" data-role=
"colorpicker" />
995 <label>badge color</label>
996 <input type=
"color" class=
'brandColorPick' name=
"navBadgeColor" data-bind=
"value: navBadgeColor" data-role=
"colorpicker" />
999 <label>badge alert color</label>
1000 <input type=
"color" class=
'brandColorPick' name=
"navActiveBorder" data-bind=
"value: navActiveBorder" data-role=
"colorpicker" />
1008 <label>background color</label>
1009 <input type=
"color" class=
'brandColorPick' name=
"slideinBackground" data-bind=
"value: slideinBackground" 1010 data-role=
"colorpicker" data-clear-button=
"true" />
1013 <label>font color</label>
1014 <input type=
"color" class=
'brandColorPick' name=
"slideinForeground" data-bind=
"value: slideinForeground" data-role=
"colorpicker" />
1022 <label>background color</label>
1023 <input type=
"color" class=
'brandColorPick' name=
"menuBackground" data-bind=
"value: menuBackground" data-role=
"colorpicker" 1024 data-clear-button=
"true" />
1027 <label>font color</label>
1028 <input type=
"color" class=
'brandColorPick' name=
"menuForeground" data-bind=
"value: menuForeground" data-role=
"colorpicker" />
1031 <label>hover background color</label>
1032 <input type=
"color" class=
'brandColorPick' name=
"menuBackgroundHover" data-bind=
"value: menuBackgroundHover" data-role=
"colorpicker" />
1035 <label>hover font color</label>
1036 <input type=
"color" class=
'brandColorPick' name=
"menuForegroundHover" data-bind=
"value: menuForegroundHover" data-role=
"colorpicker" />
1039 <label>selected group background color</label>
1040 <input type=
"color" class=
'brandColorPick' name=
"menuGroupBackground" data-bind=
"value: menuGroupBackground" data-role=
"colorpicker" />
1043 <label>selected font color</label>
1044 <input type=
"color" class=
'brandColorPick' name=
"menuGroupForeground" data-bind=
"value: menuGroupForeground" data-role=
"colorpicker" />
1047 <label>selected item background color</label>
1048 <input type=
"color" class=
'brandColorPick' name=
"menuGroupBackgroundLighter" data-bind=
"value: menuGroupBackgroundLighter" 1049 data-role=
"colorpicker" />
1057 <label>background color</label>
1058 <input type=
"color" class=
'brandColorPick' name=
"contentBackground" data-bind=
"value: contentBackground" 1059 data-role=
"colorpicker" data-clear-button=
"true" />
1062 <label>font color</label>
1063 <input type=
"color" class=
'brandColorPick' name=
"contentForeground" data-bind=
"value: contentForeground" data-role=
"colorpicker" />
1066 <label>border width</label>
1067 <input type=
'text' class=
'brandSizePick' name=
'contentBorderWidth' data-bind=
'value: contentBorderWidth' />
1070 <label>border style</label>
1071 <input
id=
'brandContentBorderStyle' name=
'contentBorderStyle' data-bind=
"value: contentBorderStyle" />
1074 <label>border color</label>
1075 <input type=
"color" class=
'brandColorPick' name=
"contentBorderColor" data-bind=
"value: contentBorderColor" data-role=
"colorpicker" />
1083 <label>background color</label>
1084 <input type=
"color" class=
'brandColorPick' name=
"logoBackground" data-bind=
"value: logoBackground" data-role=
"colorpicker" 1085 data-clear-button=
"true" />
1088 <label>mobile-sized height</label>
1089 <input type=
'text' class=
'brandSizePick' name=
'logoHeightMobile' data-bind=
'value: logoHeightMobile' />
1092 <label>tablet- or desktop-sized height</label>
1093 <input type=
'text' class=
'brandSizePick' name=
'logoHeightDesktop' data-bind=
'value: logoHeightDesktop' />
1095 <li
class=
"imageNote">NOTE: widths are proportional.</li>
1102 <label>background color</label>
1103 <input type=
"color" class=
'brandColorPick' name=
"footerBackground" data-bind=
"value: footerBackground" 1104 data-role=
"colorpicker" data-clear-button=
"true" /></li>
1106 <label>font color</label>
1107 <input type=
"color" class=
'brandColorPick' name=
"footerForeground" data-bind=
"value: footerForeground" data-role=
"colorpicker" /></li>
1114 <label>Enter Custom Styles</label>
1115 <textarea type=
"text" name=
"customBranding" data-bind=
"value: customBranding" rows=
"12" class=
"k-textbox" /></textarea>
1125 <script type=
"text/x-kendo-template" id=
"colorPickerWindowTemplate">
1126 <div
class=
"container-fluid hcu-template">
1127 <div
id=
"transparentDiv" class=
"row">
1128 <div
class=
"col-xs-12">
1129 <input
class=
"form-check-input" type=
"checkbox" id=
"transparentCheckbox">
1130 <label
class=
"form-check-label" for=
"transparentCheckbox">Transparent</label>
1133 <div
id=
"flatColorDiv" class=
"row">
1134 <div
class=
"col-xs-12">
1135 <div
id=
"flatColorPicker"></div>
1138 <div
class=
"hcu-edit-buttons k-state-default">
1139 <a
class=
"cancelBtn" href=
"\\#">Cancel</a>
1141 <a
class=
"applyBtn k-button k-primary" href=
"\\#"><i
class=
"fa fa-check"></i>Apply</a>
1146 <form
id=
'formSettings'>
1147 <input type=
'hidden' name=
'user_name' value=
'<?php echo $username; ?>'/>
1148 <input type=
'hidden' id=
'loadSettings' name=
'loadSettings' value=
'<?php echo $loadSettings; ?>'/>
1149 <input type=
'hidden' id=
'postStyleSettings' name=
'postStyleSettings' value=
''/>
1167 function PrintOdysseyHTMLContainer($styleValues, $styleContent, $loadSettings, $loadedFromTemplate, $username, $settingsFileStatus, $contentTheme, $logoURL, $devmode,
1169 $cloudFrontDomainName = GetCloudFrontDomainName ();
1170 $homecuKendoVersion = GetHomecuKendoVersion ();
1171 $bootstrapVersion = GetHomecuBootstrapVersion ();
1172 $fontAwesomeVersion = GetFontawesomeVersion ();
1178 <title>Sample Credit Union Name</title>
1179 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
1180 <meta name=
"robots" content=
"noindex,nofollow" />
1181 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
1183 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
1185 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/reset.css' />
1187 <!-- BASE BOOTSTRAP -->
1188 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/bootstrap/<?php echo $bootstrapVersion; ?>/css/bootstrap.css' rel=
'stylesheet'/>
1190 <!-- KENDO BOOTSTRAP COMMON STYLES - REPLACES kendo.common.css -->
1191 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.common-bootstrap.min.css' rel=
'stylesheet'/>
1193 <!-- KENDO BOOTSTRAP THEME -->
1194 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.<?php echo $contentTheme; ?>.min.css' 1198 <link href=
'/banking/static/css/metisMenu.css' rel=
'stylesheet'/>
1201 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/homecu-custom-kendo-boot.css' />
1204 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/hcuLayout.css' />
1205 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/banking/static/css/layout.css' />
1208 <link href=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/css/font-awesome/<?php echo $fontAwesomeVersion; ?>/css/font-awesome.css' rel=
'stylesheet'/>
1213 <script type=
'text/javascript' src=
'https://<?php echo $cloudFrontDomainName; ?>/jquery/js/jquery-1.10.2.js'></script>
1216 <script src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.web.js'></script>
1218 <script src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/bootstrap/<?php echo $bootstrapVersion; ?>/js/bootstrap.js'></script>
1221 <script type=
'text/javascript' src=
'/static/js/jquery-timeout-dialog.js'></script>
1224 <script type=
'text/javascript' src=
'https://<?php echo $cloudFrontDomainName; ?>/homecu/js/jquery.cookie.js'></script>
1227 <script type=
'text/javascript' src=
'/shared/static/js/hcuFormError.js'></script>
1230 <script type=
'text/javascript' src=
'/banking/static/js/hcuFormNotice.js'></script>
1233 <script type=
'text/javascript' src=
'/shared/static/js/kendo.homecu.custom.js'></script>
1236 <script type=
'text/javascript' src=
'/banking/static/js/metisMenu.js'></script>
1241 function openNav() {
1242 $(
'#body-wrapper').addClass(
'collapse');
1243 $(
'#body-wrapper').addClass(
'in');
1247 function closeNav() {
1248 $(
'#body-wrapper').removeClass(
'collapse');
1249 $(
'#body-wrapper').removeClass(
'in');
1252 function toggleNav() {
1253 var menuVisible = ($(
'#sidebar-nav:visible').length > 0);
1262 <style
id=
"brandCssStyle">
1263 <?php echo $styleContent; ?>
1268 <?php echo $bannerDiv; ?>
1269 <div
id=
"body-wrapper" class=
" ">
1271 <nav
id=
"header" class=
"navbar navbar-inverse navbar-static-top" role=
"navigation" style=
"margin-bottom: 0px">
1273 <div
class=
"navbar-header">
1274 <button
id=
"hcu-nav-toggle" onclick=
"toggleNav()" type=
"button" class=
"navbar-toggle collapsed" aria-expanded=
"false">
1275 <span
class=
"sr-only">Toggle navigation</span>
1276 <span
class=
"icon-bar"></span>
1277 <span
class=
"icon-bar"></span>
1278 <span
class=
"icon-bar"></span>
1282 <a
class=
"navbar-brand" href=
"#">
1283 <img alt=
"Home Banking Logo" class=
"logo" src=
"<?php echo $logoURL; ?>"/>
1284 <p
class=
"navbar-title">Sample Credit Union Name</p>
1287 <div
class=
"desk-lang-select hidden-xs">
1288 <a href=
"#" title=
"Select Spanish"><div
class=
"flag_icons flag_icons_es_US"></div></a>
1289 <a href=
"#" title=
"Select Polish"><div
class=
"flag_icons flag_icons_pl_US"></div></a>
1292 <ul
class=
"hcu-quick-nav-links navbar-nav nav navbar-top-links navbar-right" id=
"hcu-navbar-collapse">
1293 <li
class=
"hcu-quick-nav-activity hcu-navbar-alert">
1294 <a href=
"#"><i
class=
"fa fa-bell fa-fw"></i><span
class=
"badge">5</span></a>
1296 <li
class=
"hcu-quick-nav-secure-mail " >
1297 <a href=
"#"><i
class=
"fa fa-comments fa-fw"></i></a>
1299 <li
class=
"dropdown hcu-quick-nav-status ">
1300 <a
class=
"dropdown-toggle" data-toggle=
"dropdown" href=
"#">
1301 <i
class=
"fa fa-tasks fa-fw"></i>
1302 <i
class=
"fa fa-caret-down"></i>
1304 <ul
class=
"dropdown-menu dropdown-status">
1306 <div
class=
"col-xs-12">
1308 <div
class=
"form-group ">
1309 <div
class=
" k-block ">
1310 <div
class=
"hcu-summary-block">
1311 <div
class=
"summary-row">
1312 <div
class=
"summary-desc">
1313 <label
class=
"control-label">Last Failed Login</label>
1315 <div
class=
"summary-value">
1316 <p
class=
"form-control-static">07/06/16 11:11</p>
1322 <div
class=
"form-group ">
1323 <div
class=
"k-block ">
1324 <div
class=
"hcu-summary-block">
1325 <div
class=
"summary-row">
1326 <div
class=
"summary-desc">
1327 <label
class=
"control-label">Last Successful Login</label>
1329 <div
class=
"summary-value">
1330 <p
class=
"form-control-static">07/08/16 11:29</p>
1336 <div
class=
"form-group ">
1337 <div
class=
" k-block ">
1338 <div
class=
"hcu-summary-block">
1339 <div
class=
"summary-row">
1340 <div
class=
"summary-desc">
1341 <label
class=
"control-label">Account Status as of</label>
1343 <div
class=
"summary-value">
1344 <p
class=
"form-control-static">Fri May 23 04:32 PM 2008</p>
1354 <li
class=
"dropdown hcu-quick-nav-user ">
1355 <a
class=
"dropdown-toggle" data-toggle=
"dropdown" href=
"#">
1356 <i
class=
"fa fa-user fa-fw"></i> <i
class=
"fa fa-caret-down"></i>
1358 <ul
class=
"dropdown-menu dropdown-user">
1360 <div
class=
"col-xs-12">
1361 <div
class=
"hcu-alert-block k-block ">
1362 <div
class=
"hcu-alert-block-icon">
1363 <i
class=
"fa fa-envelope fa-2x"></i>
1365 <div
class=
'hcu-alert-block-text'>
1368 <p>nobody@homecu.net</p>
1372 <a href=
'#'>Update Now</a>
1378 <li
class=
"hcu-quick-nav-logout">
1380 <i
class=
"fa fa-power-off fa-fw"></i>
1387 <aside
id=
"side-menu" class=
"navbar-default sidebar sidenav" role=
"navigation">
1388 <div
id=
"sidebar-nav" class=
"sidebar-nav navbar-collapse ">
1389 <ul
id=
'list-menu' class=
'nav root-nav-categories'>
1390 <li
class=
'active hcu-selected-menu-group' data-rowid=
'6'>
1391 <a
class=
'' href=
'#' target=
''>
1392 <i
class=
'fa fa-bank fa-fw'></i> Account <span class='fa arrow'></span>
1394 <ul
class=
'nav nav-second-level collapse in'>
1395 <li
class=
'hcu-selected-menu-item'>
1396 <a
class=
'' href=
'#' target=
''>Balances</a>
1399 <a
class=
'' href=
'#' target=
''>History</a>
1402 <a
class=
'' href=
'#' target=
''>e-Statements</a>
1405 <a
class=
'' href=
'#' target=
''>Download Transactions</a>
1408 <a
class=
'' href=
'#' target=
''>Alerts</a>
1411 <a
class=
'' href=
'#'>My MoneyDesktop</a>
1415 <li
class=
'active ' data-rowid=
'12'>
1416 <a
class=
'' href=
'#' target=
''>
1417 <i
class=
'fa fa-exchange fa-fw'></i> Transfers <span class='fa arrow'></span>
1419 <ul
class=
'nav nav-second-level collapse in'>
1421 <a
class=
'' href=
'#' target=
''>
User Activity</a>
1424 <a
class=
'' href=
'#' target=
''>Transfer</a>
1427 <a
class=
'' href=
'#' target=
''>Scheduled Transactions</a>
1430 <a
class=
'' href=
'#' target=
''>External Accounts</a>
1433 <a
class=
'' href=
'#' target=
''>
M2M Accounts</a>
1437 <li
class=
'active ' data-rowid=
'16'>
1438 <a
class=
'' href=
'#' target=
''>
1439 <i
class=
'fa fa-sitemap fa-fw'></i> Commercial<span class='fa arrow'></span>
1441 <ul
class=
'nav nav-second-level collapse in'>
1443 <a
class=
'' href=
'#' target=
''>ACH Collections</a>
1446 <a
class=
'' href=
'#' target=
''>ACH Payments</a>
1449 <a
class=
'' href=
'#' target=
''>ACH Partners</a>
1454 <a
class=
' hidden-xs ' href=
'#' target=
'_blank'><i
class=
'fa fa-money fa-fw'></i> Pay Bills</a>
1457 <a
class=
' visible-xs-block ' href=
'#' target=
''><i
class=
'fa fa-money fa-fw'></i> Mobile PayBills</a>
1459 <li
class=
' ' data-rowid=
'25'>
1460 <a
class=
'' href=
'#' target=
''>
1461 <i
class=
'fa fa-cogs fa-fw'></i> Profile<span class='fa arrow'></span>
1463 <ul
class=
'nav nav-second-level collapse '>
1465 <a
class=
'' href=
'#' target=
''>Address Change</a>
1468 <a
class=
'' href=
'#' target=
''>
User Name</a>
1471 <a
class=
'' href=
'#' target=
''>Email</a>
1474 <a
class=
'' href=
'#' target=
''>Password</a>
1477 <a
class=
'' href=
'#' target=
''>Security</a>
1480 <a
class=
'' href=
'#' target=
''>Descriptions</a>
1484 <li
class=
' ' data-rowid=
'28'>
1485 <a
class=
'' href=
'#' target=
''>
1486 <i
class=
'fa fa-sliders fa-fw'></i> Communications<span class='fa arrow'></span>
1488 <ul
class=
'nav nav-second-level collapse '>
1490 <a
class=
'' href=
'#' target=
''>Notices</a>
1493 <a
class=
'' href=
'#' target=
''>Txt
Banking</a>
1497 <li
class=
' ' data-rowid=
'30'>
1498 <a
class=
'' href=
'#' target=
''>
1499 <i
class=
'fa fa-file-text-o fa-fw'></i> Disclosures<span class='fa arrow'></span>
1501 <ul
class=
'nav nav-second-level collapse '>
1503 <a
class=
'' href=
'#' target=
''>Home
Banking Terms</a>
1508 <a
class=
'' href=
'#' target=
''>
1509 <i
class=
'fa fa-power-off fa-fw'></i> Sign Off
1515 <div
id=
"content-wrapper" class=
"nothere">
1516 <div
id=
"formStatus" class=
"homecu-formStatus k-block k-error-colored" style=
'display:none; margin-bottom:10px;max-width:800px;'></div>
1517 <div
id=
'hideSubmitWait' style=
'position:relative; left:-2000px;top:-2000px;'>
1518 <div
id=
'homecuSubmitWait' class=
'k-block' >
1519 <div
class=
'k-loading-image'></div>
1522 <a href=
"javascript:void(0)" onclick=
"closeNav()" x-href=
"#content-wrapper" class=
"overlay-close" x-data-toggle=
"collapse" > </a>
1523 <div
id=
"main-container">
1524 <div
id=
"homecu-wrapper">
1525 <div
id=
"homecu-container">
1526 <div
id=
"homecu-padding-top" class=
"col-xs-12"></div> <!-- homecu-padding -->
1527 <a
id=
'slide-in-handle' class=
'hcu-slide-in-handle-custom' href=
'#'> <span
id=
'slide-in-handle-content'>Message</span> </a>
1528 <div
id=
'slide-in-share' style=
'display:none;'>
1529 <div
id=
'slide-in-content'>
1530 <div
id=
'slide-in-scroll'></div>
1531 <div
id=
'slide-in-content-close'>
1532 <a href=
''>Close</a>
1540 [
id^=
"hcuTable"] .k-grid-header .k-header {
1547 display: table-cell;
1548 vertical-align: middle;
1551 #slide-in-content-close { 1556 #slide-in-content-close a { 1557 margin: 0 10px 10px 0;
1558 text-decoration: underline;
1563 #slide-in-content-close a:visited, 1564 #slide-in-content-close a:hover { 1565 text-decoration: none;
1572 background-color: #FAFAFA;
1574 box-shadow: 0px 0px 2px 0px #999 inset;
1575 -webkit-box-shadow: 0px 0px 2px 0px #999 inset;
1577 .slide-in-handle-icon {
1582 width: calc(100% - 10px);
1589 text-decoration: none;
1594 #slide-in-handle-content { 1596 margin: 0px 1px 1px 1px;
1599 text-decoration: underline;
1601 #slide-in-share + #formStatus + #acctList { 1605 .local-homecu-info {
1606 color: rgba(0, 0, 0, .54);
1608 .local-notify-spacer {
1612 #transparentDiv .form-check-input { 1613 vertical-align: baseline;
1615 @media (max-width: 767px) {
1623 #body-wrapper.no-show-info #slide-in-handle, #body-wrapper.no-show-info #slide-in-share { 1627 #homecuBannerArea + #body-wrapper #slide-in-handle, #homecuBannerArea + #body-wrapper #slide-in-share { 1631 #homecuBannerArea + #body-wrapper.no-show-info #slide-in-handle, #homecuBannerArea + #body-wrapper.no-show-info #slide-in-share { 1637 <script type=
"text/javascript">
1638 $(document).ready(
function(){
1641 $(document).on(
'click',
'.k-overlay',
function() {
1642 var wnd = $(
"#detailsPopUp").data(
"kendoWindow");
1643 if (wnd !== undefined) {
1648 var showEmbedContent =
"<div align=\"center\">" 1649 showEmbedContent +=
"<img src=\"\/IMAGES\/vacation2.jpg\" alt=\"\" border=\"0\" style=\"width:100%;max-width:600px\"\/><\/div>";
1650 $(
'#slide-in-scroll').html(showEmbedContent);
1651 $(
'#formStatus').insertAfter($(
'#slide-in-share'));
1655 var userInterrupt =
false;
1657 function showMsgInset() {
1659 setTimeout(
function() {
1660 if (!userInterrupt) {
1661 $(
'#slide-in-share').slideUp(
"slow");
1666 $(
"#slide-in-handle").click(
function(e) {
1668 userInterrupt =
true;
1671 if ($(
'#slide-in-share').is(
':hidden')) {
1673 $(
'#slide-in-share').slideDown(
'slow');
1676 $(
'#slide-in-share').slideUp(
"slow");
1680 $(
'#slide-in-content-close').click(
function(e) {
1682 userInterrupt =
true;
1683 $(
'#slide-in-share').slideUp(
'slow');
1687 $(
'#list-menu').metisMenu({toggle:
false});
1690 <?php PrintSiteBranding($styleValues, $username, $loadSettings, $settingsFileStatus, $loadedFromTemplate); ?>
1692 <p
class=
"contentText">Here is some text to see content font color.</p>
1694 <div
id=
"homecu-padding-bottom" class=
"col-xs-12"></div> <!-- homecu-padding -->
1695 </div><!-- homecu-container -->
1696 </div><!-- homecu-wrapper -->
1697 </div><!--
main-container -->
1698 <footer
class=
"footer">
1699 <div
class=
"mbl-lang-select visible-xs-block">
1700 <a href=
"#" title=
"Select Spanish">
1701 <div
class=
"flag_icons flag_icons_es_US"></div>
1703 <a href=
"#" title=
"Select Polish">
1704 <div
class=
"flag_icons flag_icons_pl_US"></div>
1707 <div
class=
"footer-container">
1708 <p
class=
"text-muted">© 2018 HomeCU, LLC. All Rights Reserved</p>
1711 </div><!-- content-wrapper -->
1712 </div><!-- body-wrapper-->
def main(certificate_path, secret_id, region=None)