?Replace html without forking
-
I’d like to not have dots representing events within the calendar widget. I was able to do that within google-calendar-events/includes/calendars/views/default-calendar-grid.php by replacing within public function draw_month():
echo "\t\t" . '<span class="simcal-day-label simcal-day-number"' . $day_style . '>' . $day . '</span>' . "\n"; echo "\t\t" . $list_events . "\n"; echo "\t\t"; echo '<span class="simcal-events-dots" style="display: none;">'; // Event bullets for calendar mobile mode. for( $i = 0; $i < $count; $i++ ) { echo '<b style="color: ' . $bullet_colors[ $i ] . ';"> • </b>'; }
with
if ($count) { for( $i = 0; $i < $count; $i++ ) { echo "\t\t" . $list_events . "\n"; // Need this for popup echo '<span class="simcal-events-dots"' . $day_style . '>' . $day . '</span>' . "\n"; } } else echo "\t\t" . '<span class="simcal-day-label simcal-day-number"' . $day_style . '>' . $day . '</span>' . "\n";
Is there a way to make those changes without forking the plugin? I didn’t find a hook or filter that would do that, but I’m not very good with php.
- The topic ‘?Replace html without forking’ is closed to new replies.