PluginProbe
ActivityPub / 5.3.1
ActivityPub v5.3.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | templates/welcome.php +45 -19 2.1.05.3.1 View file →
@@ -1,14 +1,11 @@
1 1 <?php
2 -\load_template(
3 - __DIR__ . '/admin-header.php',
4 - true,
5 - array(
6 - 'settings' => '',
7 - 'welcome' => 'active',
8 - 'followers' => '',
9 - )
10 -);
2 +/**
3 + * ActivityPub Welcome template.
4 + *
5 + * @package Activitypub
6 + */
7 +
11 8 ?>
12 9
13 10 <div class="activitypub-settings activitypub-welcome-page hide-if-no-js">
14 11 <div class="box">
@@ -16,11 +13,40 @@
16 13
17 14 <p><?php echo wp_kses( \__( 'Enter the fediverse with <strong>ActivityPub</strong>, broadcasting your blog to a wider audience. Attract followers, deliver updates, and receive comments from a diverse user base on <strong>Mastodon</strong>, <strong>Friendica</strong>, <strong>Pleroma</strong>, <strong>Pixelfed</strong>, and all <strong>ActivityPub</strong>-compliant platforms.', 'activitypub' ), array( 'strong' => array() ) ); ?></p>
18 15 </div>
19 16
20 - <?php
21 - if ( ! \Activitypub\is_user_disabled( \Activitypub\Collection\Users::BLOG_USER_ID ) ) :
22 - $blog_user = new \Activitypub\Model\Blog_User();
17 + <?php if ( \Activitypub\site_supports_blocks() ) : ?>
18 + <div class="box">
19 + <h3><?php \esc_html_e( 'Bookmarklet', 'activitypub' ); ?></h3>
20 +
21 + <p>
22 + <?php
23 + $bookmarklet_js = \Activitypub\get_reply_intent_js();
24 +
25 + /* translators: %s is the domain of this site */
26 + $reply_from_template = __( 'Reply from %s', 'activitypub' );
27 + $button = sprintf(
28 + '<a href="%s" class="button">%s</a>',
29 + esc_attr( $bookmarklet_js ), // Need to escape quotes for the bookmarklet.
30 + sprintf( $reply_from_template, \wp_parse_url( \home_url(), PHP_URL_HOST ) )
31 + );
32 + /* translators: %s is where the button HTML will be rendered. */
33 + $button_and_explanation_template = \__(
34 + '%s Save this bookmarklet to reply to posts on other sites from your own blog! When visiting a post on another site, click the bookmarklet to start a reply.',
35 + 'activitypub'
36 + );
37 +
38 + printf( $button_and_explanation_template, $button ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
39 +
40 + printf( ' <a href="%s">%s</a>', esc_url( \admin_url( 'tools.php#activitypub' ) ), esc_html__( 'For additional information, please visit the Tools page.', 'activitypub' ) );
41 + ?>
42 + </p>
43 + </div>
44 + <?php
45 + endif;
46 +
47 + if ( ! \Activitypub\is_user_disabled( \Activitypub\Collection\Actors::BLOG_USER_ID ) ) :
48 + $blog_user = new \Activitypub\Model\Blog();
23 49 ?>
24 50 <div class="box">
25 51 <h3><?php \esc_html_e( 'Blog profile', 'activitypub' ); ?></h3>
26 52 <p>
@@ -41,9 +67,9 @@
41 67 <p>
42 68 <?php \esc_html_e( 'This blog profile will federate all posts written on your blog, regardless of the author who posted it.', 'activitypub' ); ?>
43 69 <p>
44 70 <p>
45 - <a href="<?php echo \esc_url_raw( \admin_url( '/options-general.php?page=activitypub&tab=settings' ) ); ?>">
71 + <a href="<?php echo \esc_url_raw( \admin_url( '/options-general.php?page=activitypub&tab=blog-profile ' ) ); ?>">
46 72 <?php \esc_html_e( 'Customize the blog profile', 'activitypub' ); ?>
47 73 </a>
48 74 </p>
49 75 </div>
@@ -50,9 +76,9 @@
50 76 <?php endif; ?>
51 77
52 78 <?php
53 79 if ( ! \Activitypub\is_user_disabled( get_current_user_id() ) ) :
54 - $user = \Activitypub\Collection\Users::get_by_id( wp_get_current_user()->ID );
80 + $user = \Activitypub\Collection\Actors::get_by_id( wp_get_current_user()->ID );
55 81 ?>
56 82 <div class="box">
57 83 <h3><?php \esc_html_e( 'Author profile', 'activitypub' ); ?></h3>
58 84 <p>
@@ -91,9 +117,9 @@
91 117 \__(
92 118 'If you have problems using this plugin, please check the <a href="%s">Site Health</a> page to ensure that your site is compatible and/or use the "Help" tab (in the top right of the settings pages).',
93 119 'activitypub'
94 120 ),
95 - \esc_url_raw( admin_url( 'site-health.php' ) )
121 + \esc_url( admin_url( 'site-health.php' ) )
96 122 ),
97 123 'default'
98 124 );
99 125 ?>
@@ -115,9 +141,9 @@
115 141 </button>
116 142 </h4>
117 143 <div id="activitypub-settings-accordion-block-friends-plugin" class="activitypub-settings-accordion-panel plugin-card-friends">
118 144 <p><?php \esc_html_e( 'To follow people on Mastodon or similar platforms using your own WordPress, you can use the Friends Plugin for WordPress which uses this plugin to receive posts and display them on your own WordPress, thus making your own WordPress a Fediverse instance of its own.', 'activitypub' ); ?></p>
119 - <p><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=friends&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the Friends Plugin', 'activitypub' ); ?></a></p>
145 + <p><a href="<?php echo \esc_url( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=friends&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the Friends Plugin', 'activitypub' ); ?></a></p>
120 146 </div>
121 147 <?php endif; ?>
122 148 <?php if ( ! \class_exists( 'Hum' ) ) : ?>
123 149 <h4 class="activitypub-settings-accordion-heading">
@@ -127,9 +153,9 @@
127 153 </button>
128 154 </h4>
129 155 <div id="activitypub-settings-accordion-block-activitypub-hum-plugin" class="activitypub-settings-accordion-panel plugin-card-hum" hidden="hidden">
130 156 <p><?php \esc_html_e( 'Hum is a personal URL shortener for WordPress, designed to provide short URLs to your personal content, both hosted on WordPress and elsewhere.', 'activitypub' ); ?></p>
131 - <p><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=hum&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the Hum Plugin', 'activitypub' ); ?></a></p>
157 + <p><a href="<?php echo \esc_url( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=hum&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the Hum Plugin', 'activitypub' ); ?></a></p>
132 158 </div>
133 159 <?php endif; ?>
134 160 <?php if ( ! \class_exists( 'Webfinger' ) ) : ?>
135 161 <h4 class="activitypub-settings-accordion-heading">
@@ -140,9 +166,9 @@
140 166 </h4>
141 167 <div id="activitypub-settings-accordion-block-activitypub-webfinger-plugin" class="activitypub-settings-accordion-panel plugin-card-webfinger" hidden="hidden">
142 168 <p><?php \esc_html_e( 'WebFinger is a protocol that allows for discovery of information about people and things identified by a URI. Information about a person might be discovered via an "acct:" URI, for example, which is a URI that looks like an email address.', 'activitypub' ); ?></p>
143 169 <p><?php \esc_html_e( 'The ActivityPub plugin comes with basic WebFinger support, if you need more configuration options and compatibility with other Fediverse/IndieWeb plugins, please install the WebFinger plugin.', 'activitypub' ); ?></p>
144 - <p><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=webfinger&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the WebFinger Plugin', 'activitypub' ); ?></a></p>
170 + <p><a href="<?php echo \esc_url( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=webfinger&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the WebFinger Plugin', 'activitypub' ); ?></a></p>
145 171 </div>
146 172 <?php endif; ?>
147 173 <?php if ( ! \function_exists( 'nodeinfo_init' ) ) : ?>
148 174 <h4 class="activitypub-settings-accordion-heading">
@@ -153,9 +179,9 @@
153 179 </h4>
154 180 <div id="activitypub-settings-accordion-block-activitypub-nodeinfo-plugin" class="activitypub-settings-accordion-panel plugin-card-nodeinfo" hidden="hidden">
155 181 <p><?php \esc_html_e( 'NodeInfo is an effort to create a standardized way of exposing metadata about a server running one of the distributed social networks. The two key goals are being able to get better insights into the user base of distributed social networking and the ability to build tools that allow users to choose the best fitting software and server for their needs.', 'activitypub' ); ?></p>
156 182 <p><?php \esc_html_e( 'The ActivityPub plugin comes with a simple NodeInfo endpoint. If you need more configuration options and compatibility with other Fediverse plugins, please install the NodeInfo plugin.', 'activitypub' ); ?></p>
157 - <p><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=nodeinfo&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the NodeInfo Plugin', 'activitypub' ); ?></a></p>
183 + <p><a href="<?php echo \esc_url( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=nodeinfo&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal button install-now" target="_blank"><?php \esc_html_e( 'Install the NodeInfo Plugin', 'activitypub' ); ?></a></p>
158 184 </div>
159 185 <?php endif; ?>
160 186 </div>
161 187 <?php endif; ?>