diff --git a/zsite/settings.py b/zsite/settings.py index 9da94d2..c3aa1d0 100644 --- a/zsite/settings.py +++ b/zsite/settings.py @@ -112,8 +112,9 @@ SITE_ID = 1 TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', + # important! place right before django.template.loaders.app_directories.Loader + 'aldryn_boilerplates.template_loaders.AppDirectoriesLoader', 'django.template.loaders.app_directories.Loader', - 'django.template.loaders.eggs.Loader' ) MIDDLEWARE_CLASSES = ( @@ -142,7 +143,8 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.core.context_processors.static', - 'cms.context_processors.cms_settings' + 'cms.context_processors.cms_settings', + 'aldryn_boilerplates.context_processors.boilerplate', ) TEMPLATE_DIRS = ( @@ -176,7 +178,36 @@ INSTALLED_APPS = ( 'djangocms_video', 'reversion', 'pipeline', - 'zsite' + 'zsite', + + # Newsblog + 'aldryn_common', + 'aldryn_apphooks_config', + 'aldryn_boilerplates', + 'aldryn_categories', + 'aldryn_newsblog', + 'aldryn_people', + 'aldryn_reversion', + 'easy_thumbnails', + 'filer', + 'parler', + 'sortedm2m', + 'taggit', + + 'aldryn_bootstrap3', + + 'debug_toolbar', +) + +ALDRYN_BOILERPLATE_NAME = 'bootstrap3' + +THUMBNAIL_PROCESSORS = ( + 'easy_thumbnails.processors.colorspace', + 'easy_thumbnails.processors.autocrop', + # 'easy_thumbnails.processors.scale_and_crop', + 'filer.thumbnail_processors.scale_and_crop_with_subject_location', + 'easy_thumbnails.processors.filters', + 'easy_thumbnails.processors.background', ) LANGUAGES = ( @@ -216,7 +247,7 @@ CMS_LANGUAGES = { CMS_TEMPLATES = ( ## Customize this ('page.html', 'Page'), - ('feature.html', 'Page with Feature') + ('sub_section.html', 'Page with sub menu') ) CMS_PERMISSION = True diff --git a/zsite/templates/aldryn_people/includes/people_item.html b/zsite/templates/aldryn_people/includes/people_item.html new file mode 100644 index 0000000..b79924d --- /dev/null +++ b/zsite/templates/aldryn_people/includes/people_item.html @@ -0,0 +1,17 @@ +{% load aldryn_people_tags i18n thumbnail %} + +
+

{{ person.name }} {{ person.function }}

+ {% if person.visual %}

+ {% if instance.show_links %}{% endif %} + {{ person.name }} + {% if instance.show_links %}{% endif %} +

{% endif %} +

+ {% if person.phone %}{% trans "Phone:" %} {{ person.phone|phoneformat }}
{% endif %} + {% if person.mobile %}{% trans "Mobile:" %} {{ person.mobile|phoneformat }}
{% endif %} + {% if person.email %}{% trans "E-Mail:" %} {{ person.email }}{% endif %} + {% if instance.show_vcard and person.vcard_enabled %}
{% trans "Download vCard" %}{% endif %} +

+ {% if person.description %}
{{ person.description|safe }}
{% endif %} +
\ No newline at end of file diff --git a/zsite/templates/aldryn_people/includes/people_items.html b/zsite/templates/aldryn_people/includes/people_items.html new file mode 100644 index 0000000..cfc54a9 --- /dev/null +++ b/zsite/templates/aldryn_people/includes/people_items.html @@ -0,0 +1,17 @@ +{% load i18n thumbnail %} + + \ No newline at end of file diff --git a/zsite/templates/aldryn_people/plugins/standard/people_list.html b/zsite/templates/aldryn_people/plugins/standard/people_list.html new file mode 100644 index 0000000..a6d94c0 --- /dev/null +++ b/zsite/templates/aldryn_people/plugins/standard/people_list.html @@ -0,0 +1,22 @@ +{% load i18n thumbnail %} + +
+{% if people_groups %} + {# Because of hvad I have to activate the plugin's language :( #} + {% language instance.language %} + {% for group, people_list in people_groups.items %} + {% if group.name %} +
+

{{ group.name }}

+
{{ group.description|safe }}
+
+ {% endif %} + {% include "aldryn_people/includes/people_items.html" with people=people_list %} + {% endfor %} + {% endlanguage %} +{% endif %} + +{% if not people_groups %} + {% include "aldryn_people/includes/people_items.html" %} +{% endif %} +
\ No newline at end of file