Plugin Directory

Changeset 3380392


Ignore:
Timestamp:
10/18/2025 05:14:43 AM (4 months ago)
Author:
tuxlog
Message:

wp-monalisa v6.6

Location:
wp-monalisa/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • wp-monalisa/trunk/readme.txt

    r3279222 r3380392  
    55Requires at least: 4.0
    66Tested up to: 6.8
    7 Stable tag: 6.5
     7Stable tag: 6.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8888== Changelog ==
    8989
     90= v6.6 (2025-09-22) =
     91* fixed problem with javascript bbPress and pull-down
     92
    9093= v6.5 (2024-08-31) =
    9194* added updated spanish translation, thanks to Geraldo
  • wp-monalisa/trunk/wp-monalisa.php

    r3144540 r3380392  
    44 * Plugin URI: http://www.tuxlog.de/wordpress/2009/wp-monalisa/
    55 * Description: wp-Monalisa is the plugin that smiles at you like monalisa does. place the smilies of your choice in posts, pages or comments.
    6  * Version: 6.5
     6 * Version: 6.6
    77 * Author: Hans Matzen <webmaster at tuxlog dot de>
    88 * Author URI: http://www.tuxlog.de
     
    1313
    1414/**
    15  * Copyright 2009-2024 Hans Matzen  (email : webmaster at tuxlog dot de)
     15 * Copyright 2009-2025 Hans Matzen  (email : webmaster at tuxlog dot de)
    1616 *
    1717 * This program is free software; you can redistribute it and/or modify
  • wp-monalisa/trunk/wpml-admin.php

    r3144540 r3380392  
    143143    //
    144144    if ( isset( $_POST['action'] ) && 'editicons' == $_POST['action'] && isset( $_POST['baction'] ) ) {
    145         // check nonce.
     145        // check nonce.
    146146        if ( ! isset( $_POST['wpm_nonce2'] ) ) {
    147147            die( "<br><br>Looks like you didn't send any credentials. Please reload the page. " );
     
    234234    //
    235235    if ( isset( $_POST['action'] ) && 'editicons' == $_POST['action'] && isset( $_POST['updateicons'] ) ) {
    236         // check nonce.
     236        // check nonce.
    237237        if ( ! isset( $_POST['wpm_nonce2'] ) ) {
    238238            die( "<br><br>Looks like you didn't send any credentials. Please reload the page. " );
     
    538538    // icons.
    539539    $out .= '<form name="editicons" id="editicons" method="post" action="#">';
    540     $out .= '<input name="wpm_nonce2" id="wpm_nonce2" type="hidden" value="' . esc_attr( wp_create_nonce( 'wpm_nonce2' ) ) . '" />';
     540    $out .= '<input name="wpm_nonce2" id="wpm_nonce2" type="hidden" value="' . esc_attr( wp_create_nonce( 'wpm_nonce2' ) ) . '" />';
    541541    $out .= '<input type="hidden" name="action" value="editicons" />';
    542542
     
    696696        }
    697697        $out .= "</tr>\n";
    698         $count ++; // zaehler erhöhen.
     698        $count++; // zaehler erhöhen.
    699699    }
    700700
     
    801801    );
    802802}
    803 
    804 
  • wp-monalisa/trunk/wpml-autoupdate.php

    r2790636 r3380392  
    5858    // icons ordner in backup verzeichnis kopieren.
    5959    $wp_filesystem->mkdir( $backupdir );
    60     if ( $wp_filesystem->is_dir( dirname( __FILE__ ) . '/icons' ) ) {
     60    if ( $wp_filesystem->is_dir( __DIR__ . '/icons' ) ) {
    6161        $wp_filesystem->mkdir( $backupdir . '/icons' );
    6262
    63         $icons = $wp_filesystem->dirlist( dirname( __FILE__ ) . '/icons' );
     63        $icons = $wp_filesystem->dirlist( __DIR__ . '/icons' );
    6464        foreach ( array_keys( $icons ) as $i ) {
    6565            if ( ! in_array( $i, $deficons, true ) ) {
    6666                $wp_filesystem->copy(
    67                     dirname( __FILE__ ) . '/icons/' . $i,
     67                    __DIR__ . '/icons/' . $i,
    6868                    $backupdir . '/icons/' . $i
    6969                );
     
    7373
    7474    // individuelle css datei sichern.
    75     if ( $wp_filesystem->is_file( dirname( __FILE__ ) . '/wp-monalisa.css' ) ) {
     75    if ( $wp_filesystem->is_file( __DIR__ . '/wp-monalisa.css' ) ) {
    7676        $wp_filesystem->copy(
    77             dirname( __FILE__ ) . '/wp-monalisa.css',
     77            __DIR__ . '/wp-monalisa.css',
    7878            $backupdir . '/wp-monalisa.css'
    7979        );
    8080    }
    81 
    8281}
    8382
     
    8988
    9089    $backupdir = $wp_filesystem->wp_content_dir() . '/upgrade/wpml_update/';
    91     $pdir      = dirname( __FILE__ );
     90    $pdir      = __DIR__;
    9291
    9392    // individuelle css datei zurück holen.
     
    117116add_filter( 'upgrader_pre_install', 'hm_backup', 10, 2 );
    118117add_filter( 'upgrader_post_install', 'hm_recover', 10, 2 );
    119 
    120 
  • wp-monalisa/trunk/wpml-comment.php

    r3144540 r3380392  
    121121 */
    122122function get_wpml_comment( $postid = 0 ) {
    123     global $wpdb,$post,$wpml_first_preload;
     123    global $wpdb, $post, $wpml_first_preload;
    124124
    125125    // if post->ID is not set (like in BuddyPress), we use -1 to get a fals for the comparison for sure.
     
    305305    $out1strow = str_replace( 'icodiv-', 'icodiv1-', $out1strow );
    306306
    307     $loaderout = addslashes( str_replace( array( "\n", "\r" ), '', $out ) );
     307    // $loaderout = addslashes( str_replace( array( "\n", "\r" ), '', $out ) );
     308    $loaderout = htmlentities( str_replace( array( "\n", "\r" ), '', $out ), ENT_QUOTES | ENT_SUBSTITUTE | ENT_DISALLOWED );
    308309
    309310    // die Liste mit den images wird nur beim ersten Mal ausgegeben.
     
    333334    return $erg;
    334335}
    335 
  • wp-monalisa/trunk/wpml-edit.php

    r3099926 r3380392  
    117117function wpml_metabox() {
    118118    require_once 'wpml-func.php';
    119     global $wpdb,$post;
     119    global $wpdb, $post;
    120120
    121121    // table name.
  • wp-monalisa/trunk/wpml-func.php

    r3099926 r3380392  
    323323    add_filter(
    324324        'safe_style_css',
    325         function( $styles ) {
     325        function ( $styles ) {
    326326            $styles[] = 'display';
    327327            return $styles;
  • wp-monalisa/trunk/wpml-setup.php

    r3099926 r3380392  
    168168    update_option( 'wpml_use_smilies_backup', $usm );
    169169    update_option( 'use_smilies', false );
    170 
    171170}
    172171
     
    199198    delete_option( 'wpml_use_smilies_backup' );
    200199}
    201 
  • wp-monalisa/trunk/wpml_gutenberg.js

    r3099926 r3380392  
    1616    var i = 1;
    1717    window._wpml_richedit_smilies.forEach(
    18         function(smiley){
     18        function (smiley) {
    1919            out += '<a href="#" title="' + smiley[1] + '"><img src="' + smiley[2] + '"></a>';
    2020            if ( i % spr == 0 ) {
     
    2828    document.body.appendChild( ppo );
    2929
    30     ppo.querySelector( ".wpml-gutenberg-popover-cancel" ).addEventListener( "click",function(){ ppo.parentNode.removeChild( ppo ); } )
     30    ppo.querySelector( ".wpml-gutenberg-popover-cancel" ).addEventListener(
     31        "click",
     32        function () {
     33            ppo.parentNode.removeChild( ppo ); }
     34    )
    3135    return ppo;
    3236}
    3337
    34 ( function( wp ) {
    35     var wpml_gutenbergbutton = function( props ) {
     38( function ( wp ) {
     39    var wpml_gutenbergbutton = function ( props ) {
    3640        return wp.element.createElement(
    3741            wp.blockEditor.RichTextToolbarButton,
     
    3943                icon: 'smiley',
    4044                title: 'Smilies',
    41                 onClick: function() {
     45                onClick: function () {
    4246                    var ppo = wpml_gutenberg_popover();
    4347
    4448                    ppo.querySelectorAll( "a" ).forEach(
    45                         function(smlink){
     49                        function (smlink) {
    4650                            smlink.addEventListener(
    4751                                "click",
    48                                 function(){
     52                                function () {
    4953                                    var emoticon        = smlink.getAttribute( "title" );
    5054                                    var emoticon_link   = smlink.firstChild.getAttribute( "src" );
  • wp-monalisa/trunk/wpml_script.js

    r3099926 r3380392  
    77/* wait for jquery to be loaded */
    88while ( ! window.jQuery) {
    9     setTimeout( function() { defer( method ) }, 50 );
     9    setTimeout(
     10        function () {
     11            defer( method ) },
     12        50
     13    );
    1014}
    1115
     
    193197
    194198// startet das vorladen der smilies an, nach 2000ms.
    195 jQuery( document ).on( "load", function() { setTimeout( function() { wpml_preload();}, 2000 ) } );
     199jQuery( document ).on(
     200    "load",
     201    function () {
     202        setTimeout(
     203            function () {
     204                wpml_preload();},
     205            2000
     206        ) }
     207);
    196208
    197209//
     
    217229function wpml_more_smilies(muid) {
    218230    if (jQuery( '#smiley2-' + muid ).html() == '&nbsp;' ) {
    219         jQuery( '#smiley2-' + muid ).html( unescape( wpml_more_html[muid] ) );
     231        var txt = document.createElement( "textarea" );
     232        txt.innerHTML = wpml_more_html[muid];
     233
     234        // jQuery( '#smiley2-' + muid ).html( unescape( wpml_more_html[muid] ) );
     235        jQuery( '#smiley2-' + muid ).html( txt.value );
    220236    }
    221237}
  • wp-monalisa/trunk/wpml_tinymce_plugin.js

    r3099926 r3380392  
    55 */
    66
    7 (function() {
     7(function () {
    88
    99    tinymce.create(
     
    1818             * @param {string} url Absolute URL to where the plugin is located.
    1919             */
    20             init : function(editor, url) {
     20            init : function (editor, url) {
    2121                function wpml_get_smilies() {
    2222                    var resmilies = _wpml_richedit_smilies;
     
    5252                            autohide: true,
    5353                            html: wpml_get_smilies,
    54                             onclick: function(e) {
     54                            onclick: function (e) {
    5555                                var eid = e.target.id;
    5656                                var it  = jQuery( '#' + eid ).attr( 'src' );
Note: See TracChangeset for help on using the changeset viewer.