id ) {
return;
}
$variables = a1tools_get_site_variables();
if ( null === $variables ) {
?>
array(
'business_name' => array( 'label' => 'Business Name', 'shortcode' => '[a1tools_var key="business_name"]' ),
'city_name' => array( 'label' => 'City Name', 'shortcode' => '[a1tools_city_name]' ),
'city_url' => array( 'label' => 'City Link', 'shortcode' => '[a1tools_city_link]' ),
'location_name' => array( 'label' => 'State', 'shortcode' => '[a1tools_state]' ),
'state_url' => array( 'label' => 'State Link', 'shortcode' => '[a1tools_state_link]' ),
'tagline' => array( 'label' => 'Tagline', 'shortcode' => '[a1tools_var key="tagline"]' ),
'google_maps_url' => array( 'label' => 'Google Maps URL', 'shortcode' => '[a1tools_google_map]' ),
),
'Contact Information' => array(
'phone_primary' => array( 'label' => 'Primary Phone', 'shortcode' => '[a1tools_var key="phone_primary"]' ),
'phone_secondary' => array( 'label' => 'Secondary Phone', 'shortcode' => '[a1tools_var key="phone_secondary"]' ),
'email_primary' => array( 'label' => 'Primary Email', 'shortcode' => '[a1tools_var key="email_primary"]' ),
'email_secondary' => array( 'label' => 'Secondary Email', 'shortcode' => '[a1tools_var key="email_secondary"]' ),
),
'Address' => array(
'address_line1' => array( 'label' => 'Address Line 1', 'shortcode' => '[a1tools_var key="address_line1"]' ),
'address_line2' => array( 'label' => 'Address Line 2', 'shortcode' => '[a1tools_var key="address_line2"]' ),
'city' => array( 'label' => 'City', 'shortcode' => '[a1tools_var key="city"]' ),
'state' => array( 'label' => 'State', 'shortcode' => '[a1tools_var key="state"]' ),
'zip' => array( 'label' => 'ZIP Code', 'shortcode' => '[a1tools_var key="zip"]' ),
'country' => array( 'label' => 'Country', 'shortcode' => '[a1tools_var key="country"]' ),
'address_formatted' => array( 'label' => 'Full Address (multi-line)', 'shortcode' => '[a1tools_address]' ),
'full_address' => array( 'label' => 'Full Address (single line)', 'shortcode' => '[a1tools_full_address]' ),
),
'Social Media' => array(
'facebook_url' => array( 'label' => 'Facebook', 'shortcode' => '[a1tools_var key="facebook_url"]' ),
'instagram_url' => array( 'label' => 'Instagram', 'shortcode' => '[a1tools_var key="instagram_url"]' ),
'youtube_url' => array( 'label' => 'YouTube', 'shortcode' => '[a1tools_var key="youtube_url"]' ),
'twitter_url' => array( 'label' => 'Twitter/X', 'shortcode' => '[a1tools_var key="twitter_url"]' ),
'linkedin_url' => array( 'label' => 'LinkedIn', 'shortcode' => '[a1tools_var key="linkedin_url"]' ),
'tiktok_url' => array( 'label' => 'TikTok', 'shortcode' => '[a1tools_var key="tiktok_url"]' ),
'yelp_url' => array( 'label' => 'Yelp', 'shortcode' => '[a1tools_var key="yelp_url"]' ),
'google_business_url' => array( 'label' => 'Google Business', 'shortcode' => '[a1tools_var key="google_business_url"]' ),
'pinterest_url' => array( 'label' => 'Pinterest', 'shortcode' => '[a1tools_var key="pinterest_url"]' ),
'bbb_url' => array( 'label' => 'BBB', 'shortcode' => '[a1tools_var key="bbb_url"]' ),
'nextdoor_url' => array( 'label' => 'Nextdoor', 'shortcode' => '[a1tools_var key="nextdoor_url"]' ),
'houzz_url' => array( 'label' => 'Houzz', 'shortcode' => '[a1tools_var key="houzz_url"]' ),
'angi_url' => array( 'label' => 'Angi', 'shortcode' => '[a1tools_var key="angi_url"]' ),
'thumbtack_url' => array( 'label' => 'Thumbtack', 'shortcode' => '[a1tools_var key="thumbtack_url"]' ),
'homeadvisor_url' => array( 'label' => 'HomeAdvisor', 'shortcode' => '[a1tools_var key="homeadvisor_url"]' ),
),
);
?>
$fields ) : ?>
|
|
'Monday',
'tue' => 'Tuesday',
'wed' => 'Wednesday',
'thu' => 'Thursday',
'fri' => 'Friday',
'sat' => 'Saturday',
'sun' => 'Sunday',
);
foreach ( $days as $key => $label ) :
$hours = isset( $variables['operating_hours'][ $key ] ) ? $variables['operating_hours'][ $key ] : '';
?>
|
|
[a1tools_hours]
[a1tools_hours format="list"]
'[a1tools_location_phone]', 'label' => 'Phone', 'field' => 'phone' ),
array( 'shortcode' => '[a1tools_location_city]', 'label' => 'City', 'field' => 'city' ),
array( 'shortcode' => '[a1tools_location_address]', 'label' => 'Full Address', 'field' => 'full_address' ),
array( 'shortcode' => '[a1tools_location_state]', 'label' => 'State', 'field' => 'state' ),
array( 'shortcode' => '[a1tools_location_web]', 'label' => 'Location Web URL', 'field' => 'location_web' ),
array( 'shortcode' => '[a1tools_city_web]', 'label' => 'City Web URL', 'field' => 'city_web' ),
array( 'shortcode' => '[a1tools_state_web]', 'label' => 'State Web URL', 'field' => 'state_web' ),
array( 'shortcode' => '[a1tools_map_address]', 'label' => 'Map Address', 'field' => 'map_address' ),
array( 'shortcode' => '[a1tools_viewpoint]', 'label' => 'Viewpoint Iframe', 'field' => 'viewpoint_iframe' ),
);
// Show a sample location's data
$sample_loc = reset( $seo_locations );
?>
1 ) : ?>
()
[a1tools_franchise]
[a1tools_franchise columns="2"]
[a1tools_franchise id="X"]
Franchise tab.', 'a1-tools' ); ?>
[a1tools_store_locator]
Stores tab.', 'a1-tools' ); ?>
$wpd ) {
if ( isset( $saved_city_data[ $wpid ] ) ) {
$city_pages[ $wpid ] = array_merge( $wpd, $saved_city_data[ $wpid ] );
} else {
$city_pages[ $wpid ] = $wpd;
}
}
?>
[a1tools_city_phone]
[a1tools_city_phone link="yes"]
[a1tools_city_address]
Cities tab.', 'a1-tools' ); ?>