Commit 0cb96a2e authored by mitshel's avatar mitshel
Browse files

Меню новинок не будет выводится, если new_period=0

parent 1f85a769
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ title_as_filename = yes
alphabet_menu = yes

#new_period = N - количество суток в течении которых добавленные книги считаются новыми, по умолчанию 7 дней
new_period = 1
#Если new_period=0, то меню новинок не будет выводится вовсе
new_period = 7 

[site]
id=http://sopds.ru/
+5 −4
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ def main_menu():
   enc_print('<content type="text">Серий: %s.</content>'%dbinfo[4][1])
   enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id='+am+'06"/>')
   enc_print('<id>id:06</id></entry>')
   if cfg.NEW_PERIOD!=0:
      enc_print('<entry>')
      enc_print('<title>Новинки за %s суток</title>'%cfg.NEW_PERIOD)
      enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id=05"/>')