PluginProbe
wpForo Forum / 2.2.3
wpForo Forum v2.2.3
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / admin / settings / social.php

social.php in wpForo Forum 2.2.3, at admin/settings/social.php

131 lines 10.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if( ! defined( "ABSPATH" ) ) exit();
2 $options = WPF()->settings->info->core['social']['options'];
3 ?>
4
5 <input type="hidden" name="wpfaction" value="social_settings_save">
6
7 <?php WPF()->settings->header( 'social' ); ?>
8
9 <div class="wpf-subtitle">
10 <span class="dashicons dashicons-share"></span> <?php _e( 'Share Buttons', 'wpforo' ) ?>
11 </div>
12
13 <!-- Option start -->
14 <div class="wpf-opt-row" data-wpf-opt="sb">
15 <div class="wpf-opt-name" style="width: 40%">
16 <label><?php echo esc_html( $options['sb']["label"] ) ?></label>
17 <p class="wpf-desc">
18 <?php echo esc_html( $options['sb']["description"] ) ?><br/>
19 </p>
20 </div>
21 <div class="wpf-opt-input" style="width: 60%; display: flex; flex-wrap: wrap;">
22 <div style="width: 15%; text-align: center; background: #3B5A9A; padding: 1px 18px 3px 18px; margin: 1%;">
23 <label for="sb_fb"><img src="<?php echo WPFORO_URL . '/assets/images/sn/fb-m.png' ?>" alt="fb-m.png" align="middle" style="width: 30px"></label><br>
24 <input id="sb_fb" type="checkbox" name="social[sb][fb]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'fb' ) ) ?>>
25 </div>
26 <div style="width: 15%; text-align: center; background: #00A3F5; padding: 1px 18px 3px 18px; margin: 1%;">
27 <label for="sb_tw"><img src="<?php echo WPFORO_URL . '/assets/images/sn/tw-m.png' ?>" alt="tw-m.png" align="middle" style="width: 30px"></label><br>
28 &nbsp;<input id="sb_tw" type="checkbox" name="social[sb][tw]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'tw' ) ) ?>>
29 </div>
30 <div style="width: 15%; text-align: center; background: #1BD741; padding: 1px 18px 3px 18px; margin: 1%;">
31 <label for="sb_wapp"><img src="<?php echo WPFORO_URL . '/assets/images/sn/wapp-m.png' ?>" alt=wapp-m.png"" align="middle" style="width: 30px"></label><br>
32 &nbsp;&nbsp;<input id="sb_wapp" type="checkbox" name="social[sb][wapp]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'wapp' ) ) ?>>
33 </div>
34 <div style="width: 15%; text-align: center; background: #0A75B5; padding: 1px 18px 3px 18px; margin: 1%;">
35 <label for="sb_lin"><img src="<?php echo WPFORO_URL . '/assets/images/sn/lin-m.png' ?>" alt="lin-m.png" align="middle" style="width: 28px"></label><br>
36 &nbsp;&nbsp;<input id="sb_lin" type="checkbox" name="social[sb][lin]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'lin' ) ) ?>>
37 </div>
38 <div style="width: 15%; text-align: center; background: #2D76A6; padding: 1px 18px 3px 18px; margin: 1%;">
39 <label for="sb_vk"><img src="<?php echo WPFORO_URL . '/assets/images/sn/vk-m.png' ?>" alt="vk-m.png" align="middle" style="width: 30px"></label><br>
40 &nbsp;&nbsp;<input id="sb_vk" type="checkbox" name="social[sb][vk]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'vk' ) ) ?>>
41 </div>
42 <div style="width: 15%; text-align: center; background: #FF7800; padding: 1px 18px 3px 18px; margin: 1%;">
43 <label for="sb_ok"><img src="<?php echo WPFORO_URL . '/assets/images/sn/ok-m.png' ?>" alt="ok-m.png" align="middle" style="width: 30px"></label><br>
44 &nbsp;&nbsp;<input id="sb_ok" type="checkbox" name="social[sb][ok]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb', 'ok' ) ) ?>>
45 </div>
46 </div>
47 <?php echo WPF()->settings->get_doc_link( $options['sb'] ) ?>
48 </div>
49 <!-- Option end -->
50
51 <?php
52 WPF()->settings->form_field( 'social', 'sb_on' );
53 WPF()->settings->form_field( 'social', 'sb_style' );
54 WPF()->settings->form_field( 'social', 'sb_type' );
55 WPF()->settings->form_field( 'social', 'sb_toggle_on' );
56 ?>
57
58 <!-- Option start -->
59 <div class="wpf-opt-row" data-wpf-opt="sb_toggle">
60 <div class="wpf-opt-name">
61 <label><?php echo esc_html( $options['sb_toggle']["label"] ) ?></label>
62 <p class="wpf-desc">
63 <?php echo esc_html( $options['sb_toggle']["description"] ) ?>
64 </p>
65 </div>
66 <div class="wpf-opt-input" style="display: flex; justify-content: flex-start; flex-wrap: wrap;">
67 <div style="background: #fff; width: 32%; text-align: center; padding: 1px 18px 3px 18px; margin: 1%; border: 1px solid #ddd;">
68 <label for="sb_toggle_1"><img src="<?php echo WPFORO_URL . '/assets/images/sn/toggle-1.png' ?>" alt="toggle-1.png" align="middle"></label><br>
69 &nbsp;&nbsp;<input id="sb_toggle_1" type="radio" name="social[sb_toggle]" value="1" <?php checked( wpforo_setting( 'social', 'sb_toggle' ), 1 ); ?>>
70 </div>
71 <div style="background: #fff; width: 32%; text-align: center; padding: 1px 18px 3px 18px; margin: 1%; border: 1px solid #ddd;">
72 <label for="sb_toggle_2"><img src="<?php echo WPFORO_URL . '/assets/images/sn/toggle-2.png' ?>" align="middle" alt="toggle-2.png"></label><br>
73 &nbsp;&nbsp;<input id="sb_toggle_2" type="radio" name="social[sb_toggle]" value="2" <?php checked( wpforo_setting( 'social', 'sb_toggle' ), 2 ); ?>>
74 </div>
75 <div style="background: #fff; width: 32%; text-align: center; padding: 1px 18px 3px 18px; margin: 1%; border: 1px solid #ddd;">
76 <label for="sb_toggle_3"><img src="<?php echo WPFORO_URL . '/assets/images/sn/toggle-3.png' ?>" align="middle" alt="toggle-3.png"></label><br>
77 &nbsp;&nbsp;<input id="sb_toggle_3" type="radio" name="social[sb_toggle]" value="3" <?php checked( wpforo_setting( 'social', 'sb_toggle' ), 3 ); ?>>
78 </div>
79 <div style="background: #fff; width: 32%; text-align: center; padding: 1px 18px 3px 18px; margin: 1%; border: 1px solid #ddd;">
80 <label for="sb_toggle_4"><img src="<?php echo WPFORO_URL . '/assets/images/sn/toggle-4.png' ?>" align="middle" alt="toggle-4.png"></label><br>
81 &nbsp;&nbsp;<input id="sb_toggle_4" type="radio" name="social[sb_toggle]" value="4" <?php checked( wpforo_setting( 'social', 'sb_toggle' ), 4 ); ?>>
82 </div>
83 </div>
84 <?php echo WPF()->settings->get_doc_link( $options['sb_toggle'] ) ?>
85 </div>
86 <!-- Option end -->
87 <?php
88 WPF()->settings->form_field( 'social', 'sb_toggle_type' );
89 WPF()->settings->form_field( 'social', 'sb_icon' );
90 ?>
91
92 <table class="wpforo_settings_table" data-wpf-opt="sb_location">
93 <tr>
94 <td style="padding: 0;"></td>
95 </tr>
96 <tr>
97 <th style="padding: 15px 0" colspan="2">
98 <label style="font-size: 15px; color: #555;font-weight: 600; margin-bottom: 5px; display: block;"><?php _e( 'Share Button Locations', 'wpforo' ); ?></label>
99 <p class="wpf-info" style="margin-bottom: 10px;"><?php _e( 'The post sharing toggle can be displayed either on the left side or on the top of each post. The general share buttons can be displayed on both (top and bottom) locations.', 'wpforo' ); ?></p>
100 <div style="padding-right: 10px; display: inline-block; width: auto; border-right: 1px solid #ccc; ">
101 <p style="text-align: center; margin: 0; font-weight: normal; font-size: 14px;"><?php _e( 'General Share Buttons', 'wpforo' ); ?></p>
102 <div style="float: left; background: #fff; display: inline-block; text-align: center; padding: 1px 5px 3px 5px; margin: 10px 5px 10px 0;">
103 <label for="sb_location_4"><img src="<?php echo WPFORO_URL . '/assets/images/sn/location-3.png' ?>" alt="location-3.png" align="middle" style="width: 130px"></label><br>
104 &nbsp;&nbsp;<input id="sb_location_4" type="checkbox" name="social[sb_location][top]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb_location', 'top' ) ) ?>>
105 </div>
106 <div style="float: left; background: #fff; display: inline-block; text-align: center; padding: 1px 5px 3px 5px; margin: 10px 5px 10px 0;">
107 <label for="sb_location_5"><img src="<?php echo WPFORO_URL . '/assets/images/sn/location-5.png' ?>" alt="location-5.png" align="middle" style="width: 130px"></label><br>
108 &nbsp;&nbsp;<input id="sb_location_5" type="checkbox" name="social[sb_location][bottom]" value="1" <?php checked( (bool) wpforo_setting( 'social', 'sb_location', 'bottom' ) ) ?>>
109 </div>
110 <div style="clear: both;"></div>
111 </div>
112 <div style="padding-left: 10px; display: inline-block; width: auto;">
113 <p style="text-align: center; margin: 0; font-weight: normal; font-size: 14px;"><?php _e( 'Post Sharing Toggle', 'wpforo' ); ?></p>
114 <div style="float: left; background: #fff; display: inline-block; text-align: center; padding: 1px 5px 3px 5px; margin: 10px 5px 10px 0;">
115 <label for="sb_location_1"><img src="<?php echo WPFORO_URL . '/assets/images/sn/location-1.png' ?>" alt="location-1.png" align="middle" style="width: 130px"></label><br>
116 &nbsp;&nbsp;<input id="sb_location_1" type="radio" name="social[sb_location_toggle]" value="left" <?php checked( wpforo_setting( 'social', 'sb_location_toggle' ), 'left' ); ?>>
117 </div>
118 <div style="float: left; background: #fff; display: inline-block; text-align: center; padding: 1px 5px 3px 5px; margin: 10px 5px 10px 0;">
119 <label for="sb_location_3"><img src="<?php echo WPFORO_URL . '/assets/images/sn/location-6.png' ?>" align="middle" style="width: 130px" alt="location-6.png"></label><br>
120 &nbsp;&nbsp;<input id="sb_location_3" type="radio" name="social[sb_location_toggle]" value="right" <?php checked( wpforo_setting( 'social', 'sb_location_toggle' ), 'right' ); ?>>
121 </div>
122 <div style="float: left; background: #fff; display: inline-block; text-align: center; padding: 1px 5px 3px 5px; margin: 10px 5px 10px 0;">
123 <label for="sb_location_2"><img src="<?php echo WPFORO_URL . '/assets/images/sn/location-2.png' ?>" alt="location-2.png" align="middle" style="width: 130px"></label><br>
124 &nbsp;&nbsp;<input id="sb_location_2" type="radio" name="social[sb_location_toggle]" value="top" <?php checked( wpforo_setting( 'social', 'sb_location_toggle' ), 'top' ); ?>>
125 </div>
126 <div style="clear: both;"></div>
127 </div>
128 </th>
129 </tr>
130 </table>
131