<wpml-config>
    <custom-types>
        <custom-type translate="1">at_biz_dir</custom-type>
        <custom-type translate="0">atbdp_orders</custom-type>
        <custom-type translate="0">listing-announcement</custom-type>
    </custom-types>

    <taxonomies>
        <taxonomy translate="1">at_biz_dir-location</taxonomy>
        <taxonomy translate="1">at_biz_dir-category</taxonomy>
        <taxonomy translate="1">at_biz_dir-tags</taxonomy>
        <taxonomy translate="1">atbdp_listing_types</taxonomy>
    </taxonomies>

    <!--
        custom-term-fields for atbdp_listing_types (directory type) term meta:

        Builder-controlled term meta is copied once, not translated, because WPML
        otherwise injects the full nested builder arrays into regular listing
        ATE jobs. That exposes internal config values such as widget keys,
        icons, hooks, presets, and layout groups when users only translate a
        listing. User-facing builder labels/placeholders are translated by the
        Directorist Directory Builder string package instead. Copy-once gives a
        new translated directory its initial structure without overwriting
        builder translations when the source directory is saved later.

        - _default : copy - every language needs its own default directory type
          flag so Directorist always has a valid default (comp-4354).
    -->
    <custom-term-fields>
        <custom-term-field action="copy-once">submission_form_fields</custom-term-field>
        <custom-term-field action="copy-once">search_form_fields</custom-term-field>
        <custom-term-field action="copy-once">single_listing_header</custom-term-field>
        <custom-term-field action="copy-once">single_listings_contents</custom-term-field>
        <custom-term-field action="copy-once">listings_card_grid_view</custom-term-field>
        <custom-term-field action="copy-once">listings_card_list_view</custom-term-field>
        <custom-term-field action="copy-once">submit_button_label</custom-term-field>
        <custom-term-field action="copy">_default</custom-term-field>
    </custom-term-fields>

    <admin-texts>
        <key name="atbdp_option">
            <!-- Page IDs (for ATE/CTE mapping to translated pages) - comp-4358 -->
            <key name="search_listing" type="post-ids" sub-type="page"/>
            <key name="search_result_page" type="post-ids" sub-type="page"/>
            <key name="add_listing_page" type="post-ids" sub-type="page"/>
            <key name="all_listing_page" type="post-ids" sub-type="page"/>
            <key name="all_categories_page" type="post-ids" sub-type="page"/>
            <key name="single_category_page" type="post-ids" sub-type="page"/>
            <key name="all_locations_page" type="post-ids" sub-type="page"/>
            <key name="single_location_page" type="post-ids" sub-type="page"/>
            <key name="single_tag_page" type="post-ids" sub-type="page"/>
            <key name="user_dashboard" type="post-ids" sub-type="page"/>
            <key name="author_profile_page" type="post-ids" sub-type="page"/>
            <key name="signin_signup_page" type="post-ids" sub-type="page"/>
            <key name="custom_registration" type="post-ids" sub-type="page"/>
            <key name="user_login" type="post-ids" sub-type="page"/>
            <key name="checkout_page" type="post-ids" sub-type="page"/>
            <key name="payment_receipt_page" type="post-ids" sub-type="page"/>
            <key name="transaction_failure_page" type="post-ids" sub-type="page"/>
            <key name="privacy_policy" type="post-ids" sub-type="page"/>
            <key name="terms_conditions" type="post-ids" sub-type="page"/>
            <key name="compare_listings_page" type="post-ids" sub-type="page"/>
            <!-- All Listings -->
            <key name="guest_email_label"/>
            <key name="guest_email_placeholder"/>
            <key name="listings_sidebar_filter_text"/>
            <key name="all_listing_title"/>
            <key name="listings_filter_button_text"/>
            <key name="listings_reset_text"/>
            <key name="listings_sidebar_reset_text"/>
            <key name="listings_apply_text"/>
            <key name="sort_by_text"/>
            <key name="view_as_text"/>

            <!-- Single Listings -->
            <key name="pending_confirmation_msg"/>
            <key name="publish_confirmation_msg"/>

            <!-- Search Listing -->
            <key name="search_title"/>
            <key name="search_subtitle"/>
            <key name="search_listing_text"/>
            <key name="search_more_filters"/>
            <key name="search_reset_text"/>
            <key name="search_apply_filter"/>
            <key name="popular_cat_title"/>

            <!-- Search Result -->
            <key name="search_result_sidebar_filter_text"/>
            <key name="search_result_filter_button_text"/>
            <key name="search_result_listing_title"/>
            <key name="sresult_reset_text"/>
            <key name="sresult_sidebar_reset_text"/>
            <key name="sresult_apply_text"/>
            <key name="search_viewas_text"/>
            <key name="search_sortby_text"/>

            <!-- Registration Form -->
            <key name="reg_username"/>
            <key name="reg_password"/>
            <key name="reg_email"/>
            <key name="reg_website"/>
            <key name="reg_fname"/>
            <key name="reg_lname"/>
            <key name="reg_bio"/>
            <key name="registration_privacy_label"/>
            <key name="registration_privacy_label_link"/>
            <key name="regi_terms_label"/>
            <key name="regi_terms_label_link"/>
            <key name="reg_signup"/>
            <key name="login_text"/>
            <key name="log_linkingmsg"/>

            <!-- Login Form -->
            <key name="log_username"/>
            <key name="log_password"/>
            <key name="log_rememberme"/>
            <key name="log_button"/>
            <key name="reg_text"/>
            <key name="reg_linktxt"/>
            <key name="recpass_text"/>
            <key name="recpass_desc"/>
            <key name="recpass_username"/>
            <key name="recpass_placeholder"/>
            <key name="recpass_button"/>

            <!-- Dashboard -->
            <key name="my_profile_tab_text"/>
            <key name="fav_listings_tab_text"/>
            <key name="announcement_tab_text"/>
            <key name="my_listing_tab_text"/>
            <key name="become_author_button_text"/>

            <!-- All Authors -->
            <key name="all_authors_button_text"/>

            <!-- Email General -->
            <key name="email_from_name"/>

            <!-- Email Templates -->
            <key name="email_sub_new_listing"/>
            <key name="email_tmpl_new_listing"/>
            <key name="email_sub_pub_listing"/>
            <key name="email_tmpl_pub_listing"/>
            <key name="email_sub_rejected_listing"/>
            <key name="email_tmpl_rejected_listing"/>
            <key name="email_sub_edit_listing"/>
            <key name="email_tmpl_edit_listing"/>
            <key name="email_sub_to_expire_listing"/>
            <key name="email_tmpl_to_expire_listing"/>
            <key name="email_sub_expired_listing"/>
            <key name="email_tmpl_expired_listing"/>
            <key name="email_sub_to_renewal_listing"/>
            <key name="email_tmpl_to_renewal_listing"/>
            <key name="email_sub_renewed_listing"/>
            <key name="email_tmpl_renewed_listing"/>
            <key name="email_sub_deleted_listing"/>
            <key name="email_tmpl_deleted_listing"/>
            <key name="email_sub_new_order"/>
            <key name="email_tmpl_new_order"/>
            <key name="email_sub_offline_new_order"/>
            <key name="email_tmpl_offline_new_order"/>
            <key name="email_sub_completed_order"/>
            <key name="email_tmpl_completed_order"/>
            <key name="email_sub_listing_contact_email"/>
            <key name="email_tmpl_listing_contact_email"/>
            <key name="email_sub_registration_confirmation"/>
            <key name="email_tmpl_registration_confirmation"/>
            <key name="email_sub_email_verification"/>
            <key name="email_tmpl_email_verification"/>
            
            <!-- Monetization -->
            <key name="paypal_gateway_title"/>
            <key name="paypal_gateway_description"/>
            <key name="bank_transfer_title"/>
            <key name="bank_transfer_description"/>
            <key name="bank_transfer_instruction"/>
            <key name="featured_listing_title"/>
            <key name="featured_listing_desc"/>
            
            <!-- Badge Management -->
            <key name="new_badge_text"/>
            <key name="popular_badge_text"/>
            <key name="feature_badge_text"/>
            
            <!-- SEO -->
            <key name="add_listing_page_meta_title"/>
            <key name="add_listing_page_meta_desc"/>
            <key name="all_listing_meta_title"/>
            <key name="all_listing_meta_desc"/>
            <key name="dashboard_meta_title"/>
            <key name="dashboard_meta_desc"/>
            <key name="author_profile_meta_title"/>
            <key name="author_page_meta_desc"/>
            <key name="category_meta_title"/>
            <key name="category_meta_desc"/>
            <key name="single_category_meta_title"/>
            <key name="single_category_meta_desc"/>
            <key name="all_locations_meta_title"/>
            <key name="all_locations_meta_desc"/>
            <key name="single_locations_meta_title"/>
            <key name="single_locations_meta_desc"/>
            <key name="registration_meta_title"/>
            <key name="registration_meta_desc"/>
            <key name="login_meta_title"/>
            <key name="login_meta_desc"/>
            <key name="homepage_meta_title"/>
            <key name="homepage_meta_desc"/>
            <key name="search_result_meta_title"/>
            <key name="search_result_meta_desc"/>
            
            <!-- Claim Listing extension -->
            <key name="claim_widget_title"/>
            <key name="claim_widget_description"/>
            <key name="claim_now"/>
            <key name="email_sub_new_claim"/>
            <key name="email_tmpl_new_claim"/>
            <key name="email_sub_approved_claim"/>
            <key name="email_tmpl_approved_claim"/>
            <key name="email_sub_declined_claim"/>
            <key name="email_tmpl_declined_claim"/>
        </key>
    </admin-texts>

    <custom-fields>
        <custom-field action="translate">_tagline</custom-field>
        <custom-field action="translate">_price</custom-field>
        <custom-field action="copy">_price_range</custom-field>
        <custom-field action="copy">_atbdp_post_views_count</custom-field>
        <custom-field action="translate">_excerpt</custom-field>
        <custom-field action="copy">_tax_input[at_biz_dir-location][]</custom-field>
        <custom-field action="copy">_tax_input[at_biz_dir-tags][]</custom-field>
        <custom-field action="copy">_admin_category_select[]</custom-field>
        <custom-field action="copy">_hide_contact_info</custom-field>
        <custom-field action="copy">_address</custom-field>
        <custom-field action="copy">_manual_lat</custom-field>
        <custom-field action="copy">_manual_lng</custom-field>
        <custom-field action="copy">_hide_map</custom-field>
        <custom-field action="translate">_zip</custom-field>
        <custom-field action="translate">_phone</custom-field>
        <custom-field action="translate">_phone2</custom-field>
        <custom-field action="translate">_fax</custom-field>
        <custom-field action="copy">_email</custom-field>
        <custom-field action="copy">_website</custom-field>
        <custom-field action="copy">_videourl</custom-field>
        <custom-field action="copy">_fm_plans</custom-field>
        <custom-field action="copy">_claimed_by_admin</custom-field>
        <custom-field action="copy">_expiry_date</custom-field>
        <custom-field action="copy">_featured</custom-field>
        <custom-field action="copy">_listing_status</custom-field>
        <custom-field action="copy">_listing_prv_img</custom-field>
        <custom-field action="ignore">_directory_type</custom-field>
        <custom-field action="copy">_atbd_listing_pricing</custom-field>
        <custom-field action="copy">_social</custom-field>
        <custom-field action="copy">_map</custom-field>
        <custom-field action="copy">_hide_contact_owner</custom-field>
        <custom-field action="copy">_listing_img</custom-field>
        <custom-field action="copy">_never_expire</custom-field>
        <custom-field action="copy">_listing_id</custom-field>
        <custom-field action="copy">_amount</custom-field>
        <custom-field action="copy">_payment_gateway</custom-field>
        <custom-field action="copy">_payment_status</custom-field>
        <custom-field action="copy">_transaction_id</custom-field>
        <custom-field action="copy">_listing_type</custom-field>
        <custom-field action="copy">_admin_category_select</custom-field>
        <custom-field action="translate">_directorist_wpml_page_ui_strings</custom-field>
        <custom-field action="copy">_directorist_wpml_page_ui_strings_hash</custom-field>
    </custom-fields>

    <custom-fields-texts>
        <key name="_directorist_wpml_page_ui_strings">
            <key name="*"/>
        </key>
    </custom-fields-texts>

    <gutenberg-blocks>
        <gutenberg-block type="directorist/search-listing" translate="1">
            <key name="search_bar_title"/>
            <key name="search_bar_sub_title"/>
            <key name="search_button_text"/>
            <key name="more_filters_text"/>
            <key name="reset_filters_text"/>
            <key name="apply_filters_text"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/all-listing" translate="1">
            <key name="header_title"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/search-result" translate="1">
            <key name="header_title"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/category" translate="1">
            <key name="header_title"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/location" translate="1">
            <key name="header_title"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/tag" translate="1">
            <key name="header_title"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/account-button" translate="1">
            <key name="title"/>
            <key name="text"/>
        </gutenberg-block>

        <gutenberg-block type="directorist/search-modal" translate="1">
            <key name="title"/>
            <key name="text"/>
        </gutenberg-block>
    </gutenberg-blocks>

    <elementor-widgets>
        <widget name="directorist_all_listing">
            <fields>
                <field>header_title</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_search_listing">
            <fields>
                <field>title</field>
                <field>subtitle</field>
                <field>search_btn_text</field>
                <field>more_filter_btn_text</field>
                <field>more_filter_reset_btn_text</field>
                <field>more_filter_search_btn_text</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_search_result">
            <fields>
                <field>header_title</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_category">
            <fields>
                <field>header_title</field>
                <field type="taxonomy-ids" sub-type="at_biz_dir-category">cat</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_location">
            <fields>
                <field>header_title</field>
                <field type="taxonomy-ids" sub-type="at_biz_dir-location">location</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_tag">
            <fields>
                <field>header_title</field>
                <field type="taxonomy-ids" sub-type="at_biz_dir-tags">tag</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">type</field>
                <field type="taxonomy-ids" sub-type="atbdp_listing_types">default_type</field>
            </fields>
        </widget>
        <widget name="directorist_user_login">
            <fields>
                <field>signin_username_label</field>
                <field>signin_button_label</field>
                <field>recovery_password_label</field>
                <field>recovery_password_description</field>
                <field>recovery_password_email_label</field>
                <field>recovery_password_email_placeholder</field>
                <field>recovery_password_button_label</field>
                <field>signup_label</field>
                <field>signup_linking_text</field>
                <field>author_role_label</field>
                <field>user_role_label</field>
                <field>username_label</field>
                <field>password_label</field>
                <field>email_label</field>
                <field>website_label</field>
                <field>firstname_label</field>
                <field>lastname_label</field>
                <field>bio_label</field>
                <field>privacy_label</field>
                <field>privacy_linking_text</field>
                <field>terms_label</field>
                <field>terms_linking_text</field>
                <field>signup_button_label</field>
                <field>signin_message</field>
                <field>signin_linking_text</field>
                <field>active_form</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>
