Changeset 3095789
- Timestamp:
- 05/31/2024 05:16:31 PM (22 months ago)
- Location:
- lct-useful-shortcodes-functions/trunk
- Files:
-
- 6 edited
-
assets/js/theme_chunk.js (modified) (2 diffs)
-
assets/js/theme_chunk.min.js (modified) (1 diff)
-
code/api/_helpers.php (modified) (2 diffs)
-
code/features/theme_chunk.php (modified) (1 diff)
-
lct-useful-shortcodes-functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lct-useful-shortcodes-functions/trunk/assets/js/theme_chunk.js
r3086744 r3095789 34 34 var update_el = $lct_theme_chunk_do( update_id ); 35 35 36 37 36 //cleanup first 38 37 update_el.removeData(); 39 38 update_el.html( '<h1 style="text-align: center;">LOADING...</h1>' ); 40 39 40 var content_type = update_el.data( 'content' ); 41 41 42 var content_type = update_el.data( 'content' ); 42 let afwp_root_post_id = null; 43 if( 44 typeof args !== 'undefined' 45 && typeof args.afwp_root_post_id !== 'undefined' 46 ) { 47 afwp_root_post_id = args.afwp_root_post_id; 48 } 43 49 44 50 … … 51 57 wpapi_nonce: lct_theme_chunk.wpapi_nonce, 52 58 post_id: post_id, 59 afwp_root_post_id: afwp_root_post_id, 53 60 content_type: content_type, 54 61 args: args, -
lct-useful-shortcodes-functions/trunk/assets/js/theme_chunk.min.js
r3086744 r3095789 1 function lct_theme_chunk_do(t,e){var n=jQuery.noConflict(),o=n("#lct_theme_chunk_"+t),c=(o.removeData(),o.html('<h1 style="text-align: center;">LOADING...</h1>'),o.data("content")); n.ajax({url:lct_theme_chunk.ajax_url,type:"POST",dataType:"json",data:{action:"lct_theme_chunk",wpapi_nonce:lct_theme_chunk.wpapi_nonce,post_id:t,content_type:c,args:e,height:n(window).height()-210}}).done(function(t){t.title&&o.closest(".modal-content").find(".modal-title").html(t.title),o.html(t.content)}).fail(function(t){console.log("Opps, that went bad! :: lct_theme_chunk_do()"),console.log(t)}).always(function(t){})}function lct_theme_chunk_acf_do(t,e){var n=jQuery.noConflict(),o=n("#lct_theme_chunk_"+t),c=(o.removeData(),o.html('<h1 style="text-align: center;">LOADING...</h1>'),o.data("content"));n.ajax({url:lct_theme_chunk.ajax_url,type:"POST",dataType:"json",data:{action:"lct_theme_chunk",wpapi_nonce:lct_theme_chunk.wpapi_nonce,post_id:t,content_type:c,args:e,height:n(window).height()-210,lct_root_post_id:lct_theme_chunk.lct_root_post_id}}).done(function(t){t.title&&o.closest(".modal-content").find(".modal-title").html(t.title),o.html(t.content)}).fail(function(t){console.log("Opps, that went bad! :: lct_theme_chunk_acf_do()"),console.log(t)}).always(function(t){})}1 function lct_theme_chunk_do(t,e){var n=jQuery.noConflict(),o=n("#lct_theme_chunk_"+t),c=(o.removeData(),o.html('<h1 style="text-align: center;">LOADING...</h1>'),o.data("content"));let _=null;void 0!==e&&void 0!==e.afwp_root_post_id&&(_=e.afwp_root_post_id),n.ajax({url:lct_theme_chunk.ajax_url,type:"POST",dataType:"json",data:{action:"lct_theme_chunk",wpapi_nonce:lct_theme_chunk.wpapi_nonce,post_id:t,afwp_root_post_id:_,content_type:c,args:e,height:n(window).height()-210}}).done(function(t){t.title&&o.closest(".modal-content").find(".modal-title").html(t.title),o.html(t.content)}).fail(function(t){console.log("Opps, that went bad! :: lct_theme_chunk_do()"),console.log(t)}).always(function(t){})}function lct_theme_chunk_acf_do(t,e){var n=jQuery.noConflict(),o=n("#lct_theme_chunk_"+t),c=(o.removeData(),o.html('<h1 style="text-align: center;">LOADING...</h1>'),o.data("content"));n.ajax({url:lct_theme_chunk.ajax_url,type:"POST",dataType:"json",data:{action:"lct_theme_chunk",wpapi_nonce:lct_theme_chunk.wpapi_nonce,post_id:t,content_type:c,args:e,height:n(window).height()-210,lct_root_post_id:lct_theme_chunk.lct_root_post_id}}).done(function(t){t.title&&o.closest(".modal-content").find(".modal-title").html(t.title),o.html(t.content)}).fail(function(t){console.log("Opps, that went bad! :: lct_theme_chunk_acf_do()"),console.log(t)}).always(function(t){})} -
lct-useful-shortcodes-functions/trunk/code/api/_helpers.php
r3086744 r3095789 3210 3210 * @return bool 3211 3211 * @since 0.0 3212 * @verified 20 19.02.113212 * @verified 2024.05.21 3213 3213 */ 3214 3214 function lct_send_function_check_email( $args ) … … 3229 3229 3230 3230 3231 $mail = new lct_features_class_mail( lct_load_class_default_args() ); 3232 $mail->set_from( 'noreply@' . zxza( '-formcheck.com' ), zxzb( ' Auto Function Check' ) ); 3233 $mail->set_to( get_option( 'admin_email' ) ); 3234 $mail->set_subject( sprintf( '%s is not working properly.', $args['function'] ) ); 3235 $mail->set_message( sprintf( '%s at %s%s%s', $mail->get_subject(), get_bloginfo( 'url' ), $_SERVER['REQUEST_URI'], $message ) ); 3236 $mail->send(); 3231 if ( class_exists( 'lct_features_class_mail' ) ) { 3232 $mail = new lct_features_class_mail( lct_load_class_default_args() ); 3233 $mail->set_from( 'noreply@' . zxza( '-formcheck.com' ), zxzb( ' Auto Function Check' ) ); 3234 $mail->set_to( get_option( 'admin_email' ) ); 3235 $mail->set_subject( sprintf( '%s is not working properly.', $args['function'] ) ); 3236 $mail->set_message( sprintf( '%s at %s%s%s', $mail->get_subject(), get_bloginfo( 'url' ), $_SERVER['REQUEST_URI'], $message ) ); 3237 $mail->send(); 3238 } else { 3239 lct_debug_to_error_log( 'TRIGGERED lct_send_function_check_email() :: ' . $message ); 3240 lct_debug_to_error_log( $args ); 3241 } 3237 3242 3238 3243 -
lct-useful-shortcodes-functions/trunk/code/features/theme_chunk.php
r3086744 r3095789 245 245 246 246 $args = [ 'id' => $theme_chunk_id ]; 247 if ( in_array( $theme_chunk_id, [ 1533165 ] ) ) { //XBS247 if ( in_array( $theme_chunk_id, [ 1533165, 68094 ] ) ) { //XBS 248 248 $args['dont_decode'] = true; 249 249 } -
lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php
r3086744 r3095789 4 4 * Plugin URI: https://www.simplesmithmedia.com 5 5 * Description: Shortcodes & Functions that will help make your life easier. 6 * Version: 2024.0 46 * Version: 2024.05 7 7 * Author: SimpleSmithMedia 8 8 * Author URI: https://www.simplesmithmedia.com -
lct-useful-shortcodes-functions/trunk/readme.txt
r3086744 r3095789 33 33 34 34 == Changelog == 35 = 2024.05 = 36 *Release Date - 31 May 2024* 37 38 * JS Tweaks 39 35 40 = 2024.04 = 36 41 *Release Date - 14 May 2024*
Note: See TracChangeset
for help on using the changeset viewer.