Migrate the ACP news from Twitter to woltlab.com
authorAlexander Ebert <ebert@woltlab.com>
Mon, 10 Jul 2023 09:59:31 +0000 (11:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 10 Jul 2023 10:03:15 +0000 (12:03 +0200)
wcfsetup/install/files/acp/style/layout.scss
wcfsetup/install/files/acp/templates/index.tpl

index 054eab3675d7bad180b8b74e143c05602ecf666f..5401e24fe97082bf61ffc7bb7e1a8711f99f4164 100644 (file)
@@ -576,3 +576,11 @@ $wcfAcpSubMenuWidth: 300px;
                margin-top: 0;
        }
 }
+
+#woltlab_newsfeed {
+       border: 1px solid $wcfContentBorderInner;
+       border-radius: 4px;
+       height: 100vh;
+       max-width: 100%;
+       width: 600px;
+}
index 16de8b4e2d690b4c04e3456d2411ce251733834f..438a7cce3b63f9fbd19d0dff961ab0ead5127f31 100644 (file)
        {if ENABLE_WOLTLAB_NEWS}
                <div id="news" class="hidden tabMenuContent">
                        <div class="section">
-                               <div id="news-twitter-timeline">
-                                       {if $__wcf->language->languageCode == 'de'}
-                                               <a class="twitter-timeline" href="https://twitter.com/woltlab_de" data-chrome="noheader nofooter transparent" data-widget-id="339042086949093376">Tweets von @woltlab_de</a>
-                                               
-                                               <div style="margin-top: 20px">
-                                                       <a class="twitter-follow-button" href="https://twitter.com/woltlab_de">Folge @woltlab_de</a>
-                                               </div>
-                                       {else}
-                                               <a class="twitter-timeline" href="https://twitter.com/woltlab" data-chrome="noheader nofooter transparent" data-widget-id="335166618281865217">Tweets by @woltlab</a>
-                                               
-                                               <div style="margin-top: 20px">
-                                                       <a class="twitter-follow-button" href="https://twitter.com/woltlab_de">Follow @woltlab</a>
-                                               </div>
-                                       {/if}
-                                       
-                                       {literal}
-                                               <script data-relocate="true">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-                                       {/literal}
-                               </div>
+                               <iframe
+                                       id="woltlab_newsfeed"
+                                       src="https://newsfeed.woltlab.com/{if $__wcf->language->languageCode === 'de'}de{else}en{/if}_light.html"
+                                       referrerpolicy="no-referrer"
+                                       sandbox
+                               ></iframe>
                        </div>
                </div>
        {/if}