PluginProbe
Friends / 4.3.0
Friends v4.3.0
4.3.2 4.3.1 4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 All 88 releases
friends / templates / admin / news-4-3.php

news-4-3.php in Friends 4.3.0, at templates/admin/news-4-3.php

80 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This template contains the Friends 4.3 news entry.
4 *
5 * @package Friends
6 */
7
8 ?>
9 <div class="friends-news-entry-body">
10 <h2><?php esc_html_e( 'Friends 4.3: Link Previews', 'friends' ); ?></h2>
11
12 <div class="friends-news-changes">
13 <div class="friends-news-change">
14 <h4><?php esc_html_e( 'Link Previews', 'friends' ); ?></h4>
15 <p><?php esc_html_e( 'When someone you follow shares a news article, their post arrives as plain text and a bare link. The preview card you see on Mastodon is rendered by their server and is not part of what gets sent across the fediverse, so it never reached your feed.', 'friends' ); ?></p>
16 <p>
17 <?php
18 echo wp_kses(
19 sprintf(
20 // translators: %s is a link to the friends page.
21 __( 'Friends now builds that card itself: %s shows the linked page\'s title, description and image below the post, in every theme.', 'friends' ),
22 '<a href="' . esc_url( home_url( '/friends/' ) ) . '">' . esc_html__( 'your feed', 'friends' ) . '</a>'
23 ),
24 array(
25 'a' => array(
26 'href' => true,
27 ),
28 )
29 );
30 ?>
31 </p>
32 </div>
33
34 <div class="friends-news-change">
35 <h4><?php esc_html_e( 'Only Where It Adds Something', 'friends' ); ?></h4>
36 <p><?php esc_html_e( 'A card appears when a status contains a link but no image or video of its own, so posts that already show a photo are left alone. Mentions, hashtags and links back to the poster\'s own site are skipped.', 'friends' ); ?></p>
37 <p><?php esc_html_e( 'The linked page is downloaded in the background after a post arrives, never while you wait for a page to load, and the result is stored with the post so each link is only fetched once.', 'friends' ); ?></p>
38 </div>
39
40 <div class="friends-news-change">
41 <h4><?php esc_html_e( 'Your Call', 'friends' ); ?></h4>
42 <p><?php esc_html_e( 'Showing a preview means your site contacts the linked website. If you\'d rather it didn\'t, you can turn link previews off entirely — no cards are shown and no requests are made.', 'friends' ); ?></p>
43 <p>
44 <a class="button" href="<?php echo esc_url( admin_url( 'admin.php?page=friends-settings' ) ); ?>">
45 <?php esc_html_e( 'Go to Settings', 'friends' ); ?>
46 </a>
47 </p>
48 </div>
49
50 <div class="friends-news-change">
51 <h4><?php esc_html_e( 'Direct Messages in Mastodon Apps', 'friends' ); ?></h4>
52 <?php
53 if ( class_exists( 'Enable_Mastodon_Apps\Mastodon_API' ) ) {
54 $mastodon_apps_link = '<a href="' . esc_url( admin_url( 'options-general.php?page=enable-mastodon-apps' ) ) . '">' . esc_html__( 'Enable Mastodon Apps', 'friends' ) . '</a>';
55 } else {
56 $mastodon_apps_link = '<a href="' . esc_url( admin_url( 'plugin-install.php?tab=plugin-information&plugin=enable-mastodon-apps&TB_iframe=true' ) ) . '" class="thickbox open-plugin-details-modal install-now" target="_blank">' . esc_html__( 'Enable Mastodon Apps', 'friends' ) . '</a>';
57 }
58 ?>
59 <p>
60 <?php
61 echo wp_kses(
62 sprintf(
63 // translators: %s is a link to the Enable Mastodon Apps plugin.
64 __( 'Incoming direct messages now raise a notification in Mastodon apps connected through %s, so a new message reaches you there instead of waiting to be discovered.', 'friends' ),
65 $mastodon_apps_link
66 ),
67 array(
68 'a' => array(
69 'href' => true,
70 'class' => true,
71 'target' => true,
72 ),
73 )
74 );
75 ?>
76 </p>
77 </div>
78 </div>
79 </div>
80