opening_hours_presentation.tpl.php in Opening hours 7
Same filename and directory in other branches
Template for the opening hours admin interface.
Is not really a template in Drupal-sense, mainly a container for the markup necessary to render the opening hours interface.
1 theme call to opening_hours_presentation.tpl.php
- template_preprocess_opening_hours_week in ./
opening_hours.module - Preprocess variables for the week template.
File
templates/opening_hours_presentation.tpl.phpView source
<?php
/**
* @file
* Template for the opening hours admin interface.
*
* Is not really a template in Drupal-sense, mainly a container for the
* markup necessary to render the opening hours interface.
*/
?>
<script type="text/template" id="oho-day-presentation-template">
<div class="day <%= even_odd %> <%= is_today %> clear-block">
<span class="name"><%= name %></span>
<span class="times"><%= instances %></span>
</div>
</script>
<script type="text/template" id="oho-instance-presentation-template">
<div class="instance">
<span class="start_time" title="<?php
echo t('Opening time');
?>"><%= start_time %></span> –
<span class="end_time" title="<?php
echo t('Closing time');
?>"><%= end_time %></span>
<% if (category) { %>
<span class="category"><%- category %></span>
<% } %>
<% if (notice) { %>
<span class="notice"><%- notice %></span>
<% } %>
</div>
</script>