PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 1.2
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v1.2
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / classes / admin / General.php

General.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 1.2, at classes/admin/General.php

436 lines 24.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18 Copyright 2017 Buttonizer
19 */
20 namespace Buttonizer\Admin;
21
22 # No script kiddies
23 defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
24 class General
25 {
26 private $aSavedData = array() ;
27 private $aSubCatagories = array() ;
28 private $aSubPages = array() ;
29 private $aFontAwesome = array() ;
30 private $oIconManager = array() ;
31 private $bHasProFeature = false ;
32 public function __construct( $aFontAwesome, $oIconManager )
33 {
34 $this->aFontAwesome = $aFontAwesome;
35 $this->oIconManager = $oIconManager;
36 $this->loadData();
37 $this->registerDesignSettings();
38 $this->registerPlacingSettings();
39 $this->registerAdvancedSettings();
40 $this->registerSocialSettings();
41 $this->registerOther();
42 $this->generatePage();
43 }
44
45 private function loadData()
46 {
47 $this->aSavedData = (array) get_option( 'buttonizer_general_settings' );
48 }
49
50 private function generatePage()
51 {
52 $sTabs = '';
53 $sTabsContent = '';
54 $bFirstTab = true;
55 // Get tabs
56 foreach ( $this->aSubCatagories as $sKey => $sTitle ) {
57 $sTabs .= '<a href="#tab_' . $sKey . '" onclick="javascript:buttonizer.tabNavigate(\'' . $sKey . '\')" id="tab_container_' . $sKey . '" class="nav-tab ' . (( $bFirstTab ? 'first nav-tab-active' : '' )) . '">' . $sTitle . '</a>';
58 $sTabsContent .= '<div id="tab_container_' . $sKey . '" ' . (( !$bFirstTab ? 'style="display: none;"' : '' )) . ' class="tab-container">' . $this->aSubPages[$sKey] . '</div>';
59 $bFirstTab = false;
60 }
61 echo '<table class="vertical-tabs">
62 <tr>
63 <td class="tabs">' . $sTabs . '</td>
64 <td class="tabsholder">' . $sTabsContent . '</td>
65 </tr>
66 </table>' ;
67 }
68
69 /*
70 * Register settings
71 */
72 public function registerPlacingSettings()
73 {
74 $this->aSubCatagories['placing'] = __( 'Placing &amp; animations', BUTTONIZER_SLUG );
75 $this->aSubPages['placing'] = '<table class="form-table"><tbody>';
76 $this->aSubPages['placing'] .= '<tr>
77 <td colspan="2">
78 <h2>Placing &amp; animations</h2>
79 <p>You can change here the button position and the button animation.</p>
80 </td></tr>';
81 $this->aSubPages['placing'] .= $this->createFormField( 'Button placing', array( &$this, 'field_button_placing' ) );
82 $this->aSubPages['placing'] .= $this->createFormField( 'Horizontal placing', array( &$this, 'field_position_horizontal' ), 'intro-position' );
83 $this->aSubPages['placing'] .= $this->createFormField( 'Bottom', array( &$this, 'field_position_bottom' ) );
84 $this->aSubPages['placing'] .= $this->createFormField( 'Label placing', array( &$this, 'field_label_placing' ) );
85 $this->aSubPages['placing'] .= '<tr>
86 <td colspan="2">
87 <hr style="margin: 20px 0;">
88 </td></tr>';
89 $this->aSubPages['placing'] .= $this->createFormField( 'Button animation', array( &$this, 'field_button_animation' ), 'intro-animaton' );
90 $this->aSubPages['placing'] .= $this->createFormField( 'Attention animation', array( &$this, 'field_attention_animation' ), 'intro-attention' );
91 $this->aSubPages['placing'] .= '</tbody></table>';
92 }
93
94 /*
95 * Register settings
96 */
97 public function registerDesignSettings()
98 {
99 $this->aSubCatagories['design'] = __( 'Design', BUTTONIZER_SLUG );
100 $this->aSubPages['design'] = '<table class="form-table"><tbody>';
101 $this->aSubPages['design'] .= '<tr>
102 <td colspan="2">
103 <h2>Design</h2>
104 <p>Style your button, make it blinky as you wish. You can change here the main color, main label and set the label hover types.</p>
105 </td></tr>';
106 $this->aSubPages['design'] .= '</tbody></table>';
107 $this->aSubPages['design'] .= '<table class="form-table intro-styling"><tbody>';
108 $this->aSubPages['design'] .= $this->createFormField( 'Color button unpushed', array( &$this, 'field_button_unpushed' ) );
109 $this->aSubPages['design'] .= $this->createFormField( 'Color button pushed', array( &$this, 'field_button_pushed' ) );
110 $this->aSubPages['design'] .= $this->createFormField( 'Icon color', array( &$this, 'field_icon_color' ) );
111 $this->aSubPages['design'] .= '</tbody></table>';
112 $this->aSubPages['design'] .= '<table class="form-table" style="margin-top: 0;"><tbody>';
113 $this->aSubPages['design'] .= $this->createFormField( 'Main icon<br /><br /><small>This icon will apear in a button when you have multiple floating action buttons on one page. When you click on the icon the other floating action button will \'pop\' open​.</small>', array( &$this, 'field_icon_icon' ), 'intro-icon' );
114 $this->aSubPages['design'] .= $this->createFormField( 'Main label<br /><br /><small>This label will apear next to the \'main button\' when you have multiple floating action buttons on one page.</small>', array( &$this, 'field_icon_label' ), 'intro-label' );
115 $this->aSubPages['design'] .= $this->createFormField( 'Only show labels on hover<br /><br /><small>Only show the label when you hover the button.</small>', array( &$this, 'field_label_show_on_hover' ) );
116 $this->aSubPages['design'] .= '</tbody></table>';
117 }
118
119 public function registerAdvancedSettings()
120 {
121 $this->aSubCatagories['advanced'] = __( 'Advanced settings', BUTTONIZER_SLUG );
122 $this->aSubPages['advanced'] = '<table class="form-table"><tbody>';
123 $this->aSubPages['advanced'] .= '<tr>
124 <td colspan="2">
125 <h2>Advanced settings</h2>
126 <p></p>
127 </td></tr>';
128 $this->aSubPages['advanced'] .= $this->createFormField( '
129 <span class="info-class">
130 <i class="fa fa-info-circle"></i>
131 <span>If you have your Google Analytics tracking code already installed you can ignore this setting. If you want to be sure that your buttons are tracked in your Google Analytics account? Then go to your Google Analytics account > Click on Real Time > Events and open your website in another tab. Click on a Buttonizer button and check if you see that the click gets tracked in Google Analytics. If this doesn\'t happen than go to your google Analytics settings page > Click on tracking code and copy your tracking-ID. It should look like this (UA-00000000-0)
132 </span>
133 </span>
134 Google Analytics', array( &$this, 'field_analytics_code' ) );
135 $this->aSubPages['advanced'] .= $this->createFieldset( 'Show on scroll' );
136 // Show on scroll
137 $this->aSubPages['advanced'] .= $this->createFormField( '
138 <span class="info-class">
139 <i class="fa fa-info-circle"></i>
140 <span>
141 When selected, the buttons will be shown after the user has scrolled a percentage of the page.
142 </span>
143 </span>
144 Show on scroll?', array( &$this, 'field_show_on_scroll' ) );
145 $this->aSubPages['advanced'] .= $this->createFormField( '
146 <span class="info-class">
147 <i class="fa fa-info-circle"></i>
148 <span>
149 Enter a percentage, starting from 0, up to 100.
150 </span>
151 </span>
152 % from top to show:', array( &$this, 'field_procent_to_scroll' ) );
153 $this->aSubPages['advanced'] .= $this->closeFieldset();
154 // Show after timeout
155 $this->aSubPages['advanced'] .= $this->createFieldset( 'Show after timeout' );
156 $this->aSubPages['advanced'] .= $this->createFormField( '
157 <span class="info-class">
158 <i class="fa fa-info-circle"></i>
159 <span>
160 When selected, the buttons will be shown when the user browsers more than the given seconds. So when you say: Show after 20<i>000</i>ms, the button shows after the user browsed on the website for 20 seconds.
161 </span>
162 </span>
163 Show after timeout?', array( &$this, 'field_show_on_timeout' ) );
164 $this->aSubPages['advanced'] .= $this->createFormField( '
165 <span class="info-class">
166 <i class="fa fa-info-circle"></i>
167 <span>
168 Enter the miliseconds from when the buttons must get shown to the user.<br />
169 <br />
170 1 second = 1000 miliseconds<br />
171 10 seconds = 10000 miliseconds<br />
172 1 minute = 60000 miliseconds<br />
173 </span>
174 </span>
175 Milliseconds: ', array( &$this, 'field_time_to_timeout' ) );
176 $this->aSubPages['advanced'] .= $this->closeFieldset();
177 // Exit intent
178 $this->aSubPages['advanced'] .= $this->createFieldset( 'Exit intent' );
179 $this->aSubPages['advanced'] .= $this->createFormField( '
180 <span class="info-class">
181 <i class="fa fa-info-circle"></i>
182 <span>
183 When selected, the buttons will open with a effect when your guest/user tries to escape from your website. The user gets attracted from your buttons.
184 </span>
185 </span>
186 Exit intent', array( &$this, 'field_exit_intent' ) );
187 $this->aSubPages['advanced'] .= $this->createFormField( '
188 <span class="info-class">
189 <i class="fa fa-info-circle"></i>
190 <span>
191 When the exit intent activates, there will be shown some text next to the head-button. You can edit that here.<br />
192 <br />
193 When empty, no message will be shown.
194 </span>
195 </span>
196 Exit intent text', array( &$this, 'field_exit_intent_text' ) );
197 $this->aSubPages['advanced'] .= $this->closeFieldset();
198 $this->aSubPages['advanced'] .= '</tbody></table>';
199 if ( !ButtonizerLicense()->is_not_paying() && !ButtonizerLicense()->is_plan( 'premium' ) ) {
200 $this->aSubPages['advanced'] .= '<div class="buttonizer-pro-text"><i class="fa fa-lock"></i> You are missing the fun! When upgrading to <a href="admin.php?page=Buttonizer-pricing">Buttonizer Pro</a> you will get these features.</div>';
201 }
202 }
203
204 public function registerSocialSettings()
205 {
206 $this->aSubCatagories['social'] = __( 'Social share settings', BUTTONIZER_SLUG );
207 $this->aSubPages['social'] = '<table class="form-table"><tbody>';
208 $this->aSubPages['social'] .= '<tr>
209 <td colspan="2">
210 <h2>Social sharing buttons</h2>
211 <p>This are separated pre-configured buttons to share a page. The buttons will be visible at every page, you can let the user share a page on Twitter, Facebook or LinkedIn.<p>
212 <p>You can enable them to check the checkbox at the end of the input. Don\'t forget that :)</p>
213 </td></tr>';
214 // Facebook share button
215 $this->aSubPages['social'] .= $this->createFormField( 'Share on Facebook', array( &$this, 'field_share_facebook' ) );
216 // Twitter share button
217 $this->aSubPages['social'] .= $this->createFormField( 'Share on Twitter', array( &$this, 'field_share_twitter' ) );
218 // LinkedIn share button
219 $this->aSubPages['social'] .= $this->createFormField( 'Share on LinkedIn', array( &$this, 'field_share_linkedin' ) );
220 $this->aSubPages['social'] .= '<tr>
221 <td colspan="2" style="text-align: right;">
222 <p>Do you want us to add more social media options? <a href="admin.php?page=Buttonizer-contact">Contact us</a></p>
223 </td></tr>';
224 $this->aSubPages['social'] .= '</tbody></table>';
225 }
226
227 public function registerOther()
228 {
229 $this->aSubCatagories['other'] = __( 'Other', BUTTONIZER_SLUG );
230 $this->aSubPages['other'] = '<table class="form-table"><tbody>';
231 $this->aSubPages['other'] .= '<tr>
232 <td colspan="2">
233 <h2>Other</h2>
234 <p>Nothing really specials here, just a way to reset the buttonizer to the default settings.</p>
235 <p>Click the button below to get some more information.</p>
236 </td></tr>';
237 $this->aSubPages['other'] .= '<tr><th scope="row">Reset Buttonizer</th><td><a href="?page=Buttonizer&tab=buttonizer_page_reset" class="button ">More info</a></td></tr>';
238 $this->aSubPages['other'] .= '</tbody></table>';
239 }
240
241 private function createFormField( $sLabel, $aFunction, $sClass = '' )
242 {
243 return '<tr class="' . $sClass . '"><th scope="row">' . $sLabel . '</th><td class="r-sit">' . $aFunction() . '</td></tr>';
244 }
245
246 private function createFieldset( $sLabel )
247 {
248 return '<tr><td colspan="2"><fieldset><legend>' . $sLabel . '</legend><table class="form-table">';
249 }
250
251 private function closeFieldset()
252 {
253 return '</table></fieldset></td></tr>';
254 }
255
256 /*
257 * Form
258 */
259 function field_button_unpushed()
260 {
261 $button_unpushed = ( isset( $this->aSavedData['button_unpushed'] ) ? $this->aSavedData['button_unpushed'] : '#48A4DC' );
262 return '<input type="text" name="buttonizer_general_settings[button_unpushed]" value="' . $button_unpushed . '" id="button_unpushed" data-default-color="#fffff" />';
263 }
264
265 function field_button_pushed()
266 {
267 $button_pushed = ( isset( $this->aSavedData['button_pushed'] ) ? $this->aSavedData['button_pushed'] : '#1D9BDB' );
268 return '<input type="text" name="buttonizer_general_settings[button_pushed]" value="' . $button_pushed . '" id="button_pushed" data-default-color="#fffff" />';
269 }
270
271 function field_icon_color()
272 {
273 $icon_color = ( isset( $this->aSavedData['icon_color'] ) ? $this->aSavedData['icon_color'] : '#fffff' );
274 return '<input type="text" name="buttonizer_general_settings[icon_color]" value="' . $icon_color . '" id="icon_color" data-default-color="#fffff" />';
275 }
276
277 function field_icon_icon()
278 {
279 $p = $this->oIconManager->generator( [
280 'icon' => ( isset( $this->aSavedData['icon_icon'] ) ? $this->aSavedData['icon_icon'] : '' ),
281 'icon_fieldname' => 'buttonizer_general_settings[icon_icon]',
282 'image' => ( isset( $this->aSavedData['custom_icon'] ) ? $this->aSavedData['custom_icon'] : '' ),
283 'image_fieldname' => 'buttonizer_general_settings[custom_icon]',
284 ] );
285 return $p;
286 }
287
288 function field_icon_label()
289 {
290 $icon_label = ( isset( $this->aSavedData['icon_label'] ) ? $this->aSavedData['icon_label'] : '' );
291 return '<input type="text" name="buttonizer_general_settings[icon_label]" value="' . $icon_label . '" placeholder="Fill in some text" />';
292 }
293
294 /**
295 * Button placing
296 *
297 * @return string
298 */
299 function field_button_placing()
300 {
301 $button_placing = ( isset( $this->aSavedData['buttons_placing'] ) ? $this->aSavedData['buttons_placing'] : 'default' );
302 return '
303 <select name="buttonizer_general_settings[buttons_placing]" style="width: 100%; padding: 0 10px; height: 40px;">
304 <option value="default" ' . (( $button_placing == 'default' ? 'selected' : '' )) . '>Right bottom corner (default)</option>
305 <option value="left" ' . (( $button_placing == 'left' ? 'selected' : '' )) . '>Left bottom corner</option>
306 </select>';
307 }
308
309 /**
310 * Horizontal placing
311 * When the button placing is set on 'right', this will be the space between the button and the right page corner.
312 *
313 * @return string
314 */
315 function field_position_horizontal()
316 {
317 $position_right = ( isset( $this->aSavedData['position_horizontal'] ) ? $this->aSavedData['position_horizontal'] : (( isset( $this->aSavedData['position_right'] ) ? $this->aSavedData['position_right'] : '5' )) );
318 return '<input type="text" name="buttonizer_general_settings[position_horizontal]" value="' . $position_right . '" placeholder="Fill in a number from 0 to 100"/><small><i class="after-input">%</i>
319 <div class="buttonizer-note">When the button placing is set on \'right\', this will be the space between the button and the right page corner. When your button placing is at the left corner, this will be the left space of your button. Recommended value is 5%.</div> ';
320 }
321
322 function field_position_bottom()
323 {
324 $position_bottom = ( isset( $this->aSavedData['position_bottom'] ) ? $this->aSavedData['position_bottom'] : '5' );
325 return '<input type="text" name="buttonizer_general_settings[position_bottom]" value="' . $position_bottom . '" placeholder="Fill in a number from 0 to 100"/><small><i class="after-input">%</i><br>Recommended 5% then it will position itself on the bottom corner</small>';
326 }
327
328 /**
329 * Mirroring the button style
330 *
331 * @return string
332 */
333 function field_label_placing()
334 {
335 $button_placing = ( isset( $this->aSavedData['buttons_label_placing'] ) ? $this->aSavedData['buttons_label_placing'] : 'default' );
336 return '
337 <select name="buttonizer_general_settings[buttons_label_placing]" style="width: 100%; padding: 0 10px; height: 40px;">
338 <option value="default" ' . (( $button_placing == 'default' ? 'selected' : '' )) . '>Label left, icon right</option>
339 <option value="mirrored" ' . (( $button_placing == 'mirrored' ? 'selected' : '' )) . '>Icon left, label right (mirrored)</option>
340 </select>
341 <div class="buttonizer-note">When you change the label place, you will mirror the style &amp; animation of the button also.</div>';
342 }
343
344 function field_button_animation()
345 {
346 $button_animation = ( isset( $this->aSavedData['buttons_animation'] ) ? $this->aSavedData['buttons_animation'] : 'default' );
347 return '
348 <select name="buttonizer_general_settings[buttons_animation]" style="width: 100%; padding: 0 10px; height: 40px;">
349 <option value="default" ' . (( $button_animation == 'default' ? 'selected' : '' )) . '>Default button animation (fade up)</option>
350 <option value="circle" ' . (( $button_animation == 'circle' ? 'selected' : '' )) . '>Circle animation (arround button, right bottom corner)</option>
351 <option value="fade-left-to-right" ' . (( $button_animation == 'fade-left-to-right' ? 'selected' : '' )) . '>Fade animation left to right</option>
352 </select>';
353 }
354
355 function field_attention_animation()
356 {
357 $attention_animation = ( isset( $this->aSavedData['attention_animation'] ) ? $this->aSavedData['attention_animation'] : 'none' );
358 return '
359 <select name="buttonizer_general_settings[attention_animation]" style="width: 100%; padding: 0 10px; height: 40px;">
360 <option value="none" ' . (( $attention_animation == 'none' ? 'selected' : '' )) . '>No attention animation</option>
361 <option value="hello" ' . (( $attention_animation == 'hello' ? 'selected' : '' )) . '>Buttonizer Hello</option>
362 <option value="bounce" ' . (( $attention_animation == 'bounce' ? 'selected' : '' )) . '>Bouncing</option>
363 </select>
364 <small>This will get the button jumping out of the background. So it gets your attention. All animations will be played every 10 seconds. Average animation duration is 1.75 seconds.</small>
365 ';
366 }
367
368 public function field_label_show_on_hover()
369 {
370 $is_selected = ( isset( $this->aSavedData['buttons_label_show_on_hover'] ) ? $this->aSavedData['buttons_label_show_on_hover'] : '' );
371 return '<input type="checkbox" name="buttonizer_general_settings[buttons_label_show_on_hover]" id="buttons_label_show_on_hover" value="1" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' /> <small><label for="buttons_label_show_on_hover">Only show on hover</label></small>';
372 }
373
374 /*
375 * Advanced
376 */
377 function field_analytics_code()
378 {
379 $google_analytics = ( isset( $this->aSavedData['google_analytics'] ) ? $this->aSavedData['google_analytics'] : '' );
380 return '<input type="text" name="buttonizer_general_settings[google_analytics]" value="' . $google_analytics . '" placeholder="Only when not inserted yet" /><small>Insert here the Google Analytics tracking code. Like UA-000000-2</small>';
381 }
382
383 public function field_show_on_scroll()
384 {
385 return '<input type="checkbox" class="buttonizer-click-to-pro" readonly /> <div class="after-input"><span class="buttonizer-pro-feature">PRO</span></div>';
386 }
387
388 public function field_procent_to_scroll()
389 {
390 return '<input type="text" value="0" class="buttonizer-click-to-pro" readonly /> <div class="after-input"><small><i>%</i></small> <span class="buttonizer-pro-feature">PRO</span></div>';
391 }
392
393 public function field_show_on_timeout()
394 {
395 return '<input type="checkbox" class="buttonizer-click-to-pro" readonly /> <span class="buttonizer-pro-feature">PRO</span>';
396 }
397
398 public function field_time_to_timeout()
399 {
400 return '<input type="text" class="buttonizer-click-to-pro" readonly value="0" /><div class="after-input"><span class="buttonizer-pro-feature">PRO</span></div>';
401 }
402
403 // Exit intent
404 public function field_exit_intent()
405 {
406 return '<input type="checkbox" class="buttonizer-click-to-pro" readonly /> <span class="buttonizer-pro-feature">PRO</span>';
407 }
408
409 public function field_exit_intent_text()
410 {
411 return '<input type="text" class="buttonizer-click-to-pro" readonly value="" /><div class="after-input"><span class="buttonizer-pro-feature">PRO</span></div>';
412 }
413
414 // Share page
415 function field_share_facebook()
416 {
417 $share_facebook = ( isset( $this->aSavedData['share_facebook'] ) ? $this->aSavedData['share_facebook'] : '' );
418 $share_facebook_text = ( isset( $this->aSavedData['share_facebook_text'] ) ? $this->aSavedData['share_facebook_text'] : 'Share this on Facebook' );
419 return '<span class="before-input"><input type="checkbox" name="buttonizer_general_settings[share_facebook]" value="1" ' . (( $share_facebook == '1' ? 'checked="checked"' : '' )) . ' /></span> <input type="text" name="buttonizer_general_settings[share_facebook_text]" value="' . $share_facebook_text . '" class="before-input-padding" placeholder="Share this on Facebook" />';
420 }
421
422 function field_share_linkedin()
423 {
424 $share_linkedin = ( isset( $this->aSavedData['share_linkedin'] ) ? $this->aSavedData['share_linkedin'] : '' );
425 $share_linkedin_text = ( isset( $this->aSavedData['share_linkedin_text'] ) ? $this->aSavedData['share_linkedin_text'] : 'Share this on LinkedIn' );
426 return '<span class="before-input"><input type="checkbox" name="buttonizer_general_settings[share_linkedin]" value="1" ' . (( $share_linkedin == '1' ? 'checked="checked"' : '' )) . ' /></span> <input type="text" name="buttonizer_general_settings[share_linkedin_text]" value="' . $share_linkedin_text . '" class="before-input-padding" placeholder="Share this on LinkedIn" />';
427 }
428
429 function field_share_twitter()
430 {
431 $share_twitter = ( isset( $this->aSavedData['share_twitter'] ) ? $this->aSavedData['share_twitter'] : '' );
432 $share_twitter_text = ( isset( $this->aSavedData['share_twitter_text'] ) ? $this->aSavedData['share_twitter_text'] : 'Share this on Twitter' );
433 return '<span class="before-input"><input type="checkbox" name="buttonizer_general_settings[share_twitter]" value="1" ' . (( $share_twitter == '1' ? 'checked="checked"' : '' )) . ' /></span> <input type="text" name="buttonizer_general_settings[share_twitter_text]" value="' . $share_twitter_text . '" class="before-input-padding" placeholder="Share this on Twitter" />';
434 }
435
436 }