API – Footer Template – Introduction

Available on: Newsmag V1.8+, Newspaper V5+
The td_api_footer_template api call allows you to add or modify a footer template. By default the theme comes with the footer template style 1 which brings predefined content and looks like this:


The style can be changed from Theme Panel -> Footer, if you use the api to add a new style it will appear like this:


The theme footer templates are registered in td_config.php, the code looks like this:

        'img' => TDC_URL_LEGACY . '/assets/images/panel/footer_templates/icon-footer-1.png',
        'file' => TDC_PATH_LEGACY . '/parts/footer/td_footer_template_1.php',
        'text' => 'Style 1'


$id (string) (required)

  • the footer template id – if you add a new footer template style the id has to be different from the ones used on the other footer template styles registered in theme, if you plan to modify one of the existing styles the id has to match with the one you’re planing to modify.

$params_array (array) (required)

  • an array which contains the parameters of the footer template style:
Key name
img string the footer template icon, it appears on Theme Panel -> Footer
file string the path of the footer template file
text string the name of the footer template style