Plugin Directory

Changeset 3462867


Ignore:
Timestamp:
02/16/2026 08:05:48 PM (6 days ago)
Author:
a1tools
Message:

v1.4.12: Add standalone full_address field for [a1tools_full_address] shortcode

Location:
a1-tools/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • a1-tools/trunk/a1-tools.php

    r3462759 r3462867  
    44 * Plugin URI:        https://tools.a-1chimney.com
    55 * Description:       Connects your WordPress site to the A1 Tools platform for centralized management of contact information, social media links, and business details.
    6  * Version:           1.4.11
     6 * Version:           1.4.12
    77 * Requires at least: 5.0
    88 * Requires PHP:      7.4
     
    2121
    2222// Plugin constants.
    23 define( 'A1TOOLS_VERSION', '1.4.11' );
     23define( 'A1TOOLS_VERSION', '1.4.12' );
    2424define( 'A1TOOLS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2525define( 'A1TOOLS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    272272    }
    273273
     274    // Use standalone full_address field if set.
     275    if ( ! empty( $vars['full_address'] ) ) {
     276        $output = esc_html( $vars['full_address'] );
     277
     278        if ( ! empty( $atts['class'] ) ) {
     279            $output = '<span class="' . esc_attr( $atts['class'] ) . '">' . $output . '</span>';
     280        }
     281
     282        return $output;
     283    }
     284
     285    // Fallback: assemble from individual address fields.
    274286    $parts = array();
    275287
     
    369381 * Get SVG markup for icons not available in Font Awesome 5.
    370382 *
    371  * @since 1.4.11
     383 * @since 1.4.12
    372384 * @param string $icon_key The SVG icon key (e.g. 'svg-x').
    373385 * @return string SVG markup or empty string.
     
    383395 * Get icon HTML (SVG or Font Awesome <i> tag).
    384396 *
    385  * @since 1.4.11
     397 * @since 1.4.12
    386398 * @param string $icon Icon class or SVG key.
    387399 * @return string HTML markup for the icon.
     
    13611373                    'country'           => array( 'label' => 'Country', 'shortcode' => '[a1tools_var key="country"]' ),
    13621374                    'address_formatted' => array( 'label' => 'Full Address (multi-line)', 'shortcode' => '[a1tools_address]' ),
    1363                     'address_single'    => array( 'label' => 'Full Address (single line)', 'shortcode' => '[a1tools_full_address]' ),
     1375                    'full_address'      => array( 'label' => 'Full Address (single line)', 'shortcode' => '[a1tools_full_address]' ),
    13641376                ),
    13651377                'Social Media' => array(
  • a1-tools/trunk/readme.txt

    r3462759 r3462867  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.4.11
     6Stable tag: 1.4.12
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    151151
    152152== Changelog ==
     153
     154= 1.4.12 =
     155* Added standalone Full Address field (full_address) for [a1tools_full_address] shortcode
     156* [a1tools_full_address] now uses stored value if set, falls back to assembled parts
     157* Fixed Connection Status table showing "(not set)" for Full Address (single line)
    153158
    154159= 1.4.11 =
Note: See TracChangeset for help on using the changeset viewer.