I override template in my custom theme na (templates/block--[module]--[delta].tpl.php
) and I would like to include other template (from the same directory) into this. Can I do it and how?
Directory structure
sites\all\themes\
my_name_of_theme\
templates\
block--views--front-page-block-1.tpl.php
example-file-template.tpl.php
block--views--front-page-block-1.tpl.php
(concept what I want to do):
<?php
/* init $path (or maybe it is not needed) */
include($path . 'example-file-template.tpl.php');
?>
include
it, maybe? What have you tried? What is your problem, exactly? – Mołot Sep 9 '14 at 11:10$path
to highlight that maybe I need to create/generate path but I don't know how – kspacja Sep 9 '14 at 11:31drupal_get_path('theme', 'my_name_of_theme ')
gets you what you need – Clive♦ Sep 9 '14 at 11:36