/*
Theme Name: Cardealer
Theme URI: http://themeforest.net/user/ThemeMakers/portfolio
Author: ThemeMakers
Author URI: http://themeforest.net/user/ThemeMakers
Description: The main destination of this theme is to showcase the cars which their owners sell, whether individuals or Car Dealer companies. This theme has a lot of functionalities, please check them all once installed it ;)
Version: 1.4.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, gray, red, responsive-layout, right-sidebar, left-sidebar,  one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
*/
// 1. Egyéni árak tömb létrehozása
function get_custom_car_prices() {
    return [
        'nissan-qashqai' => '12 490 000 Ft',
        'nissan-juke' => '10 190 000 Ft',
        'nissan-ariya' => '17 490 000 Ft',
        'nissan-leaf' => '8 495 000 Ft',
        'nissan-xtrail' => '15 390 000 Ft',
        'nissan-townstar' => '12 790 000 Ft',
        'nissan-navara' => '12 790 000 Ft',
        'nissan-micra' => '5 490 000 Ft',
    ];
}

// 2. Ár lekérő függvény
function get_car_price_by_slug($slug) {
    $prices = get_custom_car_prices();
    return isset($prices[$slug]) ? $prices[$slug] : 'Ár nem elérhető';
}

