aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-26 22:32:07 -0700
committerfriendica <info@friendica.com>2012-06-26 22:32:07 -0700
commiteb3bbd9081b384d1e1e503d8019eadc9f151edeb (patch)
tree8a9e07beae538dfc307928c631900ab85226c37a
parentf995a11641a47f1351eca1fc5447ec64a9f0a2c8 (diff)
downloadvolse-hubzilla-eb3bbd9081b384d1e1e503d8019eadc9f151edeb.tar.gz
volse-hubzilla-eb3bbd9081b384d1e1e503d8019eadc9f151edeb.tar.bz2
volse-hubzilla-eb3bbd9081b384d1e1e503d8019eadc9f151edeb.zip
insidious little parsing bug
-rw-r--r--boot.php3
-rw-r--r--view/theme/slackr/birthdays_reminder.tpl7
2 files changed, 8 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 3d7e0c488..c27b0baaa 100644
--- a/boot.php
+++ b/boot.php
@@ -1252,6 +1252,9 @@ if(! function_exists('get_birthdays')) {
'$event_reminders' => t('Birthday Reminders'),
'$event_title' => t('Birthdays this week:'),
'$events' => $r,
+ '$lbr' => '{', // raw brackets mess up if/endif macro processing
+ '$rbr' => '}'
+
));
}
}
diff --git a/view/theme/slackr/birthdays_reminder.tpl b/view/theme/slackr/birthdays_reminder.tpl
index 4a691dea3..1dc65295a 100644
--- a/view/theme/slackr/birthdays_reminder.tpl
+++ b/view/theme/slackr/birthdays_reminder.tpl
@@ -1,5 +1,8 @@
+{{ if $classtoday }}
<script>
- $(document).ready(function() {
+ $(document).ready(function() $lbr
$('#events-reminder').addClass($.trim('$classtoday'));
- });
+ $rbr);
</script>
+{{ endif }}
+