Plugin Directory

Changeset 3095789


Ignore:
Timestamp:
05/31/2024 05:16:31 PM (22 months ago)
Author:
ircary
Message:

2024.05

*Release Date - 31 May 2024*

  • JS Tweaks
Location:
lct-useful-shortcodes-functions/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • lct-useful-shortcodes-functions/trunk/assets/js/theme_chunk.js

    r3086744 r3095789  
    3434    var update_el = $lct_theme_chunk_do( update_id );
    3535
    36 
    3736    //cleanup first
    3837    update_el.removeData();
    3938    update_el.html( '<h1 style="text-align: center;">LOADING...</h1>' );
    4039
     40    var content_type = update_el.data( 'content' );
    4141
    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    }
    4349
    4450
     
    5157            wpapi_nonce: lct_theme_chunk.wpapi_nonce,
    5258            post_id: post_id,
     59            afwp_root_post_id: afwp_root_post_id,
    5360            content_type: content_type,
    5461            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){})}
     1function 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  
    32103210 * @return bool
    32113211 * @since    0.0
    3212  * @verified 2019.02.11
     3212 * @verified 2024.05.21
    32133213 */
    32143214function lct_send_function_check_email( $args )
     
    32293229
    32303230
    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    }
    32373242
    32383243
  • lct-useful-shortcodes-functions/trunk/code/features/theme_chunk.php

    r3086744 r3095789  
    245245
    246246        $args = [ 'id' => $theme_chunk_id ];
    247         if ( in_array( $theme_chunk_id, [ 1533165 ] ) ) { //XBS
     247        if ( in_array( $theme_chunk_id, [ 1533165, 68094 ] ) ) { //XBS
    248248            $args['dont_decode'] = true;
    249249        }
  • lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php

    r3086744 r3095789  
    44 * Plugin URI: https://www.simplesmithmedia.com
    55 * Description: Shortcodes & Functions that will help make your life easier.
    6  * Version: 2024.04
     6 * Version: 2024.05
    77 * Author: SimpleSmithMedia
    88 * Author URI: https://www.simplesmithmedia.com
  • lct-useful-shortcodes-functions/trunk/readme.txt

    r3086744 r3095789  
    3333
    3434== Changelog ==
     35= 2024.05 =
     36*Release Date - 31 May 2024*
     37
     38* JS Tweaks
     39
    3540= 2024.04 =
    3641*Release Date - 14 May 2024*
Note: See TracChangeset for help on using the changeset viewer.