Created
November 25, 2019 11:42
-
-
Save lincoln-chawora/bb75b8904b0e4ebd0f8bf28ce9e1d276 to your computer and use it in GitHub Desktop.
How to render a template file in drupal 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php print theme_render_template(drupal_get_path('theme', 'theme_name') . '/templates/theme/prompt-popup.tpl.php', array('prompt_paragraph' => $content['field_prompt_paragraph_reference'])); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="prompt-popup"> | |
<div class="prompt__content"> | |
<button class="prompt__close button-reset" aria-label="Close">×</button> | |
<?php echo render($prompt_paragraph) ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment