Changeset 3274258
- Timestamp:
- 04/16/2025 07:44:25 AM (9 months ago)
- Location:
- quick-whatsapp/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
simple-webchat.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-whatsapp/trunk/readme.txt
r3207209 r3274258 5 5 Version: 3.6.1 6 6 Requires at least: 4.0 7 Tested up to: 6. 7.17 Tested up to: 6.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 Folgende Features sind bereits verfügbar 20 20 21 22 21 * WhatsApp Chat Funktion 23 22 * WhatsApp Share Funktion … … 29 28 * WhatsApp Gruppen 30 29 * Shortcode für WhatsApp Gruppen 31 32 30 33 31 = Features = … … 43 41 * WhatsApp groups 44 42 * Shortcode for WhatsApp groups 45 46 43 47 44 = Disclaimer = -
quick-whatsapp/trunk/simple-webchat.php
r3207209 r3274258 8 8 Author URI: http://www.ericmaechler.com 9 9 Requires at least: 4.0 10 Tested up to: 6. 7.110 Tested up to: 6.8 11 11 Text Domain: quick-whatsapp 12 12 Domain Path: /languages 13 13 */ 14 14 15 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 15 16 if (! defined('ABSPATH')) exit; // Exit if accessed directly 16 17 17 18 include 'conf.php'; 18 19 20 19 21 //mehrsprachigkeit 20 function my_plugin_initsquick_whatsapp() { 21 load_plugin_textdomain( 'quick-whatsapp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 22 } 23 add_action('init', 'my_plugin_initsquick_whatsapp'); 22 function my_plugin_initsquick_whatsapp() 23 { 24 load_plugin_textdomain('quick-whatsapp', false, dirname(plugin_basename(__FILE__)) . '/languages'); 25 } 26 add_action('init', 'my_plugin_initsquick_whatsapp'); 24 27 25 26 28 #from db 27 29 $quickwhatsapp_anzeige = get_option('quickwhatsapp'); 28 30 $quickwhatsappbutton_show = get_option('quickwhatsappbutton'); … … 33 35 34 36 //fehlermeldung generieren 35 if ($quickwhatsapp_anzeige == '') 37 if ($quickwhatsapp_anzeige == '') { 38 39 function whatsapp_admin_notice__error() 36 40 { 37 38 function whatsapp_admin_notice__error() { 39 $class = 'notice notice-error'; 40 $message = __( "Please finish installing the Simple Webchat plugin. To do this, go to Simple Webchat Administration", 'quick-whatsapp' ); 41 $class = 'notice notice-error'; 42 $message = __("Please finish installing the Simple Webchat plugin. To do this, go to Simple Webchat Administration", 'quick-whatsapp'); 41 43 42 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); 43 } 44 add_action( 'admin_notices', 'whatsapp_admin_notice__error' ); 45 44 printf('<div class="%1$s"><p>%2$s</p></div>', esc_attr($class), esc_html($message)); 46 45 } 46 add_action('admin_notices', 'whatsapp_admin_notice__error'); 47 } 47 48 48 49 $quickwhatsapps_floatingbutton_status_error = get_option('quickwhatsapps_floatingbutton_status'); … … 50 51 51 52 //FLOATING BUTTON ERROR MSG 52 if (($quickwhatsapps_floatingbutton_status_error == 'an') ) 53 { 54 53 if (($quickwhatsapps_floatingbutton_status_error == 'an')) { 55 54 56 $quickwhatsapps_floating_posi_unten_nach_oben_error = get_option('quickwhatsapps_floating_posi_unten_nach_oben');57 $quickwhatsapps_floation_posi_rechts_nach_links_error = get_option('quickwhatsapps_floation_posi_rechts_nach_links');58 59 if (($quickwhatsapps_floating_posi_unten_nach_oben_error == '') OR ($quickwhatsapps_floation_posi_rechts_nach_links_error == ''))60 {61 62 function whatsapp_admin_notice__error2() {63 $class = 'notice notice-error';64 $message = __( "Please Config your Floating Button", 'quick-whatsapp' );65 55 66 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); 67 } 68 add_action( 'admin_notices', 'whatsapp_admin_notice__error2' ); 69 } 56 $quickwhatsapps_floating_posi_unten_nach_oben_error = get_option('quickwhatsapps_floating_posi_unten_nach_oben'); 57 $quickwhatsapps_floation_posi_rechts_nach_links_error = get_option('quickwhatsapps_floation_posi_rechts_nach_links'); 70 58 59 if (($quickwhatsapps_floating_posi_unten_nach_oben_error == '') or ($quickwhatsapps_floation_posi_rechts_nach_links_error == '')) { 60 61 function whatsapp_admin_notice__error2() 62 { 63 $class = 'notice notice-error'; 64 $message = __("Please Config your Floating Button", 'quick-whatsapp'); 65 66 printf('<div class="%1$s"><p>%2$s</p></div>', esc_attr($class), esc_html($message)); 67 } 68 add_action('admin_notices', 'whatsapp_admin_notice__error2'); 71 69 } 70 } 72 71 73 72 74 73 /* ------------------------------------------- Normale Chat / Sharing Funktion ------------------------------------------ */ 75 74 $quickwhatsapps_floatingbutton_status = get_option('quickwhatsapps_chatbutton_status'); 76 if ($quickwhatsapps_floatingbutton_status == 'an') 77 { 78 include("whatsapp-standard.php"); 75 if ($quickwhatsapps_floatingbutton_status == 'an') { 76 include("whatsapp-standard.php"); 77 } else { 79 78 } 80 else {}81 79 /* ----------------------------------------------------------------------------------------------------------------------- */ 82 80 … … 101 99 /* ------------------------------------------- Floating Button ----------------------------------------------------------- */ 102 100 $quickwhatsapps_floatingbutton_status = get_option('quickwhatsapps_floatingbutton_status'); 103 if ($quickwhatsapps_floatingbutton_status == 'an') 104 { 105 include("whatsapp-floating-button.php"); 101 if ($quickwhatsapps_floatingbutton_status == 'an') { 102 include("whatsapp-floating-button.php"); 103 } else { 106 104 } 107 else {}108 105 /* ----------------------------------------------------------------------------------------------------------------------- */ 109 110 ?>
Note: See TracChangeset
for help on using the changeset viewer.