PluginProbe
Friends / 4.3.2
Friends v4.3.2
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 / welcome.php

welcome.php in Friends 4.3.2, at templates/admin/welcome.php

73 lines 5.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 Welcome Page.
4 *
5 * @package Friends
6 */
7
8 $first_friend = array(
9 // translators: %s is Alex Kirk.
10 'display_name' => sprintf( __( 'Subscribe to %s, creator of the Friends plugin', 'friends' ), 'Alex Kirk' ),
11 'url' => 'https://alex.kirk.at/',
12 );
13
14 ?>
15 <h1><?php esc_html_e( 'Welcome to the Friends Plugin!', 'friends' ); ?></h1>
16 <p>
17 <?php esc_html_e( 'With this plugin you can make your WordPress the center of your online activity.', 'friends' ); ?>
18 </p>
19 <p>
20 <span><?php esc_html_e( 'By building up your network based on your own website, you can stay independent of external social networks.', 'friends' ); ?></span>
21 <span><?php esc_html_e( 'This is how it works:', 'friends' ); ?></span>
22 </p>
23 <ul>
24 <li>
25 <?php
26 // translators: %s is the URL of the user's friends page.
27 echo wp_kses( sprintf( __( "Your <a href=%s>Friends page</a> is the place where you'll find the latest posts, messages, videos, etc. from your network.", 'friends' ), '"' . home_url( '/friends/' ) . '"' ), array( 'a' => array( 'href' => array() ) ) );
28 ?>
29 </li>
30 <li>
31 <span>
32 <?php
33 if ( class_exists( 'Activitypub\Activitypub' ) ) {
34 // translators: %s is the URL of the Add Friend page.
35 echo wp_kses( sprintf( __( 'You can extend your network by <a href=%s>subscribing to web sites</a> or following people on the Fediverse.', 'friends' ), '"' . admin_url( 'admin.php?page=add-friend' ) . '"' ), array( 'a' => array( 'href' => array() ) ) );
36 } else {
37 // translators: %s is the URL of the Add Friend page.
38 echo wp_kses( sprintf( __( 'You can extend your network by <a href=%s>subscribing to web sites</a> or, with the ActivityPub plugin, following people on the Fediverse.', 'friends' ), '"' . admin_url( 'admin.php?page=add-friend' ) . '"' ), array( 'a' => array( 'href' => array() ) ) );
39 }
40 ?>
41
42 </span>
43 <form action="<?php echo esc_url( self_admin_url( 'admin.php?page=add-friend' ) ); ?>" method="post" class="form-horizontal">
44 <?php wp_nonce_field( 'add-friend' ); ?>
45 <input type="hidden" name="friend_url" value="<?php echo esc_attr( $first_friend['url'] ); ?>" />
46 <div class="form-group">
47 <button class="btn btn-link btn-arrow"><?php echo esc_html( $first_friend['display_name'] ); ?></button>
48 </div>
49 </form>
50 </li>
51 <li>
52 <span>
53 <?php esc_html_e( 'You can install more plugins to extend the Friends plugin with further functionality.', 'friends' ); ?>
54 </span>
55 <?php if ( ! isset( $args['plugin-list'] ) || $args['plugin-list'] ) : ?>
56 <ul>
57 <?php if ( class_exists( 'Activitypub\Activitypub' ) ) : ?>
58 <li><a href="<?php echo \esc_url_raw( \admin_url( 'options-general.php?page=activitypub' ) ); ?>"><?php \esc_html_e( 'ActivityPub Plugin', 'friends' ); ?></a> (&#x2713;):<span><?php esc_html_e( 'Be part of the Fediverse!', 'friends' ); ?></span> <span><?php esc_html_e( 'People can follow your blog via ActivityPub (e.g. Mastodon) and you can follow people there.', 'friends' ); ?></span> </li>
59 <?php else : ?>
60 <li><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=activitypub&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal install-now" target="_blank"><?php \esc_html_e( 'ActivityPub Plugin', 'friends' ); ?></a>: <span><?php esc_html_e( 'Be part of the Fediverse!', 'friends' ); ?></span> <span><?php esc_html_e( 'People can follow your blog via ActivityPub (e.g. Mastodon) and you can follow people there.', 'friends' ); ?></span> </li>
61 <?php endif; ?>
62 <?php if ( class_exists( 'Enable_Mastodon_Apps\Mastodon_API' ) ) : ?>
63 <li><a href="<?php echo \esc_url_raw( \admin_url( 'options-general.php?page=enable-mastodon-apps' ) ); ?>"><?php \esc_html_e( 'Enable Mastodon Apps Plugin', 'friends' ); ?></a> (&#x2713;): <span><?php esc_html_e( 'Enjoy the comfort of Mastodon apps!', 'friends' ); ?></span> <span><?php esc_html_e( 'With this plugin you can use your favorite Mastodon app like Tusky, Ivory, or others to stay up to date and publish new status posts.', 'friends' ); ?></span> </li>
64 <?php else : ?>
65 <li><a href="<?php echo \esc_url_raw( \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"><?php \esc_html_e( 'Enable Mastodon Apps Plugin', 'friends' ); ?></a>: <span><?php esc_html_e( 'Enjoy the comfort of Mastodon apps!', 'friends' ); ?></span> <span><?php esc_html_e( 'With this plugin you can use your favorite Mastodon app like Tusky, Ivory, or others to stay up to date and publish new status posts.', 'friends' ); ?></span> </li>
66 <?php endif; ?>
67 <li><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=post-collection&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal install-now" target="_blank"><?php \esc_html_e( 'Post Collection Plugin', 'friends' ); ?></a>: <span><?php esc_html_e( 'Collect posts from around the web and create feeds.', 'friends' ); ?></span> </li>
68 <li><a href="<?php echo \esc_url_raw( \admin_url( 'plugin-install.php?tab=plugin-information&plugin=send-to-e-reader&TB_iframe=true' ) ); ?>" class="thickbox open-plugin-details-modal install-now" target="_blank"><?php \esc_html_e( 'Send to E-Reader Plugin', 'friends' ); ?></a>: <span><?php esc_html_e( 'Send new articles directly to your e-reader via e-mail or download the ePub.', 'friends' ); ?></span> </li>
69 </ul>
70 <?php endif; ?>
71 </li>
72 </ul>
73