PluginProbe
wp-forecast / 9.6
wp-forecast v9.6
10.0 trunk 1.4 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3..5 3..8 3.0 3.1 3.2 3.3 3.4 3.6 All 86 releases
wp-forecast / supp / supp.php

supp.php in wp-forecast 9.6, at supp/supp.php

61 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Copyright 2009-2022 Hans Matzen (email : support at tuxlog.de)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * @package tl_supp
20 * @since 21.12.2009
21 */
22
23 if ( ! function_exists( 'tl_add_supp' ) ) {
24 /**
25 * Create the support message inckuding links.
26 *
27 * @param bool $echoit boolean flag if the results should be echoed.
28 */
29 function tl_add_supp( $echoit = false ) {
30 $out = '';
31 $out .= '<div style="text-align:right;">';
32 // donation link.
33 include_once plugin_dir_path( __FILE__ ) . '/donate.php';
34 $out .= tl_add_donation_box();
35 // support link.
36
37 $wpl = get_option( 'WPLANG', 'en_US' );
38
39 if ( 'de_DE' === $wpl ) {
40 $bt = 'Supportanfrage stellen';
41 $teaser = 'Haben Sie eine Frage?';
42 } elseif ( 'fr_FR' === $wpl ) {
43 $bt = 'Envoyez une demande de soutien';
44 $teaser = 'Avez-vous une question ?';
45 } else {
46 $bt = 'Send support request';
47 $teaser = 'Any Questions?';
48 }
49
50 $out .= $teaser . '&nbsp;&nbsp;&nbsp;';
51 $out .= '<a href="mailto:support@tuxlog.de">' . $bt . '</a>&nbsp;&nbsp;&nbsp;';
52 $out .= '</div>';
53
54 if ( $echoit ) {
55 echo esc_attr( $out );
56 } else {
57 return $out;
58 }
59 }
60 }
61