# Path: blogit/settings.py
# ACTIVE_FIELD_HELP_TEXT = _('Is this object active?')
# TITLE = getattr(settings, 'BLOGIT_TITLE', _('Blogit'))
# DESCRIPTION = getattr(settings, 'BLOGIT_DESCRIPTION', _('This is a blog about everything'))
# FEED_LIMIT = getattr(settings, 'BLOGIT_FEED_LIMIT', 100)
# FEED_ITEM_AUTHOR_NAME = getattr(settings, 'BLOGIT_FEED_ITEM_AUTHOR_NAME', None)
# FEED_ITEM_AUTHOR_EMAIL = getattr(settings, 'BLOGIT_FEED_ITEM_AUTHOR_EMAIL', None)
# FEED_ITEM_DESCRIPTION_FULL = getattr(settings, 'BLOGIT_FEED_ITEM_DESCRIPTION_FULL', False)
# FEED_DEFAULT = getattr(settings, 'BLOGIT_FEED_DEFAULT', 'rss')
# SITEMAP_PRIORITY = getattr(settings, 'BLOGIT_SITEMAP_PRIORITY', 0.5)
# SITEMAP_CHANGEFREQ = getattr(settings, 'BLOGIT_SITEMAP_CHANGEFREQ', 'weekly')
# POSTS_PER_PAGE = getattr(settings, 'BLOGIT_POSTS_PER_PAGE', 10)
# POST_DETAIL_DATE_URL = getattr(settings, 'BLOGIT_POST_DETAIL_DATE_URL', False)
# SINGLE_APPHOOK = getattr(settings, 'BLOGIT_SINGLE_APPHOOK', False)


from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
from blogit import settings as bs

    def get_urls(self, page=None, language=None, **kwargs):
        if bs.SINGLE_APPHOOK:
            return ['blogit.urls']
        return ['blogit.urls.archive_posts']


class BlogitCategoriesApphook(CMSApp):
    name = _('Blogit Categories')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.categories']


class BlogitTagsApphook(CMSApp):
    name = _('Blogit Tags')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.tags']


class BlogitFeedsApphook(CMSApp):
    name = _('Blogit Feeds')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.feeds']


apphook_pool.register(BlogitApphook)


# Path: blogit/settings.py
# ACTIVE_FIELD_HELP_TEXT = _('Is this object active?')
# TITLE = getattr(settings, 'BLOGIT_TITLE', _('Blogit'))
# DESCRIPTION = getattr(settings, 'BLOGIT_DESCRIPTION', _('This is a blog about everything'))
# FEED_LIMIT = getattr(settings, 'BLOGIT_FEED_LIMIT', 100)
# FEED_ITEM_AUTHOR_NAME = getattr(settings, 'BLOGIT_FEED_ITEM_AUTHOR_NAME', None)
# FEED_ITEM_AUTHOR_EMAIL = getattr(settings, 'BLOGIT_FEED_ITEM_AUTHOR_EMAIL', None)
# FEED_ITEM_DESCRIPTION_FULL = getattr(settings, 'BLOGIT_FEED_ITEM_DESCRIPTION_FULL', False)
# FEED_DEFAULT = getattr(settings, 'BLOGIT_FEED_DEFAULT', 'rss')
# SITEMAP_PRIORITY = getattr(settings, 'BLOGIT_SITEMAP_PRIORITY', 0.5)
# SITEMAP_CHANGEFREQ = getattr(settings, 'BLOGIT_SITEMAP_CHANGEFREQ', 'weekly')
# POSTS_PER_PAGE = getattr(settings, 'BLOGIT_POSTS_PER_PAGE', 10)
# POST_DETAIL_DATE_URL = getattr(settings, 'BLOGIT_POST_DETAIL_DATE_URL', False)
# SINGLE_APPHOOK = getattr(settings, 'BLOGIT_SINGLE_APPHOOK', False)


# Path: blogit/cms_apps.py
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
from blogit import settings as bs


    def get_urls(self, page=None, language=None, **kwargs):
        if bs.SINGLE_APPHOOK:
            return ['blogit.urls']
        return ['blogit.urls.archive_posts']


class BlogitCategoriesApphook(CMSApp):
    name = _('Blogit Categories')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.categories']


class BlogitTagsApphook(CMSApp):
    name = _('Blogit Tags')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.tags']


class BlogitFeedsApphook(CMSApp):
    name = _('Blogit Feeds')

    def get_urls(self, page=None, language=None, **kwargs):
        return ['blogit.urls.feeds']


apphook_pool.register(BlogitApphook)


if not bs.SINGLE_APPHOOK: