<?php
/**
 * Loads html for dialogue builder
 * @author Rihards Siliņš
 * @copyright MTC media Ltd
 * @version 10/01/2017
 */
$cms_root_path = "../../../";
require_once($cms_root_path."includes/compatibility_includer.php");

$html = [];

$html['row'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_row.twig"
);

$html['layout'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_layout.twig"
);

$html['select'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_input_select.twig"
);

$html['checkbox'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_input_checkbox.twig"
);

$html['input'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_input_input.twig"
);

$html['hint'] = file_get_contents(
    SITE_PATH . "/cms/templates/admin/dialogues/dialogue_hint.twig"
);

exit(json_encode($html));
