Changeset 3380392
- Timestamp:
- 10/18/2025 05:14:43 AM (4 months ago)
- Location:
- wp-monalisa/trunk
- Files:
-
- 11 edited
-
readme.txt (modified) (2 diffs)
-
wp-monalisa.php (modified) (2 diffs)
-
wpml-admin.php (modified) (5 diffs)
-
wpml-autoupdate.php (modified) (4 diffs)
-
wpml-comment.php (modified) (3 diffs)
-
wpml-edit.php (modified) (1 diff)
-
wpml-func.php (modified) (1 diff)
-
wpml-setup.php (modified) (2 diffs)
-
wpml_gutenberg.js (modified) (3 diffs)
-
wpml_script.js (modified) (3 diffs)
-
wpml_tinymce_plugin.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-monalisa/trunk/readme.txt
r3279222 r3380392 5 5 Requires at least: 4.0 6 6 Tested up to: 6.8 7 Stable tag: 6. 57 Stable tag: 6.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 88 88 == Changelog == 89 89 90 = v6.6 (2025-09-22) = 91 * fixed problem with javascript bbPress and pull-down 92 90 93 = v6.5 (2024-08-31) = 91 94 * added updated spanish translation, thanks to Geraldo -
wp-monalisa/trunk/wp-monalisa.php
r3144540 r3380392 4 4 * Plugin URI: http://www.tuxlog.de/wordpress/2009/wp-monalisa/ 5 5 * 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. 56 * Version: 6.6 7 7 * Author: Hans Matzen <webmaster at tuxlog dot de> 8 8 * Author URI: http://www.tuxlog.de … … 13 13 14 14 /** 15 * Copyright 2009-202 4Hans Matzen (email : webmaster at tuxlog dot de)15 * Copyright 2009-2025 Hans Matzen (email : webmaster at tuxlog dot de) 16 16 * 17 17 * This program is free software; you can redistribute it and/or modify -
wp-monalisa/trunk/wpml-admin.php
r3144540 r3380392 143 143 // 144 144 if ( isset( $_POST['action'] ) && 'editicons' == $_POST['action'] && isset( $_POST['baction'] ) ) { 145 // check nonce.145 // check nonce. 146 146 if ( ! isset( $_POST['wpm_nonce2'] ) ) { 147 147 die( "<br><br>Looks like you didn't send any credentials. Please reload the page. " ); … … 234 234 // 235 235 if ( isset( $_POST['action'] ) && 'editicons' == $_POST['action'] && isset( $_POST['updateicons'] ) ) { 236 // check nonce.236 // check nonce. 237 237 if ( ! isset( $_POST['wpm_nonce2'] ) ) { 238 238 die( "<br><br>Looks like you didn't send any credentials. Please reload the page. " ); … … 538 538 // icons. 539 539 $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' ) ) . '" />'; 541 541 $out .= '<input type="hidden" name="action" value="editicons" />'; 542 542 … … 696 696 } 697 697 $out .= "</tr>\n"; 698 $count ++; // zaehler erhöhen.698 $count++; // zaehler erhöhen. 699 699 } 700 700 … … 801 801 ); 802 802 } 803 804 -
wp-monalisa/trunk/wpml-autoupdate.php
r2790636 r3380392 58 58 // icons ordner in backup verzeichnis kopieren. 59 59 $wp_filesystem->mkdir( $backupdir ); 60 if ( $wp_filesystem->is_dir( dirname( __FILE__ ). '/icons' ) ) {60 if ( $wp_filesystem->is_dir( __DIR__ . '/icons' ) ) { 61 61 $wp_filesystem->mkdir( $backupdir . '/icons' ); 62 62 63 $icons = $wp_filesystem->dirlist( dirname( __FILE__ ). '/icons' );63 $icons = $wp_filesystem->dirlist( __DIR__ . '/icons' ); 64 64 foreach ( array_keys( $icons ) as $i ) { 65 65 if ( ! in_array( $i, $deficons, true ) ) { 66 66 $wp_filesystem->copy( 67 dirname( __FILE__ ). '/icons/' . $i,67 __DIR__ . '/icons/' . $i, 68 68 $backupdir . '/icons/' . $i 69 69 ); … … 73 73 74 74 // 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' ) ) { 76 76 $wp_filesystem->copy( 77 dirname( __FILE__ ). '/wp-monalisa.css',77 __DIR__ . '/wp-monalisa.css', 78 78 $backupdir . '/wp-monalisa.css' 79 79 ); 80 80 } 81 82 81 } 83 82 … … 89 88 90 89 $backupdir = $wp_filesystem->wp_content_dir() . '/upgrade/wpml_update/'; 91 $pdir = dirname( __FILE__ );90 $pdir = __DIR__; 92 91 93 92 // individuelle css datei zurück holen. … … 117 116 add_filter( 'upgrader_pre_install', 'hm_backup', 10, 2 ); 118 117 add_filter( 'upgrader_post_install', 'hm_recover', 10, 2 ); 119 120 -
wp-monalisa/trunk/wpml-comment.php
r3144540 r3380392 121 121 */ 122 122 function get_wpml_comment( $postid = 0 ) { 123 global $wpdb, $post,$wpml_first_preload;123 global $wpdb, $post, $wpml_first_preload; 124 124 125 125 // if post->ID is not set (like in BuddyPress), we use -1 to get a fals for the comparison for sure. … … 305 305 $out1strow = str_replace( 'icodiv-', 'icodiv1-', $out1strow ); 306 306 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 ); 308 309 309 310 // die Liste mit den images wird nur beim ersten Mal ausgegeben. … … 333 334 return $erg; 334 335 } 335 -
wp-monalisa/trunk/wpml-edit.php
r3099926 r3380392 117 117 function wpml_metabox() { 118 118 require_once 'wpml-func.php'; 119 global $wpdb, $post;119 global $wpdb, $post; 120 120 121 121 // table name. -
wp-monalisa/trunk/wpml-func.php
r3099926 r3380392 323 323 add_filter( 324 324 'safe_style_css', 325 function ( $styles ) {325 function ( $styles ) { 326 326 $styles[] = 'display'; 327 327 return $styles; -
wp-monalisa/trunk/wpml-setup.php
r3099926 r3380392 168 168 update_option( 'wpml_use_smilies_backup', $usm ); 169 169 update_option( 'use_smilies', false ); 170 171 170 } 172 171 … … 199 198 delete_option( 'wpml_use_smilies_backup' ); 200 199 } 201 -
wp-monalisa/trunk/wpml_gutenberg.js
r3099926 r3380392 16 16 var i = 1; 17 17 window._wpml_richedit_smilies.forEach( 18 function (smiley){18 function (smiley) { 19 19 out += '<a href="#" title="' + smiley[1] + '"><img src="' + smiley[2] + '"></a>'; 20 20 if ( i % spr == 0 ) { … … 28 28 document.body.appendChild( ppo ); 29 29 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 ) 31 35 return ppo; 32 36 } 33 37 34 ( function ( wp ) {35 var wpml_gutenbergbutton = function ( props ) {38 ( function ( wp ) { 39 var wpml_gutenbergbutton = function ( props ) { 36 40 return wp.element.createElement( 37 41 wp.blockEditor.RichTextToolbarButton, … … 39 43 icon: 'smiley', 40 44 title: 'Smilies', 41 onClick: function () {45 onClick: function () { 42 46 var ppo = wpml_gutenberg_popover(); 43 47 44 48 ppo.querySelectorAll( "a" ).forEach( 45 function (smlink){49 function (smlink) { 46 50 smlink.addEventListener( 47 51 "click", 48 function (){52 function () { 49 53 var emoticon = smlink.getAttribute( "title" ); 50 54 var emoticon_link = smlink.firstChild.getAttribute( "src" ); -
wp-monalisa/trunk/wpml_script.js
r3099926 r3380392 7 7 /* wait for jquery to be loaded */ 8 8 while ( ! window.jQuery) { 9 setTimeout( function() { defer( method ) }, 50 ); 9 setTimeout( 10 function () { 11 defer( method ) }, 12 50 13 ); 10 14 } 11 15 … … 193 197 194 198 // startet das vorladen der smilies an, nach 2000ms. 195 jQuery( document ).on( "load", function() { setTimeout( function() { wpml_preload();}, 2000 ) } ); 199 jQuery( document ).on( 200 "load", 201 function () { 202 setTimeout( 203 function () { 204 wpml_preload();}, 205 2000 206 ) } 207 ); 196 208 197 209 // … … 217 229 function wpml_more_smilies(muid) { 218 230 if (jQuery( '#smiley2-' + muid ).html() == ' ' ) { 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 ); 220 236 } 221 237 } -
wp-monalisa/trunk/wpml_tinymce_plugin.js
r3099926 r3380392 5 5 */ 6 6 7 (function () {7 (function () { 8 8 9 9 tinymce.create( … … 18 18 * @param {string} url Absolute URL to where the plugin is located. 19 19 */ 20 init : function (editor, url) {20 init : function (editor, url) { 21 21 function wpml_get_smilies() { 22 22 var resmilies = _wpml_richedit_smilies; … … 52 52 autohide: true, 53 53 html: wpml_get_smilies, 54 onclick: function (e) {54 onclick: function (e) { 55 55 var eid = e.target.id; 56 56 var it = jQuery( '#' + eid ).attr( 'src' );
Note: See TracChangeset
for help on using the changeset viewer.