PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
jetpack / jetpack_vendor / automattic / jetpack-sharing-likes / src / settings / class-extras-section.php

class-extras-section.php in Jetpack – WP Security, Backup, Speed, & Growth 16.3-beta, at jetpack_vendor/automattic/jetpack-sharing-likes/src/settings/class-extras-section.php

41 lines 932 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The section of Settings > Sharing that hosts other features' settings.
4 *
5 * @package automattic/jetpack-sharing-likes
6 */
7
8 declare( strict_types = 1 );
9
10 namespace Automattic\Jetpack\Sharing_Likes\Settings;
11
12 /**
13 * Hosts the rows that close the services table whenever that table is hidden.
14 *
15 * Some of them, like the Twitter Site Tag, do not depend on the Sharing module.
16 */
17 final class Extras_Section {
18
19 /**
20 * Render the section, if anything wants to be on it.
21 */
22 public static function render(): void {
23 $fields = Services_Config::global_options();
24 if ( '' === $fields ) {
25 return;
26 }
27
28 ?>
29 <div class="jetpack-sharing-settings__section">
30 <h2><?php esc_html_e( 'Other settings', 'jetpack-sharing-likes' ); ?></h2>
31 <?php
32 Settings_Form::render_fields(
33 Settings_Form::SECTION_EXTRAS,
34 '<table class="form-table"><tbody>' . $fields . '</tbody></table>'
35 );
36 ?>
37 </div>
38 <?php
39 }
40 }
41