Plugin Directory

Changeset 3274258


Ignore:
Timestamp:
04/16/2025 07:44:25 AM (9 months ago)
Author:
Annubis
Message:

wp 6.8 update

Location:
quick-whatsapp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quick-whatsapp/trunk/readme.txt

    r3207209 r3274258  
    55Version: 3.6.1
    66Requires at least: 4.0
    7 Tested up to: 6.7.1
     7Tested up to: 6.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919Folgende Features sind bereits verfügbar
    2020
    21 
    2221* WhatsApp Chat Funktion
    2322* WhatsApp Share Funktion
     
    2928* WhatsApp Gruppen
    3029* Shortcode für WhatsApp Gruppen
    31 
    3230
    3331= Features =
     
    4341* WhatsApp groups
    4442* Shortcode for WhatsApp groups
    45 
    4643
    4744= Disclaimer =
  • quick-whatsapp/trunk/simple-webchat.php

    r3207209 r3274258  
    88Author URI: http://www.ericmaechler.com
    99Requires at least: 4.0
    10 Tested up to: 6.7.1
     10Tested up to: 6.8
    1111Text Domain: quick-whatsapp
    1212Domain Path: /languages
    1313*/
    1414
    15 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     15
     16if (! defined('ABSPATH')) exit; // Exit if accessed directly
    1617
    1718include 'conf.php';
    1819
     20
    1921//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');
     22function my_plugin_initsquick_whatsapp()
     23{
     24    load_plugin_textdomain('quick-whatsapp', false, dirname(plugin_basename(__FILE__)) . '/languages');
     25}
     26add_action('init', 'my_plugin_initsquick_whatsapp');
    2427
    25 
    26 
     28#from db
    2729$quickwhatsapp_anzeige = get_option('quickwhatsapp');
    2830$quickwhatsappbutton_show = get_option('quickwhatsappbutton');
     
    3335
    3436//fehlermeldung generieren
    35 if ($quickwhatsapp_anzeige == '')
     37if ($quickwhatsapp_anzeige == '') {
     38
     39    function whatsapp_admin_notice__error()
    3640    {
    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');
    4143
    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));
    4645    }
     46    add_action('admin_notices', 'whatsapp_admin_notice__error');
     47}
    4748
    4849$quickwhatsapps_floatingbutton_status_error = get_option('quickwhatsapps_floatingbutton_status');
     
    5051
    5152//FLOATING BUTTON ERROR MSG
    52 if (($quickwhatsapps_floatingbutton_status_error == 'an') )
    53     {
    54    
     53if (($quickwhatsapps_floatingbutton_status_error == 'an')) {
    5554
    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' );
    6555
    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');
    7058
     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');
    7169    }
     70}
    7271
    7372
    7473/* ------------------------------------------- Normale Chat / Sharing Funktion  ------------------------------------------ */
    7574$quickwhatsapps_floatingbutton_status = get_option('quickwhatsapps_chatbutton_status');
    76 if ($quickwhatsapps_floatingbutton_status == 'an')
    77 {
    78 include("whatsapp-standard.php");
     75if ($quickwhatsapps_floatingbutton_status == 'an') {
     76    include("whatsapp-standard.php");
     77} else {
    7978}
    80 else {}
    8179/* ----------------------------------------------------------------------------------------------------------------------- */
    8280
     
    10199/* ------------------------------------------- Floating Button ----------------------------------------------------------- */
    102100$quickwhatsapps_floatingbutton_status = get_option('quickwhatsapps_floatingbutton_status');
    103 if ($quickwhatsapps_floatingbutton_status == 'an')
    104 {
    105 include("whatsapp-floating-button.php");
     101if ($quickwhatsapps_floatingbutton_status == 'an') {
     102    include("whatsapp-floating-button.php");
     103} else {
    106104}
    107 else {}
    108105/* ----------------------------------------------------------------------------------------------------------------------- */
    109 
    110 ?>
Note: See TracChangeset for help on using the changeset viewer.