Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Mon, Jan 6, 12:28 AM

modern-store

Index: branches/1.0.x/maintenance.tpl
===================================================================
--- branches/1.0.x/maintenance.tpl (nonexistent)
+++ branches/1.0.x/maintenance.tpl (revision 14932)
@@ -0,0 +1,161 @@
+<!--##
+<NAME>Maintenance Mode</NAME>
+<DESC></DESC>
+<SECTION>Pages</SECTION>
+##-->
+
+<inp2:m_DefineElement name="add_to_head">
+ <script type="text/javascript">
+ var a_parent = window.parent,
+ to_close = new Array (),
+ $modal_windows = <inp2:m_if check="adm_UsePopups" mode="modal">true<inp2:m_else/>false</inp2:m_if>;
+
+ function getFrame($name) {
+ var $main_window = window;
+
+ // 1. cycle through popups to get main window
+ try {
+ // will be error, when other site is opened in parent window
+ var $i = 0;
+ var $opener;
+
+ do {
+ if ( $i == 10 ) {
+ break;
+ }
+
+ // get popup opener
+ $opener = $main_window.opener;
+
+ if ( !$opener ) {
+ // when no opener found, then try parent window
+ $opener = $main_window.parent;
+ }
+
+ if ( $opener ) {
+ $main_window = $opener;
+ }
+
+ $i++;
+ } while ($opener);
+ }
+ catch (err) {
+ // catch Access/Permission Denied error
+ return window;
+ }
+
+ var $frameset = $main_window.parent.frames;
+ for ($i = 0; $i < $frameset.length; $i++) {
+ if ( $frameset[$i].name == $name ) {
+ return $frameset[$i];
+ }
+ }
+
+ return $main_window.parent;
+ }
+
+ function getWindowOpener($window) {
+ // use this instead of "window.opener"
+ if ( !$modal_windows ) {
+ return $window.opener;
+ }
+
+ if ( $window.name == 'main' || $window.name == 'main_frame' ) {
+ return null;
+ }
+
+ return getFrame('main').TB.findWindow($window.name, -1);
+ }
+
+ function redirect() {
+ var $main_frame = getFrame('main');
+ a_parent = window;
+
+ try {
+ var i = 0;
+ while (i < 10) {
+ i++;
+ var $opener = $main_frame.getWindowOpener(a_parent);
+
+ if ( $opener ) {
+ to_close.push(a_parent);
+ a_parent = $opener;
+ continue;
+ }
+
+ if ( a_parent.name == 'main_frame' ) {
+ break;
+ }
+
+ if ( a_parent.parent && a_parent.parent.name != a_parent.name ) {
+ a_parent = a_parent.parent;
+ continue;
+ }
+ }
+ }
+ catch (err) {
+ // another website is opened in parent window
+ alert('Error while trying to access window opener: [' + err.message + ']');
+ i = 10;
+ }
+
+ if ( i < 10 ) {
+ setTimeout(close_windows, 100);
+ }
+ }
+
+ function window_close($close_callback) {
+ // use this instead of "window.close();"
+ if ( !$modal_windows ) {
+ if ( $.isFunction($close_callback) ) {
+ // use close callback, because iframe will be removed later in this method
+ $close_callback();
+ }
+
+ window.close();
+ return;
+ }
+
+ if ( window.name == 'main' ) {
+ return;
+ }
+
+ if ( $close_callback !== undefined ) {
+ return getFrame('main').TB.remove(null, $close_callback);
+ }
+
+ return getFrame('main').TB.remove();
+ }
+
+ function close_windows() {
+ page = '<inp2:m_Link template="login" js_escape="1" no_amp="1" index_file="admin/index.php" __NO_REWRITE__="1" m_cat_id="0" m_wid=""/>';
+ a_parent.location.href = page;
+
+ for (var c = (to_close.length - 1); c >= 0; c--) {
+ window_close(to_close[c]);
+ }
+ }
+
+ if ( window.top.frames.length > 0 ) {
+ redirect();
+ }
+ </script>
+</inp2:m_DefineElement>
+
+<!--## MAIN CONTENT ##-->
+<inp2:m_DefineElement name="content">
+
+ <inp2:m_RenderElement design="content_box">
+ <inp2:m_Capture to_var="header">
+ <inp2:st_PageInfo type="title"/>
+ </inp2:m_Capture>
+
+ <inp2:m_GetConfig name="MaintenanceMessageFront"/>
+ </inp2:m_RenderElement>
+
+</inp2:m_DefineElement>
+<!--## /MAIN CONTENT ##-->
+
+<!--## DESIGN TEMPLATE ##-->
+<inp2:m_include template="designs/default_design.des" pass_params="1"/>
+<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.0.x/_install/english.lang
===================================================================
--- branches/1.0.x/_install/english.lang (revision 14931)
+++ branches/1.0.x/_install/english.lang (revision 14932)
@@ -1,36 +1,37 @@
<LANGUAGES>
<LANGUAGE PackName="English" Encoding="base64"><DATEFORMAT>m/d/Y</DATEFORMAT><TIMEFORMAT>g:i A</TIMEFORMAT><INPUTDATEFORMAT>m/d/Y</INPUTDATEFORMAT><INPUTTIMEFORMAT>g:i:s A</INPUTTIMEFORMAT><DECIMAL>.</DECIMAL><THOUSANDS>,</THOUSANDS><CHARSET>utf-8</CHARSET><UNITSYSTEM>2</UNITSYSTEM>
<PHRASES>
<PHRASE Label="lu_btn_Clear" Module="Core" Type="0">Q2xlYXI=</PHRASE>
<PHRASE Label="lu_btn_Send" Module="Core" Type="0">U2VuZA==</PHRASE>
<PHRASE Label="lu_captcha_error" Module="Core" Type="0">VGV4dCBlbnRlcmVkIGluY29ycmVjdGx5LCBwbGVhc2UgdHJ5IGFnYWlu</PHRASE>
<PHRASE Label="lu_fld_Captcha" Module="Core" Type="0">RW50ZXIgdGV4dCBvbiB0aGUgcGljdHVyZQ==</PHRASE>
<PHRASE Label="lu_fld_Address" Module="Core" Type="0">QWRkcmVzcw==</PHRASE>
<PHRASE Label="lu_fld_Company" Module="Core" Type="0">Q29tcGFueQ==</PHRASE>
<PHRASE Label="lu_fld_Country" Module="Core" Type="0">Q291bnRyeQ==</PHRASE>
<PHRASE Label="lu_fld_Email" Module="Core" Type="0">RS1tYWls</PHRASE>
<PHRASE Label="lu_fld_FirstName" Module="Core" Type="0" Hint="dGhpcyBpcyBhIHNhbXBsZSBoaW50IHBocmFzZQ==">Rmlyc3QgbmFtZQ==</PHRASE>
<PHRASE Label="lu_fld_LastName" Module="Core" Type="0">TGFzdCBuYW1l</PHRASE>
<PHRASE Label="lu_fld_Message" Module="Core" Type="0">TWVzc2FnZQ==</PHRASE>
<PHRASE Label="lu_fld_Name" Module="Core" Type="0">TmFtZQ==</PHRASE>
<PHRASE Label="lu_fld_Password" Module="Core" Type="0">UGFzc3dvcmQ=</PHRASE>
<PHRASE Label="lu_fld_Phone" Module="Core" Type="0">UGhvbmU=</PHRASE>
<PHRASE Label="lu_fld_Subject" Module="Core" Type="0">U3ViamVjdA==</PHRASE>
<PHRASE Label="lu_fld_State" Module="Core" Type="0">U3RhdGU=</PHRASE>
<PHRASE Label="lu_fld_SubscribeToMailing" Module="Core" Type="0">U3Vic2NyaWJlIHRvIE5ld3NsZXR0ZXI=</PHRASE>
<PHRASE Label="lu_fld_Zip" Module="Core" Type="0">WmlwIGNvZGU=</PHRASE>
<PHRASE Label="lu_PasswordStrengthBad" Module="Core" Type="0">V2VlazsgVXNlIGxldHRlcnMgJiBudW1iZXJz</PHRASE>
<PHRASE Label="lu_PasswordStrengthGood" Module="Core" Type="0">TWVkaXVtOyBVc2Ugc3BlY2lhbCBjaGFyYWN0ZXJz</PHRASE>
<PHRASE Label="lu_PasswordStrengthShort" Module="Core" Type="0">VG9vIFNob3J0IFBhc3N3b3Jk</PHRASE>
<PHRASE Label="lu_PasswordStrengthStrong" Module="Core" Type="0">U3Ryb25nIFBhc3N3b3Jk</PHRASE>
<PHRASE Label="lu_rootcategory_name" Module="Core" Type="0">SG9tZQ==</PHRASE>
<PHRASE Label="lu_text_PromoHeader1" Module="Core" Type="0">RWZmZWN0aXZlPHNwYW4+YnVzaW5lc3Mgc29sdXRpb25zPC9zcGFuPg==</PHRASE>
<PHRASE Label="lu_text_Redirect" Module="Core" Type="0">WW91IHNob3VsZCBiZSByZWRpcmVjdGVkIHRvIHRoZSBuZXh0IHBhZ2Ugd2l0aGluIDEwIHNlY29uZHMuIFBsZWFzZSBjbGljayBvbiB0aGUgbGluayBiZWxvdyBpZiByZWRpcmVjdCBkaWRuJ3QgaGFwcGVuZWQu</PHRASE>
<PHRASE Label="lu_text_RedirectLink" Module="Core" Type="0">UGxlYXNlIGNsaWNrIG9uIHRoaXMgbGluayE=</PHRASE>
<PHRASE Label="lu_text_Thankyou" Module="Core" Type="0">VGhhbmsgeW91IGZvciBjb250YWN0aW5nIHdpdGggdXMh</PHRASE>
<PHRASE Label="lu_title_Address" Module="Core" Type="0">QWRkcmVzcw==</PHRASE>
+ <PHRASE Label="lu_title_MaintenanceMode" Module="Core" Type="0">TWFpbnRlbmFuY2UgTW9kZQ==</PHRASE>
<PHRASE Label="lu_title_RequestInformation" Module="Core" Type="0">SW5mb3JtYXRpb24gUmVxdWVzdCBGb3Jt</PHRASE>
<PHRASE Label="lu_title_SiteName" Module="Core" Type="0">U21hcnQgQml6</PHRASE>
</PHRASES>
</LANGUAGE>
</LANGUAGES>
\ No newline at end of file

Event Timeline