File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ *
4
+ * (c) Copyright Ascensio System SIA 2022
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ require_once __DIR__ .'/../../main/inc/global.inc.php ' ;
21
+
22
+ const ErrorStatus_UpdateOnlyoffice = 1 ;
23
+ const ErrorStatus_NotSupportedVersion = 2 ;
24
+
25
+ $ plugin = OnlyofficePlugin::create ();
26
+
27
+ $ message = "" ;
28
+ $ status = $ _GET ["status " ];
29
+ switch ($ status ) {
30
+ case ErrorStatus_UpdateOnlyoffice:
31
+ $ message = "UpdateOnlyoffice " ;
32
+ break ;
33
+ case ErrorStatus_NotSupportedVersion:
34
+ $ message = "NotSupportedVersion " ;
35
+ break ;
36
+ }
37
+
38
+ Display::addFlash (
39
+ Display::return_message (
40
+ $ plugin ->get_lang ($ message ),
41
+ "error "
42
+ )
43
+ );
44
+
45
+ Display::display_header ();
Original file line number Diff line number Diff line change
1
+ <link href =" /plugin/onlyoffice/resources/css/docsCloudBanner.css" rel =" stylesheet" media =" screen" type =" text/css" />
2
+ <div id =" onlyofficeDocsCloudBannerWrapper" >
3
+ <div id =" onlyofficeDocsCloudBannerPicWrapper" >
4
+ <div id =" onlyofficeDocsCloudBannerPic" >
5
+
6
+ </div >
7
+ </div >
8
+ <div id =" onlyofficeDocsCloudBannerContent" >
9
+ <div id =" onlyofficeDocsCloudBannerContentText" >
10
+ <p ><h4 >{ {banner_title} }</h4 ></p >
11
+ <p >{ {banner_main_text} }</p >
12
+ </div >
13
+ <div id =" onlyofficeDocsCloudBannerContentButtonWrapper" >
14
+ <a id =" onlyofficeDocsCloudBannerContentButton" class =" btn btn-secondary" href =" { { docs_cloud_link} } " target =" _blank" >
15
+ { {banner_button_text} }
16
+ </a >
17
+ </div >
18
+ </div >
19
+ </div >
You can’t perform that action at this time.
0 commit comments