Plugin Directory

Changeset 2493704


Ignore:
Timestamp:
03/11/2021 11:10:14 PM (5 years ago)
Author:
ircary
Message:

2021.1

*Release Date - 11 March 2021*

  • WP v5.6.2 Ready
  • Avada v7.2.1 Ready
  • PHP v7.4 Ready
  • CSS Tweaks
  • Added FILTER:
    • lct/acf_hide_this/show_this; lct_acf_hide_this()
    • lct/acf/display_form/type_section_header/value; lct_acf_format_value()
    • lct/acf/format_value/type_section_header/value; lct_acf_format_value()
  • Added ACTION:
    • lct/acf/display_form/type_section_header; lct_acf_format_value()
    • lct/acf/format_value/type_section_header; lct_acf_format_value()
  • Added:
    • add_yoast_ga_onclick()
  • Updated:
    • lct_acf_hide_this()
    • lct_acf_format_value()
  • Improved:
    • render_field_viewonly()
    • lct_acf_get_full_field_name()
    • PDER{}send_ereminders()
    • PDER{}send_ereminder()
    • lct_get_taxonomy_by_path()
    • lct_quick_send_email()
    • lct_acf_get_POST_value()
Location:
lct-useful-shortcodes-functions/trunk
Files:
2 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • lct-useful-shortcodes-functions/trunk/assets/css/plugins/acf/main.min.css

    r2378923 r2493704  
    1 ul.acf-radio-list li input[type="radio"]{zoom:1.3;-ms-transform:scale(1.3);-moz-transform:scale(1.3);-webkit-transform:scale(1.3);-o-transform:scale(1.3);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-6px 10px 0 0 !important}ul.acf-radio-list li{font-size:20px}ul.acf-radio-list.acf-bl li{line-height:30px}.acf-field-true-false input[type="checkbox"]{zoom:1.7;transform:scale(1.7);-ms-transform:scale(1.7);-webkit-transform:scale(1.7);-o-transform:scale(1.7);-moz-transform:scale(1.7);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-7px 10px 0 0 !important}.ua-mobile-iphone .acf-field-true-false input[type="checkbox"],.ua-mobile-ipad .acf-field-true-false input[type="checkbox"]{margin:-20px 15px 0 0 !important}.acf-field-true-false label{font-size:20px}.select2-container.-acf .select2-choice{text-decoration:none !important}.acf-field.acf-c0.alignright{clear:none !important}.lct_acf_display_form .hidden-by-conditional-logic{display:inherit !important}.lct_acf_display_form .acf-field-date-picker.hidden-by-conditional-logic{display:block !important}.lct_instant .acf-form-submit{display:none !important}.lct_instant.show_submit .acf-form-submit{display:block !important}.submit_center .acf-form-submit{text-align:center}.submit_right .acf-form-submit{text-align:right}.acf-form .show_on_pdf{display:none !important}.dompdf_right{border-left:none !important}.dompdf_inline_left{border-left:none !important}.lct_ol_start{padding-bottom:0 !important}.lct_ol_start ol{margin-bottom:0}.lct_ol_continued{padding-top:0 !important;padding-bottom:0 !important;border-top:none !important;min-height:1px !important}.lct_ol_continued ol{margin-top:0;margin-bottom:0}.lct_ol_end{padding-top:0 !important;border-top:none !important}.lct_ol_end ol{margin-top:0}.lct_float_right_initial{padding-top:0 !important;padding-bottom:0 !important;border-top:none !important;border-left:none !important;border-right:none !important;min-height:1px !important}.lct_float_right_initial .acf-label,.lct_float_right_initial .acf-label label{margin-bottom:0 !important}.lct_float_right_initial .acf-input input{height:28px !important;padding-top:0 !important;padding-bottom:0 !important}.lct_acf_display_form .lct_acf_checkbox_column{display:inline-block;float:none;vertical-align:top}.lct_acf_display_form .lct_acf_checkbox_column p{margin-bottom:0}.lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"]{zoom:1.7;transform:scale(1.7);-ms-transform:scale(1.7);-webkit-transform:scale(1.7);-o-transform:scale(1.7);-moz-transform:scale(1.7);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-7px 10px 0 0}.ua-mobile-iphone .lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"],.ua-mobile-ipad .lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"]{zoom:1.5 !important;transform:scale(1.5) !important;-ms-transform:scale(1.5) !important;-webkit-transform:scale(1.5) !important;-o-transform:scale(1.5) !important;-moz-transform:scale(1.5) !important;margin:-10px 15px 0 0 !important}.lct_large_checkbox ul.acf-checkbox-list li label{font-size:20px;line-height:42px}.lct_nomp_top{margin-top:0 !important;padding-top:0 !important;border-top:none !important}.lct_nomp_bottom{margin-bottom:0 !important;padding-bottom:0 !important}.lct_nomp_top_n_bottom{margin-top:0 !important;margin-bottom:0 !important;padding-top:0 !important;padding-bottom:0 !important;border-top:none !important}.lct_acf_viewonly .acf-form-submit,.lct_acf_viewonly.lct_instant.show_submit .acf-form-submit,.lct_acf_viewonly.acf-field .acf-input select,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input select,.lct_acf_viewonly.acf-field .acf-input textarea,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input textarea,.lct_acf_viewonly.acf-field .acf-input .acf-input-wrap,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-input-wrap,.lct_acf_viewonly.acf-field:not(.lct_type_repeater) .acf-input .select2-container,.lct_acf_viewonly:not(.lct_type_repeater) .acf-field:not(.show-imp) .acf-input .select2-container,.lct_acf_viewonly.acf-field .acf-input .acf-true-false,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-true-false,.lct_acf_viewonly.acf-field .acf-input .acf-radio-list,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-radio-list,.lct_acf_viewonly.acf-field .acf-input .acf-repeater .acf-row-handle.remove,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-repeater .acf-row-handle.remove,.lct_acf_viewonly.acf-field .acf-input .acf-repeater .acf-actions,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-repeater .acf-actions,.lct_acf_viewonly.acf-field .acf-input .acf-taxonomy-field,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-taxonomy-field,.lct_acf_viewonly.acf-field.acf-field-checkbox .acf-input .acf-checkbox-list,.lct_acf_viewonly .acf-field.acf-field-checkbox:not(.show-imp) .acf-input .acf-checkbox-list,.lct_acf_new_post .lct_acf_viewonly{display:none !important}.lct_acf_viewonly.acf-field .acf-input .acf-checkbox-list ul,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-checkbox-list ul{padding-left:20px}.lct_acf_viewonly.acf-field.acf-field-checkbox .acf-input ul,.lct_acf_viewonly .acf-field.acf-field-checkbox:not(.show-imp) .acf-input ul{padding-left:20px}.hide_label div.acf-label,.hide_label .acf-label label{display:none}.hide_but_save{display:none}.hide_input div.acf-input,.hide_input .acf-input input{display:none}.hide_label_show_desc .acf-label label{display:none}.lct_acf_display_form .hide_on_pdf{display:none !important}
     1ul.acf-radio-list li input[type="radio"]{zoom:1.3;-ms-transform:scale(1.3);-moz-transform:scale(1.3);-webkit-transform:scale(1.3);-o-transform:scale(1.3);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-6px 10px 0 0 !important}ul.acf-radio-list li{font-size:20px}ul.acf-radio-list.acf-bl li{line-height:30px}.acf-field-true-false input[type="checkbox"]{zoom:1.7;transform:scale(1.7);-ms-transform:scale(1.7);-webkit-transform:scale(1.7);-o-transform:scale(1.7);-moz-transform:scale(1.7);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-7px 10px 0 0 !important}.ua-mobile-iphone .acf-field-true-false input[type="checkbox"],.ua-mobile-ipad .acf-field-true-false input[type="checkbox"]{margin:-20px 15px 0 0 !important}.acf-field-true-false label{font-size:20px}.select2-container.-acf .select2-choice{text-decoration:none !important}.acf-field.acf-c0.alignright{clear:none !important}.lct_acf_display_form .hidden-by-conditional-logic{display:inherit !important}.lct_acf_display_form .acf-field-date-picker.hidden-by-conditional-logic{display:block !important}.lct_instant .acf-form-submit{display:none !important}.lct_instant.show_submit .acf-form-submit{display:block !important}.submit_center .acf-form-submit{text-align:center}.submit_right .acf-form-submit{text-align:right}.acf-form .show_on_pdf{display:none !important}.dompdf_right{border-left:none !important}.dompdf_inline_left{border-left:none !important}.lct_ol_start{padding-bottom:0 !important}.lct_ol_start ol{margin-bottom:0}.lct_ol_continued{padding-top:0 !important;padding-bottom:0 !important;border-top:none !important;min-height:1px !important}.lct_ol_continued ol{margin-top:0;margin-bottom:0}.lct_ol_end{padding-top:0 !important;border-top:none !important}.lct_ol_end ol{margin-top:0}.lct_float_right_initial{padding-top:0 !important;padding-bottom:0 !important;border-top:none !important;border-left:none !important;border-right:none !important;min-height:1px !important}.lct_float_right_initial .acf-label,.lct_float_right_initial .acf-label label{margin-bottom:0 !important}.lct_float_right_initial .acf-input input{height:28px !important;padding-top:0 !important;padding-bottom:0 !important}.lct_acf_display_form .lct_acf_checkbox_column{display:inline-block;float:none;vertical-align:top}.lct_acf_display_form .lct_acf_checkbox_column p{margin-bottom:0}.lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"]{zoom:1.7;transform:scale(1.7);-ms-transform:scale(1.7);-webkit-transform:scale(1.7);-o-transform:scale(1.7);-moz-transform:scale(1.7);transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-o-transform-origin:0 0;-moz-transform-origin:0 0;margin:-7px 10px 0 0}.ua-mobile-iphone .lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"],.ua-mobile-ipad .lct_large_checkbox ul.acf-checkbox-list li input[type="checkbox"]{zoom:1.5 !important;transform:scale(1.5) !important;-ms-transform:scale(1.5) !important;-webkit-transform:scale(1.5) !important;-o-transform:scale(1.5) !important;-moz-transform:scale(1.5) !important;margin:-10px 15px 0 0 !important}.lct_large_checkbox ul.acf-checkbox-list li label{font-size:20px;line-height:42px}.lct_nomp_top{margin-top:0 !important;padding-top:0 !important;border-top:none !important}.lct_nomp_bottom{margin-bottom:0 !important;padding-bottom:0 !important}.lct_nomp_top_n_bottom{margin-top:0 !important;margin-bottom:0 !important;padding-top:0 !important;padding-bottom:0 !important;border-top:none !important}.lct_acf_viewonly .acf-form-submit,.lct_acf_viewonly.lct_instant.show_submit .acf-form-submit,.lct_acf_viewonly.acf-field .acf-input select,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input select,.lct_acf_viewonly.acf-field .acf-input textarea,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input textarea,.lct_acf_viewonly.acf-field .acf-input .acf-input-wrap,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-input-wrap,.lct_acf_viewonly.acf-field:not(.lct_type_repeater) .acf-input .select2-container,.lct_acf_viewonly:not(.lct_type_repeater) .acf-field:not(.show-imp) .acf-input .select2-container,.lct_acf_viewonly.acf-field .acf-input .acf-true-false,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-true-false,.lct_acf_viewonly.acf-field .acf-input .acf-radio-list,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-radio-list,.lct_acf_viewonly.acf-field .acf-input .acf-repeater .acf-row-handle.remove,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-repeater .acf-row-handle.remove,.lct_acf_viewonly.acf-field .acf-input .acf-repeater .acf-actions,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-repeater .acf-actions,.lct_acf_viewonly.acf-field .acf-input .acf-taxonomy-field input,.lct_acf_viewonly.acf-field .acf-input .acf-taxonomy-field select,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-taxonomy-field input,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-taxonomy-field select,.lct_acf_viewonly.acf-field.acf-field-checkbox .acf-input .acf-checkbox-list,.lct_acf_viewonly .acf-field.acf-field-checkbox:not(.show-imp) .acf-input .acf-checkbox-list,.lct_acf_new_post .lct_acf_viewonly{display:none !important}.lct_acf_viewonly.acf-field .acf-input .acf-checkbox-list ul,.lct_acf_viewonly .acf-field:not(.show-imp) .acf-input .acf-checkbox-list ul{padding-left:20px}.lct_acf_viewonly.acf-field.acf-field-checkbox .acf-input ul,.lct_acf_viewonly .acf-field.acf-field-checkbox:not(.show-imp) .acf-input ul{padding-left:20px}.hide_label div.acf-label,.hide_label .acf-label label{display:none}.hide_but_save{display:none}.hide_input div.acf-input,.hide_input .acf-input input{display:none}.hide_label_show_desc .acf-label label{display:none}.lct_acf_display_form .hide_on_pdf{display:none !important}
  • lct-useful-shortcodes-functions/trunk/available/email-reminder/includes/classes/PDER.php

    r2459988 r2493704  
    294294     *
    295295     * @since    7.3
    296      * @verified 2018.03.05
     296     * @verified 2021.03.04
    297297     */
    298298    public static function send_ereminders() {
    299299        $pd         = new PDER;
    300         $ereminders = $pd->get_ereminders();
     300        $DateTime   = lct_DateTime();
     301        $date_query = [
     302            'before'    => [
     303                'year'   => $DateTime->format( 'Y' ),
     304                'month'  => $DateTime->format( 'm' ),
     305                'day'    => $DateTime->format( 'd' ),
     306                'hour'   => $DateTime->format( 'H' ),
     307                'minute' => $DateTime->format( 'i' ),
     308                'second' => $DateTime->format( 's' ),
     309            ],
     310            'inclusive' => true,
     311        ];
     312        $ereminders = $pd->get_ereminders( [ 'date_query' => $date_query ] );
    301313
    302314
    303315        if ( ! empty( $ereminders ) ) {
    304316            foreach ( $ereminders as $ereminder ) {
    305                 $pd->send_ereminder( $ereminder->ID );
     317                if ( $ereminder->post_date_gmt < lct_format_current_time_gmt() )
     318                    $pd->send_ereminder( $ereminder->ID );
    306319            }
    307320        }
     
    315328     *
    316329     * @since        2018.26
    317      * @verified     2020.11.25
    318      * @noinspection PhpStatementHasEmptyBodyInspection
    319      * @noinspection PhpMissingParamTypeInspection
     330     * @verified     2021.03.04
    320331     */
    321332    function send_ereminder( $post_id ) {
     
    335346            if ( $ereminder->post_excerpt )
    336347                $to = explode( ',', $ereminder->post_excerpt );
     348            foreach ( $to as $k => $v ) {
     349                if ( ! is_email( $v ) )
     350                    unset( $to[ $k ] );
     351            }
    337352
    338353
     
    353368            if ( $reply_to === null )
    354369                $reply_to = [];
     370            if ( ! is_array( $reply_to ) )
     371                $reply_to = [ $reply_to ];
    355372            $reply_to = apply_filters( 'lct/pder/reply_to_email', $reply_to, $ereminder );
     373            foreach ( $reply_to as $k => $v ) {
     374                if ( ! is_email( $v ) )
     375                    unset( $reply_to[ $k ] );
     376            }
    356377
    357378
     
    362383            if ( $cc === null )
    363384                $cc = [];
     385            if ( ! is_array( $cc ) )
     386                $cc = explode( ',', $cc );
    364387            $cc = apply_filters( 'lct/pder/cc_email', $cc, $ereminder );
     388            foreach ( $cc as $k => $v ) {
     389                if ( ! is_email( $v ) )
     390                    unset( $cc[ $k ] );
     391            }
    365392
    366393
     
    371398            if ( $bcc === null )
    372399                $bcc = [];
     400            if ( ! is_array( $bcc ) )
     401                $bcc = explode( ',', $bcc );
    373402            $bcc = apply_filters( 'lct/pder/bcc_email', $bcc, $ereminder );
     403            foreach ( $bcc as $k => $v ) {
     404                if ( ! is_email( $v ) )
     405                    unset( $bcc[ $k ] );
     406            }
    374407
    375408
  • lct-useful-shortcodes-functions/trunk/code/admin/git/_lct_wp/.htaccess

    r2459988 r2493704  
    187187<IfModule mod_rewrite.c>
    188188RewriteEngine On
     189RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    189190RewriteBase /
    190191RewriteRule ^index\.php$ - [L]
  • lct-useful-shortcodes-functions/trunk/code/admin/git/_lct_wp/_editzz-v8.3.txt

    r2459988 r2493704  
    5252
    5353
    54 <!-- a :: child to "Avada"  ||  Last Checked: 2020.12.08 -->
     54<!-- a :: child to "Avada"  ||  Last Checked: 2021.02.22 -->
    5555ADDED
    5656    /a/*
    5757
    5858
    59 <!-- Avada v7.1.2  ||  Last Checked: 2020.12.08 -->
     59<!-- Avada v7.2.1  ||  Last Checked: 2021.02.22 -->
    6060NONE
  • lct-useful-shortcodes-functions/trunk/code/api/_helpers.php

    r2459988 r2493704  
    29222922 * @return bool
    29232923 * @since    2018.22
    2924  * @verified 2020.09.09
     2924 * @verified 2021.03.09
    29252925 */
    29262926function lct_quick_send_email( $custom_args = [] ) {
     
    29362936    $args['send_limiter'] = $args['message'];
    29372937    $args                 = wp_parse_args( $custom_args, $args );
     2938    if ( $args['send_limiter'] === 'Not Set' && $args['message'] !== 'Not Set' )
     2939        $args['send_limiter'] = $args['message'];
    29382940    $args['send_limiter'] = __FUNCTION__ . '_' . md5( $args['send_limiter'] );
    29392941
  • lct-useful-shortcodes-functions/trunk/code/features/access.php

    r2378923 r2493704  
    14071407     *
    14081408     * @since    2017.34
    1409      * @verified 2020.09.09
     1409     * @verified 2021.02.27
    14101410     */
    14111411    function render_field_viewonly( $field ) {
    14121412        $viewonly          = zxzu( 'viewonly' );
    14131413        $already_processed = lct_get_later( 'acf_render_field_viewonly_fields', '', [] );
     1414        if ( ! ( $acf_display_form_active = lct_get_setting( 'acf_display_form_active' ) ) )
     1415            lct_update_setting( 'acf_display_form_active', true );
    14141416
    14151417
     
    14811483            echo lct_acf_format_value( $field['value'], lct_get_field_post_id( $field ), $field );
    14821484        }
     1485
     1486
     1487        if ( ! $acf_display_form_active )
     1488            lct_update_setting( 'acf_display_form_active', null );
    14831489    }
    14841490
  • lct-useful-shortcodes-functions/trunk/code/features/api/get.php

    r2183253 r2493704  
    2323 * @since    2.1.0
    2424 * @since    5.40
     25 * @verified 2021.03.05
    2526 */
    2627function lct_get_taxonomy_by_path( $category_path, $taxonomies = 'all', $full_match = true, $output = OBJECT ) {
     
    6465
    6566            while(
    66                 (
    67                     $curcategory->parent != 0
    68                 ) &&
    69                 (
    70                     $curcategory->parent != $curcategory->term_id
    71                 )
     67                ( $curcategory->parent != 0 ) &&
     68                ( $curcategory->parent != $curcategory->term_id )
    7269            ) {
    7370                $curcategory = get_term( $curcategory->parent, $taxonomy );
    7471
    7572
    76                 if ( lct_is_wp_error( $curcategory ) ) {
     73                if ( lct_is_wp_error( $curcategory ) )
    7774                    return $curcategory;
    78                 }
    7975
    8076
     
    8379
    8480
    85             if ( $path == $full_path ) {
    86                 $category = get_term( $category->term_id, $taxonomy, $output );
    87                 _make_cat_compat( $category );
    88 
    89 
    90                 return $category;
    91             }
    92         }
     81            if ( $path === $full_path )
     82                return get_term( $category->term_id, $taxonomy, $output );
     83        }
     84
    9385
    9486        // If full matching is not required, return the first cat that matches the leaf.
    95         if ( ! $full_match ) {
    96             $category = get_term( reset( $categories )->term_id, $taxonomy, $output );
    97             _make_cat_compat( $category );
    98 
    99 
    100             return $category;
    101         }
     87        if ( ! $full_match )
     88            return get_term( reset( $categories )->term_id, $taxonomy, $output );
    10289    }
    10390
  • lct-useful-shortcodes-functions/trunk/code/plugins/Avada/_admin.php

    r2459988 r2493704  
    6767        add_filter( 'fusion_attr_image-shortcode-tag-element', [ $this, 'prevent_image_element_lazy_loading_deep' ], 999 );
    6868        add_filter( 'fusion_shortcode_content', [ $this, 'fusion_shortcode_content_fusion_imageframe' ], 10, 3 );
     69
     70        add_filter( 'fusion_element_button_content', [ $this, 'add_yoast_ga_onclick' ], 10, 2 );
    6971
    7072
     
    13711373        }
    13721374    }
     1375
     1376
     1377    /**
     1378     * Add a Google Analytics event to a _blank fusion button
     1379     *
     1380     * @param sting $html
     1381     * @param array $args
     1382     *
     1383     * @return string
     1384     * @date     2021.03.08
     1385     * @since    2021.1
     1386     * @verified 2021.03.08
     1387     */
     1388    function add_yoast_ga_onclick( $html, $args ) {
     1389        if ( $args['target'] === '_blank' )
     1390            $html = str_replace( 'target="_blank"', 'target="_blank" ' . lct_get_gaTracker_onclick( 'Outbound Button', $args['link'] ), $html );
     1391
     1392
     1393        return $html;
     1394    }
    13731395}
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/api/_sort.php

    r2183253 r2493704  
    2323
    2424
    25     $full_field_name = $prefix . $delimiter . $field_name;
    26 
    27     return $full_field_name;
     25    return $prefix . $delimiter . $field_name;
    2826}
    2927
     
    367365 * @return string
    368366 * @since    7.31
    369  * @verified 2016.11.12
     367 * @verified 2021.02.28
    370368 */
    371369function lct_acf_hide_this( $field, $post_id ) {
     
    415413
    416414
    417         if ( ! $show_this ) {
     415        if ( ! ( $show_this = apply_filters( 'lct/acf_hide_this/show_this', $show_this, $field, $post_id ) ) ) {
    418416            $selectors = [
    419417                '[data-key="' . $field['key'] . '"]',
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/api/form.php

    r2459988 r2493704  
    629629 * @return mixed
    630630 * @since    2017.34
    631  * @verified 2020.10.05
     631 * @verified 2021.02.28
    632632 */
    633633function lct_acf_format_value( $raw_value, $post_id, $field, $clear_cache = false, $class = null ) {
     
    12361236
    12371237        /**
     1238         * lct_section_header
     1239         */
     1240        case zxzu( 'section_header' ):
     1241            /**
     1242             * Display Form or PDF
     1243             */
     1244            if ( lct_is_display_form_or_pdf() ) {
     1245                $value = ' ';
     1246                $value = apply_filters( 'lct/acf/display_form/type_section_header/value', $value, $field, $class );
     1247                do_action( 'lct/acf/display_form/type_section_header', $field );
     1248
     1249
     1250                /**
     1251                 * Default
     1252                 */
     1253            } else {
     1254                $value = apply_filters( 'lct/acf/format_value/type_section_header/value', $value, $field, $class );
     1255                do_action( 'lct/acf/format_value/type_section_header', $field );
     1256            }
     1257            break;
     1258
     1259
     1260        /**
    12381261         * default
    12391262         */
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/api/get.php

    r2201624 r2493704  
    11411141 * @return mixed|null
    11421142 * @since    2019.4
    1143  * @verified 2019.11.08
     1143 * @verified 2021.03.09
    11441144 */
    11451145function lct_acf_get_POST_value( $selector, $post_id = null, $format_value = false, $double_check = true ) {
    1146     $post_id = lct_get_acf_post_id( $post_id );
     1146    if ( is_numeric( $post_id ) )
     1147        $post_id = lct_get_acf_post_id( $post_id );
    11471148
    11481149
  • lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php

    r2459988 r2493704  
    44 * Plugin URI: https://www.simplesmithmedia.com
    55 * Description: Shortcodes & Functions that will help make your life easier.
    6  * Version: 2020.14
     6 * Version: 2021.1
    77 * Author: SimpleSmithMedia
    88 * Author URI: https://www.simplesmithmedia.com
     
    1010 * Domain Path: /lang
    1111 * License: GPLv2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
    12  * Copyright 2020 SimpleSmithMedia (email : info@simplesmithmedia.com)
     12 * Copyright 2021 SimpleSmithMedia (email : info@simplesmithmedia.com)
    1313 *
    14  * @copyright 2020
     14 * @copyright 2021
    1515 * @license   GPLv2
    1616 * @since     1.0
     
    1818
    1919/**
    20  * Copyright (C) 2020 SimpleSmithMedia
     20 * Copyright (C) 2021 SimpleSmithMedia
    2121 * *
    2222 * This program is distributed in the hope that it will be useful,
  • lct-useful-shortcodes-functions/trunk/readme.txt

    r2459988 r2493704  
    22Contributors: ircary, pimg
    33Tags: Functions, Shortcodes
    4 Requires at least: 4.0
    5 Tested up to: 5.5.1
     4Requires at least: 5.0
     5Tested up to: 5.6.2
    66Requires PHP: 5.6
    77License: GPLv2 or later
     
    2929
    3030== Changelog ==
     31= 2021.1 =
     32*Release Date - 11 March 2021*
     33
     34* WP v5.6.2 Ready
     35* Avada v7.2.1 Ready
     36* PHP v7.4 Ready
     37* CSS Tweaks
     38* Added FILTER:
     39    * lct/acf_hide_this/show_this; lct_acf_hide_this()
     40    * lct/acf/display_form/type_section_header/value; lct_acf_format_value()
     41    * lct/acf/format_value/type_section_header/value; lct_acf_format_value()
     42* Added ACTION:
     43    * lct/acf/display_form/type_section_header; lct_acf_format_value()
     44    * lct/acf/format_value/type_section_header; lct_acf_format_value()
     45* Added:
     46    * add_yoast_ga_onclick()
     47* Updated:
     48    * lct_acf_hide_this()
     49    * lct_acf_format_value()
     50* Improved:
     51    * render_field_viewonly()
     52    * lct_acf_get_full_field_name()
     53    * PDER{}send_ereminders()
     54    * PDER{}send_ereminder()
     55    * lct_get_taxonomy_by_path()
     56    * lct_quick_send_email()
     57    * lct_acf_get_POST_value()
     58
    3159= 2020.14 =
    3260*Release Date - 20 January 2021*
Note: See TracChangeset for help on using the changeset viewer.