diff --git a/webapp_headernewstabs.py b/webapp_headernewstabs.py new file mode 100644 index 00000000..24e62c18 --- /dev/null +++ b/webapp_headernewstabs.py @@ -0,0 +1,66 @@ +__filename__ = "webapp_headernewstabs.py" +__author__ = "Bob Mottram" +__license__ = "AGPL3+" +__version__ = "1.1.0" +__maintainer__ = "Bob Mottram" +__email__ = "bob@freedombone.net" +__status__ = "Production" + + +def headerNewsTabs(boxName: str, + translate: {}, + usersPath: str, + baseDir: str, + authorized: bool, + userPages: []) -> str: + navTabList = [] + + navTabList.append(('tlfeatures', + {'pageRef': '/tlfeatures', + 'translateText': 'Features'} + )) + navTabList.append(('newswiremobile', + {'pageRef': '/newswiremobile', + 'translateText': 'Newswire', + 'class': 'tab-news'} + )) +# navTabList.append(('calendar', +# {'pageRef': '/calendar', +# 'translateText': 'Calendar'} +# )) + navTabList.append(('linksmobile', + {'pageRef': '/linksmobile', + 'translateText': 'Links', + 'class': 'tab-links'} + )) + + if authorized: + navTabList.append(('inbox', + {'pageRef': '/inbox', + 'translateText': 'User'} + )) + + navStr = '\t\t\n' + + return navStr +