Echo $day_id ouside My Calendar
-
Hello Dolson,
I’ve modified line 359 in the
my-calendar-output.php
, because I needed each container to have its own ID. I used the$day_id
to make sure of this.$container = "<div id='powertip-target-". $day_id ."' class='details' role='dialog' aria-labelledby='$uid-$day_id-$type-title'>\n";
I’m using a third-party tooltip plugin, called PowerTip. In the theme footer.php I tried to call the following line, which enables the tooltip on days in the calendar with the class
.has-events
, but the PHP string returns nothing – no errors either:$(this).data('powertiptarget', 'powertip-target-<?php echo($day_id);?>');
How can I make this return the actual day ID outside the My Calendar’s files?
- The topic ‘Echo $day_id ouside My Calendar’ is closed to new replies.