klimeryk / recalendar

ReCalendar - highly customizable calendar for ReMarkable tablets
GNU General Public License v3.0
197 stars 23 forks source link

Is it possible to remove the weekly retrospective page? #14

Closed jeepitou closed 3 years ago

jeepitou commented 3 years ago

?

ibahson commented 3 years ago

In the recalendar.php file you could comment ´//´out the line which generates the week-retrospective page. I'm not a skilled programmer so still trying to understand this intricate and for me awesome program. Although I´ve been able to remove the week retrospective, still not able to remove the ´R´ from the mini month calendar. Work-in-progress.

Try doing this is the ´recalendar.php´-file: // $this->generate_week_retrospective( $week );

jeepitou commented 3 years ago

Awesome thanks! I will try to remove the R tonight when I get on my computer. I didn't think of just looking at the other files than the config xD

jeepitou commented 3 years ago

So to remove the R from mini month calendar, you need to modify calendar-generator.php

Comment line 46

Re

Comment line 63 //$week_overview_anchor = self::get_week_overview_anchor( $week );

Modify line 64 like below echo "<td class=\"calendar__week-number\">$week_number";

Comment line 97-98 //$week_retrospective_anchor = self::get_week_retrospective_anchor( $week ); //echo "<td class=\"calendar__week-retrospective\"><a href=\"#$week_retrospective_anchor\">R";

klimeryk commented 3 years ago

Like mentioned above, it is technically possible, but there's no easy to toggle option for that. Basically have to remove/comment out parts of code - should not be much, though.