diff --git a/apps/documenteditor/mobile/app/template/Settings.template b/apps/documenteditor/mobile/app/template/Settings.template index a3e6bc4b6..cde8bf0fd 100644 --- a/apps/documenteditor/mobile/app/template/Settings.template +++ b/apps/documenteditor/mobile/app/template/Settings.template @@ -633,21 +633,21 @@ </div> <div class="content-block"> <h3>DOCUMENT EDITOR</h3> - <h3><%= scope.textVersion %> {{PRODUCT_VERSION}}</h3> + <h3><%= scope.textVersion %> <%= prodversion %></h3> </div> <div class="content-block"> - <h3 id="settings-about-name" class="vendor">{{PUBLISHER_NAME}}</h3> - <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#">{{PUBLISHER_ADDRESS}}</a></p> - <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:{{SUPPORT_EMAIL}}">{{SUPPORT_EMAIL}}</a></p> - <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:{{PUBLISHER_PHONE}}">{{PUBLISHER_PHONE}}</a></p> - <p><a id="settings-about-url" class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 id="settings-about-name" class="vendor"><%= publishername %></h3> + <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#"><%= publisheraddr %></a></p> + <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:<%= supportemail %>"><%= supportemail %></a></p> + <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:<%= phonenum %>"><%= phonenum %></a></p> + <p><a id="settings-about-url" class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> <p><label id="settings-about-info" style="display: none;"></label></p> </div> <div class="content-block" id="settings-about-licensor" style="display: none;"> - <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"/> + <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"></div> <p><label><%= scope.textPoweredBy %></label></p> - <h3 class="vendor">{{PUBLISHER_NAME}}</h3> - <p><a class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 class="vendor"><%= publishername %></h3> + <p><a class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> </div> </div> </div> diff --git a/apps/documenteditor/mobile/app/view/Settings.js b/apps/documenteditor/mobile/app/view/Settings.js index 84dbd7bcb..16c8fb0c7 100644 --- a/apps/documenteditor/mobile/app/view/Settings.js +++ b/apps/documenteditor/mobile/app/view/Settings.js @@ -91,7 +91,14 @@ define([ phone : Common.SharedSettings.get('phone'), orthography: Common.SharedSettings.get('sailfish'), scope : this, - width : $(window).width() + width : $(window).width(), + prodversion: '{{PRODUCT_VERSION}}', + publishername: '{{PUBLISHER_NAME}}', + publisheraddr: '{{PUBLISHER_ADDRESS}}', + publisherurl: '{{PUBLISHER_URL}}', + printed_url: ("{{PUBLISHER_URL}}").replace(/https?:\/{2}/, "").replace(/\/$/,""), + supportemail: '{{SUPPORT_EMAIL}}', + phonenum: '{{PUBLISHER_PHONE}}' })); return this; diff --git a/apps/presentationeditor/mobile/app/template/Settings.template b/apps/presentationeditor/mobile/app/template/Settings.template index d9b90cb1b..13dfa7993 100644 --- a/apps/presentationeditor/mobile/app/template/Settings.template +++ b/apps/presentationeditor/mobile/app/template/Settings.template @@ -386,21 +386,21 @@ </div> <div class="content-block"> <h3>PRESENTATION EDITOR</h3> - <h3><%= scope.textVersion %> {{PRODUCT_VERSION}}</h3> + <h3><%= scope.textVersion %> <%= prodversion %></h3> </div> <div class="content-block"> - <h3 id="settings-about-name" class="vendor">Ascensio System SIA</h3> - <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#">{{PUBLISHER_ADDRESS}}</a></p> - <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:{{SUPPORT_EMAIL}}">{{SUPPORT_EMAIL}}</a></p> - <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:{{PUBLISHER_PHONE}}">{{PUBLISHER_PHONE}}</a></p> - <p><a id="settings-about-url" class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 id="settings-about-name" class="vendor"><%= publishername %></h3> + <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#"><%= publisheraddr %></a></p> + <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:<%= supportemail %>"><%= supportemail %></a></p> + <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:<%= phonenum %>"><%= phonenum %></a></p> + <p><a id="settings-about-url" class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> <p><label id="settings-about-info" style="display: none;"></label></p> </div> <div class="content-block" id="settings-about-licensor" style="display: none;"> - <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"></div > + <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"></div> <p><label><%= scope.textPoweredBy %></label></p> - <h3 class="vendor">{{PUBLISHER_NAME}}</h3> - <p><a class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 class="vendor"><%= publishername %></h3> + <p><a class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> </div> </div> </div> diff --git a/apps/presentationeditor/mobile/app/view/Settings.js b/apps/presentationeditor/mobile/app/view/Settings.js index dc9240246..e9986f8e3 100644 --- a/apps/presentationeditor/mobile/app/view/Settings.js +++ b/apps/presentationeditor/mobile/app/view/Settings.js @@ -92,7 +92,14 @@ define([ android: Common.SharedSettings.get('android'), phone: Common.SharedSettings.get('phone'), scope: this, - width: $(window).width() + width: $(window).width(), + prodversion: '{{PRODUCT_VERSION}}', + publishername: '{{PUBLISHER_NAME}}', + publisheraddr: '{{PUBLISHER_ADDRESS}}', + publisherurl: '{{PUBLISHER_URL}}', + printed_url: ("{{PUBLISHER_URL}}").replace(/https?:\/{2}/, "").replace(/\/$/,""), + supportemail: '{{SUPPORT_EMAIL}}', + phonenum: '{{PUBLISHER_PHONE}}' })); return this; diff --git a/apps/spreadsheeteditor/mobile/app/template/Settings.template b/apps/spreadsheeteditor/mobile/app/template/Settings.template index a87da9488..0852487a3 100644 --- a/apps/spreadsheeteditor/mobile/app/template/Settings.template +++ b/apps/spreadsheeteditor/mobile/app/template/Settings.template @@ -436,21 +436,21 @@ </div> <div class="content-block"> <h3>SPREADSHEET EDITOR</h3> - <h3><%= scope.textVersion %> {{PRODUCT_VERSION}}</h3> + <h3><%= scope.textVersion %> <%= prodversion %></h3> </div> <div class="content-block"> - <h3 id="settings-about-name" class="vendor">{{PUBLISHER_NAME}}</h3> - <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#">{{PUBLISHER_ADDRESS}}</a></p> - <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:{{SUPPORT_EMAIL}}">{{SUPPORT_EMAIL}}</a></p> - <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:{{PUBLISHER_PHONE}}">{{PUBLISHER_PHONE}}</a></p> - <p><a id="settings-about-url" class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 id="settings-about-name" class="vendor"><%= publishername %></h3> + <p><label><%= scope.textAddress %>:</label><a id="settings-about-address" class="external" href="#"><%= publisheraddr %></a></p> + <p><label><%= scope.textEmail %>:</label><a id="settings-about-email" class="external" target="_blank" href="mailto:<%= supportemail %>"><%= supportemail %></a></p> + <p><label><%= scope.textTel %>:</label><a id="settings-about-tel" class="external" target="_blank" href="tel:<%= phonenum %>"><%= phonenum %></a></p> + <p><a id="settings-about-url" class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> <p><label id="settings-about-info" style="display: none;"></label></p> </div> <div class="content-block" id="settings-about-licensor" style="display: none;"> - <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"/> + <div class="content-block-inner" style="padding-top:0; padding-bottom: 1px;"></div> <p><label><%= scope.textPoweredBy %></label></p> - <h3 class="vendor">{{PUBLISHER_NAME}}</h3> - <p><a class="external" target="_blank" href="{{PUBLISHER_URL}}"><% print(/^(?:https?:\/{2})?(\S+)/.exec('{{PUBLISHER_URL}}')[1]); %></a></p> + <h3 class="vendor"><%= publishername %></h3> + <p><a class="external" target="_blank" href="<%= publisherurl %>"><%= printed_url %></a></p> </div> </div> </div> diff --git a/apps/spreadsheeteditor/mobile/app/view/Settings.js b/apps/spreadsheeteditor/mobile/app/view/Settings.js index a385fcaaf..a8471525f 100644 --- a/apps/spreadsheeteditor/mobile/app/view/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/view/Settings.js @@ -101,7 +101,14 @@ define([ xltx: Asc.c_oAscFileType.XLTX, ots: Asc.c_oAscFileType.OTS }, - width : $(window).width() + width : $(window).width(), + prodversion: '{{PRODUCT_VERSION}}', + publishername: '{{PUBLISHER_NAME}}', + publisheraddr: '{{PUBLISHER_ADDRESS}}', + publisherurl: '{{PUBLISHER_URL}}', + printed_url: ("{{PUBLISHER_URL}}").replace(/https?:\/{2}/, "").replace(/\/$/,""), + supportemail: '{{SUPPORT_EMAIL}}', + phonenum: '{{PUBLISHER_PHONE}}' })); return this;